Пример #1
0
 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()
Пример #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)
Пример #3
0
def GetGroupIDlist(data):
	memList =[]
	data = base64.decodestring(data)
	info = CQUnpack(data)
	count = info.GetInt()
	while count:
		if info.Len() <= 0:
			break
		retData = info.GetLenStr()
		memInfo = CQGroupListInfo(retData,False)._groupID_()
		memList.append(memInfo)
	return memList
Пример #4
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()