From be02130f58f4c299a352e2db9dfaccce7095a04e Mon Sep 17 00:00:00 2001 From: Fabio Gaming Date: Wed, 29 May 2024 16:49:25 +0200 Subject: [PATCH] tempoary fix to objects made floats, ints and bools nullabe because of Team Aminos stupid decision to set them to null on some cases Will be replaced with a Json Serializer Option later --- Amino.NET/Objects/AdditionalItemBenefits.cs | 2 +- Amino.NET/Objects/AdvancedCommunityInfo.cs | 27 ++++---- Amino.NET/Objects/AvatarFrame.cs | 12 ++-- Amino.NET/Objects/AvatarFrameConfig.cs | 2 +- Amino.NET/Objects/Blog.cs | 28 ++++----- Amino.NET/Objects/Chat.cs | 22 +++---- Amino.NET/Objects/ChatAnnouncement.cs | 6 +- Amino.NET/Objects/ChatEvent.cs | 8 +-- Amino.NET/Objects/ChatExtensions.cs | 2 +- Amino.NET/Objects/ChatTip.cs | 8 +-- Amino.NET/Objects/ChatTipExtensions.cs | 2 +- Amino.NET/Objects/ChatTipToggle.cs | 10 +-- Amino.NET/Objects/CoinHistoryEntry.cs | 31 ++++----- Amino.NET/Objects/Comment.cs | 27 ++++---- Amino.NET/Objects/Community.cs | 38 +++++------ .../Objects/CommunityAdvancedSettings.cs | 13 ++-- Amino.NET/Objects/CommunityInfo.cs | 10 +-- Amino.NET/Objects/CommunityNewsFeed.cs | 4 +- Amino.NET/Objects/CommunityRankingTable.cs | 5 +- Amino.NET/Objects/CurrentUserInfo.cs | 2 +- Amino.NET/Objects/DeletedMessage.cs | 20 +++--- Amino.NET/Objects/DeviceInfo.cs | 2 +- Amino.NET/Objects/FromInvite.cs | 2 +- Amino.NET/Objects/GenericAvatarFrame.cs | 6 +- Amino.NET/Objects/GenericChatMember.cs | 6 +- Amino.NET/Objects/GenericMessage.cs | 11 ++-- Amino.NET/Objects/GenericMessageAuthor.cs | 4 +- Amino.NET/Objects/GenericPostAuthor.cs | 8 +-- Amino.NET/Objects/GenericProfile.cs | 19 +++--- Amino.NET/Objects/ImageMessage.cs | 31 ++++----- Amino.NET/Objects/InfluencerFanClubMember.cs | 2 +- Amino.NET/Objects/InfluencerPriceInfo.cs | 6 +- Amino.NET/Objects/Invitation.cs | 6 +- Amino.NET/Objects/InviteCode.cs | 17 ++--- Amino.NET/Objects/ItemOwnershipInfo.cs | 5 +- Amino.NET/Objects/ItemRestrictionInfo.cs | 11 ++-- Amino.NET/Objects/JoinedChatMember.cs | 21 ++++--- Amino.NET/Objects/LastChatMessageSummary.cs | 5 +- Amino.NET/Objects/LeftChatMember.cs | 19 +++--- Amino.NET/Objects/LinkInfo.cs | 5 +- Amino.NET/Objects/Membership.cs | 7 ++- Amino.NET/Objects/MembershipInfo.cs | 6 +- Amino.NET/Objects/ParticipatedExperiments.cs | 10 +-- Amino.NET/Objects/Post.cs | 57 +++++++++-------- Amino.NET/Objects/PostExtensions.cs | 2 +- Amino.NET/Objects/SocketBase.cs | 6 +- Amino.NET/Objects/SpecialChatEvent.cs | 21 ++++--- Amino.NET/Objects/Sticker.cs | 5 +- Amino.NET/Objects/StickerCollectionSummary.cs | 7 ++- Amino.NET/Objects/StickerMessage.cs | 27 ++++---- Amino.NET/Objects/TipInfo.cs | 11 ++-- .../Objects/UserAccountAdvancedSettings.cs | 2 +- Amino.NET/Objects/UserAccountExtensions.cs | 13 ++-- Amino.NET/Objects/UserAchievements.cs | 4 +- Amino.NET/Objects/UserCheckins.cs | 6 +- Amino.NET/Objects/UserProfile.cs | 63 ++++++++++--------- Amino.NET/Objects/UserVisitor.cs | 8 +-- Amino.NET/Objects/ViewMode.cs | 10 +-- Amino.NET/Objects/VoiceMessage.cs | 10 +-- Amino.NET/Objects/VoiceMessageExtensions.cs | 2 +- Amino.NET/Objects/WalletInfo.cs | 12 ++-- Amino.NET/Objects/Wiki.cs | 24 +++---- Amino.NET/Objects/YouTubeMessage.cs | 12 ++-- Amino.NET/Objects/chatMember.cs | 14 ++--- Amino.NET/Objects/eventLog.cs | 27 ++++---- Amino.NET/Objects/globalProfile.cs | 63 ++++++++++--------- Amino.NET/Objects/userAccount.cs | 45 ++++++------- 67 files changed, 483 insertions(+), 456 deletions(-) diff --git a/Amino.NET/Objects/AdditionalItemBenefits.cs b/Amino.NET/Objects/AdditionalItemBenefits.cs index ee86245..9693f48 100644 --- a/Amino.NET/Objects/AdditionalItemBenefits.cs +++ b/Amino.NET/Objects/AdditionalItemBenefits.cs @@ -4,6 +4,6 @@ namespace Amino.Objects { public class AdditionalItemBenefits { - [JsonPropertyName("firstMonthFreeAminoPlusMembership")] public bool FirstMonthFreeAminoPlus { get; set; } + [JsonPropertyName("firstMonthFreeAminoPlusMembership")] public bool? FirstMonthFreeAminoPlus { get; set; } } } diff --git a/Amino.NET/Objects/AdvancedCommunityInfo.cs b/Amino.NET/Objects/AdvancedCommunityInfo.cs index 744f747..063bdff 100644 --- a/Amino.NET/Objects/AdvancedCommunityInfo.cs +++ b/Amino.NET/Objects/AdvancedCommunityInfo.cs @@ -1,4 +1,5 @@ -using System.Collections.Generic; +using System; +using System.Collections.Generic; using System.Text.Json.Serialization; namespace Amino.Objects @@ -7,29 +8,29 @@ public class AdvancedCommunityInfo { // Base JSON key: community - public bool IsCurrentUserJoined { get; set; } // MUST BE SET AFTER + public bool? IsCurrentUserJoined { get; set; } // MUST BE SET AFTER public string Json { get; set; } // MUST BE SET AFTER - [JsonPropertyName("searchable")] public bool Searchable { get; set; } - [JsonPropertyName("isStandaloneAppDepricated")] public bool IsStandaloneAppDeprecated { get; set; } - [JsonPropertyName("listedStatus")] public int ListedStatus { get; set; } - [JsonPropertyName("probationStatus")] public int ProbationStatus { get; set; } + [JsonPropertyName("searchable")] public bool? Searchable { get; set; } + [JsonPropertyName("isStandaloneAppDepricated")] public bool? IsStandaloneAppDeprecated { get; set; } + [JsonPropertyName("listedStatus")] public int? ListedStatus { get; set; } + [JsonPropertyName("probationStatus")] public int? ProbationStatus { get; set; } [JsonPropertyName("keywords")] public string Keywords { get; set; } - [JsonPropertyName("membersCount")] public int MemberCount { get; set; } + [JsonPropertyName("membersCount")] public int? MemberCount { get; set; } [JsonPropertyName("primaryLanguage")] public string PrimaryLanguage { get; set; } - [JsonPropertyName("communityHeat")] public float CommunityHeat { get; set; } + [JsonPropertyName("communityHeat")] public float? CommunityHeat { get; set; } [JsonPropertyName("content")] public string Content { get; set; } - [JsonPropertyName("isStandaloneAppMonetizationEnabled")] public bool IsStandaloneAppMonetizationEnabled { get; set; } + [JsonPropertyName("isStandaloneAppMonetizationEnabled")] public bool? IsStandaloneAppMonetizationEnabled { get; set; } [JsonPropertyName("tagline")] public string Tagline { get; set; } - [JsonPropertyName("joinType")] public int JoinType { get; set; } - [JsonPropertyName("status")] public int Status { get; set; } + [JsonPropertyName("joinType")] public int? JoinType { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } - [JsonPropertyName("ndcId")] public int CommunityId { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } [JsonPropertyName("link")] public string Link { get; set; } [JsonPropertyName("icon")] public string IconUrl { get; set; } [JsonPropertyName("updatedTime")] public string UpdatedTime { get; set; } [JsonPropertyName("endpoint")] public string Endpoint { get; set; } [JsonPropertyName("name")] public string Name { get; set; } - [JsonPropertyName("templateId")] public int TemplateId { get; set; } + [JsonPropertyName("templateId")] public int? TemplateId { get; set; } [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } [JsonPropertyName("communityHeadList")] public List CommunityHeadList { get; set; } diff --git a/Amino.NET/Objects/AvatarFrame.cs b/Amino.NET/Objects/AvatarFrame.cs index a8e77e7..d85cd64 100644 --- a/Amino.NET/Objects/AvatarFrame.cs +++ b/Amino.NET/Objects/AvatarFrame.cs @@ -4,21 +4,21 @@ namespace Amino.Objects { public class AvatarFrame { - [JsonPropertyName("isGloballyAvailable")]public bool IsGloballyAvailable { get; set; } - [JsonPropertyName("isNew")]public bool IsNew { get; set; } - [JsonPropertyName("version")]public int Version { get; set; } + [JsonPropertyName("isGloballyAvailable")]public bool? IsGloballyAvailable { get; set; } + [JsonPropertyName("isNew")]public bool? IsNew { get; set; } + [JsonPropertyName("version")]public int? Version { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("frameType")]public int FrameType { get; set; } + [JsonPropertyName("frameType")]public int? FrameType { get; set; } [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } [JsonPropertyName("frameUrl")]public string FrameUrl { get; set; } [JsonPropertyName("md5")]public string MD5 { get; set; } [JsonPropertyName("icon")]public string IconUrl { get; set; } [JsonPropertyName("frameId")]public string FrameId { get; set; } [JsonPropertyName("uid")]public string ObjectId { get; set; } - [JsonPropertyName("ownershipStatus")]public int OwnershipStatus { get; set; } + [JsonPropertyName("ownershipStatus")]public int? OwnershipStatus { get; set; } [JsonPropertyName("name")]public string Name { get; set; } [JsonPropertyName("resourceUrl")]public string ResourceUrl { get; set; } - [JsonPropertyName("status")]public int Status { get; set; } + [JsonPropertyName("status")]public int? Status { get; set; } [JsonPropertyName("additionalBenefits")]public AdditionalItemBenefits AdditionalBenefits { get; set; } [JsonPropertyName("restrictionInfo")]public ItemRestrictionInfo RestrictionInfo { get; set; } [JsonPropertyName("ownershipInfo")]public ItemOwnershipInfo OwnershipInfo { get; set; } diff --git a/Amino.NET/Objects/AvatarFrameConfig.cs b/Amino.NET/Objects/AvatarFrameConfig.cs index 4758b2f..e51cbee 100644 --- a/Amino.NET/Objects/AvatarFrameConfig.cs +++ b/Amino.NET/Objects/AvatarFrameConfig.cs @@ -8,7 +8,7 @@ public class AvatarFrameConfig [JsonPropertyName("id")] public string ObjectId { get; set; } [JsonPropertyName("moodColor")] public string MoodColor { get; set; } [JsonPropertyName("name")] public string Name { get; set; } - [JsonPropertyName("version")] public int Version { get; set; } + [JsonPropertyName("version")] public int? Version { get; set; } [JsonPropertyName("userIconBorderColor")] public string UserIconBorderColor { get; set; } } } diff --git a/Amino.NET/Objects/Blog.cs b/Amino.NET/Objects/Blog.cs index 2335482..3e25145 100644 --- a/Amino.NET/Objects/Blog.cs +++ b/Amino.NET/Objects/Blog.cs @@ -5,30 +5,30 @@ namespace Amino.Objects public class Blog { public string Json { get; set; } // NEEDS TO BE ADDED AFTER - [JsonPropertyName("globalVotesCount")]public int GlobalVotesCount { get; set; } = 0; - [JsonPropertyName("globalVotedValue")]public int GlobalVotedValue { get; set; } = 0; - [JsonPropertyName("votedValue")]public int VotedValue { get; set; } = 0; + [JsonPropertyName("globalVotesCount")]public int? GlobalVotesCount { get; set; } = 0; + [JsonPropertyName("globalVotedValue")]public int? GlobalVotedValue { get; set; } = 0; + [JsonPropertyName("votedValue")]public int? VotedValue { get; set; } = 0; [JsonPropertyName("keywords")]public string Keywords { get; set; } [JsonPropertyName("strategyInfo")]public string StrategyInfo { get; set; } [JsonPropertyName("style")]public int Style { get; set; } = 0; [JsonPropertyName("totalQuizPlayCount")]public int TotalQuizPlayCount { get; set; } = 0; [JsonPropertyName("title")]public string Title { get; set; } - [JsonPropertyName("contentRating")]public int ContentRating { get; set; } = 0; + [JsonPropertyName("contentRating")]public int? ContentRating { get; set; } = 0; [JsonPropertyName("content")]public string Content { get; set; } - [JsonPropertyName("needHidden")]public bool NeedHidden { get; set; } = false; - [JsonPropertyName("guestVotesCount")]public int GuestVotesCount { get; set; } = 0; - [JsonPropertyName("type")]public int Type { get; set; } = 0; - [JsonPropertyName("status")]public int Status { get; set; } = 0; - [JsonPropertyName("globalCommentsCount")]public int GlobalCommentsCount { get; set; } = 0; + [JsonPropertyName("needHidden")]public bool? NeedHidden { get; set; } = false; + [JsonPropertyName("guestVotesCount")]public int? GuestVotesCount { get; set; } = 0; + [JsonPropertyName("type")]public int? Type { get; set; } = 0; + [JsonPropertyName("status")]public int? Status { get; set; } = 0; + [JsonPropertyName("globalCommentsCount")]public int? GlobalCommentsCount { get; set; } = 0; [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("totalPollVoteCount")]public int TotalPollVoteCount { get; set; } = 0; + [JsonPropertyName("totalPollVoteCount")]public int? TotalPollVoteCount { get; set; } = 0; [JsonPropertyName("blogId")]public string BlogId { get; set; } - [JsonPropertyName("viewCount")]public int ViewCount { get; set; } = 0; - [JsonPropertyName("votesCount")]public int VotesCount { get; set; } = 0; + [JsonPropertyName("viewCount")]public int? ViewCount { get; set; } = 0; + [JsonPropertyName("votesCount")]public int? VotesCount { get; set; } = 0; [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } = 0; + [JsonPropertyName("ndcId")]public int? CommunityId { get; set; } = 0; [JsonPropertyName("endTime")]public string EndTime { get; set; } - [JsonPropertyName("commentsCount")]public int commentsCount { get; set; } = 0; + [JsonPropertyName("commentsCount")]public int? commentsCount { get; set; } = 0; [JsonPropertyName("author")]public GenericProfile Author { get; set; } } } diff --git a/Amino.NET/Objects/Chat.cs b/Amino.NET/Objects/Chat.cs index 658d663..6e73820 100644 --- a/Amino.NET/Objects/Chat.cs +++ b/Amino.NET/Objects/Chat.cs @@ -7,26 +7,26 @@ public class Chat { public string Json { get; set; } // NEEDS TO BE ADDED LATER [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("membersQuota")]public int MembersQuota { get; set; } + [JsonPropertyName("membersQuota")]public int? MembersQuota { get; set; } [JsonPropertyName("threadId")]public string ThreadId { get; set; } [JsonPropertyName("keywords")]public string Keywords { get; set; } - [JsonPropertyName("membersCount")]public int MemberCount { get; set; } + [JsonPropertyName("membersCount")]public int? MemberCount { get; set; } [JsonPropertyName("strategyInfo")]public string StrategyInfo { get; set; } - [JsonPropertyName("isPinned")]public bool IsPinned { get; set; } + [JsonPropertyName("isPinned")]public bool? IsPinned { get; set; } [JsonPropertyName("title")]public string Title { get; set; } - [JsonPropertyName("membershipStatus")]public int MembershipStatus { get; set; } + [JsonPropertyName("membershipStatus")]public int? MembershipStatus { get; set; } [JsonPropertyName("content")]public string Content { get; set; } - [JsonPropertyName("needHidden")]public bool NeedHidden { get; set; } - [JsonPropertyName("alrtOption")]public int alertOption { get; set; } + [JsonPropertyName("needHidden")]public bool? NeedHidden { get; set; } + [JsonPropertyName("alrtOption")]public int? alertOption { get; set; } [JsonPropertyName("lastReadTime")]public string LastReadTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("status")]public int Status { get; set; } - [JsonPropertyName("mentionMe")]public bool MentionMe { get; set; } + [JsonPropertyName("type")]public int? Type { get; set; } + [JsonPropertyName("status")]public int? Status { get; set; } + [JsonPropertyName("mentionMe")]public bool? MentionMe { get; set; } [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("condition")]public int Condition { get; set; } + [JsonPropertyName("condition")]public int? Condition { get; set; } [JsonPropertyName("icon")]public string IconUrl { get; set; } [JsonPropertyName("latestActivityTime")]public string LatestActivityTime { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } + [JsonPropertyName("ndcId")]public int? CommunityId { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } [JsonPropertyName("author")]public GenericProfile Author { get; set; } [JsonPropertyName("membersSummary")] public List ChatMemberSummary { get; set; } diff --git a/Amino.NET/Objects/ChatAnnouncement.cs b/Amino.NET/Objects/ChatAnnouncement.cs index 96a2d2e..1c49da1 100644 --- a/Amino.NET/Objects/ChatAnnouncement.cs +++ b/Amino.NET/Objects/ChatAnnouncement.cs @@ -8,13 +8,13 @@ public class ChatAnnouncement public string Json { get; set; } // NEEDS TO BE SET AFTER public SocketBase SocketBase { get; set; } // NEEDS TO BE SET AFTER [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } + [JsonPropertyName("mediaType")]public int? MediaType { get; set; } [JsonPropertyName("content")]public string Content { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } + [JsonPropertyName("clientRefId")]public int? ClientRefId { get; set; } [JsonPropertyName("messageId")]public string MessageId { get; set; } [JsonPropertyName("uid")]public string UserId { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } + [JsonPropertyName("type")]public int? Type { get; set; } [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } diff --git a/Amino.NET/Objects/ChatEvent.cs b/Amino.NET/Objects/ChatEvent.cs index 48ca3fd..36c8bfb 100644 --- a/Amino.NET/Objects/ChatEvent.cs +++ b/Amino.NET/Objects/ChatEvent.cs @@ -11,13 +11,13 @@ public class ChatEvent [JsonPropertyName("threadId")]public string ChatId { get; set; } [JsonPropertyName("mediaType")]public int MediaType { get; set; } - [JsonPropertyName("clienttRefId")]public int ClientRefId { get; set; } + [JsonPropertyName("clienttRefId")]public int? ClientRefId { get; set; } [JsonPropertyName("messageId")]public string MessageId { get; set; } [JsonPropertyName("uid")]public string UserId { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } + [JsonPropertyName("type")]public int? Type { get; set; } + [JsonPropertyName("isHidden")]public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")]public bool? IncludedInSummary { get; set; } } } diff --git a/Amino.NET/Objects/ChatExtensions.cs b/Amino.NET/Objects/ChatExtensions.cs index 8f9fc10..a294f0b 100644 --- a/Amino.NET/Objects/ChatExtensions.cs +++ b/Amino.NET/Objects/ChatExtensions.cs @@ -4,7 +4,7 @@ namespace Amino.Objects { public class ChatExtensions { - [JsonPropertyName("viewOnly")] public bool ViewOnly { get; set; } + [JsonPropertyName("viewOnly")] public bool? ViewOnly { get; set; } [JsonPropertyName("lastMembersSummaryUpdatedTime")] public string LastMemberSummaryUpdatedTime { get; set; } [JsonPropertyName("channelType")] public string ChannelType { get; set; } } diff --git a/Amino.NET/Objects/ChatTip.cs b/Amino.NET/Objects/ChatTip.cs index a16ef45..858595a 100644 --- a/Amino.NET/Objects/ChatTip.cs +++ b/Amino.NET/Objects/ChatTip.cs @@ -9,14 +9,14 @@ public class ChatTip public SocketBase SocketBase { get; set; } // NEEDS TO BE SET AFTER [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } + [JsonPropertyName("mediaType")]public int? MediaType { get; set; } [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } [JsonPropertyName("messageId")]public string MessageId { get; set; } [JsonPropertyName("uid")]public string UserId { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } + [JsonPropertyName("type")]public int? Type { get; set; } + [JsonPropertyName("isHidden")]public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")]public bool? IncludedInSummary { get; set; } [JsonPropertyName("author")]public GenericProfile Author { get; set; } [JsonPropertyName("extensions")]public ChatTipExtensions Extensions { get; set; } diff --git a/Amino.NET/Objects/ChatTipExtensions.cs b/Amino.NET/Objects/ChatTipExtensions.cs index 4798142..91081c7 100644 --- a/Amino.NET/Objects/ChatTipExtensions.cs +++ b/Amino.NET/Objects/ChatTipExtensions.cs @@ -4,6 +4,6 @@ namespace Amino.Objects { public class ChatTipExtensions { - [JsonPropertyName("tippingCoins")] public int TippedCoins { get; set; } + [JsonPropertyName("tippingCoins")] public int? TippedCoins { get; set; } } } diff --git a/Amino.NET/Objects/ChatTipToggle.cs b/Amino.NET/Objects/ChatTipToggle.cs index 2130047..0c42ba0 100644 --- a/Amino.NET/Objects/ChatTipToggle.cs +++ b/Amino.NET/Objects/ChatTipToggle.cs @@ -10,14 +10,14 @@ public class ChatTipToggle public SocketBase SocketBase { get; set; } // NEEDS TO BE ADDED AFTER [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } + [JsonPropertyName("mediaType")]public int? MediaType { get; set; } + [JsonPropertyName("clientRefId")]public int? ClientRefId { get; set; } [JsonPropertyName("messageId")]public string MessageId { get; set; } [JsonPropertyName("uid")]public string UserId { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } + [JsonPropertyName("type")]public int? Type { get; set; } + [JsonPropertyName("isHidden")]public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")]public bool? IncludedInSummary { get; set; } [JsonPropertyName("author")]public GenericProfile Author { get; set; } } diff --git a/Amino.NET/Objects/CoinHistoryEntry.cs b/Amino.NET/Objects/CoinHistoryEntry.cs index a7c6be9..40682e1 100644 --- a/Amino.NET/Objects/CoinHistoryEntry.cs +++ b/Amino.NET/Objects/CoinHistoryEntry.cs @@ -5,20 +5,21 @@ namespace Amino.Objects public class CoinHistoryEntry { - [JsonPropertyName("isPositive")]public bool IsPositive { get; set; } - [JsonPropertyName("totalCoins")]public int TotalCoins { get; set; } - [JsonPropertyName("originalCoinsFloat")]public float OriginCoinsFloat { get; set; } - [JsonPropertyName("sourceType")]public int SourceType { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("bonusCoins")]public int BonusCoins { get; set; } - [JsonPropertyName("totalCoinsFloat")]public float TotalCoinsFloat { get; set; } - [JsonPropertyName("bonusCoinsFloat")]public float BonusCoinsFloat { get; set; } - [JsonPropertyName("changedCoinsFloat")]public float ChangedCoinsFloat { get; set; } - [JsonPropertyName("taxCoinsFloat")]public float TaxCoinsFloat { get; set; } - [JsonPropertyName("taxCoins")]public int TaxCoins { get; set; } - [JsonPropertyName("uid")]public string EntryId { get; set; } - [JsonPropertyName("changedCoins")]public int ChangedCoins { get; set; } - [JsonPropertyName("originCoins")]public int OriginCoins { get; set; } - [JsonPropertyName("extData")]public WalletHistoryExtraData ExtData { get; set; } + [JsonPropertyName("isPositive")] public bool? IsPositive { get; set; } + [JsonPropertyName("totalCoins")] public int? TotalCoins { get; set; } + [JsonPropertyName("originalCoinsFloat")] public float? OriginCoinsFloat { get; set; } + [JsonPropertyName("sourceType")] public int? SourceType { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("bonusCoins")] public int? BonusCoins { get; set; } + [JsonPropertyName("totalCoinsFloat")] public float? TotalCoinsFloat { get; set; } + [JsonPropertyName("bonusCoinsFloat")] public float? BonusCoinsFloat { get; set; } + [JsonPropertyName("changedCoinsFloat")] public float? ChangedCoinsFloat { get; set; } + [JsonPropertyName("taxCoinsFloat")] public float? TaxCoinsFloat { get; set; } + [JsonPropertyName("taxCoins")] public int? TaxCoins { get; set; } + [JsonPropertyName("uid")] public string EntryId { get; set; } + [JsonPropertyName("changedCoins")] public int? ChangedCoins { get; set; } + [JsonPropertyName("originCoins")] public int? OriginCoins { get; set; } + [JsonPropertyName("extData")] public WalletHistoryExtraData ExtData { get; set; } + } } diff --git a/Amino.NET/Objects/Comment.cs b/Amino.NET/Objects/Comment.cs index 214d0f3..ea9d279 100644 --- a/Amino.NET/Objects/Comment.cs +++ b/Amino.NET/Objects/Comment.cs @@ -5,18 +5,19 @@ namespace Amino.Objects { public class Comment { - [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } - [JsonPropertyName("votedValue")]public int VotedValue { get; set; } - [JsonPropertyName("parentType")]public int ParentType { get; set; } - [JsonPropertyName("commentId")]public string CommentId { get; set; } - [JsonPropertyName("parentNdcId")]public int ParentCommunityId { get; set; } - [JsonPropertyName("votesSum")]public int VotesSum { get; set; } - [JsonPropertyName("content")]public string Content { get; set; } - [JsonPropertyName("parentId")]public string ParentId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("subcommentsCount")]public int SubcommentsCount { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("author")]public GenericProfile Author { get; set; } + [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } + [JsonPropertyName("votedValue")] public int? VotedValue { get; set; } + [JsonPropertyName("parentType")] public int? ParentType { get; set; } + [JsonPropertyName("commentId")] public string CommentId { get; set; } + [JsonPropertyName("parentNdcId")] public int? ParentCommunityId { get; set; } + [JsonPropertyName("votesSum")] public int? VotesSum { get; set; } + [JsonPropertyName("content")] public string Content { get; set; } + [JsonPropertyName("parentId")] public string ParentId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("subcommentsCount")] public int? SubcommentsCount { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } + [JsonPropertyName("author")] public GenericProfile Author { get; set; } + } } diff --git a/Amino.NET/Objects/Community.cs b/Amino.NET/Objects/Community.cs index 2bd8f46..c7b9dae 100644 --- a/Amino.NET/Objects/Community.cs +++ b/Amino.NET/Objects/Community.cs @@ -1,30 +1,32 @@ -using System.Text.Json.Serialization; +using System.Collections.Generic; +using System.Text.Json.Serialization; namespace Amino.Objects { public class Community { - [JsonPropertyName("listedStatus")] public int ListedStatus { get; set; } - [JsonPropertyName("probationStatus")] public int ProbationStatus { get; set; } - [JsonPropertyName("membersCount")] public int MemberCount { get; set; } + [JsonPropertyName("listedStatus")] public int? ListedStatus { get; set; } + [JsonPropertyName("probationStatus")] public int? ProbationStatus { get; set; } + [JsonPropertyName("membersCount")] public int? MemberCount { get; set; } [JsonPropertyName("primaryLanguage")] public string PrimaryLanguage { get; set; } - [JsonPropertyName("communityHeat")] public float CommunityHeat { get; set; } + [JsonPropertyName("communityHeat")] public float? CommunityHeat { get; set; } [JsonPropertyName("strategyInfo")] public string StrategyInfo { get; set; } [JsonPropertyName("tagLine")] public string Tagline { get; set; } - [JsonPropertyName("joinType")]public int JoinType { get; set; } - [JsonPropertyName("status")]public int Status { get; set; } - [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } - [JsonPropertyName("link")]public string CommunityLink { get; set; } - [JsonPropertyName("icon")]public string IconUrl { get; set; } - [JsonPropertyName("updatedTime")]public string UpdatedTime { get; set; } - [JsonPropertyName("endpoint")]public string Endpoint { get; set; } - [JsonPropertyName("name")]public string CommunityName { get; set; } - [JsonPropertyName("templateId")]public int templateId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("userAddedTopicList")] public string UserAddedTopicList { get; set; } - [JsonPropertyName("agent")]public GenericProfile Agent { get; set; } + [JsonPropertyName("joinType")] public int? JoinType { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } + [JsonPropertyName("link")] public string CommunityLink { get; set; } + [JsonPropertyName("icon")] public string IconUrl { get; set; } + [JsonPropertyName("updatedTime")] public string UpdatedTime { get; set; } + [JsonPropertyName("endpoint")] public string Endpoint { get; set; } + [JsonPropertyName("name")] public string CommunityName { get; set; } + [JsonPropertyName("templateId")] public int? templateId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonIgnore][JsonPropertyName("userAddedTopicList")] public string UserAddedTopicList { get; set; } + [JsonPropertyName("agent")] public GenericProfile Agent { get; set; } [JsonPropertyName("themePack")] public CommunityThemePack ThemePack { get; set; } + } } diff --git a/Amino.NET/Objects/CommunityAdvancedSettings.cs b/Amino.NET/Objects/CommunityAdvancedSettings.cs index 80709d1..4e60a67 100644 --- a/Amino.NET/Objects/CommunityAdvancedSettings.cs +++ b/Amino.NET/Objects/CommunityAdvancedSettings.cs @@ -5,14 +5,15 @@ namespace Amino.Objects { public class CommunityAdvancedSettings { - [JsonPropertyName("defaultRankingTypeInLeaderboard")] public int DefaultRankingTypeInLeaderboard { get; set; } - [JsonPropertyName("frontPageLayout")] public int FrontPageLayout { get; set; } - [JsonPropertyName("hasPendingReviewRequest")] public bool HasPendingReviewRequest { get; set; } - [JsonPropertyName("welcomeMessageEnabled")] public bool WelcomeMessageEnabled { get; set; } - [JsonPropertyName("pollMinFullBarCount")] public int PollMinFullBarCount { get; set; } - [JsonPropertyName("catalogEnabled")] public bool CatalogEnabled { get; set; } + [JsonPropertyName("defaultRankingTypeInLeaderboard")] public int? DefaultRankingTypeInLeaderboard { get; set; } + [JsonPropertyName("frontPageLayout")] public int? FrontPageLayout { get; set; } + [JsonPropertyName("hasPendingReviewRequest")] public bool? HasPendingReviewRequest { get; set; } + [JsonPropertyName("welcomeMessageEnabled")] public bool? WelcomeMessageEnabled { get; set; } + [JsonPropertyName("pollMinFullBarCount")] public int? PollMinFullBarCount { get; set; } + [JsonPropertyName("catalogEnabled")] public bool? CatalogEnabled { get; set; } [JsonPropertyName("newsFeedPages")] public List NewsFeed { get; set; } [JsonPropertyName("rankingTable")] public List Ranks { get; set; } [JsonPropertyName("welcomeMessageText")] public string WelcomeMessageText { get; set; } + } } diff --git a/Amino.NET/Objects/CommunityInfo.cs b/Amino.NET/Objects/CommunityInfo.cs index 8c22d1c..d16be2b 100644 --- a/Amino.NET/Objects/CommunityInfo.cs +++ b/Amino.NET/Objects/CommunityInfo.cs @@ -4,10 +4,10 @@ namespace Amino.Objects { public class CommunityInfo { - [JsonPropertyName("objectType")]public int ObjectType { get; set; } - [JsonPropertyName("aminoId")]public string AminoId { get; set; } - [JsonPropertyName("objectId")]public string ObjectId { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } - [JsonPropertyName("refObject")]public Community CommunityBase { get; set; } + [JsonPropertyName("objectType")] public int? ObjectType { get; set; } + [JsonPropertyName("aminoId")] public string AminoId { get; set; } + [JsonPropertyName("objectId")] public string ObjectId { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } + [JsonPropertyName("refObject")] public Community CommunityBase { get; set; } } } diff --git a/Amino.NET/Objects/CommunityNewsFeed.cs b/Amino.NET/Objects/CommunityNewsFeed.cs index 7311862..7343be0 100644 --- a/Amino.NET/Objects/CommunityNewsFeed.cs +++ b/Amino.NET/Objects/CommunityNewsFeed.cs @@ -4,7 +4,7 @@ namespace Amino.Objects { public class CommunityNewsFeed { - [JsonPropertyName("status")] public int Status { get; set; } - [JsonPropertyName("type")] public int Type { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } } } diff --git a/Amino.NET/Objects/CommunityRankingTable.cs b/Amino.NET/Objects/CommunityRankingTable.cs index 3a65644..7986a60 100644 --- a/Amino.NET/Objects/CommunityRankingTable.cs +++ b/Amino.NET/Objects/CommunityRankingTable.cs @@ -4,9 +4,10 @@ namespace Amino.Objects { public class CommunityRankingTable { - [JsonPropertyName("level")] public int Level { get; set; } - [JsonPropertyName("reputation")] public int Reputation { get; set; } + [JsonPropertyName("level")] public int? Level { get; set; } + [JsonPropertyName("reputation")] public int? Reputation { get; set; } [JsonPropertyName("id")] public string ID { get; set; } [JsonPropertyName("title")] public string Title { get; set; } + } } diff --git a/Amino.NET/Objects/CurrentUserInfo.cs b/Amino.NET/Objects/CurrentUserInfo.cs index 4aedc0d..4f2894c 100644 --- a/Amino.NET/Objects/CurrentUserInfo.cs +++ b/Amino.NET/Objects/CurrentUserInfo.cs @@ -4,7 +4,7 @@ namespace Amino.Objects { public class CurrentUserInfo { - [JsonPropertyName("notificationsCount")] public int NotificationsCount { get; set; } + [JsonPropertyName("notificationsCount")] public int? NotificationsCount { get; set; } [JsonPropertyName("userProfile")] public UserProfile UserProfile { get; set; } } } diff --git a/Amino.NET/Objects/DeletedMessage.cs b/Amino.NET/Objects/DeletedMessage.cs index 333115b..184dddf 100644 --- a/Amino.NET/Objects/DeletedMessage.cs +++ b/Amino.NET/Objects/DeletedMessage.cs @@ -7,15 +7,15 @@ public class DeletedMessage { public SocketBase SocketBase { get; set; } // NEEDS TO BE ADDED AFTER public string Json { get; set; } // NEEDS TO BE ADDED AFTER - [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } - [JsonPropertyName("messageId")]public string MessageId { get; set; } - [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } - [JsonPropertyName("author")]public GenericProfile Author { get; set; } + [JsonPropertyName("threadId")] public string ChatId { get; set; } + [JsonPropertyName("mediaType")] public int? MediaType { get; set; } + [JsonPropertyName("clientRefId")] public int? ClientRefId { get; set; } + [JsonPropertyName("messageId")] public string MessageId { get; set; } + [JsonPropertyName("uid")] public string UserId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } + [JsonPropertyName("isHidden")] public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")] public bool? IncludedInSummary { get; set; } + [JsonPropertyName("author")] public GenericProfile Author { get; set; } } } diff --git a/Amino.NET/Objects/DeviceInfo.cs b/Amino.NET/Objects/DeviceInfo.cs index 3e762eb..7aa077f 100644 --- a/Amino.NET/Objects/DeviceInfo.cs +++ b/Amino.NET/Objects/DeviceInfo.cs @@ -4,6 +4,6 @@ namespace Amino.Objects { public class DeviceInfo { - [JsonPropertyName("lastClientType")] public int LastClientType { get; set; } + [JsonPropertyName("lastClientType")] public int? LastClientType { get; set; } } } diff --git a/Amino.NET/Objects/FromInvite.cs b/Amino.NET/Objects/FromInvite.cs index 08a651b..111e4b4 100644 --- a/Amino.NET/Objects/FromInvite.cs +++ b/Amino.NET/Objects/FromInvite.cs @@ -4,7 +4,7 @@ namespace Amino.Objects { public class FromInvite { - [JsonPropertyName("isCurrentlyJoined")]public bool IsCurrentUserJoined { get; set; } + [JsonPropertyName("isCurrentlyJoined")]public bool? IsCurrentUserJoined { get; set; } [JsonPropertyName("path")]public string Path { get; set; } [JsonPropertyName("invitationId")]public string InvitationId { get; set; } [JsonPropertyName("community")]public AdvancedCommunityInfo Community { get; set; } diff --git a/Amino.NET/Objects/GenericAvatarFrame.cs b/Amino.NET/Objects/GenericAvatarFrame.cs index 2a3922c..3acb5c6 100644 --- a/Amino.NET/Objects/GenericAvatarFrame.cs +++ b/Amino.NET/Objects/GenericAvatarFrame.cs @@ -4,12 +4,12 @@ namespace Amino.Objects { public class GenericAvatarFrame { - [JsonPropertyName("status")] public int Status { get; set; } - [JsonPropertyName("version")] public int Version { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("version")] public int? Version { get; set; } [JsonPropertyName("resourceUrl")] public string ResourceUrl { get; set; } [JsonPropertyName("name")] public string Name { get; set; } [JsonPropertyName("icon")] public string IconUrl { get; set; } - [JsonPropertyName("frameType")] public int FrameType { get; set; } + [JsonPropertyName("frameType")] public int? FrameType { get; set; } [JsonPropertyName("frameId")] public string FrameId { get; set; } } } diff --git a/Amino.NET/Objects/GenericChatMember.cs b/Amino.NET/Objects/GenericChatMember.cs index 283a484..6211c0b 100644 --- a/Amino.NET/Objects/GenericChatMember.cs +++ b/Amino.NET/Objects/GenericChatMember.cs @@ -4,10 +4,10 @@ namespace Amino.Objects { public class GenericChatMember { - [JsonPropertyName("status")] public int Status { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } [JsonPropertyName("uid")] public string UserId { get; set; } - [JsonPropertyName("membershipStatus")] public int MembershipStatus { get; set; } - [JsonPropertyName("role")] public int Role { get; set; } + [JsonPropertyName("membershipStatus")] public int? MembershipStatus { get; set; } + [JsonPropertyName("role")] public int? Role { get; set; } [JsonPropertyName("nickname")] public string Nickname { get; set; } [JsonPropertyName("icon")] public string IconUrl { get; set; } } diff --git a/Amino.NET/Objects/GenericMessage.cs b/Amino.NET/Objects/GenericMessage.cs index 26184e0..9f24ceb 100644 --- a/Amino.NET/Objects/GenericMessage.cs +++ b/Amino.NET/Objects/GenericMessage.cs @@ -5,18 +5,19 @@ namespace Amino.Objects public class GenericMessage { - [JsonPropertyName("includedInSummary")] public bool IncludedInSummary { get; set; } + [JsonPropertyName("includedInSummary")] public bool? IncludedInSummary { get; set; } [JsonPropertyName("uid")] public string AuthorId { get; set; } - [JsonPropertyName("isHidden")] public bool IsHidden { get; set; } + [JsonPropertyName("isHidden")] public bool? IsHidden { get; set; } [JsonPropertyName("messageId")] public string MessageId { get; set; } - [JsonPropertyName("mediaType")] public int MediaType { get; set; } + [JsonPropertyName("mediaType")] public int? MediaType { get; set; } [JsonPropertyName("content")] public string Content { get; set; } [JsonPropertyName("chatBubbleId")] public string ChatBubbleId { get; set; } - [JsonPropertyName("clientRefId")] public int ClientRefId { get; set; } + [JsonPropertyName("clientRefId")] public int? ClientRefId { get; set; } [JsonPropertyName("threadId")] public string ChatId { get; set; } [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } - [JsonPropertyName("type")] public int Type { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } [JsonPropertyName("mediaUrl")] public string MediaUrl { get; set; } [JsonPropertyName("author")] public GenericProfile Author { get; set; } + } } diff --git a/Amino.NET/Objects/GenericMessageAuthor.cs b/Amino.NET/Objects/GenericMessageAuthor.cs index 9258e66..fb5de25 100644 --- a/Amino.NET/Objects/GenericMessageAuthor.cs +++ b/Amino.NET/Objects/GenericMessageAuthor.cs @@ -6,8 +6,8 @@ public class GenericMessageAuthor { [JsonPropertyName("nickname")] public string Nickname { get; set; } [JsonPropertyName("uid")] public string UserId { get; set; } - [JsonPropertyName("level")] public int Level { get; set; } + [JsonPropertyName("level")] public int? Level { get; set; } [JsonPropertyName("icon")] public string IconUrl { get; set; } - [JsonPropertyName("reputation")] public int Reputation { get; set; } + [JsonPropertyName("reputation")] public int? Reputation { get; set; } } } diff --git a/Amino.NET/Objects/GenericPostAuthor.cs b/Amino.NET/Objects/GenericPostAuthor.cs index f38dc8e..8aea89b 100644 --- a/Amino.NET/Objects/GenericPostAuthor.cs +++ b/Amino.NET/Objects/GenericPostAuthor.cs @@ -4,11 +4,11 @@ namespace Amino.Objects { public class GenericPostAuthor { - [JsonPropertyName("status")] public int Status { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } [JsonPropertyName("uid")] public string UserId { get; set; } - [JsonPropertyName("isGlobal")] public bool IsGlobal { get; set; } - [JsonPropertyName("role")] public int Role { get; set; } - [JsonPropertyName("isStaff")] public bool IsStaff { get; set; } + [JsonPropertyName("isGlobal")] public bool? IsGlobal { get; set; } + [JsonPropertyName("role")] public int? Role { get; set; } + [JsonPropertyName("isStaff")] public bool? IsStaff { get; set; } [JsonPropertyName("nickname")] public string Nickname { get; set; } [JsonPropertyName("icon")] public string IconUrl { get; set; } } diff --git a/Amino.NET/Objects/GenericProfile.cs b/Amino.NET/Objects/GenericProfile.cs index 267ed0e..68f0077 100644 --- a/Amino.NET/Objects/GenericProfile.cs +++ b/Amino.NET/Objects/GenericProfile.cs @@ -6,23 +6,24 @@ public class GenericProfile // ROOT JSON ELEMENT: userProfile { public string Json { get; set; } // NEEDS TO BE SET AFTER [JsonPropertyName("status")]public int? Status { get; set; } - [JsonPropertyName("isNicknameVerified")]public bool IsNicknameVerified { get; set; } + [JsonPropertyName("isNicknameVerified")]public bool? IsNicknameVerified { get; set; } [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("level")]public int Level { get; set; } - [JsonPropertyName("followingStatus")]public int FollowingStatus { get; set; } - [JsonPropertyName("accountMembershipStatus")]public int AccountMembershipStatus { get; set; } - [JsonPropertyName("isGlobal")]public bool IsGlobal { get; set; } - [JsonPropertyName("membershipStatus")]public int MembershipStatus { get; set; } + [JsonPropertyName("level")]public int? Level { get; set; } + [JsonPropertyName("followingStatus")]public int? FollowingStatus { get; set; } + [JsonPropertyName("accountMembershipStatus")]public int? AccountMembershipStatus { get; set; } + [JsonPropertyName("isGlobal")]public bool? IsGlobal { get; set; } + [JsonPropertyName("membershipStatus")]public int? MembershipStatus { get; set; } [JsonPropertyName("avatarFrameId")]public string AvatarFrameId { get; set; } - [JsonPropertyName("reputation")]public int Reputation { get; set; } - [JsonPropertyName("membersCount")]public int MembersCount { get; set; } + [JsonPropertyName("reputation")]public int? Reputation { get; set; } + [JsonPropertyName("membersCount")]public int? MembersCount { get; set; } [JsonPropertyName("nickname")]public string Nickname { get; set; } [JsonPropertyName("icon")]public string IconUrl { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } + [JsonPropertyName("ndcId")]public int? CommunityId { get; set; } [JsonPropertyName("avatarFrame")] public GenericAvatarFrame AvatarFrame { get; set; } [JsonPropertyName("influencerInfo")] public InfluencerPriceInfo InfluencerInfo { get; set; } [JsonPropertyName("extensions")] public GenericAuthorExtensions Extensions { get; set; } + } } diff --git a/Amino.NET/Objects/ImageMessage.cs b/Amino.NET/Objects/ImageMessage.cs index d69d46d..4b596ec 100644 --- a/Amino.NET/Objects/ImageMessage.cs +++ b/Amino.NET/Objects/ImageMessage.cs @@ -8,21 +8,22 @@ public class ImageMessage { public SocketBase SocketBase { get; set; } // NEEDS TO BE SET AFTER public string Json { get; set; } // NEEDS TO BE SET AFTER - [JsonPropertyName("mediaValue")]public string MediaUrl { get; set; } - [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } - [JsonPropertyName("messageId")]public string MessageId { get; set; } - [JsonPropertyName("uid")]public string ObjectId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } - [JsonPropertyName("chatBubbleId")]public string ChatBubbleId { get; set; } - [JsonPropertyName("chatBubbleVersion")]public int ChatBubbleVersion { get; set; } - [JsonPropertyName("alertOption")]public int AlertOption { get; set; } - [JsonPropertyName("membershipStatus")]public int MembershipStatus { get; set; } - [JsonPropertyName("author")]public GenericProfile Author { get; set; } + [JsonPropertyName("mediaValue")] public string MediaUrl { get; set; } + [JsonPropertyName("threadId")] public string ChatId { get; set; } + [JsonPropertyName("mediaType")] public int? MediaType { get; set; } + [JsonPropertyName("clientRefId")] public int? ClientRefId { get; set; } + [JsonPropertyName("messageId")] public string MessageId { get; set; } + [JsonPropertyName("uid")] public string ObjectId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } + [JsonPropertyName("isHidden")] public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")] public bool? IncludedInSummary { get; set; } + [JsonPropertyName("chatBubbleId")] public string ChatBubbleId { get; set; } + [JsonPropertyName("chatBubbleVersion")] public int? ChatBubbleVersion { get; set; } + [JsonPropertyName("alertOption")] public int? AlertOption { get; set; } + [JsonPropertyName("membershipStatus")] public int? MembershipStatus { get; set; } + [JsonPropertyName("author")] public GenericProfile Author { get; set; } + } diff --git a/Amino.NET/Objects/InfluencerFanClubMember.cs b/Amino.NET/Objects/InfluencerFanClubMember.cs index 855b7aa..f9fb207 100644 --- a/Amino.NET/Objects/InfluencerFanClubMember.cs +++ b/Amino.NET/Objects/InfluencerFanClubMember.cs @@ -4,7 +4,7 @@ namespace Amino.Objects { public class InfluencerFanClubMember { - [JsonPropertyName("fansStatus")] public int FanStatus { get; set; } + [JsonPropertyName("fansStatus")] public int? FanStatus { get; set; } [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } [JsonPropertyName("targetUserId")] public string TargetUserId { get; set; } [JsonPropertyName("expiredTime")] public string ExpiredTime { get; set; } diff --git a/Amino.NET/Objects/InfluencerPriceInfo.cs b/Amino.NET/Objects/InfluencerPriceInfo.cs index 11fe52d..828abff 100644 --- a/Amino.NET/Objects/InfluencerPriceInfo.cs +++ b/Amino.NET/Objects/InfluencerPriceInfo.cs @@ -4,9 +4,9 @@ namespace Amino.Objects { public class InfluencerPriceInfo { - [JsonPropertyName("isPinned")] public bool IsPinned { get; set; } + [JsonPropertyName("isPinned")] public bool? IsPinned { get; set; } [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } - [JsonPropertyName("fansCount")] public int FanCount { get; set; } - [JsonPropertyName("monthlyFee")] public int MonthlyFee { get; set; } + [JsonPropertyName("fansCount")] public int? FanCount { get; set; } + [JsonPropertyName("monthlyFee")] public int? MonthlyFee { get; set; } } } diff --git a/Amino.NET/Objects/Invitation.cs b/Amino.NET/Objects/Invitation.cs index 8f2319a..77b4c45 100644 --- a/Amino.NET/Objects/Invitation.cs +++ b/Amino.NET/Objects/Invitation.cs @@ -8,9 +8,9 @@ public class Invitation [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } [JsonPropertyName("invitationId")] public string InvitationId { get; set; } [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } - [JsonPropertyName("duration")] public int Duration { get; set; } - [JsonPropertyName("status")] public int Status { get; set; } - [JsonPropertyName("ndcId")] public int CommunityId { get; set; } + [JsonPropertyName("duration")] public int? Duration { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } [JsonPropertyName("inviteCode")] public string InviteCode { get; set; } [JsonPropertyName("author")] public GenericProfile Author { get; set; } } diff --git a/Amino.NET/Objects/InviteCode.cs b/Amino.NET/Objects/InviteCode.cs index a0cdc8c..2452d80 100644 --- a/Amino.NET/Objects/InviteCode.cs +++ b/Amino.NET/Objects/InviteCode.cs @@ -3,13 +3,14 @@ namespace Amino.Objects { public class InviteCode { - [JsonPropertyName("status")]public int Status { get; set; } - [JsonPropertyName("duration")]public int Duration { get; set; } - [JsonPropertyName("invitationId")]public string InvitationId { get; set; } - [JsonPropertyName("link")]public string InviteUrl { get; set; } - [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("author")]public GenericProfile Author { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("duration")] public int? Duration { get; set; } + [JsonPropertyName("invitationId")] public string InvitationId { get; set; } + [JsonPropertyName("link")] public string InviteUrl { get; set; } + [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("author")] public GenericProfile Author { get; set; } + } } diff --git a/Amino.NET/Objects/ItemOwnershipInfo.cs b/Amino.NET/Objects/ItemOwnershipInfo.cs index 94ff5e0..e1351fc 100644 --- a/Amino.NET/Objects/ItemOwnershipInfo.cs +++ b/Amino.NET/Objects/ItemOwnershipInfo.cs @@ -5,8 +5,9 @@ namespace Amino.Objects public class ItemOwnershipInfo { [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } - [JsonPropertyName("ownershipStatus")] public int OwnershipStatus { get; set; } - [JsonPropertyName("isAutoRenew")] public bool IsAutoRenew { get; set; } + [JsonPropertyName("ownershipStatus")] public int? OwnershipStatus { get; set; } + [JsonPropertyName("isAutoRenew")] public bool? IsAutoRenew { get; set; } [JsonPropertyName("expiredTime")] public string ExpiredTime { get; set; } + } } diff --git a/Amino.NET/Objects/ItemRestrictionInfo.cs b/Amino.NET/Objects/ItemRestrictionInfo.cs index 4db009f..bf68b0d 100644 --- a/Amino.NET/Objects/ItemRestrictionInfo.cs +++ b/Amino.NET/Objects/ItemRestrictionInfo.cs @@ -4,12 +4,13 @@ namespace Amino.Objects { public class ItemRestrictionInfo { - [JsonPropertyName("restrictValue")] public int RestrictValue { get; set; } + [JsonPropertyName("restrictValue")] public int? RestrictValue { get; set; } [JsonPropertyName("availableDuration")] public string AvailableDuration { get; set; } - [JsonPropertyName("discountValue")] public int DiscountValue { get; set; } - [JsonPropertyName("discountStatus")] public int DiscountStatus { get; set; } + [JsonPropertyName("discountValue")] public int? DiscountValue { get; set; } + [JsonPropertyName("discountStatus")] public int? DiscountStatus { get; set; } [JsonPropertyName("ownerUserId")] public string OwnerUserId { get; set; } - [JsonPropertyName("ownerType")] public int OwnerType { get; set; } - [JsonPropertyName("restrictType")] public int RestrictType { get; set; } + [JsonPropertyName("ownerType")] public int? OwnerType { get; set; } + [JsonPropertyName("restrictType")] public int? RestrictType { get; set; } + } } diff --git a/Amino.NET/Objects/JoinedChatMember.cs b/Amino.NET/Objects/JoinedChatMember.cs index 2b2ddbd..4c7a602 100644 --- a/Amino.NET/Objects/JoinedChatMember.cs +++ b/Amino.NET/Objects/JoinedChatMember.cs @@ -7,16 +7,17 @@ public class JoinedChatMember { public SocketBase SocketBase { get; set; } // NEEDS TO BE SET AFTER public string Json { get; set; } // NEEDS TO BE SET AFTER - [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } - [JsonPropertyName("messageId")]public string MessageId { get; set; } - [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } + [JsonPropertyName("threadId")] public string ChatId { get; set; } + [JsonPropertyName("mediaType")] public int? MediaType { get; set; } + [JsonPropertyName("clientRefId")] public int? ClientRefId { get; set; } + [JsonPropertyName("messageId")] public string MessageId { get; set; } + [JsonPropertyName("uid")] public string UserId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } + [JsonPropertyName("isHidden")] public bool IsHidden { get; set; } + [JsonPropertyName("includedInSummary")] public bool IncludedInSummary { get; set; } + + [JsonPropertyName("author")] public GenericProfile Author { get; set; } - [JsonPropertyName("author")]public GenericProfile Author { get; set; } } } diff --git a/Amino.NET/Objects/LastChatMessageSummary.cs b/Amino.NET/Objects/LastChatMessageSummary.cs index 3126401..1ac5ae8 100644 --- a/Amino.NET/Objects/LastChatMessageSummary.cs +++ b/Amino.NET/Objects/LastChatMessageSummary.cs @@ -5,12 +5,13 @@ namespace Amino.Objects public class LastChatMessageSummary { [JsonPropertyName("uid")] public string UserId { get; set; } - [JsonPropertyName("isHidden")] public bool IsHidden { get; set; } + [JsonPropertyName("isHidden")] public bool? IsHidden { get; set; } [JsonPropertyName("mediaType")] public string MediaType { get; set; } [JsonPropertyName("content")] public string Content { get; set; } [JsonPropertyName("messageId")] public string MessageId { get; set; } [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } - [JsonPropertyName("type")] public int Type { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } [JsonPropertyName("mediaValue")] public string MediaValue { get; set; } + } } diff --git a/Amino.NET/Objects/LeftChatMember.cs b/Amino.NET/Objects/LeftChatMember.cs index 82d6271..bbb9455 100644 --- a/Amino.NET/Objects/LeftChatMember.cs +++ b/Amino.NET/Objects/LeftChatMember.cs @@ -8,14 +8,15 @@ public class LeftChatMember public SocketBase SocketBase { get; set; } // NEEDS TO BE SET AFTER public string Json { get; set; } // NEEDS TO BE SET AFTER - [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } - [JsonPropertyName("messageId")]public string MessageId { get; set; } - [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } + [JsonPropertyName("threadId")] public string ChatId { get; set; } + [JsonPropertyName("mediaType")] public int? MediaType { get; set; } + [JsonPropertyName("clientRefId")] public int? ClientRefId { get; set; } + [JsonPropertyName("messageId")] public string MessageId { get; set; } + [JsonPropertyName("uid")] public string UserId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } + [JsonPropertyName("isHidden")] public bool IsHidden { get; set; } + [JsonPropertyName("includedInSummary")] public bool IncludedInSummary { get; set; } + } } diff --git a/Amino.NET/Objects/LinkInfo.cs b/Amino.NET/Objects/LinkInfo.cs index 3444251..e75efe8 100644 --- a/Amino.NET/Objects/LinkInfo.cs +++ b/Amino.NET/Objects/LinkInfo.cs @@ -6,10 +6,10 @@ public class LinkInfo { [JsonPropertyName("objectId")] public string ObjectId { get; set; } [JsonPropertyName("targetCode")] public string TargetCode { get; set; } - [JsonPropertyName("ndcId")] public int CommunityId { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } [JsonPropertyName("fullPath")] public string FullPath { get; set; } [JsonPropertyName("shortCode")] public string ShortCode { get; set; } - [JsonPropertyName("objectType")] public int ObjectType { get; set; } + [JsonPropertyName("objectType")] public int? ObjectType { get; set; } /// /// The shareable URL Shortcode of an Object /// Available with @@ -20,5 +20,6 @@ public class LinkInfo /// Availabe with /// [JsonPropertyName("shareURLFullPath")] public string ShareURLFullPath { get; set; } + } } diff --git a/Amino.NET/Objects/Membership.cs b/Amino.NET/Objects/Membership.cs index 8679c32..eb211c9 100644 --- a/Amino.NET/Objects/Membership.cs +++ b/Amino.NET/Objects/Membership.cs @@ -4,13 +4,14 @@ namespace Amino.Objects { public class Membership { - [JsonPropertyName("paymentType")] public int PaymentTime { get; set; } + [JsonPropertyName("paymentType")] public int? PaymentTime { get; set; } [JsonPropertyName("expiredDate")] public string ExpiredDate { get; set; } [JsonPropertyName("renewedTime")] public string RenewedTime { get; set; } [JsonPropertyName("uid")] public string ObjectId { get; set; } [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } - [JsonPropertyName("isAutoRenew")] public bool IsAutoRenew { get; set; } - [JsonPropertyName("membershipStatus")] public int MembershipStatus { get; set; } + [JsonPropertyName("isAutoRenew")] public bool? IsAutoRenew { get; set; } + [JsonPropertyName("membershipStatus")] public int? MembershipStatus { get; set; } + } } diff --git a/Amino.NET/Objects/MembershipInfo.cs b/Amino.NET/Objects/MembershipInfo.cs index 3f09a7e..f9f1c2b 100644 --- a/Amino.NET/Objects/MembershipInfo.cs +++ b/Amino.NET/Objects/MembershipInfo.cs @@ -4,9 +4,9 @@ namespace Amino.Objects { public class MembershipInfo { - [JsonPropertyName("accountMembershipEnabled")] public bool AccountMembershipEnabled { get; set; } - [JsonPropertyName("hasAnyAppleSubscription")] public bool HasAnyAppleSubscription { get; set; } - [JsonPropertyName("hasAnyAndroidSubscription")]public bool HasAnyAndroidSubscription { get; set; } + [JsonPropertyName("accountMembershipEnabled")] public bool? AccountMembershipEnabled { get; set; } + [JsonPropertyName("hasAnyAppleSubscription")] public bool? HasAnyAppleSubscription { get; set; } + [JsonPropertyName("hasAnyAndroidSubscription")]public bool? HasAnyAndroidSubscription { get; set; } [JsonPropertyName("membership")]public Membership Membership { get; set; } } diff --git a/Amino.NET/Objects/ParticipatedExperiments.cs b/Amino.NET/Objects/ParticipatedExperiments.cs index a55b6de..fd701bf 100644 --- a/Amino.NET/Objects/ParticipatedExperiments.cs +++ b/Amino.NET/Objects/ParticipatedExperiments.cs @@ -4,10 +4,10 @@ namespace Amino.Objects { public class ParticipatedExperiments { - [JsonPropertyName("chatMembersCommonChannel")] public int ChatMembersCommonChannel { get; set; } - [JsonPropertyName("couponPush")] public int CouponPush { get; set; } - [JsonPropertyName("communityMembersCommonChannel")] public int CommunityMembersCommonChannel { get; set; } - [JsonPropertyName("communityTabExp")] public int CommunityTabExp { get; set; } - [JsonPropertyName("userVectorCommunitySimilarityChannel")] public int UserVectorCommunitySimilarityChannel { get; set; } + [JsonPropertyName("chatMembersCommonChannel")] public int? ChatMembersCommonChannel { get; set; } + [JsonPropertyName("couponPush")] public int? CouponPush { get; set; } + [JsonPropertyName("communityMembersCommonChannel")] public int? CommunityMembersCommonChannel { get; set; } + [JsonPropertyName("communityTabExp")] public int? CommunityTabExp { get; set; } + [JsonPropertyName("userVectorCommunitySimilarityChannel")] public int? UserVectorCommunitySimilarityChannel { get; set; } } } diff --git a/Amino.NET/Objects/Post.cs b/Amino.NET/Objects/Post.cs index 294de47..cd5c412 100644 --- a/Amino.NET/Objects/Post.cs +++ b/Amino.NET/Objects/Post.cs @@ -4,34 +4,33 @@ namespace Amino.Objects { public class Post { - [JsonPropertyName("globalVotesCount")]public int GlobalVotesCount { get; set; } - [JsonPropertyName("globalVotedValue")]public int GlobalVotedValue { get; set; } - [JsonPropertyName("votedValue")]public int VotedValue { get; set; } - [JsonPropertyName("keywords")]public string Keywords { get; set; } - [JsonPropertyName("isGlobalAnnouncement")]public bool IsGlobalAnnouncement { get; set; } - [JsonPropertyName("style")]public int Style { get; set; } - [JsonPropertyName("totalQuizPlayCount")]public int TotalQuizPlayCount { get; set; } - [JsonPropertyName("title")]public string Title { get; set; } - [JsonPropertyName("contentRating")]public int ContentRating { get; set; } - [JsonPropertyName("content")]public string Content { get; set; } - [JsonPropertyName("needHidden")]public bool NeedHidden { get; set; } - [JsonPropertyName("guestVotesCount")]public int GuestVotesCount { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("status")]public int Status { get; set; } - [JsonPropertyName("globalCommentsCount")]public int GlobalCommentsCount { get; set; } - [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("totalPollVotesCount")]public int TotalPollVoteCount { get; set; } - [JsonPropertyName("blogId")]public string BlogId { get; set; } - [JsonPropertyName("shareURLFullPath")]public string ShareURLFullPath { get; set; } - [JsonPropertyName("viewCount")]public int ViewCount { get; set; } - [JsonPropertyName("votesCount")]public int VotesCount { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("endTime")]public string EndTime { get; set; } - [JsonPropertyName("commentsCount")]public int commentsCount { get; set; } - [JsonPropertyName("tipInfo")]public TipInfo TipInfo { get; set; } - [JsonPropertyName("author")]public GenericPostAuthor Author { get; set; } - [JsonPropertyName("extensions")]public PostExtensions Extensions { get; set; } - + [JsonPropertyName("globalVotesCount")] public int? GlobalVotesCount { get; set; } + [JsonPropertyName("globalVotedValue")] public int? GlobalVotedValue { get; set; } + [JsonPropertyName("votedValue")] public int? VotedValue { get; set; } + [JsonPropertyName("keywords")] public string Keywords { get; set; } + [JsonPropertyName("isGlobalAnnouncement")] public bool? IsGlobalAnnouncement { get; set; } + [JsonPropertyName("style")] public int? Style { get; set; } + [JsonPropertyName("totalQuizPlayCount")] public int? TotalQuizPlayCount { get; set; } + [JsonPropertyName("title")] public string Title { get; set; } + [JsonPropertyName("contentRating")] public int? ContentRating { get; set; } + [JsonPropertyName("content")] public string Content { get; set; } + [JsonPropertyName("needHidden")] public bool? NeedHidden { get; set; } + [JsonPropertyName("guestVotesCount")] public int? GuestVotesCount { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("globalCommentsCount")] public int? GlobalCommentsCount { get; set; } + [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } + [JsonPropertyName("totalPollVotesCount")] public int? TotalPollVoteCount { get; set; } + [JsonPropertyName("blogId")] public string BlogId { get; set; } + [JsonPropertyName("shareURLFullPath")] public string ShareURLFullPath { get; set; } + [JsonPropertyName("viewCount")] public int? ViewCount { get; set; } + [JsonPropertyName("votesCount")] public int? VotesCount { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("endTime")] public string EndTime { get; set; } + [JsonPropertyName("commentsCount")] public int? CommentsCount { get; set; } + [JsonPropertyName("tipInfo")] public TipInfo TipInfo { get; set; } + [JsonPropertyName("author")] public GenericPostAuthor Author { get; set; } + [JsonPropertyName("extensions")] public PostExtensions Extensions { get; set; } } } diff --git a/Amino.NET/Objects/PostExtensions.cs b/Amino.NET/Objects/PostExtensions.cs index 84a6454..07b3997 100644 --- a/Amino.NET/Objects/PostExtensions.cs +++ b/Amino.NET/Objects/PostExtensions.cs @@ -4,7 +4,7 @@ namespace Amino.Objects { public class PostExtensions { - [JsonPropertyName("commentEnabled")] public bool CommentsEnabled { get; set; } + [JsonPropertyName("commentEnabled")] public bool? CommentsEnabled { get; set; } [JsonPropertyName("author")] public string Author { get; set; } } } diff --git a/Amino.NET/Objects/SocketBase.cs b/Amino.NET/Objects/SocketBase.cs index f3de8f6..6fe4553 100644 --- a/Amino.NET/Objects/SocketBase.cs +++ b/Amino.NET/Objects/SocketBase.cs @@ -4,9 +4,9 @@ namespace Amino.Objects { public class SocketBase { - [JsonPropertyName("alertOption")] public int AlertOption { get; set; } - [JsonPropertyName("membershipStatus")] public int MembershipStatus { get; set; } - [JsonPropertyName("ndcId")] public int CommunityId { get; set; } + [JsonPropertyName("alertOption")] public int? AlertOption { get; set; } + [JsonPropertyName("membershipStatus")] public int? MembershipStatus { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } [JsonPropertyName("chatBubbleId")] public string ChatBubbleId { get; set; } } } diff --git a/Amino.NET/Objects/SpecialChatEvent.cs b/Amino.NET/Objects/SpecialChatEvent.cs index f4e8f9b..a095537 100644 --- a/Amino.NET/Objects/SpecialChatEvent.cs +++ b/Amino.NET/Objects/SpecialChatEvent.cs @@ -9,16 +9,17 @@ public class SpecialChatEvent public SocketBase SocketBase { get; set; } public string Json { get; set; } - [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } - [JsonPropertyName("messageId")]public string MessageId { get; set; } - [JsonPropertyName("uid")]public string ObjectId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } - [JsonPropertyName("author")]public GenericProfile Author { get; set; } + [JsonPropertyName("threadId")] public string ChatId { get; set; } + [JsonPropertyName("mediaType")] public int? MediaType { get; set; } + [JsonPropertyName("clientRefId")] public int? ClientRefId { get; set; } + [JsonPropertyName("messageId")] public string MessageId { get; set; } + [JsonPropertyName("uid")] public string ObjectId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } + [JsonPropertyName("isHidden")] public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")] public bool? IncludedInSummary { get; set; } + [JsonPropertyName("author")] public GenericProfile Author { get; set; } + } diff --git a/Amino.NET/Objects/Sticker.cs b/Amino.NET/Objects/Sticker.cs index 5748532..1508c84 100644 --- a/Amino.NET/Objects/Sticker.cs +++ b/Amino.NET/Objects/Sticker.cs @@ -4,17 +4,18 @@ namespace Amino.Objects { public class Sticker { - [JsonPropertyName("status")] public int Status { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } [JsonPropertyName("iconV2")] public string IconV2Url { get; set; } [JsonPropertyName("stickerId")] public string StickerId { get; set; } [JsonPropertyName("smallIconV2")] public string SmallIconV2Url { get; set; } [JsonPropertyName("smallIcon")] public string SmallIconUrl { get; set; } [JsonPropertyName("stickerCollectionId")] public string StickerCollectionId { get; set; } [JsonPropertyName("mediumIcon")] public string MediumIconUrl { get; set; } - [JsonPropertyName("usedCount")] public int UsedCount { get; set; } + [JsonPropertyName("usedCount")] public int? UsedCount { get; set; } [JsonPropertyName("mediumIconV2")] public string MediumIconV2Url { get; set; } [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } [JsonPropertyName("icon")] public string IconUrl { get; set; } [JsonPropertyName("stickerCollectionSummary")] StickerCollectionSummary StickerCollectionSummary { get; set; } + } } diff --git a/Amino.NET/Objects/StickerCollectionSummary.cs b/Amino.NET/Objects/StickerCollectionSummary.cs index 0eb5993..8eff388 100644 --- a/Amino.NET/Objects/StickerCollectionSummary.cs +++ b/Amino.NET/Objects/StickerCollectionSummary.cs @@ -4,15 +4,16 @@ namespace Amino.Objects { public class StickerCollectionSummary { - [JsonPropertyName("status")] public int Status { get; set; } - [JsonPropertyName("collectionType")] public int CollectionType { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("collectionType")] public int? CollectionType { get; set; } [JsonPropertyName("uid")] public string ObjectId { get; set; } [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } [JsonPropertyName("smallIcon")] public string SmallIconUrl { get; set; } - [JsonPropertyName("usedCount")] public int UsedCount { get; set; } + [JsonPropertyName("usedCount")] public int? UsedCount { get; set; } [JsonPropertyName("icon")] public string IconUrl { get; set; } [JsonPropertyName("name")] public string Name { get; set; } [JsonPropertyName("collectionId")] public string CollectionId { get; set; } [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + } } diff --git a/Amino.NET/Objects/StickerMessage.cs b/Amino.NET/Objects/StickerMessage.cs index f64469e..cca7874 100644 --- a/Amino.NET/Objects/StickerMessage.cs +++ b/Amino.NET/Objects/StickerMessage.cs @@ -8,18 +8,19 @@ public class StickerMessage public SocketBase SocketBase { get; set; } public string Json { get; set; } - [JsonPropertyName("mediaValue")]public string MediaValue { get; set; } - [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } - [JsonPropertyName("messageId")]public string MessageId { get; set; } - [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } - [JsonPropertyName("chatBubbleId")]public string ChatBubbleId { get; set; } - [JsonPropertyName("chatBubbleVersion")]public int ChatBubbleVersion { get; set; } - [JsonPropertyName("author")]public GenericProfile Author { get; set; } + [JsonPropertyName("mediaValue")] public string MediaValue { get; set; } + [JsonPropertyName("threadId")] public string ChatId { get; set; } + [JsonPropertyName("mediaType")] public int? MediaType { get; set; } + [JsonPropertyName("clientRefId")] public int? ClientRefId { get; set; } + [JsonPropertyName("messageId")] public string MessageId { get; set; } + [JsonPropertyName("uid")] public string UserId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("type")] public int? Type { get; set; } + [JsonPropertyName("isHidden")] public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")] public bool? IncludedInSummary { get; set; } + [JsonPropertyName("chatBubbleId")] public string ChatBubbleId { get; set; } + [JsonPropertyName("chatBubbleVersion")] public int? ChatBubbleVersion { get; set; } + [JsonPropertyName("author")] public GenericProfile Author { get; set; } + } } diff --git a/Amino.NET/Objects/TipInfo.cs b/Amino.NET/Objects/TipInfo.cs index 7aba6e9..29fd34b 100644 --- a/Amino.NET/Objects/TipInfo.cs +++ b/Amino.NET/Objects/TipInfo.cs @@ -4,10 +4,11 @@ namespace Amino.Objects { public class TipInfo { - [JsonPropertyName("tipMaxCoin")] public int TipMaxCoin { get; set; } - [JsonPropertyName("tippersCount")] public int TipperCount { get; set; } - [JsonPropertyName("tippable")] public bool Tippable { get; set; } - [JsonPropertyName("tipMinCoin")] public int TipMinCoin { get; set; } - [JsonPropertyName("tippedCoins")] public int TippedCoins { get; set; } + [JsonPropertyName("tipMaxCoin")] public int? TipMaxCoin { get; set; } + [JsonPropertyName("tippersCount")] public int? TipperCount { get; set; } + [JsonPropertyName("tippable")] public bool? Tippable { get; set; } + [JsonPropertyName("tipMinCoin")] public int? TipMinCoin { get; set; } + [JsonPropertyName("tippedCoins")] public int? TippedCoins { get; set; } + } } diff --git a/Amino.NET/Objects/UserAccountAdvancedSettings.cs b/Amino.NET/Objects/UserAccountAdvancedSettings.cs index 3236242..376bc1a 100644 --- a/Amino.NET/Objects/UserAccountAdvancedSettings.cs +++ b/Amino.NET/Objects/UserAccountAdvancedSettings.cs @@ -4,6 +4,6 @@ namespace Amino.Objects { public class UserAccountAdvancedSettings { - [JsonPropertyName("analyticsEnabled")] public int AnalyticsEnabled { get; set; } + [JsonPropertyName("analyticsEnabled")] public int? AnalyticsEnabled { get; set; } } } diff --git a/Amino.NET/Objects/UserAccountExtensions.cs b/Amino.NET/Objects/UserAccountExtensions.cs index d399595..631f7fc 100644 --- a/Amino.NET/Objects/UserAccountExtensions.cs +++ b/Amino.NET/Objects/UserAccountExtensions.cs @@ -5,12 +5,13 @@ namespace Amino.Objects public class UserAccountExtensions { [JsonPropertyName("contentLanguage")] public string ContentLanguage { get; set; } - [JsonPropertyName("adsFlags")] public int AdsFlags { get; set; } - [JsonPropertyName("adsLevel")] public int AdsLevel { get; set; } - [JsonPropertyName("mediaLabAdsMigrationJuly2018")] public bool MediaLabAdsMigrationJuly2018 { get; set; } + [JsonPropertyName("adsFlags")] public int? AdsFlags { get; set; } + [JsonPropertyName("adsLevel")] public int? AdsLevel { get; set; } + [JsonPropertyName("mediaLabAdsMigrationJuly2018")] public bool? MediaLabAdsMigrationJuly2018 { get; set; } [JsonPropertyName("avatarFrameId")] public string AvatarFrameId { get; set; } - [JsonPropertyName("mediaLabAdsMigrationAugust2020")] public bool MediaLabAdsMigrationAugust2020 { get; set; } - [JsonPropertyName("adsEnabled")] public bool AdsEnabled { get; set; } - [JsonPropertyName("deviceInfo")] DeviceInfo DeviceInfo { get; set; } + [JsonPropertyName("mediaLabAdsMigrationAugust2020")] public bool? MediaLabAdsMigrationAugust2020 { get; set; } + [JsonPropertyName("adsEnabled")] public bool? AdsEnabled { get; set; } + [JsonPropertyName("deviceInfo")] public DeviceInfo DeviceInfo { get; set; } + } } diff --git a/Amino.NET/Objects/UserAchievements.cs b/Amino.NET/Objects/UserAchievements.cs index b8dcbd5..acbea9e 100644 --- a/Amino.NET/Objects/UserAchievements.cs +++ b/Amino.NET/Objects/UserAchievements.cs @@ -4,7 +4,7 @@ namespace Amino.Objects { public class UserAchievements { - [JsonPropertyName("numberOfMembersCount")]public int NumberOfMembersCount { get; set; } - [JsonPropertyName("numberOfPostsCreated")]public int NumberOfPostsCreated { get; set; } + [JsonPropertyName("numberOfMembersCount")]public int? NumberOfMembersCount { get; set; } + [JsonPropertyName("numberOfPostsCreated")]public int? NumberOfPostsCreated { get; set; } } } diff --git a/Amino.NET/Objects/UserCheckins.cs b/Amino.NET/Objects/UserCheckins.cs index 11e6a2e..27bce50 100644 --- a/Amino.NET/Objects/UserCheckins.cs +++ b/Amino.NET/Objects/UserCheckins.cs @@ -5,9 +5,9 @@ namespace Amino.Objects public class UserCheckins { - [JsonPropertyName("hasAnyCheckIn")]public bool HasAnyCheckIn { get; set; } - [JsonPropertyName("consecutiveCheckInDays")]public int ConsecutiveCheckInDays { get; set; } - [JsonPropertyName("brokenStreaks")]public int BrokenStreaks { get; set; } + [JsonPropertyName("hasAnyCheckIn")]public bool? HasAnyCheckIn { get; set; } + [JsonPropertyName("consecutiveCheckInDays")]public int? ConsecutiveCheckInDays { get; set; } + [JsonPropertyName("brokenStreaks")]public int? BrokenStreaks { get; set; } } } diff --git a/Amino.NET/Objects/UserProfile.cs b/Amino.NET/Objects/UserProfile.cs index 9732fac..ebd6864 100644 --- a/Amino.NET/Objects/UserProfile.cs +++ b/Amino.NET/Objects/UserProfile.cs @@ -6,37 +6,38 @@ namespace Amino.Objects public class UserProfile { - [JsonPropertyName("status")]public int Status { get; set; } - [JsonPropertyName("moodSticker")]public string MoodSticker { get; set; } - [JsonPropertyName("itemsCount")]public int ItemsCount { get; set; } - [JsonPropertyName("consecutiveCheckInDays")]public int ConsecutiveCheckInDays { get; set; } - [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("followingStatus")]public int FollowingStatus { get; set; } - [JsonPropertyName("onlineStatus")]public int OnlineStatus { get; set; } - [JsonPropertyName("accountMembershipStatus")]public int AccountMembershipStatus { get; set; } - [JsonPropertyName("isGlobal")]public bool IsGlobal { get; set; } - [JsonPropertyName("reputation")]public int Reputation { get; set; } - [JsonPropertyName("postsCount")]public int PostsCount { get; set; } - [JsonPropertyName("membersCount")]public int MembersCount { get; set; } - [JsonPropertyName("nickname")]public string Nickname { get; set; } - [JsonPropertyName("icon")]public string IconUrl { get; set; } - [JsonPropertyName("isNicknameVerified")]public bool IsNicknameVerified { get; set; } - [JsonPropertyName("level")]public int Level { get; set; } - [JsonPropertyName("notificationSubscriptionStatus")]public int notificationSubscriptionStatus { get; set; } - [JsonPropertyName("pushEnabled")]public bool PushEnabled { get; set; } - [JsonPropertyName("membershipStatus")]public int MembershipStatus { get; set; } - [JsonPropertyName("content")]public string Content { get; set; } - [JsonPropertyName("joinedCount")]public int JoinedCount { get; set; } - [JsonPropertyName("role")]public int Role { get; set; } - [JsonPropertyName("commentsCount")]public int CommentsCount { get; set; } - [JsonPropertyName("aminoId")]public string AminoId { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("storiesCount")]public int StoriesCount { get; set; } - [JsonPropertyName("blogsCount")]public int BlogsCount { get; set; } - [JsonPropertyName("extensions")]public GenericProfileExtensions Extensions { get; set; } - [JsonPropertyName("influencerInfo")]public InfluencerInfo InfluencerInfo { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("moodSticker")] public string MoodSticker { get; set; } + [JsonPropertyName("itemsCount")] public int? ItemsCount { get; set; } + [JsonPropertyName("consecutiveCheckInDays")] public int? ConsecutiveCheckInDays { get; set; } + [JsonPropertyName("uid")] public string UserId { get; set; } + [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } + [JsonPropertyName("followingStatus")] public int? FollowingStatus { get; set; } + [JsonPropertyName("onlineStatus")] public int? OnlineStatus { get; set; } + [JsonPropertyName("accountMembershipStatus")] public int? AccountMembershipStatus { get; set; } + [JsonPropertyName("isGlobal")] public bool? IsGlobal { get; set; } + [JsonPropertyName("reputation")] public int? Reputation { get; set; } + [JsonPropertyName("postsCount")] public int? PostsCount { get; set; } + [JsonPropertyName("membersCount")] public int? MembersCount { get; set; } + [JsonPropertyName("nickname")] public string Nickname { get; set; } + [JsonPropertyName("icon")] public string IconUrl { get; set; } + [JsonPropertyName("isNicknameVerified")] public bool? IsNicknameVerified { get; set; } + [JsonPropertyName("level")] public int? Level { get; set; } + [JsonPropertyName("notificationSubscriptionStatus")] public int? NotificationSubscriptionStatus { get; set; } + [JsonPropertyName("pushEnabled")] public bool? PushEnabled { get; set; } + [JsonPropertyName("membershipStatus")] public int? MembershipStatus { get; set; } + [JsonPropertyName("content")] public string Content { get; set; } + [JsonPropertyName("joinedCount")] public int? JoinedCount { get; set; } + [JsonPropertyName("role")] public int? Role { get; set; } + [JsonPropertyName("commentsCount")] public int? CommentsCount { get; set; } + [JsonPropertyName("aminoId")] public string AminoId { get; set; } + [JsonPropertyName("ndcId")] public int? CommunityId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("storiesCount")] public int? StoriesCount { get; set; } + [JsonPropertyName("blogsCount")] public int? BlogsCount { get; set; } + [JsonPropertyName("extensions")] public GenericProfileExtensions Extensions { get; set; } + [JsonPropertyName("influencerInfo")] public InfluencerInfo InfluencerInfo { get; set; } [JsonPropertyName("fanClubList")] public List FanClubList { get; set; } + } } \ No newline at end of file diff --git a/Amino.NET/Objects/UserVisitor.cs b/Amino.NET/Objects/UserVisitor.cs index bd6d687..df5bf94 100644 --- a/Amino.NET/Objects/UserVisitor.cs +++ b/Amino.NET/Objects/UserVisitor.cs @@ -4,10 +4,10 @@ namespace Amino.Objects { public class UserVisitor { - [JsonPropertyName("visitorsCount")] public int VisitorsCount { get; set; } - [JsonPropertyName("capacity")] public int Capacity { get; set; } - [JsonPropertyName("visitorPrivacyMode")] public int VisitorPrivacyMode { get; set; } - [JsonPropertyName("ownerPrivacyMode")]public int OwnerPrivacyMode { get; set; } + [JsonPropertyName("visitorsCount")] public int? VisitorsCount { get; set; } + [JsonPropertyName("capacity")] public int? Capacity { get; set; } + [JsonPropertyName("visitorPrivacyMode")] public int? VisitorPrivacyMode { get; set; } + [JsonPropertyName("ownerPrivacyMode")]public int? OwnerPrivacyMode { get; set; } [JsonPropertyName("visitTime")]public string VisitTime { get; set; } [JsonPropertyName("profile")]public UserProfile Profile { get; private set; } } diff --git a/Amino.NET/Objects/ViewMode.cs b/Amino.NET/Objects/ViewMode.cs index 2385332..4f0d971 100644 --- a/Amino.NET/Objects/ViewMode.cs +++ b/Amino.NET/Objects/ViewMode.cs @@ -8,14 +8,14 @@ public class ViewMode public SocketBase SocketBase { get; set; } public string Json { get; set; } [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } + [JsonPropertyName("mediaType")]public int? MediaType { get; set; } + [JsonPropertyName("clientRefId")]public int? ClientRefId { get; set; } [JsonPropertyName("messageId")]public string MessageId { get; set; } [JsonPropertyName("uid")]public string ObjectId { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } + [JsonPropertyName("type")]public int? Type { get; set; } + [JsonPropertyName("isHidden")]public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")]public bool? IncludedInSummary { get; set; } [JsonPropertyName("author")]public GenericProfile Author { get; set; } } } diff --git a/Amino.NET/Objects/VoiceMessage.cs b/Amino.NET/Objects/VoiceMessage.cs index 2b1b64e..5dc5e3d 100644 --- a/Amino.NET/Objects/VoiceMessage.cs +++ b/Amino.NET/Objects/VoiceMessage.cs @@ -10,14 +10,14 @@ public class VoiceMessage [JsonPropertyName("mediaValue")]public string MediaValue { get; set; } [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int mediaType { get; set; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } + [JsonPropertyName("mediaType")]public int? mediaType { get; set; } + [JsonPropertyName("clientRefId")]public int? ClientRefId { get; set; } [JsonPropertyName("messageId")]public string MessageId { get; set; } [JsonPropertyName("uid")]public string ObjectId { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } + [JsonPropertyName("type")]public int? Type { get; set; } + [JsonPropertyName("isHidden")]public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")]public bool? IncludedInSummary { get; set; } [JsonPropertyName("author")]public GenericProfile Author { get; set; } [JsonPropertyName("extensions")]public VoiceMessageExtensions Extensions { get; set; } } diff --git a/Amino.NET/Objects/VoiceMessageExtensions.cs b/Amino.NET/Objects/VoiceMessageExtensions.cs index e6f1696..6149c77 100644 --- a/Amino.NET/Objects/VoiceMessageExtensions.cs +++ b/Amino.NET/Objects/VoiceMessageExtensions.cs @@ -4,6 +4,6 @@ namespace Amino.Objects { public class VoiceMessageExtensions { - [JsonPropertyName("duration")] public float Duration { get; set; } + [JsonPropertyName("duration")] public float? Duration { get; set; } } } diff --git a/Amino.NET/Objects/WalletInfo.cs b/Amino.NET/Objects/WalletInfo.cs index 1c950d3..7938568 100644 --- a/Amino.NET/Objects/WalletInfo.cs +++ b/Amino.NET/Objects/WalletInfo.cs @@ -6,13 +6,13 @@ namespace Amino.Objects // ROOT JSON ELEMENT: wallet public class WalletInfo { - [JsonPropertyName("totalCoinsFloat")]public float TotalCoinsFloat { get; set; } - [JsonPropertyName("adsEnabled")]public bool AdsEnabled { get; set; } + [JsonPropertyName("totalCoinsFloat")]public float? TotalCoinsFloat { get; set; } + [JsonPropertyName("adsEnabled")]public bool? AdsEnabled { get; set; } [JsonPropertyName("adsVideoStats")]public string AdsVideoStats { get; set; } [JsonPropertyName("adsFlag")]public string AdsFlag { get; set; } - [JsonPropertyName("totalCoins")]public int TotalCoins { get; set; } - [JsonPropertyName("businessCoinsEnabled")]public bool BusinessCoinsEnabled { get; set; } - [JsonPropertyName("totalBusinessCoins")]public int TotalBusinessCoins { get; set; } - [JsonPropertyName("totalBusinessCoinsFloat")]public float TotalBusinessCoinsFloat { get; set; } + [JsonPropertyName("totalCoins")]public int? TotalCoins { get; set; } + [JsonPropertyName("businessCoinsEnabled")]public bool? BusinessCoinsEnabled { get; set; } + [JsonPropertyName("totalBusinessCoins")]public int? TotalBusinessCoins { get; set; } + [JsonPropertyName("totalBusinessCoinsFloat")]public float? TotalBusinessCoinsFloat { get; set; } } } diff --git a/Amino.NET/Objects/Wiki.cs b/Amino.NET/Objects/Wiki.cs index b384b45..0b1757d 100644 --- a/Amino.NET/Objects/Wiki.cs +++ b/Amino.NET/Objects/Wiki.cs @@ -5,23 +5,23 @@ namespace Amino.Objects public class Wiki { [JsonPropertyName("itemId")]public string ItemId { get; set; } - [JsonPropertyName("status")]public int Status { get; set; } - [JsonPropertyName("style")]public int Style { get; set; } - [JsonPropertyName("globalCommentsCount")]public int GlobalCommentsCount { get; set; } + [JsonPropertyName("status")]public int? Status { get; set; } + [JsonPropertyName("style")]public int? Style { get; set; } + [JsonPropertyName("globalCommentsCount")]public int? GlobalCommentsCount { get; set; } [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("votedValue")]public int VotedValue { get; set; } - [JsonPropertyName("globalVotesCount")]public int GlobalVotesCount { get; set; } - [JsonPropertyName("globalVotedValue")]public int GlobalVotedValue { get; set; } - [JsonPropertyName("contentRating")]public int ContentRating { get; set; } + [JsonPropertyName("votedValue")]public int? VotedValue { get; set; } + [JsonPropertyName("globalVotesCount")]public int? GlobalVotesCount { get; set; } + [JsonPropertyName("globalVotedValue")]public int? GlobalVotedValue { get; set; } + [JsonPropertyName("contentRating")]public int? ContentRating { get; set; } [JsonPropertyName("label")]public string Label { get; set; } [JsonPropertyName("content")]public string Content { get; set; } [JsonPropertyName("keywords")]public string Keywords { get; set; } - [JsonPropertyName("needHidden")]public bool NeedHidden { get; set; } - [JsonPropertyName("guestVotesCount")]public int GuestVotesCount { get; set; } - [JsonPropertyName("votesCount")]public int VotesCount { get; set; } - [JsonPropertyName("ndcId")]public int CommunityId { get; set; } + [JsonPropertyName("needHidden")]public bool? NeedHidden { get; set; } + [JsonPropertyName("guestVotesCount")]public int? GuestVotesCount { get; set; } + [JsonPropertyName("votesCount")]public int? VotesCount { get; set; } + [JsonPropertyName("ndcId")]public int? CommunityId { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("commentsCount")]public int CommentsCount { get; set; } + [JsonPropertyName("commentsCount")]public int? CommentsCount { get; set; } [JsonPropertyName("author")]public GenericProfile Author { get; set; } } } diff --git a/Amino.NET/Objects/YouTubeMessage.cs b/Amino.NET/Objects/YouTubeMessage.cs index c2edacd..3f5a34c 100644 --- a/Amino.NET/Objects/YouTubeMessage.cs +++ b/Amino.NET/Objects/YouTubeMessage.cs @@ -10,17 +10,17 @@ public class YouTubeMessage [JsonPropertyName("mediaValue")]public string MediaValue { get; set; } [JsonPropertyName("threadId")]public string ChatId { get; set; } - [JsonPropertyName("mediaType")]public int MediaType { get; set; } + [JsonPropertyName("mediaType")]public int? MediaType { get; set; } [JsonPropertyName("content")]public string VideoTitle { get; } - [JsonPropertyName("clientRefId")]public int ClientRefId { get; set; } + [JsonPropertyName("clientRefId")]public int? ClientRefId { get; set; } [JsonPropertyName("messageId")]public string MessageId { get; set; } [JsonPropertyName("uid")]public string ObjectId { get; set; } [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("type")]public int Type { get; set; } - [JsonPropertyName("isHidden")]public bool IsHidden { get; set; } - [JsonPropertyName("includedInSummary")]public bool IncludedInSummary { get; set; } + [JsonPropertyName("type")]public int? Type { get; set; } + [JsonPropertyName("isHidden")]public bool? IsHidden { get; set; } + [JsonPropertyName("includedInSummary")]public bool? IncludedInSummary { get; set; } [JsonPropertyName("chatBubbleId")]public string ChatBubbleId { get; set; } - [JsonPropertyName("chatBubbleVersion")]public int ChatBubbleVersion { get; set; } + [JsonPropertyName("chatBubbleVersion")]public int? ChatBubbleVersion { get; set; } [JsonPropertyName("author")]public GenericProfile Author { get; set; } } } diff --git a/Amino.NET/Objects/chatMember.cs b/Amino.NET/Objects/chatMember.cs index 0436ade..180cbc8 100644 --- a/Amino.NET/Objects/chatMember.cs +++ b/Amino.NET/Objects/chatMember.cs @@ -5,14 +5,14 @@ namespace Amino.Objects public class ChatMember { public string Json { get; set; } // NEEDS TO BE ADDED AFTER - [JsonPropertyName("status")]public int Status { get; set; } - [JsonPropertyName("isNicknameVerified")]public bool IsNicknameVerified { get; set; } + [JsonPropertyName("status")]public int? Status { get; set; } + [JsonPropertyName("isNicknameVerified")]public bool? IsNicknameVerified { get; set; } [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("level")]public int Level { get; set; } - [JsonPropertyName("accountMembershipStatus")]public int AccountMembershipStatus { get; set; } - [JsonPropertyName("membershipStatus")]public int MembershipStatus { get; set; } - [JsonPropertyName("reputation")]public int Reputation { get; set; } - [JsonPropertyName("role")]public int Role { get; set; } + [JsonPropertyName("level")]public int? Level { get; set; } + [JsonPropertyName("accountMembershipStatus")]public int? AccountMembershipStatus { get; set; } + [JsonPropertyName("membershipStatus")]public int? MembershipStatus { get; set; } + [JsonPropertyName("reputation")]public int? Reputation { get; set; } + [JsonPropertyName("role")]public int? Role { get; set; } [JsonPropertyName("nickname")]public string Nickname { get; set; } [JsonPropertyName("icon")]public string IconUrl { get; set; } diff --git a/Amino.NET/Objects/eventLog.cs b/Amino.NET/Objects/eventLog.cs index a52b6c5..1377738 100644 --- a/Amino.NET/Objects/eventLog.cs +++ b/Amino.NET/Objects/eventLog.cs @@ -5,18 +5,19 @@ namespace Amino.Objects { public class EventLog { - - [JsonPropertyName("globalStrategyInfo")]public string GlobalStrategyInfo { get; set; } - [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("contentLanguage")]public string ContentLanguage { get; set; } - [JsonPropertyName("signUpStrategy")]public int SignUpStrategy { get; set; } - [JsonPropertyName("landingOption")]public int LandingOption { get; set; } - [JsonPropertyName("needsBirthDateUpdate")]public bool NeedsBirthDateUpdate { get; set; } - [JsonPropertyName("interestPickerStyle")]public int InterestPickerStyle { get; set; } - [JsonPropertyName("showStoreBadge")]public bool ShowStoreBadge { get; set; } - [JsonPropertyName("auid")]public string AUID { get; set; } - [JsonPropertyName("needTriggerInterestPicker")]public bool NeedTriggerInterestPicker { get; set; } - [JsonPropertyName("participatedExperiments")]public ParticipatedExperiments ParticipatedExperiments { get; set; } - + + [JsonPropertyName("globalStrategyInfo")] public string GlobalStrategyInfo { get; set; } + [JsonPropertyName("uid")] public string UserId { get; set; } + [JsonPropertyName("contentLanguage")] public string ContentLanguage { get; set; } + [JsonPropertyName("signUpStrategy")] public int? SignUpStrategy { get; set; } + [JsonPropertyName("landingOption")] public int? LandingOption { get; set; } + [JsonPropertyName("needsBirthDateUpdate")] public bool? NeedsBirthDateUpdate { get; set; } + [JsonPropertyName("interestPickerStyle")] public int? InterestPickerStyle { get; set; } + [JsonPropertyName("showStoreBadge")] public bool? ShowStoreBadge { get; set; } + [JsonPropertyName("auid")] public string AUID { get; set; } + [JsonPropertyName("needTriggerInterestPicker")] public bool? NeedTriggerInterestPicker { get; set; } + [JsonPropertyName("participatedExperiments")] public ParticipatedExperiments ParticipatedExperiments { get; set; } + + } } diff --git a/Amino.NET/Objects/globalProfile.cs b/Amino.NET/Objects/globalProfile.cs index 6a78324..4cf15f7 100644 --- a/Amino.NET/Objects/globalProfile.cs +++ b/Amino.NET/Objects/globalProfile.cs @@ -6,37 +6,38 @@ namespace Amino.Objects // ROOT JSON ELEMENT: userProfile public class GlobalProfile { - [JsonPropertyName("status")]public int Status { get; set; } - [JsonPropertyName("itemsCount")]public int ItemsCount { get; set; } - [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("followingStatus")]public int FollowingStatus { get; set; } - [JsonPropertyName("onlineStatus")]public int OnlineStatus { get; set; } - [JsonPropertyName("accountMembershipStatus")]public int AccountMembershipStatus { get; set; } - [JsonPropertyName("isGlobal")]public bool IsGlobal { get; set; } - [JsonPropertyName("avatarFrameId")]public string AvatarFrameId { get; set; } - [JsonPropertyName("reputation")]public int Reputation { get; set; } - [JsonPropertyName("postsCount")]public int PostsCount { get; set; } - [JsonPropertyName("membersCount")]public int MemberCount { get; set; } - [JsonPropertyName("nickname")]public string Nickname { get; set; } - [JsonPropertyName("icon")]public string IconUrl { get; set; } - [JsonPropertyName("isNicknameVerified")]public bool IsNicknameVerified { get; set; } - [JsonPropertyName("visitorsCount")]public int VisitorsCount { get; set; } - [JsonPropertyName("level")]public int Level { get; set; } - [JsonPropertyName("notificationSubscriptionStatus")]public int NotificationSubscriptionStatus { get; set; } - [JsonPropertyName("pushEnabled")]public bool PushEnabled { get; set; } - [JsonPropertyName("membershipStatus")]public int MembershipStatus { get; set; } - [JsonPropertyName("content")]public string Content { get; set; } - [JsonPropertyName("joinedCount")]public int JoinedCount { get; set; } - [JsonPropertyName("role")]public int Role { get; set; } - [JsonPropertyName("commentsCount")]public int CommentsCount { get; set; } - [JsonPropertyName("aminoId")]public string AminoId { get; set; } - [JsonPropertyName("ndcId")]public string CommunityId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("visitPrivacy")]public int VisitPrivacy { get; set; } - [JsonPropertyName("storiesCount")]public int StoriesCount { get; set; } - [JsonPropertyName("blogsCount")]public int BlogsCount { get; set; } - [JsonPropertyName("avatarFrame")]public GenericAvatarFrame UserProfileFrame { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("itemsCount")] public int? ItemsCount { get; set; } + [JsonPropertyName("uid")] public string UserId { get; set; } + [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } + [JsonPropertyName("followingStatus")] public int? FollowingStatus { get; set; } + [JsonPropertyName("onlineStatus")] public int? OnlineStatus { get; set; } + [JsonPropertyName("accountMembershipStatus")] public int? AccountMembershipStatus { get; set; } + [JsonPropertyName("isGlobal")] public bool? IsGlobal { get; set; } + [JsonPropertyName("avatarFrameId")] public string AvatarFrameId { get; set; } + [JsonPropertyName("reputation")] public int? Reputation { get; set; } + [JsonPropertyName("postsCount")] public int? PostsCount { get; set; } + [JsonPropertyName("membersCount")] public int? MemberCount { get; set; } + [JsonPropertyName("nickname")] public string Nickname { get; set; } + [JsonPropertyName("icon")] public string IconUrl { get; set; } + [JsonPropertyName("isNicknameVerified")] public bool? IsNicknameVerified { get; set; } + [JsonPropertyName("visitorsCount")] public int? VisitorsCount { get; set; } + [JsonPropertyName("level")] public int? Level { get; set; } + [JsonPropertyName("notificationSubscriptionStatus")] public int? NotificationSubscriptionStatus { get; set; } + [JsonPropertyName("pushEnabled")] public bool? PushEnabled { get; set; } + [JsonPropertyName("membershipStatus")] public int? MembershipStatus { get; set; } + [JsonPropertyName("content")] public string Content { get; set; } + [JsonPropertyName("joinedCount")] public int? JoinedCount { get; set; } + [JsonPropertyName("role")] public int? Role { get; set; } + [JsonPropertyName("commentsCount")] public int? CommentsCount { get; set; } + [JsonPropertyName("aminoId")] public string AminoId { get; set; } + [JsonPropertyName("ndcId")] public string CommunityId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("visitPrivacy")] public int? VisitPrivacy { get; set; } + [JsonPropertyName("storiesCount")] public int? StoriesCount { get; set; } + [JsonPropertyName("blogsCount")] public int? BlogsCount { get; set; } + [JsonPropertyName("avatarFrame")] public GenericAvatarFrame UserProfileFrame { get; set; } + } diff --git a/Amino.NET/Objects/userAccount.cs b/Amino.NET/Objects/userAccount.cs index 80306e7..151436e 100644 --- a/Amino.NET/Objects/userAccount.cs +++ b/Amino.NET/Objects/userAccount.cs @@ -5,27 +5,28 @@ namespace Amino.Objects // ROOT JSON ELEMENT: account public class UserAccount { - [JsonPropertyName("username")]public string Username { get; set; } - [JsonPropertyName("status")]public int Status { get; set; } - [JsonPropertyName("uid")]public string UserId { get; set; } - [JsonPropertyName("modifiedTime")]public string ModifiedTime { get; set; } - [JsonPropertyName("twitterID")]public string TwitterId { get; set; } - [JsonPropertyName("activation")]public int Activation { get; set; } - [JsonPropertyName("phoneNumberActivation")]public int PhoneNumberActivation { get; set; } - [JsonPropertyName("emailActivation")]public int EmailActivation { get; set; } - [JsonPropertyName("appleID")]public string AppleId { get; set; } - [JsonPropertyName("facebookID")]public string FacebookId { get; set; } - [JsonPropertyName("nickname")]public string Nickname { get; set; } - [JsonPropertyName("googleID")]public string GoogleId { get; set; } - [JsonPropertyName("icon")]public string IconUrl { get; set; } - [JsonPropertyName("securityLevel")]public int SecurityLevel { get; set; } - [JsonPropertyName("phoneNumber")]public string PhoneNumber { get; set; } - [JsonPropertyName("role")]public int Role { get; set; } - [JsonPropertyName("aminoIdEditable")]public bool AminoIdEditable { get; set; } - [JsonPropertyName("aminoId")]public string AminoId { get; set; } - [JsonPropertyName("createdTime")]public string CreatedTime { get; set; } - [JsonPropertyName("email")]public string Email { get; set; } - [JsonPropertyName("advancedSettings")]public UserAccountAdvancedSettings AdvancedSettings { get; set; } - [JsonPropertyName("extensions")]public UserAccountExtensions Extensions { get; set; } + [JsonPropertyName("username")] public string Username { get; set; } + [JsonPropertyName("status")] public int? Status { get; set; } + [JsonPropertyName("uid")] public string UserId { get; set; } + [JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; } + [JsonPropertyName("twitterID")] public string TwitterId { get; set; } + [JsonPropertyName("activation")] public int? Activation { get; set; } + [JsonPropertyName("phoneNumberActivation")] public int? PhoneNumberActivation { get; set; } + [JsonPropertyName("emailActivation")] public int? EmailActivation { get; set; } + [JsonPropertyName("appleID")] public string AppleId { get; set; } + [JsonPropertyName("facebookID")] public string FacebookId { get; set; } + [JsonPropertyName("nickname")] public string Nickname { get; set; } + [JsonPropertyName("googleID")] public string GoogleId { get; set; } + [JsonPropertyName("icon")] public string IconUrl { get; set; } + [JsonPropertyName("securityLevel")] public int? SecurityLevel { get; set; } + [JsonPropertyName("phoneNumber")] public string PhoneNumber { get; set; } + [JsonPropertyName("role")] public int? Role { get; set; } + [JsonPropertyName("aminoIdEditable")] public bool? AminoIdEditable { get; set; } + [JsonPropertyName("aminoId")] public string AminoId { get; set; } + [JsonPropertyName("createdTime")] public string CreatedTime { get; set; } + [JsonPropertyName("email")] public string Email { get; set; } + [JsonPropertyName("advancedSettings")] public UserAccountAdvancedSettings AdvancedSettings { get; set; } + [JsonPropertyName("extensions")] public UserAccountExtensions Extensions { get; set; } + } }