def __init__(self, data, is_base64=True):
     data = base64.decodestring(data) if is_base64 else data
     info = CQUnpack(data)
     self.QQID = info.GetLong()
     self.Nickname = info.GetLenStr()
     self.Sex = info.GetInt()
     self.Age = info.GetInt()
Exemple #2
0
 def __init__(self, data, is_base64 = True):
     data = base64.decodestring(data) if is_base64 else data
     info = CQUnpack(data)
     self.GroupID                    = info.GetLong()
     self.QQID                       = info.GetLong()
     self.Nickname                   = info.GetLenStr()
     self.Card                       = info.GetLenStr()
     self.Sex                        = info.GetInt()
     self.Age                        = info.GetInt()
     self.Address                    = info.GetLenStr()
     self.JoinGroupTime              = info.GetInt()
     self.LastSpeakTime              = info.GetInt()
     self.LevelName                  = info.GetLenStr()
     self.Authority                  = info.GetInt()
     self.IsGroupAdmin               = self.Authority in [ 2, 3 ]
     self.IsGroupOwner               = self.Authority in [ 3 ]
     self.IsBad                      = (info.GetInt() == 1)
     self.SpecialTitle               = info.GetLenStr()
     self.SpecialTitleExpiredTime    = info.GetInt()
     self.IsAllowedToModifyCard      = (info.GetInt() == 1)
Exemple #3
0
	def __init__(self, data, is_base64 = True):
		data = base64.decodestring(data) if is_base64 else data
		info = CQUnpack(data)
		self.GroupID                        = info.GetLong()
		self.GroupName                      = info.GetLenStr()