• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Python channel_num_gen.getClientID4LazyChannel函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Python中messenger.ext.channel_num_gen.getClientID4LazyChannel函数的典型用法代码示例。如果您正苦于以下问题:Python getClientID4LazyChannel函数的具体用法?Python getClientID4LazyChannel怎么用?Python getClientID4LazyChannel使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了getClientID4LazyChannel函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。

示例1: addSpecBattlesToCarousel

 def addSpecBattlesToCarousel(self):
     clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
     if not clientID:
         LOG_ERROR('Client ID not found', 'addSpecBattlesToCarousel')
         return
     currCarouselItemCtx = _defCarouselItemCtx._replace(label=LAZY_CHANNEL.SPECIAL_BATTLES, order=channel_num_gen.getOrder4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES), isNotified=True, criteria={POP_UP_CRITERIA.VIEW_ALIAS: PREBATTLE_ALIASES.BATTLE_SESSION_LIST_WINDOW_PY}, openHandler=self.loadBattleSessionList)
     self._fireEvent(ChannelManagementEvent(clientID, PreBattleChannelEvent.REQUEST_TO_ADD, currCarouselItemCtx._asdict()))
开发者ID:webiumsk,项目名称:WoT,代码行数:7,代码来源:events_dispatcher.py


示例2: acceptInvite

 def acceptInvite(self):
     yield lambda callback: callback(None)
     prbID = self._inviteInfo.getID()
     invite = self.prbAutoInvites.getInvite(prbID)
     postActions = []
     if self.prbDispatcher.hasModalEntity():
         postActions.append(actions.LeavePrbModalEntity())
     finishActions = [_DisableNotify(channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES))]
     if g_preDefinedHosts.isRoamingPeriphery(invite.peripheryID):
         success = yield DialogsInterface.showI18nConfirmDialog('changeRoamingPeriphery')
         if not success:
             return
     self.prbPeripheriesHandler.join(invite.peripheryID, JoinBattleSessionCtx(prbID, invite.prbType, 'prebattle/join'), postActions, finishActions)
开发者ID:webiumsk,项目名称:WOT-0.9.12,代码行数:13,代码来源:invite_windows.py


示例3: addCompaniesToCarousel

def addCompaniesToCarousel():
    clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.COMPANIES)
    if not clientID:
        LOG_ERROR('Client ID not found', 'addCompaniesToCarousel')
        return
    else:
        g_eventBus.handleEvent(ChannelManagementEvent(clientID, ChannelManagementEvent.REQUEST_TO_ADD, {'label': LAZY_CHANNEL.COMPANIES,
         'canClose': False,
         'isNotified': False,
         'icon': None,
         'order': channel_num_gen.getOrder4LazyChannel(LAZY_CHANNEL.COMPANIES),
         'criteria': {POP_UP_CRITERIA.VIEW_ALIAS: guiFactory.getAliasByEvent(events.ShowWindowEvent.SHOW_COMPANIES_WINDOW)},
         'openHandler': loadCompaniesWindow}), scope=EVENT_BUS_SCOPE.LOBBY)
        return
开发者ID:19colt87,项目名称:WOTDecompiled,代码行数:14,代码来源:events_dispatcher.py


示例4: addSpecBattlesToCarousel

def addSpecBattlesToCarousel():
    clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
    if not clientID:
        LOG_ERROR('Client ID not found', 'addSpecBattlesToCarousel')
        return
    else:
        g_eventBus.handleEvent(ChannelManagementEvent(clientID, ChannelManagementEvent.REQUEST_TO_ADD, {'label': LAZY_CHANNEL.SPECIAL_BATTLES,
         'canClose': False,
         'isNotified': False,
         'icon': None,
         'order': channel_num_gen.getOrder4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES),
         'criteria': {POP_UP_CRITERIA.VIEW_ALIAS: guiFactory.getAliasByEvent(events.ShowWindowEvent.SHOW_BATTLE_SESSION_LIST)},
         'openHandler': loadBattleSessionList}), scope=EVENT_BUS_SCOPE.LOBBY)
        return
开发者ID:19colt87,项目名称:WOTDecompiled,代码行数:14,代码来源:events_dispatcher.py


示例5: getClientID

 def getClientID(self):
     return channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
开发者ID:webiumsk,项目名称:WOT-0.9.14-CT,代码行数:2,代码来源:battlesessionlist.py


示例6: getClientID

 def getClientID(self):
     return channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.COMPANIES)
开发者ID:webiumsk,项目名称:WoT,代码行数:2,代码来源:companylistview.py


示例7: removeSpecBattlesFromCarousel

 def removeSpecBattlesFromCarousel(self):
     clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
     if not clientID:
         LOG_ERROR('Client ID not found', 'removeSpecBattlesFromCarousel')
         return
     self._fireEvent(ChannelManagementEvent(clientID, PreBattleChannelEvent.REQUEST_TO_REMOVE))
开发者ID:webiumsk,项目名称:WoT,代码行数:6,代码来源:events_dispatcher.py


示例8: rqExitFromLazyChannel

def rqExitFromLazyChannel(name):
    clientID = channel_num_gen.getClientID4LazyChannel(name)
    if not clientID:
        LOG_ERROR('Client ID is not found', name)
    else:
        rqExitFromChannel(clientID)
开发者ID:kblw,项目名称:wot_client,代码行数:6,代码来源:events_dispatcher.py


示例9: rqDeactivateLazyChannel

def rqDeactivateLazyChannel(name):
    clientID = channel_num_gen.getClientID4LazyChannel(name)
    if not clientID:
        LOG_ERROR('Client ID is not found', name)
    else:
        rqDeactivateChannel(clientID)
开发者ID:kblw,项目名称:wot_client,代码行数:6,代码来源:events_dispatcher.py


示例10: getClientID

 def getClientID(self):
     return channel_num_gen.getClientID4LazyChannel(self.proto.messages.getCompanyRoomName())
开发者ID:aevitas,项目名称:wotsdk,代码行数:2,代码来源:prb_windowscompanylistview.py


示例11: rqActivateLazyChannel

def rqActivateLazyChannel(name, component):
    clientID = channel_num_gen.getClientID4LazyChannel(name)
    if not clientID:
        LOG_ERROR("Client ID is not found", name)
    else:
        rqActivateChannel(clientID, component)
开发者ID:webiumsk,项目名称:WOT-0.9.12-CT,代码行数:6,代码来源:events_dispatcher.py


示例12: removeSpecBattlesFromCarousel

def removeSpecBattlesFromCarousel():
    clientID = channel_num_gen.getClientID4LazyChannel(LAZY_CHANNEL.SPECIAL_BATTLES)
    if not clientID:
        LOG_ERROR('Client ID not found', 'removeSpecBattlesFromCarousel')
        return
    g_eventBus.handleEvent(ChannelManagementEvent(clientID, ChannelManagementEvent.REQUEST_TO_REMOVE), scope=EVENT_BUS_SCOPE.LOBBY)
开发者ID:19colt87,项目名称:WOTDecompiled,代码行数:6,代码来源:events_dispatcher.py



注:本文中的messenger.ext.channel_num_gen.getClientID4LazyChannel函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Python channel_num_gen.getClientID4Prebattle函数代码示例发布时间:2022-05-27
下一篇:
Python ext.passCensor函数代码示例发布时间:2022-05-27
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap