-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
af78211
commit 41a467f
Showing
8 changed files
with
346 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters