Пример #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
 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
 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
 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
 def setAffiliation(self, affiliation):
     if affiliation in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__templateKey = XMPP_MUC_USER_TEMPLATE_GROUPS[affiliation]
     return self
 def setRole(self, role):
     if role in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__role = role
         self.__updateTemplateKey()
     return self
 def setAffiliation(self, affiliation):
     if affiliation in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__affiliation = affiliation
         self.__updateTemplateKey()
     return self
Пример #9
0
 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
 def setAffiliation(self, affiliation):
     if affiliation in XMPP_MUC_USER_TEMPLATE_GROUPS.keys():
         self.__templateKey = XMPP_MUC_USER_TEMPLATE_GROUPS[affiliation]
     return self