class _BarracksTabSchema(W2CSchema): location = Field(required=False, type=(int, basestring), validator=_isValidTankmanLocation) tank_type = Field(required=False, type=basestring, validator=_isValidTankType) role = Field(required=False, type=basestring, validator=_isValidTankmanRole)
class _GetItemsSchema(W2CSchema): type = Field(required=True, type=basestring, validator=lambda value, data: ShopItemType.hasValue(value)) criteria = Field( required=False, type=list, validator=lambda value, data: _parseCriteriaSpec(data['type'], value)) fields = Field(required=False, type=list, validator=None) id_list = Field(required=False, type=list, validator=None)
class _PlatformProductListSchema(W2CSchema): storefront = Field(required=True, type=basestring) wgid = Field(required=True, type=basestring) language = Field(required=True, type=basestring) additional_data = Field(required=True, type=dict) country = Field(required=True, type=basestring) response_fields = Field(required=True, type=dict) response_fields_profile = Field(required=False, type=basestring) category = Field(required=False, type=basestring) product_codes = Field(required=False, type=list)
class _VehicleListStylePreviewSchema(W2CSchema): style_id = Field(required=True, type=int) vehicle_min_level = Field(required=False, type=int, default=10) vehicle_list = Field(required=False, type=(list, NoneType), validator=lambda value, _: _validateVehiclesCDList(value), default=DEFAULT_STYLED_VEHICLES) back_btn_descr = Field(required=True, type=basestring) back_url = Field(required=False, type=basestring) level = Field(required=False, type=int) price = Field(required=False, type=dict) buy_params = Field(required=False, type=dict)
class _OpenBrowserWindowSchema(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 _MissionsSchema(W2CSchema): tab = Field(required=False, type=basestring, default=None) missionID = Field(required=False, type=basestring, default=None) groupID = Field(required=False, type=basestring, default=None) marathonPrefix = Field(required=False, type=basestring, default=None) anchor = Field(required=False, type=basestring, default=None) showDetails = Field(required=False, type=bool, default=True) subTab = Field(required=False, type=int, default=0)
class _VehicleStylePreviewSchema(W2CSchema): vehicle_cd = Field(required=False, type=int) style_id = Field(required=True, type=int) back_btn_descr = Field(required=False, type=basestring) back_url = Field(required=False, type=basestring) level = Field(required=False, type=int) price = Field(required=False, type=dict) buy_params = Field(required=False, type=dict)
class _VehiclePackPreviewSchema(W2CSchema): title = Field(required=True, type=basestring) end_date = Field(required=False, type=basestring) buy_price = Field(required=True, type=dict, validator=lambda value, _: _buyPriceValidator(value)) items = Field(required=True, type=(list, NoneType), validator=lambda value, _: _validateItemsPack(value)) back_url = Field(required=False, type=basestring) buy_params = Field(required=False, type=dict)
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 _BuyItemsSchema(W2CSchema): items = Field(required=True, type=list, validator=lambda value, _: itemsSpecValidator(value))
class _PlayerStatusSchema(W2CSchema): player_id = Field(required=True, type=SPA_ID_TYPES)
class _RequestMedalsSchema(W2CSchema): medal_id = Field(required=True, type=int) stage = Field(required=False, type=int, default=0) current_block = Field(required=False, type=int, default=1)
class _RenewableSubRentVehicleInfoSchema(W2CSchema): vehCD = Field(required=True, type=int)
class _VehicleEnhancementEquipSchema(W2CSchema): vehicle_int_cd = Field(required=True, type=int) slot = Field(required=True, type=int) enhancement_id = Field(required=True, type=int)
class _OpenClanCardSchema(W2CSchema): clan_dbid = Field(required=True, type=(int, long)) clan_abbrev = Field(required=True, type=basestring)
class _RewardsSchema(W2CSchema): category = Field(type=basestring)
class _SkillSchema(W2CSchema): skill_id = Field(required=False, type=int)
class _PersonalMissionsSchema(W2CSchema): branch = Field(required=True, type=basestring, validator=lambda v, _: v in PM_BRANCH.NAME_TO_TYPE) operation_id = Field(required=False, type=int)
class _VehicleInfoSchema(W2CSchema): vehicle_id = Field(type=(int, long))
class _MarathonMissionsSchema(W2CSchema): prefix = Field( required=True, type=basestring, validator=lambda v, _: v in {m.prefix for m in MARATHON_EVENTS})
class _VehicleEnhancementDismountSchema(W2CSchema): vehicle_int_cd = Field(required=True, type=int) slot = Field(required=True, type=int)
class _MissionsCategoriesSchema(W2CSchema): group_id = Field(required=False, type=basestring, default=None)
class _RequestQuestBonusSchema(W2CSchema): quest_id_base = Field(required=True, type=basestring, default='')
class _OpenProfileTabSchema(W2CSchema): selected_id = Field( type=basestring, validator=lambda value, data: value in _PROFILE_TAB_ALIASES)
class _ShowMedalTooltipSchema(W2CSchema): medal_id = Field(required=True, type=int) stage = Field(required=False, type=int, default=0) current_block = Field(required=False, type=int, default=1)
class _OpenProfileWindowSchema(W2CSchema): database_id = Field(required=True, type=(int, long)) user_name = Field(required=True, type=basestring)
class _SetTradeOffSelectedSchema(W2CSchema): id = Field(required=False, type=int)
class _ShowBuyViewSchema(W2CSchema): back_btn_descr = Field(required=True, type=basestring) back_url = Field(required=True, type=basestring)
class _OpenBoosterActivationWindow(W2CSchema): booster_id = Field(required=True, type=int)
class _SetShownVideoSchema(W2CSchema): video_id = Field(required=True, type=int)