Public Member Functions | Public Attributes
googlevoice.util.Message Class Reference
Inheritance diagram for googlevoice.util.Message:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def __repr__
def __str__
def delete
def download
def mark
def star

Public Attributes

 folder
 id

Detailed Description

Wrapper for all call/sms message instances stored in Google Voice
Attributes are:

 * id: SHA1 identifier
 * isTrash: bool
 * displayStartDateTime: datetime
 * star: bool
 * isSpam: bool
 * startTime: gmtime
 * labels: list
 * displayStartTime: time
 * children: str
 * note: str
 * isRead: bool
 * displayNumber: str
 * relativeStartTime: str
 * phoneNumber: str
 * type: int
 

Definition at line 158 of file util.py.


Constructor & Destructor Documentation

def googlevoice.util.Message.__init__ (   self,
  folder,
  id,
  data 
)

Definition at line 180 of file util.py.


Member Function Documentation

Definition at line 220 of file util.py.

Definition at line 217 of file util.py.

def googlevoice.util.Message.delete (   self,
  trash = 1 
)
Moves this message to the Trash. Use ``message.delete(0)`` to move it out of the Trash.

Definition at line 190 of file util.py.

def googlevoice.util.Message.download (   self,
  adir = None 
)
Download the message MP3 (if any). 
Saves files to ``adir`` (defaults to current directory). 
Message hashes can be found in ``self.voicemail().messages`` for example. 
Returns location of saved file.        

Definition at line 208 of file util.py.

def googlevoice.util.Message.mark (   self,
  read = 1 
)
Mark this message as read. Use ``message.mark(0)`` to mark it as unread.

Definition at line 202 of file util.py.

def googlevoice.util.Message.star (   self,
  star = 1 
)
Star this message. Use ``message.star(0)`` to unstar it.

Definition at line 196 of file util.py.


Member Data Documentation

Definition at line 180 of file util.py.

Definition at line 180 of file util.py.


The documentation for this class was generated from the following file:


continuous_ops_alerts
Author(s): Eitan Marder-Eppstein
autogenerated on Fri Dec 6 2013 19:59:13