ConsoleUser
Copyright (c) 2010-2023 Skaion Corporarion, www.skaion.com
This project was developed in part by numerous sponsorships from the U.S. Government. The U.S. Government is authorized to reproduce and distribute reprints of Governmental purposes notwithstanding any copyright notation thereon.
All content reflects those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government or Skaion Corporation.
- class IM.IM(system, config, itype=None)¶
Instant Messaging is its own communication style, and this is the public interface for classes that provide that funcationality.
Parameters:
system: a <no title> object to communicate with the target system
config: a <no title> object holding all our configuration
etype: optionally the (string) name of the type of client to create, overriding anything in the config object
- compose_new(recip, msg)¶
Send the message to a recipient. There may be an ongoing conversation with that recipient or not already.
Parameters:
recip: the recipient of the message
msg: the message to send
- has_unread()¶
Return True if there are unread messages, False otherwise.
- read()¶
Read a random message that is available. Previously unread messages will get preferential selection.
- reply(msg)¶
Send the given message as a response to the currently open message.
Parameters:
msg: the string to send as a response