104 lines
2.9 KiB
C#
104 lines
2.9 KiB
C#
using Chtn.CSharp.SDK.Models.Common;
|
|
using Newtonsoft.Json;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Chtn.CSharp.SDK.Models.Media
|
|
{
|
|
public class Album
|
|
{
|
|
[JsonProperty("albumId")] public string ImageId { get; set; }
|
|
[JsonProperty("name")] public string Name { get; set; }
|
|
[JsonProperty("images")] public List<Image> Images { get; set; }
|
|
}
|
|
public class Image
|
|
{
|
|
[JsonProperty("imageId")] public string ImageId { get; set; }
|
|
[JsonProperty("path")] public string Path { get; set; }
|
|
[JsonProperty("title")] public string Title { get; set; }
|
|
[JsonProperty("uploaded_at")] public TimeStamp UploadedAt { get; set; }
|
|
[JsonProperty("likes")] public int Likes { get; set; }
|
|
[JsonProperty("visibility")] public string Visibility { get; set; }
|
|
}
|
|
|
|
public class Comment
|
|
{
|
|
[JsonProperty("id")] public string Id { get; set; }
|
|
[JsonProperty("authorId")] public string AuthorId { get; set; }
|
|
[JsonProperty("content")] public string Content { get; set; }
|
|
[JsonProperty("createdAt")] public TimeStamp CreatedAt{ get; set; }
|
|
}
|
|
|
|
public class GetReq
|
|
{
|
|
[JsonProperty("id")] public string Id { get; set; }
|
|
}
|
|
|
|
public class CreateAlbumReq
|
|
{
|
|
[JsonProperty("name")] public string Name { get; set; }
|
|
}
|
|
|
|
public class FinalizeUploadReq
|
|
{
|
|
[JsonProperty("uploadId")] public string UploadId { get; set; }
|
|
}
|
|
|
|
public class DeleteImageReq
|
|
{
|
|
[JsonProperty("id")] public string Id { get; set; }
|
|
}
|
|
|
|
public class ChangePictureVisibilityReq
|
|
{
|
|
[JsonProperty("id")] public string Id { get; set; }
|
|
[JsonProperty("visibility")] public string Visibility { get; set; }
|
|
}
|
|
|
|
public class EditPictureTitle
|
|
{
|
|
[JsonProperty("id")] public string Id { get; set; }
|
|
[JsonProperty("title")] public string Title { get; set; }
|
|
}
|
|
|
|
public class TogglePictureLikeReq
|
|
{
|
|
[JsonProperty("id")] public string Id { get; set; }
|
|
}
|
|
|
|
public class PostCommentReq
|
|
{
|
|
[JsonProperty("imageId")] public string ImageId { get; set; }
|
|
[JsonProperty("content")] public string Content { get; set; }
|
|
}
|
|
|
|
public class ToggleFollowReq
|
|
{
|
|
[JsonProperty("targetUserId")] public string TargetUserId { get; set; }
|
|
}
|
|
|
|
public class GetAlbumsReq
|
|
{
|
|
[JsonProperty("userId")] public string UserId { get; set; }
|
|
}
|
|
|
|
public class GetCommentsReq
|
|
{
|
|
[JsonProperty("imageId")] public string ImageId { get; set; }
|
|
}
|
|
|
|
public class UploadImageReq
|
|
{
|
|
[JsonProperty("albumId")] public string AlbumId { get; set; }
|
|
[JsonProperty("data")] public byte[] Data { get; set; }
|
|
}
|
|
|
|
public class GetResp
|
|
{
|
|
[JsonProperty("image")] public Image Image { get; set; }
|
|
}
|
|
|
|
public class DiscoveryResp
|
|
{
|
|
[JsonProperty("trending")] public List<Image> Trending { get; set; }
|
|
}
|
|
} |