Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tempoary fix to objects #42

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Amino.NET/Objects/AdditionalItemBenefits.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ namespace Amino.Objects
{
public class AdditionalItemBenefits
{
[JsonPropertyName("firstMonthFreeAminoPlusMembership")] public bool FirstMonthFreeAminoPlus { get; set; }
[JsonPropertyName("firstMonthFreeAminoPlusMembership")] public bool? FirstMonthFreeAminoPlus { get; set; }
}
}
27 changes: 14 additions & 13 deletions Amino.NET/Objects/AdvancedCommunityInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace Amino.Objects
Expand All @@ -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<GenericProfile> CommunityHeadList { get; set; }
Expand Down
12 changes: 6 additions & 6 deletions Amino.NET/Objects/AvatarFrame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion Amino.NET/Objects/AvatarFrameConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}
28 changes: 14 additions & 14 deletions Amino.NET/Objects/Blog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
}
22 changes: 11 additions & 11 deletions Amino.NET/Objects/Chat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<GenericChatMember> ChatMemberSummary { get; set; }
Expand Down
6 changes: 3 additions & 3 deletions Amino.NET/Objects/ChatAnnouncement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand Down
8 changes: 4 additions & 4 deletions Amino.NET/Objects/ChatEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

}
}
2 changes: 1 addition & 1 deletion Amino.NET/Objects/ChatExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
Expand Down
8 changes: 4 additions & 4 deletions Amino.NET/Objects/ChatTip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down
2 changes: 1 addition & 1 deletion Amino.NET/Objects/ChatTipExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ namespace Amino.Objects
{
public class ChatTipExtensions
{
[JsonPropertyName("tippingCoins")] public int TippedCoins { get; set; }
[JsonPropertyName("tippingCoins")] public int? TippedCoins { get; set; }
}
}
10 changes: 5 additions & 5 deletions Amino.NET/Objects/ChatTipToggle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
}
Expand Down
Loading
Loading