implement PictureService and social gallery models
This commit is contained in:
@@ -16,6 +16,89 @@ namespace Chtn.CSharp.SDK.Models.Media
|
||||
[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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user