Skip to content

Commit 3a4a900

Browse files
authored
Merge pull request #46 from Amino-NET-Group/continue/conitnue-acm-class
Continue/continue acm class
2 parents 72e8e05 + 41a467f commit 3a4a900

17 files changed

+727
-0
lines changed

Amino.NET/ACMClient.cs

Lines changed: 467 additions & 0 deletions
Large diffs are not rendered by default.

Amino.NET/Objects/AdvancedCommunityInfo.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,9 @@ public class AdvancedCommunityInfo
3737
[JsonPropertyName("agent")] public GenericProfile Agent { get; set; }
3838
[JsonPropertyName("themePack")] public CommunityThemePack ThemePack { get; set; }
3939
[JsonPropertyName("advancedSettings")] public CommunityAdvancedSettings AdvancedSettings { get; set; }
40+
41+
[JsonPropertyName("userAddedTopicList")] public List<Topic> UserAddedTopicList { get; set; }
42+
[JsonPropertyName("mediaList")] public List<List<string>> MediaList { get; set; }
43+
4044
}
4145
}

Amino.NET/Objects/BlogCategory.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Text.Json.Serialization;
6+
using System.Threading.Tasks;
7+
8+
namespace Amino.Objects
9+
{
10+
public class BlogCategory
11+
{
12+
[JsonPropertyName("status")] public int Status { get; set; }
13+
[JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; }
14+
[JsonPropertyName("icon")] public string IconUrl { get; set; }
15+
[JsonPropertyName("style")] public int Style { get; set; }
16+
[JsonPropertyName("label")] public string Label { get; set; }
17+
[JsonPropertyName("content")] public string Content { get; set; }
18+
[JsonPropertyName("createdTime")] public string CreatedTime { get; set; }
19+
[JsonPropertyName("position")] public int Position { get; set; }
20+
[JsonPropertyName("type")] public int Type { get; set; }
21+
[JsonPropertyName("categoryId")] public string CategoryId { get; set; }
22+
[JsonPropertyName("blogsCount")] public int BlogsCount { get; set; }
23+
}
24+
}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Text.Json.Serialization;
6+
using System.Threading.Tasks;
7+
8+
namespace Amino.Objects
9+
{
10+
public class CommunityStats
11+
{
12+
[JsonPropertyName("dailyActiveMembers")] public int DailyActiveMembers { get; set; }
13+
[JsonPropertyName("monthlyActiveMembers")] public int MonthlyActiveMembers { get; set; }
14+
[JsonPropertyName("totalTimeSpent")] public int TotalTimeSpent { get; set; }
15+
[JsonPropertyName("totalPostsCreated")] public int TotalPostsCreated { get; set; }
16+
[JsonPropertyName("newMembersToday")] public int NewMembersToday { get; set; }
17+
[JsonPropertyName("totalMembers")] public int TotalMembers { get; set; }
18+
}
19+
}

Amino.NET/Objects/GenericProfile.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class GenericProfile // ROOT JSON ELEMENT: userProfile
1919
[JsonPropertyName("nickname")]public string Nickname { get; set; }
2020
[JsonPropertyName("icon")]public string IconUrl { get; set; }
2121
[JsonPropertyName("ndcId")]public int? CommunityId { get; set; }
22+
[JsonPropertyName("role")] public int? Role { get; set; }
2223

2324
[JsonPropertyName("avatarFrame")] public GenericAvatarFrame AvatarFrame { get; set; }
2425
[JsonPropertyName("influencerInfo")] public InfluencerPriceInfo InfluencerInfo { get; set; }

Amino.NET/Objects/JoinRequest.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Text.Json.Serialization;
6+
using System.Threading.Tasks;
7+
8+
namespace Amino.Objects
9+
{
10+
public class JoinRequest
11+
{
12+
[JsonPropertyName("communityMembershipRequestCount")] public int CommunityMembershipRequestCount { get; set; }
13+
[JsonPropertyName("communityMembershipRequestList")] public List<JoinRequestUser> CommunityMembershipRequestList { get; set; }
14+
}
15+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Text.Json.Serialization;
6+
using System.Threading.Tasks;
7+
8+
namespace Amino.Objects
9+
{
10+
public class JoinRequestApplicant
11+
{
12+
[JsonPropertyName("status")] public int Status { get; set; }
13+
[JsonPropertyName("uid")] public string UserId { get; set; }
14+
[JsonPropertyName("isGlobal")] public bool IsGlobal { get; set; }
15+
[JsonPropertyName("role")] public int Role { get; set; }
16+
[JsonPropertyName("isStaff")] public bool IsStaff { get; set; }
17+
[JsonPropertyName("nickname")] public string Nickname { get; set; }
18+
[JsonPropertyName("icon")] public string IconUrl { get; set; }
19+
}
20+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Text.Json.Serialization;
6+
using System.Threading.Tasks;
7+
8+
namespace Amino.Objects
9+
{
10+
public class JoinRequestUser
11+
{
12+
[JsonPropertyName("status")] public int Status { get; set; }
13+
[JsonPropertyName("requestId")] public string RequestId { get; set; }
14+
[JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; }
15+
[JsonPropertyName("ndcId")] public int CommunityId { get; set; }
16+
[JsonPropertyName("createdTime")] public string CreatedTime { get; set; }
17+
[JsonPropertyName("message")] public string Message { get; set; }
18+
[JsonPropertyName("uid")] public string UserId { get; set; }
19+
[JsonPropertyName("applicant")] public JoinRequestApplicant Applicant { get; set; }
20+
}
21+
}

Amino.NET/Objects/Notice.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Text.Json.Serialization;
6+
using System.Threading.Tasks;
7+
8+
namespace Amino.Objects
9+
{
10+
public class Notice
11+
{
12+
[JsonPropertyName("icon")] public string IconUrl { get; set; }
13+
//[JsonPropertyName("community")] No Data
14+
[JsonPropertyName("title")] public string Title { get; set; }
15+
[JsonPropertyName("ndcId")] public int? CommunityId { get; set; }
16+
[JsonPropertyName("noticeId")] public string NoticeId { get; set; }
17+
[JsonPropertyName("notificationId")] public string NotificationId { get; set; }
18+
[JsonPropertyName("status")] public int? Status { get; set; }
19+
[JsonPropertyName("type")] public int? Type { get; set; }
20+
[JsonPropertyName("modifiedTime")] public string ModifiedTime { get; set; }
21+
[JsonPropertyName("createdTime")] public string CreatedTime { get; set; }
22+
//[JsonPropertyName("content")] No Data
23+
24+
[JsonPropertyName("operator")] public GenericProfile Operator { get; set; }
25+
[JsonPropertyName("targetUser")] public GenericProfile TargetUser { get; set; }
26+
[JsonPropertyName("extensions")] public NoticeExtensions Extensions { get; set; }
27+
}
28+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Text;
5+
using System.Text.Json.Serialization;
6+
using System.Threading.Tasks;
7+
8+
namespace Amino.Objects
9+
{
10+
public class NoticeExtensionConfig
11+
{
12+
[JsonPropertyName("showCommunity")] public bool? ShowCommunity { get; set; }
13+
[JsonPropertyName("showOperator")] public bool? ShowOperator { get; set; }
14+
[JsonPropertyName("allowQuickOperation")] public bool? AllowQuickOperation { get; set; }
15+
[JsonPropertyName("operationList")] public List<NoticeExtensionOperation> OperationList { get; set; }
16+
}
17+
}

0 commit comments

Comments
 (0)