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()
def __init__(self, data, is_base64=True): data = base64.decodebytes(data.encode()) if is_base64 else data info = CQUnpack(data) self.QQID = info.get_long() self.Nickname = info.get_length_str().decode('gb18030') self.Sex = info.get_int() self.Age = info.get_int()
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
def get_group_member_list_info(data): member_list = [] data = base64.decodebytes(data.encode()) info = CQUnpack(data) count = info.get_int() while count: if info.length() <= 0: break result = info.get_length_str() member_info = CQGroupMemberInfo(result, False) member_list.append(member_info) return member_list
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)
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()
def __init__(self, data, is_base64=True): data = base64.decodebytes(data.encode()) if is_base64 else data info = CQUnpack(data) self.GroupID = info.get_long() self.QQID = info.get_long() self.Nickname = info.get_length_str().decode('gb18030') self.Card = info.get_length_str().decode('gb18030') self.Sex = info.get_int() self.Age = info.get_int() self.Address = info.get_length_str().decode('gb18030') self.JoinGroupTime = info.get_int() self.LastSpeakTime = info.get_int() self.LevelName = info.get_length_str().decode('gb18030') self.Authority = info.get_int() self.IsGroupAdmin = self.Authority in [2, 3] self.IsGroupOwner = self.Authority in [3] self.IsBad = (info.get_int() == 1) self.SpecialTitle = info.get_length_str().decode('gb18030') self.SpecialTitleExpiredTime = info.get_int() self.IsAllowedToModifyCard = (info.get_int() == 1)
def __init__(self, data: bytes, is_base64=True): data = base64.decodebytes(data) if is_base64 else data info = CQUnpack(data) self.Identifier = info.get_long() self.AnonymousName = info.get_length_str().decode('gb18030') self.Token = info.get_length_str()