コード例 #1
0
 def setRole(self, role):
     """Set user affiliation in channel
     :param role: user role
     :type role: str
     :return: self, for chain build
     :rtype: XmppLobbyMessageBuilder
     """
     if role in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__role = role
         self.__updateTemplateKey()
     return self
コード例 #2
0
ファイル: messagesformatters.py プロジェクト: aevitas/wotsdk
 def setRole(self, role):
     """Set user affiliation in channel
     :param role: user role
     :type role: str
     :return: self, for chain build
     :rtype: XmppLobbyMessageBuilder
     """
     if role in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__role = role
         self.__updateTemplateKey()
     return self
コード例 #3
0
 def setAffiliation(self, affiliation):
     """Set user affiliation for channel
     :param affiliation: user affiliation
     :type affiliation: str
     :return: self, for chain build
     :rtype: XmppLobbyMessageBuilder
     """
     if affiliation in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__affiliation = affiliation
         self.__updateTemplateKey()
     return self
コード例 #4
0
ファイル: messagesformatters.py プロジェクト: aevitas/wotsdk
 def setAffiliation(self, affiliation):
     """Set user affiliation for channel
     :param affiliation: user affiliation
     :type affiliation: str
     :return: self, for chain build
     :rtype: XmppLobbyMessageBuilder
     """
     if affiliation in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__affiliation = affiliation
         self.__updateTemplateKey()
     return self
コード例 #5
0
ファイル: formatters.py プロジェクト: webiumsk/WOT-0.9.15.1
 def setRole(self, role):
     if role in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__templateKey = XMPP_MUC_USER_TEMPLATE_GROUPS[role]
     return self
コード例 #6
0
ファイル: formatters.py プロジェクト: webiumsk/WOT-0.9.15.1
 def setAffiliation(self, affiliation):
     if affiliation in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__templateKey = XMPP_MUC_USER_TEMPLATE_GROUPS[affiliation]
     return self
コード例 #7
0
 def setRole(self, role):
     if role in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__role = role
         self.__updateTemplateKey()
     return self
コード例 #8
0
 def setAffiliation(self, affiliation):
     if affiliation in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__affiliation = affiliation
         self.__updateTemplateKey()
     return self
コード例 #9
0
ファイル: formatters.py プロジェクト: webiumsk/WOT-0.9.15.1
 def setRole(self, role):
     if role in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__templateKey = XMPP_MUC_USER_TEMPLATE_GROUPS[role]
     return self
コード例 #10
0
ファイル: formatters.py プロジェクト: webiumsk/WOT-0.9.15.1
 def setAffiliation(self, affiliation):
     if affiliation in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__templateKey = XMPP_MUC_USER_TEMPLATE_GROUPS[affiliation]
     return self