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
class StrongholdsJoinBattleSchema(W2CSchema): unit_id = Field(required=True, type=(int, long)) periphery_id = Field(required=True, type=(int, long))
class StrongholdsBattleSchema(W2CSchema): action = Field(required=True, type=basestring)
class OpenClanCardSchema(W2CSchema): clan_dbid = Field(required=True, type=(int, long)) clan_abbrev = Field(required=True, type=basestring)
class OpenTabSchema(W2CSchema): tab_id = Field(required=True, type=basestring) selected_id = Field(type=basestring)
class CloseWindowSchema(W2CSchema): window_id = Field(required=True, type=basestring)
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=[])
class RankedBattlesSchema(W2CSchema): action = Field(required=True, type=basestring)
class SoundSchema(W2CSchema): sound_id = Field(required=True, type=basestring)
class HangarSoundSchema(W2CSchema): mute = Field(required=True, type=bool)
class RequestAccessTokenCommand(W2CSchema): force = Field(type=bool)
class RequestSchema(W2CSchema): request_id = Field(required=True, type=basestring)
class VehiclesSchema(W2CSchema): action = Field(required=True, type=basestring) vehicle_id = Field(type=(int, long))
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)
class ContextMenuSchema(W2CSchema): menu_type = Field(required=True, type=basestring)