mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-27 13:42:28 -06:00
24 lines
551 B
Python
24 lines
551 B
Python
|
|
||
|
|
||
|
class SingleReply:
|
||
|
|
||
|
def __init__(self, inviteeId, status):
|
||
|
self.inviteeId = inviteeId
|
||
|
self.status = status
|
||
|
|
||
|
|
||
|
class PartyReplyInfoBase:
|
||
|
|
||
|
def __init__(self, partyId, partyReplies):
|
||
|
self.partyId = partyId
|
||
|
self.replies = []
|
||
|
for oneReply in partyReplies:
|
||
|
self.replies.append(SingleReply(*oneReply))
|
||
|
|
||
|
def __str__(self):
|
||
|
string = 'partyId=%d ' % self.partyId
|
||
|
for reply in self.replies:
|
||
|
string += '(%d:%d) ' % (reply.inviteeId, reply.status)
|
||
|
|
||
|
return string
|