def __init__(self, chatType=None, senderCallsign=None, chatroom=None, groupOwner=None, id=None, parent=None, uid0=None, uid1=None): self.senderCallsign = senderCallsign self.id = id self.parent = parent self.chatgrp = chatgrp(chatType=chatType, uid0=uid0, uid1=uid1, id=id)
def __init__(self): # the call sign of the sender self.senderCallsign = "" self.xmlChat = "<__chat senderCallsign='corvTab' chatroom='Eliopoli HQ' groupOwner='false' id='aa0b0312-b5cd-4c2c-bbbc-9c4c70216261' parent='RootContactGroup'><chatgrp uid0='ANDROID-R52JB0CDC4E' uid1='aa0b0312-b5cd-4c2c-bbbc-9c4c70216261' id='aa0b0312-b5cd-4c2c-bbbc-9c4c70216261'/></__chat>" # TBD: the callsign of the receiver? self.chatroom = "" self.m_chatgrp = chatgrp() # TBD, self.groupOwner = "" # TBD: the unique ID of the sender? self.id = "" self.parent = ""
def __init__(self, chatType=None, senderCallsign=None1, chatroom=None1, groupOwner=None1, id=None1, parent=None1, chatgrpuid0=None, chatgrpuid1=None, chatgrpid=None): from Model.chatgrp import chatgrp self.senderCallsign = senderCallsign self.id = id self.parent = parent self.chatgrp = chatgrp(chatType=chatType, uid0=chatgrpuid0, uid1=chatgrpuid1, id=chatgrpid)
def setchatgrpid(self, id=0): chatgrp().setid(id)
def getchatgrpid(self): chatgrp().getid()
def setuid1(self, uid1=0): chatgrp().setuid1(uid1)
def getuid1(self): chatgrp().getuid1()
def setuid0(self, uid0=0): chatgrp().setuid0(uid0)
def getuid0(self): chatgrp().getuid0()