-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
122 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...HttpClient.ByteDance.TikTokGlobal/Models/Research/Playlist/ResearchPlaylistInfoRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobal.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [POST] /research/playlist/info/ 接口的请求。</para> | ||
/// </summary> | ||
public class ResearchPlaylistInfoRequest : TikTokV2Request | ||
{ | ||
/// <summary> | ||
/// 获取或设置播放列表 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("playlist_id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("playlist_id")] | ||
public long PlaylistId { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置分页游标。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("cursor")] | ||
[System.Text.Json.Serialization.JsonPropertyName("cursor")] | ||
public long? PageCursor { get; set; } | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
...ttpClient.ByteDance.TikTokGlobal/Models/Research/Playlist/ResearchPlaylistInfoResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
namespace SKIT.FlurlHttpClient.ByteDance.TikTokGlobal.Models | ||
{ | ||
/// <summary> | ||
/// <para>表示 [POST] /research/playlist/info/ 接口的响应。</para> | ||
/// </summary> | ||
public class ResearchPlaylistInfoResponse : TikTokV2Response<ResearchPlaylistInfoResponse.Types.Data> | ||
{ | ||
public static class Types | ||
{ | ||
public class Data | ||
{ | ||
/// <summary> | ||
/// 获取或设置播放列表 ID。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("playlist_id")] | ||
[System.Text.Json.Serialization.JsonPropertyName("playlist_id")] | ||
public long PlaylistId { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置播放列表名称。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("playlist_name")] | ||
[System.Text.Json.Serialization.JsonPropertyName("playlist_name")] | ||
public string PlaylistName { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// 获取或设置视频总数。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("playlist_item_total")] | ||
[System.Text.Json.Serialization.JsonPropertyName("playlist_item_total")] | ||
public int TotalItemCount { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置最后更新时间。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("playlist_last_updated")] | ||
[System.Text.Json.Serialization.JsonPropertyName("playlist_last_updated")] | ||
public long UpdateTimestamp { get; set; } | ||
|
||
/// <summary> | ||
/// 获取或设置视频 ID 列表。 | ||
/// </summary> | ||
[Newtonsoft.Json.JsonProperty("playlist_video_ids")] | ||
[System.Text.Json.Serialization.JsonPropertyName("playlist_video_ids")] | ||
public long[]? VideoIdList { get; set; } | ||
} | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
...ce.TikTokGlobal.UnitTests/ModelSamples/Research/Playlist/ResearchPlaylistInfoRequest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"playlist_id": 1234534763387255595 | ||
} |
23 changes: 23 additions & 0 deletions
23
...e.TikTokGlobal.UnitTests/ModelSamples/Research/Playlist/ResearchPlaylistInfoResponse.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"data": { | ||
"playlist_id": 1234579763387255595, | ||
"playlist_item_total": 4, | ||
"playlist_last_updated": 1663620215, | ||
"playlist_name": "Test playlist name", | ||
"playlist_video_ids": [ | ||
12351810646859, | ||
7289561123404511, | ||
7274412345315375, | ||
12312311231231231, | ||
12312883434352176, | ||
71919242345289237, | ||
7190923438988788, | ||
71800659413240905 | ||
] | ||
}, | ||
"error": { | ||
"code": "ok", | ||
"message": "ok", | ||
"log_id": "20240700200656033B747EC0C8DE33C94C" | ||
} | ||
} |