更新悄悄关注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; }
[JsonProperty("sign")]
public string Sign { get; set; }
// face_nft
// official_verify
// vip
// nft_icon
}
}

@ -8,7 +8,14 @@ namespace DownKyi.Core.BiliApi.Users.Models
public class RelationWhisper : BaseModel
{
[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
{
RelationWhisper relationWhisper = JsonConvert.DeserializeObject<RelationWhisper>(response);
if (relationWhisper == null || relationWhisper.Data == null) { return null; }
return relationWhisper.Data;
if (relationWhisper == null || relationWhisper.Data == null || relationWhisper.Data.List == null) { return null; }
return relationWhisper.Data.List;
}
catch (Exception e)
{

Loading…
Cancel
Save