更新悄悄关注API

pull/612/head
leiurayer 2 years ago
parent e06f239557
commit f4d0585008

@ -23,7 +23,9 @@ namespace DownKyi.Core.BiliApi.Users.Models
public string Face { get; set; } public string Face { get; set; }
[JsonProperty("sign")] [JsonProperty("sign")]
public string Sign { get; set; } public string Sign { get; set; }
// face_nft
// official_verify // official_verify
// vip // vip
// nft_icon
} }
} }

@ -8,7 +8,14 @@ namespace DownKyi.Core.BiliApi.Users.Models
public class RelationWhisper : BaseModel public class RelationWhisper : BaseModel
{ {
[JsonProperty("data")] [JsonProperty("data")]
public List<RelationFollowInfo> Data { get; set; } public RelationWhisperData Data { get; set; }
}
public class RelationWhisperData : BaseModel
{
[JsonProperty("list")]
public List<RelationFollowInfo> List { get; set; }
// re_version
} }
} }

@ -139,8 +139,8 @@ namespace DownKyi.Core.BiliApi.Users
try try
{ {
RelationWhisper relationWhisper = JsonConvert.DeserializeObject<RelationWhisper>(response); RelationWhisper relationWhisper = JsonConvert.DeserializeObject<RelationWhisper>(response);
if (relationWhisper == null || relationWhisper.Data == null) { return null; } if (relationWhisper == null || relationWhisper.Data == null || relationWhisper.Data.List == null) { return null; }
return relationWhisper.Data; return relationWhisper.Data.List;
} }
catch (Exception e) catch (Exception e)
{ {

Loading…
Cancel
Save