Forums API Models
ForumFlagsEnum
Bases: BaseFlagEnum
No description given by bungie.
Source code in src/bungio/models/bungie/forums.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | |
BUNGIE_STAFF_POST = 1
class-attribute
instance-attribute
No description given by bungie.
COMMUNITY_CONTENT = 128
class-attribute
instance-attribute
No description given by bungie.
FORUM_MENTOR_POST = 4
class-attribute
instance-attribute
No description given by bungie.
FORUM_NINJA_POST = 2
class-attribute
instance-attribute
No description given by bungie.
NONE = 0
class-attribute
instance-attribute
No description given by bungie.
QUESTION_ANSWERED_BY_BUNGIE = 32
class-attribute
instance-attribute
No description given by bungie.
QUESTION_ANSWERED_BY_NINJA = 64
class-attribute
instance-attribute
No description given by bungie.
TOPIC_BUNGIE_STAFF_POSTED = 8
class-attribute
instance-attribute
No description given by bungie.
TOPIC_BUNGIE_VOLUNTEER_POSTED = 16
class-attribute
instance-attribute
No description given by bungie.
from_dict(data, client, *args, **kwargs)
async
classmethod
Convert data to this enum
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
int | str
|
The int / str representation of the enum, usually received by bungie |
required |
client
|
'Client'
|
The client obj |
required |
Returns:
| Type | Description |
|---|---|
EnumMixin | UnknownEnumValue
|
The enum |
Source code in src/bungio/models/base.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |
process_dict(data, client, *args, **kwargs)
staticmethod
Enum specific cleanup
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
int | str
|
The int / str representation of the enum, usually received by bungie |
required |
client
|
'Client'
|
The client obj |
required |
Returns:
| Type | Description |
|---|---|
int | str
|
Clean int / str representation |
Source code in src/bungio/models/base.py
134 135 136 137 138 139 140 141 142 143 144 145 146 | |
to_dict()
Convert the enum into a representation bungie accepts
Returns:
| Type | Description |
|---|---|
Any
|
The value which can be sent to bungie |
Source code in src/bungio/models/base.py
172 173 174 175 176 177 178 179 180 | |
ForumPostCategoryEnums
Bases: BaseFlagEnum
No description given by bungie.
Source code in src/bungio/models/bungie/forums.py
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | |
ANNOUNCEMENT = 64
class-attribute
instance-attribute
No description given by bungie.
ANSWERED = 32
class-attribute
instance-attribute
No description given by bungie.
BUNGIE_OFFICIAL = 256
class-attribute
instance-attribute
No description given by bungie.
CONTENT_COMMENT = 128
class-attribute
instance-attribute
No description given by bungie.
LINK = 4
class-attribute
instance-attribute
No description given by bungie.
MEDIA = 2
class-attribute
instance-attribute
No description given by bungie.
NINJA_OFFICIAL = 512
class-attribute
instance-attribute
No description given by bungie.
NONE = 0
class-attribute
instance-attribute
No description given by bungie.
POLL = 8
class-attribute
instance-attribute
No description given by bungie.
QUESTION = 16
class-attribute
instance-attribute
No description given by bungie.
RECRUITMENT = 1024
class-attribute
instance-attribute
No description given by bungie.
TEXT_ONLY = 1
class-attribute
instance-attribute
No description given by bungie.
from_dict(data, client, *args, **kwargs)
async
classmethod
Convert data to this enum
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
int | str
|
The int / str representation of the enum, usually received by bungie |
required |
client
|
'Client'
|
The client obj |
required |
Returns:
| Type | Description |
|---|---|
EnumMixin | UnknownEnumValue
|
The enum |
Source code in src/bungio/models/base.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | |
process_dict(data, client, *args, **kwargs)
staticmethod
Enum specific cleanup
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
int | str
|
The int / str representation of the enum, usually received by bungie |
required |
client
|
'Client'
|
The client obj |
required |
Returns:
| Type | Description |
|---|---|
int | str
|
Clean int / str representation |
Source code in src/bungio/models/base.py
134 135 136 137 138 139 140 141 142 143 144 145 146 | |
to_dict()
Convert the enum into a representation bungie accepts
Returns:
| Type | Description |
|---|---|
Any
|
The value which can be sent to bungie |
Source code in src/bungio/models/base.py
172 173 174 175 176 177 178 179 180 | |