-
Notifications
You must be signed in to change notification settings - Fork 30
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
Showing
8 changed files
with
182 additions
and
53 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Mirai.Net.Data.Events.Concretes; | ||
|
||
/// <summary> | ||
/// 未知的事件 | ||
/// </summary> | ||
public record UnknownEvent : EventBase | ||
{ | ||
/// <summary> | ||
/// 原json | ||
/// </summary> | ||
[JsonIgnore] | ||
public string RawJson { get; set; } | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public UnknownEvent() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="rawJson"></param> | ||
public UnknownEvent(string rawJson) | ||
{ | ||
RawJson = rawJson; | ||
} | ||
} |
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,31 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Mirai.Net.Data.Messages.Concretes; | ||
|
||
/// <summary> | ||
/// 未知的(没有实现)的消息类型 | ||
/// </summary> | ||
public record UnknownMessage : MessageBase | ||
{ | ||
/// <summary> | ||
/// 收到的json | ||
/// </summary> | ||
[JsonIgnore] | ||
public string RawJson { get; set; } | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="rawJson"></param> | ||
public UnknownMessage(string rawJson) | ||
{ | ||
RawJson = rawJson; | ||
} | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public UnknownMessage() | ||
{ | ||
} | ||
} |
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,31 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace Mirai.Net.Data.Messages.Receivers; | ||
|
||
/// <summary> | ||
/// 未知类型的消息接收器 | ||
/// </summary> | ||
public record UnknownReceiver : MessageReceiverBase | ||
{ | ||
/// <summary> | ||
/// 收到的json | ||
/// </summary> | ||
[JsonIgnore] | ||
public string RawJson { get; set; } | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
public UnknownReceiver() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// | ||
/// </summary> | ||
/// <param name="rawJson"></param> | ||
public UnknownReceiver(string rawJson) | ||
{ | ||
RawJson = rawJson; | ||
} | ||
} |
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
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