/// <summary> /// 取群成员信息(支持缓存) /// </summary> /// <param name="api">api</param> /// <param name="groupId">目标群</param> /// <param name="qqId">目标QQ</param> /// <param name="cache">是否缓存</param> /// <returns></returns> public static ModelWithSourceString <GroupMemberInfo> GetGroupMemberInfoV2(this ICoolQApi api, long groupId, long qqId, bool cache) { var data = api.GetGroupMemberInfoV2AsString(groupId, qqId, cache); var source = Convert.FromBase64String(data); var re = new ModelWithSourceString <GroupMemberInfo> { SourceString = data }; GroupMemberInfo gm = new GroupMemberInfo(); if (ConvertAnsiHexToGroupMemberInfo(source, ref gm)) { re.Model = gm; } return(re); }