Just json to c#
This commit is contained in:
129
src/ImmichToSlideshow/Models/Open/Api/7-get_photos.cs
Normal file
129
src/ImmichToSlideshow/Models/Open/Api/7-get_photos.cs
Normal file
@ -0,0 +1,129 @@
|
||||
// https://developers.band.us/develop/guide/api/get_photos
|
||||
// Request
|
||||
// URL
|
||||
// [GET] https://openapi.band.us/v2/band/album/photos
|
||||
|
||||
// Parameters
|
||||
// Parameters
|
||||
// Name|Type|Mandatory|Description
|
||||
// access_token|string|Y|Access token of the user
|
||||
// band_key|string|Y|Band ID
|
||||
// photo_album_key|string|N|Album ID
|
||||
// Response
|
||||
// response body (json)
|
||||
// response body (json)
|
||||
// Name|Type|Description
|
||||
// result_code|integer|Result code (success: 1)
|
||||
// result_data.paging|object|Paging parameters
|
||||
// result_data.items|list|Image list
|
||||
// result_data > paging
|
||||
// result_data > paging
|
||||
// Name|Type|Description
|
||||
// previous_params|object|Parameter information to get the previous page (currently not available)
|
||||
// next_params|object|Parameter information to get the next page
|
||||
// result_data > items[i]
|
||||
// result_data > items[i]
|
||||
// Name|Type|Description
|
||||
// photo_key|string|Photo ID
|
||||
// url|string|URL of an image
|
||||
// width|int|Width of an image
|
||||
// height|int|Height of an image
|
||||
// photo_album_key|string|Album ID
|
||||
// created_at|long|Created date and time
|
||||
// author|object|Author information
|
||||
// comment_count|int|The number of comments
|
||||
// emotion_count|int|The number of emotions
|
||||
// result_data > items[i] > author
|
||||
// result_data > items[i] > author
|
||||
// Name|Type|Description
|
||||
// name|string|Author name
|
||||
// description|string|Description about the author
|
||||
// role|string|Author's role
|
||||
// profile_image_url|string|URL of an author's profile image
|
||||
// user_key|string|User ID of an author
|
||||
// {
|
||||
// "result_code": 1,
|
||||
// "result_data": {
|
||||
// "items": [
|
||||
// {
|
||||
// "author": {
|
||||
// "description": "This is description.",
|
||||
// "name": "Jordan Lee",
|
||||
// "profile_image_url": "http://band.phinf.campmobile.net/20130719_224/xxx/test.jpg"
|
||||
// },
|
||||
// "comment_count": 1,
|
||||
// "created_at": 1443691385000,
|
||||
// "emotion_count": 1,
|
||||
// "height": 720,
|
||||
// "is_video_thumbnail": false,
|
||||
// "photo_album_key": "AADgiaZXYFi1lV-JpylzUvwO",
|
||||
// "photo_key": "AACEdJ3oAh0ICHh98X5so5aI",
|
||||
// "url": "http://beta.coresos.phinf.naver.net/a/xxxx/test.jpg",
|
||||
// "width": 1280
|
||||
// },
|
||||
// {
|
||||
// "author": {
|
||||
// "description": "This is description.",
|
||||
// "name": "Robert J. Lee",
|
||||
// "profile_image_url": "http://band.phinf.campmobile.net/20130719_224/xxx/test.jpg"
|
||||
// },
|
||||
// "comment_count": 1,
|
||||
// "created_at": 1443690955000,
|
||||
// "emotion_count": 1,
|
||||
// "height": 480,
|
||||
// "is_video_thumbnail": true,
|
||||
// "photo_album_key": "AADgiaZXYFi1lV-JpylzUvwO",
|
||||
// "photo_key": "AAAVIQRg6e8ld2yf7eQZwWtf",
|
||||
// "url": "http://beta.coresos.phinf.naver.net/a/xxxx/test.jpg",
|
||||
// "width": 640
|
||||
// }
|
||||
// ],
|
||||
// "paging": {
|
||||
// "next_params": {
|
||||
// "after": "294038803",
|
||||
// "band_key": "dhjd8djd7",
|
||||
// "photo_album_key": "wdfdf929"
|
||||
// },
|
||||
// "previous_params": null
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// public record Author(
|
||||
// [property: JsonPropertyName("description")] string Description,
|
||||
// [property: JsonPropertyName("name")] string Name,
|
||||
// [property: JsonPropertyName("profile_image_url")] string ProfileImageUrl
|
||||
// );
|
||||
|
||||
// public record Item(
|
||||
// [property: JsonPropertyName("author")] Author Author,
|
||||
// [property: JsonPropertyName("comment_count")] int CommentCount,
|
||||
// [property: JsonPropertyName("created_at")] object CreatedAt,
|
||||
// [property: JsonPropertyName("emotion_count")] int EmotionCount,
|
||||
// [property: JsonPropertyName("height")] int Height,
|
||||
// [property: JsonPropertyName("is_video_thumbnail")] bool IsVideoThumbnail,
|
||||
// [property: JsonPropertyName("photo_album_key")] string PhotoAlbumKey,
|
||||
// [property: JsonPropertyName("photo_key")] string PhotoKey,
|
||||
// [property: JsonPropertyName("url")] string Url,
|
||||
// [property: JsonPropertyName("width")] int Width
|
||||
// );
|
||||
|
||||
// public record NextParams(
|
||||
// [property: JsonPropertyName("after")] string After,
|
||||
// [property: JsonPropertyName("band_key")] string BandKey,
|
||||
// [property: JsonPropertyName("photo_album_key")] string PhotoAlbumKey
|
||||
// );
|
||||
|
||||
// public record Paging(
|
||||
// [property: JsonPropertyName("next_params")] NextParams NextParams,
|
||||
// [property: JsonPropertyName("previous_params")] object PreviousParams
|
||||
// );
|
||||
|
||||
// public record ResultData(
|
||||
// [property: JsonPropertyName("items")] IReadOnlyList<Item> Items,
|
||||
// [property: JsonPropertyName("paging")] Paging Paging
|
||||
// );
|
||||
|
||||
// public record Root(
|
||||
// [property: JsonPropertyName("result_code")] int ResultCode,
|
||||
// [property: JsonPropertyName("result_data")] ResultData ResultData
|
||||
// );
|
Reference in New Issue
Block a user