-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from alvindera97/dev
Add Role Enum
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
from role.role import Roles | ||
|
||
Role = Roles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
""" | ||
Roles module. | ||
This module contains class and method definitions for the [user/client] Role | ||
object. | ||
Classes: | ||
Roles: Provides definitions for the [user/client] role object and it's functionalities. | ||
""" | ||
from enum import Enum | ||
|
||
|
||
class Roles(Enum): | ||
""" | ||
Enum class definition of [user/client] role. | ||
""" | ||
PUBLISHER = 1 | ||
SUBSCRIBER = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters