This commit is contained in:
Eugenio Chiodo
2022-02-15 00:08:41 +01:00
parent 5cba76554a
commit e64bce3171
22 changed files with 1152 additions and 93 deletions

11
Models/BoostingUser.cs Normal file
View File

@ -0,0 +1,11 @@
namespace decePubClient.Models
{
public class BoostingUser
{
public string UserId { get; set; } = "45f14fa8-c40f-4121-997c-ef2542196a50";
public string UserName { get; set; } = "@loosy@letsrulethe.world";
public string DisplayName { get; set; } = "loosy";
public string PictureUrl { get; set; } = "https://letsrulethe.world/media/c22d7a6dfcce11e4d2d8d4f6298842a36751b0a179dc5333d24663e4b93793b4.jpg";
public string ProfileUrl { get; set; } = "https://letsrulethe.world/users/loosy";
}
}

View File

@ -13,7 +13,9 @@ namespace decePubClient.Models
public string Title { get; set; }
public string Content { get; set; }
public bool IsFavourite { get; set; } = false;
public bool IsBoosted { get; set; } = false;
public int BoostsCounter { get; set; } = 0;
public bool IsBoostedByCurrentUser { get; set; } = false;
public BoostingUser BoostingUser { get; set; }
public List<Media> Medias { get; set; } = new();
public DateTime CreatedAt { get; set; }

View File

@ -2,7 +2,7 @@
public enum ContentType
{
PlainText,
PlainText = 1,
HTML,
Markdown
}

View File

@ -2,7 +2,7 @@
{
public enum MediaType
{
Images,
Images = 1,
Video,
Audio,
Documents

View File

@ -2,7 +2,7 @@
{
public enum MessageType
{
Direct,
Direct = 1,
FollowersOnly,
Unlisted,
Public

View File

@ -9,8 +9,9 @@ public class UploadMedia
public string FileName { get; set; }
public string AltText { get; set; }
public byte[] Blob { get; set; }
public string Base64Preview { get; set; }
[JsonIgnore, Bindable(false)]
public string Base64Preview { get; set; }
[JsonIgnore, Bindable(false)]
public long Size { get; set; }
}