Example #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)
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
Example #3
0
class StrongholdsJoinBattleSchema(W2CSchema):
    unit_id = Field(required=True, type=(int, long))
    periphery_id = Field(required=True, type=(int, long))
Example #4
0
class StrongholdsBattleSchema(W2CSchema):
    action = Field(required=True, type=basestring)
Example #5
0
class OpenClanCardSchema(W2CSchema):
    clan_dbid = Field(required=True, type=(int, long))
    clan_abbrev = Field(required=True, type=basestring)
Example #6
0
class OpenTabSchema(W2CSchema):
    tab_id = Field(required=True, type=basestring)
    selected_id = Field(type=basestring)
Example #7
0
class CloseWindowSchema(W2CSchema):
    window_id = Field(required=True, type=basestring)
Example #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=[])
Example #9
0
class RankedBattlesSchema(W2CSchema):
    action = Field(required=True, type=basestring)
Example #10
0
class SoundSchema(W2CSchema):
    sound_id = Field(required=True, type=basestring)
Example #11
0
class HangarSoundSchema(W2CSchema):
    mute = Field(required=True, type=bool)
Example #12
0
class RequestAccessTokenCommand(W2CSchema):
    force = Field(type=bool)
Example #13
0
class RequestSchema(W2CSchema):
    request_id = Field(required=True, type=basestring)
Example #14
0
class VehiclesSchema(W2CSchema):
    action = Field(required=True, type=basestring)
    vehicle_id = Field(type=(int, long))
Example #15
0
class OpenProfileSchema(W2CSchema):
    database_id = Field(required=True, type=(int, long))
    user_name = Field(required=True, type=basestring)
class ClanManagementSchema(W2CSchema):
    action = Field(required=True, type=basestring)
Example #17
0
class ContextMenuSchema(W2CSchema):
    menu_type = Field(required=True, type=basestring)