forked from LagrangeDev/Lagrange.Core
-
Notifications
You must be signed in to change notification settings - Fork 1
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
360 changed files
with
6,767 additions
and
1,895 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
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,10 @@ | ||
namespace Lagrange.Core.Common.Entity; | ||
|
||
public class BotStatus | ||
{ | ||
public uint StatusId { get; set; } | ||
|
||
public uint? FaceId { get; set; } | ||
|
||
public string? Msg { 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
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,15 @@ | ||
namespace Lagrange.Core.Common.Entity; | ||
|
||
[Serializable] | ||
public struct BotFriendGroup | ||
{ | ||
public uint GroupId { get; } | ||
|
||
public string GroupName { get; } | ||
|
||
internal BotFriendGroup(uint groupId, string groupName) | ||
{ | ||
GroupId = groupId; | ||
GroupName = groupName; | ||
} | ||
} |
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,39 @@ | ||
namespace Lagrange.Core.Common.Entity; | ||
|
||
[Serializable] | ||
public class BotFriendRequest | ||
{ | ||
public BotFriendRequest(string targetUid, string sourceUid, uint eventState, string comment, string source, uint time) | ||
{ | ||
TargetUid = targetUid; | ||
SourceUid = sourceUid; | ||
EventState = (State)eventState; | ||
Comment = comment; | ||
Source = source; | ||
Time = DateTime.UnixEpoch.AddSeconds(time); | ||
} | ||
|
||
public string TargetUid { get; set; } | ||
|
||
public uint TargetUin { get; set; } | ||
|
||
public string SourceUid { get; set; } | ||
|
||
public uint SourceUin { get; set; } | ||
|
||
public State EventState { get; set; } | ||
|
||
|
||
public string Comment { get; set; } | ||
|
||
public string Source { get; set; } | ||
|
||
public DateTime Time { get; set; } | ||
|
||
public enum State | ||
{ | ||
Pending = 1, | ||
Disapproved = 2, | ||
Approved = 3, | ||
} | ||
} |
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,24 @@ | ||
namespace Lagrange.Core.Common.Entity; | ||
|
||
[Serializable] | ||
public class BotGetGroupTodoResult | ||
{ | ||
public int Retcode { get; } | ||
|
||
public string? ResultMessage { get; } | ||
|
||
public uint GroupUin { get; } | ||
|
||
public uint Sequence { get; } | ||
|
||
public string Preview { get; } | ||
|
||
public BotGetGroupTodoResult(int retcode, string? resultMessage, uint groupUin, uint sequence, string preview) | ||
{ | ||
Retcode = retcode; | ||
ResultMessage = resultMessage; | ||
GroupUin = groupUin; | ||
Sequence = sequence; | ||
Preview = preview; | ||
} | ||
} |
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,52 @@ | ||
namespace Lagrange.Core.Common.Entity; | ||
|
||
[Serializable] | ||
public class BotGroupClockInResult | ||
{ | ||
public BotGroupClockInResult() { } | ||
|
||
public BotGroupClockInResult(bool isSuccess) | ||
{ | ||
IsSuccess = isSuccess; | ||
} | ||
|
||
/// <summary> | ||
/// Is the clock in successful | ||
/// </summary> | ||
public bool IsSuccess { get; set; } = false; | ||
|
||
/// <summary> | ||
/// Maybe "今日已成功打卡" | ||
/// </summary> | ||
public string Title { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Maybe "已打卡N天" | ||
/// </summary> | ||
public string KeepDayText { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Maybe "群内排名第N位" | ||
/// </summary> | ||
public string GroupRankText { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The utc time of clock in | ||
/// </summary> | ||
public DateTime ClockInUtcTime { get; set; } = DateTime.UnixEpoch; // 打卡时间 | ||
|
||
/// <summary> | ||
/// Detail info url | ||
/// </summary> | ||
public string DetailUrl { get; set; } = string.Empty; // https://qun.qq.com/v2/signin/detail?... | ||
|
||
public static BotGroupClockInResult Fail() => new BotGroupClockInResult() | ||
{ | ||
IsSuccess = false | ||
}; | ||
|
||
public static BotGroupClockInResult Success() => new BotGroupClockInResult() | ||
{ | ||
IsSuccess = true | ||
}; | ||
} |
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,20 @@ | ||
namespace Lagrange.Core.Common.Entity; | ||
|
||
public class BotGroupReaction | ||
{ | ||
public string FaceId { get; set; } | ||
|
||
public uint Type { get; set; } | ||
|
||
public uint Count { get; set; } | ||
|
||
public bool IsAdded { get; set; } | ||
|
||
public BotGroupReaction(string faceId, uint type, uint count, bool isAdded) | ||
{ | ||
FaceId = faceId; | ||
Type = type; | ||
Count = count; | ||
IsAdded = isAdded; | ||
} | ||
} |
Oops, something went wrong.