mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-29 06:32:40 -06:00
19 lines
498 B
Python
19 lines
498 B
Python
|
|
||
|
|
||
|
class SimpleMailBase:
|
||
|
|
||
|
def __init__(self, msgId, senderId, year, month, day, body):
|
||
|
self.msgId = msgId
|
||
|
self.senderId = senderId
|
||
|
self.year = year
|
||
|
self.month = month
|
||
|
self.day = day
|
||
|
self.body = body
|
||
|
|
||
|
def __str__(self):
|
||
|
string = 'msgId=%d ' % self.msgId
|
||
|
string += 'senderId=%d ' % self.senderId
|
||
|
string += 'sent=%s-%s-%s ' % (self.year, self.month, self.day)
|
||
|
string += 'body=%s' % self.body
|
||
|
return string
|