Пример #1
0
 class WeekDayEnumeration:
     MONDAY = EnumItem(index=0, short='mon')
     TUESDAY = EnumItem(index=1, short='tue')
     WEDNESDAY = EnumItem(index=2, short='wed')
     THURSDAY = EnumItem(index=3, short='thu')
     FRIDAY = EnumItem(index=4, short='fri')
     SATURDAY = EnumItem(index=5, short='sat')
     SUNDAY = EnumItem(index=6, short='sun')
Пример #2
0
class PoolingStatusEnumeration:
    NONE = EnumItem()
    POOLING = EnumItem()
    GOOGLE_SEARCHING = EnumItem()
    ERROR_POOLING = EnumItem()
    ERROR_DELIVERING = EnumItem()
    SUCCESS = EnumItem()
Пример #3
0
 class MyOtherEnumTest:
     ONE = EnumItem(value=1, otherValue='one')
     TWO = EnumItem(value=2, otherValue='two')
Пример #4
0
 class SimpleEnumTest:
     ONE = EnumItem(value='one', otherValue=1)
     TWO = EnumItem(value='two', otherValue=1)
     THREE = EnumItem(value='three', otherValue=1)
Пример #5
0
 class MyThirdEnumTest:
     ONE = EnumItem(value='one', otherValue=1)
Пример #6
0
 class MyEnumTest:
     ONE = EnumItem(value='ONE', otherValue=1)
     TWO = EnumItem(value='ONE', otherValue=2)
Пример #7
0
class GoogleCredentialsEnumeration:
    CUSTOM_SEARCH_API_KEY = EnumItem(
        credential=EnvironmentHelper.get('GOOGLE_CUSTOM_SEARCH_API_KEY'))
    CUSTOM_SEARCH_CSE_ID = EnumItem(
        credential=EnvironmentHelper.get('GOOGLE_CUSTOM_SEARCH_CSE_ID'))
Пример #8
0
 class MyEnumTest:
     ONE = EnumItem(value='one', otherValue=1)
     TWO = EnumItem(value='two', otherValue=2)
Пример #9
0
 class MyThirdEnumTest:
     ONE = EnumItem(value=4)
     TWO = EnumItem(value=5)
     THREE = EnumItem(value=6)
Пример #10
0
 class MyOtherEnumTest:
     ONE = EnumItem(value=1)
     TWO = EnumItem(value=2)
     THREE = EnumItem(value=3)
Пример #11
0
class ContactStatusEnumeration:
    NONE = EnumItem()
    ACTIVE = EnumItem()
    INACTIVE = EnumItem()
Пример #12
0
class AuthenticationStatusEnumeration:
    NONE = EnumItem()
    AUTHENTICATED = EnumItem()
    ALREADY_AUTHENTICATED = EnumItem()
    NOT_AUTHENTICATED = EnumItem()
Пример #13
0
class EncodeDecodeActionEnumeration :
    ENCODE = EnumItem()
    DECODE = EnumItem()
Пример #14
0
 class MyEnumTest:
     ITS = EnumItem(name=ITS_NAME, label=ITS_LABEL, numeric=ITS_NUMERIC)
     A = EnumItem(name=A_NAME, label=A_LABEL, numeric=A_NUMERIC)
     TEST = EnumItem(name=TEST_NAME,
                     label=TEST_LABEL,
                     numeric=TEST_NUMERIC)
Пример #15
0
 class MyOtherEnumTest:
     ONE = EnumItem(value=1, otherValue='1')
     TWO = EnumItem(value=2, otherValue='1')
     THREE = EnumItem(value=3, otherValue='1')
Пример #16
0
 class SimpleEnum:
     ABC = EnumItem()
     DEF = EnumItem()
Пример #17
0
 class MyThirdEnumTest:
     ONE = EnumItem(value=4, otherValue='1')
     TWO = EnumItem(value=5, otherValue='1')
     THREE = EnumItem(value=6, otherValue='1')
Пример #18
0
 class MyThirdEnumTest:
     THREE = EnumItem(value='three', otherValue=3)
     FOUR = EnumItem(value='four', otherValue=4)
Пример #19
0
class ContactTypeEnumeration:
    NONE = EnumItem()
    USER = EnumItem()
    GROUP = EnumItem()