Пример #1
0
 def sendInvite(self, dbId):
     dbId = int(dbId)
     paginator = self._getCurrentPaginator()
     requestWrapper = paginator.getInviteByDbID(dbId)
     ctx = CreateInviteCtx(requestWrapper.getClanDbID(), [requestWrapper.getAccountDbID()])
     self._getCurrentPaginator().resend(dbId, ctx)
     self._enableRefreshBtn(True)
Пример #2
0
 def userAddToClan(self):
     self.as_showWaitingS(WAITING.CLANS_INVITES_SEND, {})
     profile = g_clanCtrl.getAccountProfile()
     context = CreateInviteCtx(profile.getClanDbID(), [self.__databaseID])
     result = yield g_clanCtrl.sendRequest(context, allowDelay=True)
     showClanInviteSystemMsg(self.__userName, result.isSuccess(), result.getCode())
     self.__updateAddToClanBtn()
     self.as_hideWaitingS()
Пример #3
0
 def sendClanInvite(self):
     profile = g_clanCtrl.getAccountProfile()
     userName = self.userName
     context = CreateInviteCtx(profile.getClanDbID(), [self.databaseID])
     result = yield g_clanCtrl.sendRequest(context, allowDelay=True)
     showClanInviteSystemMsg(userName, result.isSuccess(), result.getCode())