Exemple #1
0
 def _initialize(self):
     super(PremDashboardHeaderModel, self)._initialize()
     self._addViewModelProperty('userName', UserNameModel())
     self._addViewModelProperty('subscriptionCard', SubscriptionCardModel())
     self._addViewModelProperty('clanInfo',
                                PremDashboardHeaderClanInfoModel())
     self._addViewModelProperty('personalReserves', UserListModel())
     self._addViewModelProperty('clanReserves', UserListModel())
     self._addStringProperty('prefixBadgeId', '')
     self._addStringProperty('suffixBadgeId', '')
     self._addStringProperty('badgeContent', '')
     self._addBoolProperty('isDynamicBadge', False)
     self._addBoolProperty('isInClan', False)
     self._addBoolProperty('hasClanReserves', False)
     self._addBoolProperty('isWarningIconVisible', False)
     self._addResourceProperty('emailButtonLabel', R.invalid())
     self._addBoolProperty('showEmailActionTooltip', False)
     self._addBoolProperty('isSubscriptionEnable', False)
     self._addBoolProperty('isRenamingButtonVisible', False)
     self._addBoolProperty('isRenamingButtonEnabled', False)
     self._addBoolProperty('isRenamingProcessVisible', False)
     self.onShowBadges = self._addCommand('onShowBadges')
     self.onEmailButtonClicked = self._addCommand('onEmailButtonClicked')
     self.onRenamingButtonClicked = self._addCommand(
         'onRenamingButtonClicked')
Exemple #2
0
 def _initialize(self):
     super(PremDashboardHeaderModel, self)._initialize()
     self._addViewModelProperty('userName', UserNameModel())
     self._addViewModelProperty('clanInfo', PremDashboardHeaderClanInfoModel())
     self._addViewModelProperty('personalReserves', UserListModel())
     self._addViewModelProperty('clanReserves', UserListModel())
     self._addStringProperty('prefixBadgeId', '')
     self._addStringProperty('suffixBadgeId', '')
     self._addStringProperty('badgeContent', '')
     self._addBoolProperty('isDynamicBadge', False)
     self._addBoolProperty('isInClan', False)
     self._addBoolProperty('hasClanReserves', False)
     self.onShowBadges = self._addCommand('onShowBadges')
 def _initialize(self):
     super(PlayerVehicleStatusModel, self)._initialize()
     self._addViewModelProperty('user', UserNameModel())
     self._addViewModelProperty('killer', UserNameModel())
     self._addResourceProperty('reason', R.invalid())
Exemple #4
0
 def _initialize(self):
     super(RowModel, self)._initialize()
     self._addViewModelProperty('user', UserNameModel())
     self._addStringProperty('place', '')
     self._addStringProperty('type', 'rowBrEnemy')
     self._addStringProperty('anonymizerNick', '')