コード例 #1
0
class OpenBrowserSchema(W2CSchema):
    url = Field(required=True, type=basestring)
    title = Field(required=True, type=basestring)
    width = Field(required=True, type=(int, long))
    height = Field(required=True, type=(int, long))
    is_modal = Field(type=bool, default=False)
    show_refresh = Field(type=bool, default=True)
    show_create_waiting = Field(type=bool, default=False)
    is_solid_border = Field(type=bool, default=False)
コード例 #2
0
class NotificationSchema(W2CSchema):
    __unions__ = ('message', 'i18n_key', 'key')
    type = Field(required=True, type=basestring)
    message = Field(type=basestring)
    message_data = Field(type=dict)
    i18n_key = Field(type=basestring)
    i18n_data = Field(type=dict)
    key = Field(type=basestring, deprecated='prefer "i18n_key"')

    def hasKey(self):
        return self.key is not None

    def hasMessage(self):
        return self.message is not None

    def hasI18nKey(self):
        return self.i18n_key is not None
コード例 #3
0
class StrongholdsJoinBattleSchema(W2CSchema):
    unit_id = Field(required=True, type=(int, long))
    periphery_id = Field(required=True, type=(int, long))
コード例 #4
0
class StrongholdsBattleSchema(W2CSchema):
    action = Field(required=True, type=basestring)
コード例 #5
0
class OpenClanCardSchema(W2CSchema):
    clan_dbid = Field(required=True, type=(int, long))
    clan_abbrev = Field(required=True, type=basestring)
コード例 #6
0
class OpenTabSchema(W2CSchema):
    tab_id = Field(required=True, type=basestring)
    selected_id = Field(type=basestring)
コード例 #7
0
class CloseWindowSchema(W2CSchema):
    window_id = Field(required=True, type=basestring)
コード例 #8
0
class UserContextMenuSchema(W2CSchema):
    spa_id = Field(required=True, type=(int, long, basestring))
    user_name = Field(required=True, type=basestring)
    custom_items = Field(type=list, default=[])
    excluded_items = Field(type=list, default=[])
コード例 #9
0
class RankedBattlesSchema(W2CSchema):
    action = Field(required=True, type=basestring)
コード例 #10
0
class SoundSchema(W2CSchema):
    sound_id = Field(required=True, type=basestring)
コード例 #11
0
class HangarSoundSchema(W2CSchema):
    mute = Field(required=True, type=bool)
コード例 #12
0
class RequestAccessTokenCommand(W2CSchema):
    force = Field(type=bool)
コード例 #13
0
class RequestSchema(W2CSchema):
    request_id = Field(required=True, type=basestring)
コード例 #14
0
class VehiclesSchema(W2CSchema):
    action = Field(required=True, type=basestring)
    vehicle_id = Field(type=(int, long))
コード例 #15
0
class OpenProfileSchema(W2CSchema):
    database_id = Field(required=True, type=(int, long))
    user_name = Field(required=True, type=basestring)
コード例 #16
0
class ClanManagementSchema(W2CSchema):
    action = Field(required=True, type=basestring)
コード例 #17
0
class ContextMenuSchema(W2CSchema):
    menu_type = Field(required=True, type=basestring)