o b!@slddlmZmZGdddeZGdddeZGdddeZGdd d eZGd d d eZgd Zd S)) Attribute Interfacec@s eZdZdZedZddZdS)IProtocolPluginz?Interface for plugins providing an interface to a Words servicezHA single word describing what kind of interface this is (eg, irc or web)cCdS)abRetrieve a C{twisted.internet.interfaces.IServerFactory} provider @param realm: An object providing C{twisted.cred.portal.IRealm} and L{IChatService}, with which service information should be looked up. @param portal: An object providing C{twisted.cred.portal.IPortal}, through which logins should be performed. N)realmportalrr6/usr/lib/python3/dist-packages/twisted/words/iwords.py getFactoryzIProtocolPlugin.getFactoryN)__name__ __module__ __qualname____doc__rnamer rrrr rs  rc@sFeZdZedZddZdddZddZd d Zd d Z d dZ dS)IGroupz$A short string, unique among groups.cCr)zLInclude the given user in this group. @type user: L{IUser} Nr)userrrr addr z IGroup.addNcCr)znRemove the given user from this group. @type user: L{IUser} @type reason: C{unicode} Nr)rreasonrrr remove#r z IGroup.removecCr)zReturn the number of participants in this group. @rtype: L{twisted.internet.defer.Deferred} @return: A Deferred which fires with an C{int} representing the number of participants in this group. Nrrrrr size*r z IGroup.sizecCr)aY Broadcast the given message from the given sender to other users in group. The message is not re-transmitted to the sender. @param sender: L{IUser} @type recipient: L{IGroup} @param recipient: This is probably a wart. Maybe it will be removed in the future. For now, it should be the group object the message is being delivered to. @param message: C{dict} @rtype: L{twisted.internet.defer.Deferred} @return: A Deferred which fires with None when delivery has been attempted for all users. Nrsender recipientmessagerrr receive2r zIGroup.receivecCr)zUChange the metadata associated with this group. @type meta: C{dict} Nr)metarrr setMetadataGr zIGroup.setMetadatacCr)z.Return an iterator of all users in this group.Nrrrrr iterusersMr zIGroup.iterusersN) r r rrrrrrrrrrrrr rs  rc@s:eZdZdZedZddZddZddZd d d Z d S) IChatClientzs7?5 O