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

Continue/continue acm class #46

Merged
merged 4 commits into from
Jun 3, 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
467 changes: 467 additions & 0 deletions Amino.NET/ACMClient.cs

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions Amino.NET/Objects/AdvancedCommunityInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,9 @@ public class AdvancedCommunityInfo
[JsonPropertyName("agent")] public GenericProfile Agent { get; set; }
[JsonPropertyName("themePack")] public CommunityThemePack ThemePack { get; set; }
[JsonPropertyName("advancedSettings")] public CommunityAdvancedSettings AdvancedSettings { get; set; }

[JsonPropertyName("userAddedTopicList")] public List<Topic> UserAddedTopicList { get; set; }
[JsonPropertyName("mediaList")] public List<List<string>> MediaList { get; set; }

}
}
24 changes: 24 additions & 0 deletions Amino.NET/Objects/BlogCategory.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class BlogCategory
{
[JsonPropertyName("status")] public int Status { get; set; }
[JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; }
[JsonPropertyName("icon")] public string IconUrl { get; set; }
[JsonPropertyName("style")] public int Style { get; set; }
[JsonPropertyName("label")] public string Label { get; set; }
[JsonPropertyName("content")] public string Content { get; set; }
[JsonPropertyName("createdTime")] public string CreatedTime { get; set; }
[JsonPropertyName("position")] public int Position { get; set; }
[JsonPropertyName("type")] public int Type { get; set; }
[JsonPropertyName("categoryId")] public string CategoryId { get; set; }
[JsonPropertyName("blogsCount")] public int BlogsCount { get; set; }
}
}
19 changes: 19 additions & 0 deletions Amino.NET/Objects/CommunityStats.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class CommunityStats
{
[JsonPropertyName("dailyActiveMembers")] public int DailyActiveMembers { get; set; }
[JsonPropertyName("monthlyActiveMembers")] public int MonthlyActiveMembers { get; set; }
[JsonPropertyName("totalTimeSpent")] public int TotalTimeSpent { get; set; }
[JsonPropertyName("totalPostsCreated")] public int TotalPostsCreated { get; set; }
[JsonPropertyName("newMembersToday")] public int NewMembersToday { get; set; }
[JsonPropertyName("totalMembers")] public int TotalMembers { get; set; }
}
}
1 change: 1 addition & 0 deletions Amino.NET/Objects/GenericProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class GenericProfile // ROOT JSON ELEMENT: userProfile
[JsonPropertyName("nickname")]public string Nickname { get; set; }
[JsonPropertyName("icon")]public string IconUrl { get; set; }
[JsonPropertyName("ndcId")]public int? CommunityId { get; set; }
[JsonPropertyName("role")] public int? Role { get; set; }

[JsonPropertyName("avatarFrame")] public GenericAvatarFrame AvatarFrame { get; set; }
[JsonPropertyName("influencerInfo")] public InfluencerPriceInfo InfluencerInfo { get; set; }
Expand Down
15 changes: 15 additions & 0 deletions Amino.NET/Objects/JoinRequest.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class JoinRequest
{
[JsonPropertyName("communityMembershipRequestCount")] public int CommunityMembershipRequestCount { get; set; }
[JsonPropertyName("communityMembershipRequestList")] public List<JoinRequestUser> CommunityMembershipRequestList { get; set; }
}
}
20 changes: 20 additions & 0 deletions Amino.NET/Objects/JoinRequestApplicant.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class JoinRequestApplicant
{
[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("nickname")] public string Nickname { get; set; }
[JsonPropertyName("icon")] public string IconUrl { get; set; }
}
}
21 changes: 21 additions & 0 deletions Amino.NET/Objects/JoinRequestUser.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class JoinRequestUser
{
[JsonPropertyName("status")] public int Status { get; set; }
[JsonPropertyName("requestId")] public string RequestId { get; set; }
[JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; }
[JsonPropertyName("ndcId")] public int CommunityId { get; set; }
[JsonPropertyName("createdTime")] public string CreatedTime { get; set; }
[JsonPropertyName("message")] public string Message { get; set; }
[JsonPropertyName("uid")] public string UserId { get; set; }
[JsonPropertyName("applicant")] public JoinRequestApplicant Applicant { get; set; }
}
}
28 changes: 28 additions & 0 deletions Amino.NET/Objects/Notice.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class Notice
{
[JsonPropertyName("icon")] public string IconUrl { get; set; }
//[JsonPropertyName("community")] No Data
[JsonPropertyName("title")] public string Title { get; set; }
[JsonPropertyName("ndcId")] public int? CommunityId { get; set; }
[JsonPropertyName("noticeId")] public string NoticeId { get; set; }
[JsonPropertyName("notificationId")] public string NotificationId { get; set; }
[JsonPropertyName("status")] public int? Status { get; set; }
[JsonPropertyName("type")] public int? Type { get; set; }
[JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; }
[JsonPropertyName("createdTime")] public string CreatedTime { get; set; }
//[JsonPropertyName("content")] No Data

[JsonPropertyName("operator")] public GenericProfile Operator { get; set; }
[JsonPropertyName("targetUser")] public GenericProfile TargetUser { get; set; }
[JsonPropertyName("extensions")] public NoticeExtensions Extensions { get; set; }
}
}
17 changes: 17 additions & 0 deletions Amino.NET/Objects/NoticeExtensionConfig.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class NoticeExtensionConfig
{
[JsonPropertyName("showCommunity")] public bool? ShowCommunity { get; set; }
[JsonPropertyName("showOperator")] public bool? ShowOperator { get; set; }
[JsonPropertyName("allowQuickOperation")] public bool? AllowQuickOperation { get; set; }
[JsonPropertyName("operationList")] public List<NoticeExtensionOperation> OperationList { get; set; }
}
}
15 changes: 15 additions & 0 deletions Amino.NET/Objects/NoticeExtensionOperation.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class NoticeExtensionOperation
{
[JsonPropertyName("text")] public string Text { get; set; }
[JsonPropertyName("operationType")] public int? OperationType { get; set; }
}
}
14 changes: 14 additions & 0 deletions Amino.NET/Objects/NoticeExtensionStyle.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class NoticeExtensionStyle
{
[JsonPropertyName("backgroundColor")] public string BackgroundColor { get; set; }
}
}
16 changes: 16 additions & 0 deletions Amino.NET/Objects/NoticeExtensions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class NoticeExtensions
{
[JsonPropertyName("operatorUid")] public string OperatorUid { get; set; }
[JsonPropertyName("style")] public NoticeExtensionStyle Style { get; set; }
[JsonPropertyName("config")] public NoticeExtensionConfig Config { get; set; }
}
}
16 changes: 16 additions & 0 deletions Amino.NET/Objects/Topic.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class Topic
{
[JsonPropertyName("topicId")] public int TopicId { get; set; }
[JsonPropertyName("name")] public string Name { get; set; }
[JsonPropertyName("style")] public TopicStyle Style { get; set; }
}
}
14 changes: 14 additions & 0 deletions Amino.NET/Objects/TopicStyle.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Amino.Objects
{
public class TopicStyle
{
[JsonPropertyName("backgroundColor")] public string BackgroundColor { get; set; }
}
}
2 changes: 2 additions & 0 deletions Amino.NET/SubClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1700,6 +1700,8 @@ public Task play_quiz(string quizId, List<string> questionIdList, List<string> a
}


public Amino.Client GetClient() => this.client;
public string GetCurrentCommunityId() => this.communityId;

/// <summary>
/// Not to be used in general use (THIS FUNCTION WILL DISPOSE THE SUBCLIENT)
Expand Down
34 changes: 34 additions & 0 deletions Amino.NET/Types.cs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,13 @@ public enum Featured_Types
Wiki,
Chat
}

public enum Join_Types
{
Open = 0,
Request = 1,
Private = 2
}
public enum Object_Types
{
User = 0,
Expand Down Expand Up @@ -269,5 +276,32 @@ public enum Leaderboard_Ranking_Types
CheckIn = 4,
quiz = 5
}

public enum RoleTypes
{
Agent,
Leader,
Curator
}

public enum ModuleTypes
{
Chat,
LiveChat,
ScreeningRoom,
PublicChats,
Posts,
Ranking,
Leaderboards,
Featured,
FeaturedPosts,
FeaturedUsers,
FeaturedChats,
SharedFolder,
Influencer,
Catalog,
ExternalContent,
TopicCategories
}
}
}
Loading