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)
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()
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())