Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
v1.0.0-Beta
Browse files Browse the repository at this point in the history
v1.0.0-Beta
  • Loading branch information
timi137137 authored Mar 15, 2021
2 parents 1c7e55c + c750c8b commit 90571c4
Show file tree
Hide file tree
Showing 30 changed files with 2,151 additions and 431 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -340,4 +340,5 @@ ASALocalRun/
healthchecksdb
DevIcon.*
Test
nuget.config
nuget.config
*.cd
356 changes: 268 additions & 88 deletions AuroraNative/API/Api.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Newtonsoft.Json;

namespace AuroraNative.EventArgs
namespace AuroraNative
{
/// <summary>
/// 提供用于描述事件参数的基础类, 该类是抽象的
Expand Down
56 changes: 56 additions & 0 deletions AuroraNative/Abstract/Essences.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
using Newtonsoft.Json;

namespace AuroraNative
{
/// <summary>
/// 精华消息 抽象类
/// </summary>
public sealed class Essences
{
#region --属性--

/// <summary>
/// 发送者QQ 号
/// </summary>
[JsonProperty(PropertyName = "sender_id")]
public long SenderID { get; private set; }

/// <summary>
/// 发送者昵称
/// </summary>
[JsonProperty(PropertyName = "sender_nick")]
public string SenderNickName { get; private set; }

/// <summary>
/// 消息发送时间
/// </summary>
[JsonProperty(PropertyName = "sender_time")]
public string SenderTime { get; private set; }

/// <summary>
/// 操作者QQ 号
/// </summary>
[JsonProperty(PropertyName = "operator_id")]
public string OperatorID { get; private set; }

/// <summary>
/// 操作者昵称
/// </summary>
[JsonProperty(PropertyName = "operator_nick")]
public string OperatorNickName { get; private set; }

/// <summary>
/// 精华设置时间
/// </summary>
[JsonProperty(PropertyName = "operator_time")]
public string OperatorTime { get; private set; }

/// <summary>
/// 消息ID
/// </summary>
[JsonProperty(PropertyName = "message_id")]
public string MessageID { get; private set; }

#endregion
}
}
74 changes: 74 additions & 0 deletions AuroraNative/Abstract/Groups/Files/File.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
using Newtonsoft.Json;

namespace AuroraNative
{
/// <summary>
/// 群文件 抽象类
/// </summary>
public sealed class File
{
#region --属性--

/// <summary>
/// 文件ID
/// </summary>
[JsonProperty(PropertyName = "file_id")]
public string FileID;

/// <summary>
/// 文件名称
/// </summary>
[JsonProperty(PropertyName = "file_name")]
public string FileName;

/// <summary>
/// 文件类型
/// </summary>
[JsonProperty(PropertyName = "busid")]
public long BusID;

/// <summary>
/// 文件大小
/// </summary>
[JsonProperty(PropertyName = "file_size")]
public long FileSize;

/// <summary>
/// 上传时间
/// </summary>
[JsonProperty(PropertyName = "upload_time")]
public string UploadTime;

/// <summary>
/// 过期时间,永久为零
/// </summary>
[JsonProperty(PropertyName = "dead_time")]
public int DeadTime;

/// <summary>
/// 最后修改时间
/// </summary>
[JsonProperty(PropertyName = "modify_time")]
public int ModifyTime;

/// <summary>
/// 下载次数
/// </summary>
[JsonProperty(PropertyName = "download_times")]
public int DownloadsCount;

/// <summary>
/// 上传者ID
/// </summary>
[JsonProperty(PropertyName = "uploader")]
public int Uploader;

/// <summary>
/// 上传者名字
/// </summary>
[JsonProperty(PropertyName = "uploader_name")]
public int UploaderName;

#endregion
}
}
50 changes: 50 additions & 0 deletions AuroraNative/Abstract/Groups/Files/Folder.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
using Newtonsoft.Json;

namespace AuroraNative
{
/// <summary>
/// 群文件夹 抽象类
/// </summary>
public sealed class Folder
{
#region --属性--

/// <summary>
/// 文件夹ID
/// </summary>
[JsonProperty(PropertyName = "folder_id")]
public string FolderID;

/// <summary>
/// 文件夹名称
/// </summary>
[JsonProperty(PropertyName = "folder_name")]
public string FolderName;

/// <summary>
/// 创建时间
/// </summary>
[JsonProperty(PropertyName = "create_time")]
public long CreateTime;

/// <summary>
/// 创建者
/// </summary>
[JsonProperty(PropertyName = "creator")]
public long Creator;

/// <summary>
/// 创建者名称
/// </summary>
[JsonProperty(PropertyName = "creator_name")]
public string CreatoName;

/// <summary>
/// 子文件数量
/// </summary>
[JsonProperty(PropertyName = "total_file_count")]
public int TotalFilesCount;

#endregion
}
}
104 changes: 104 additions & 0 deletions AuroraNative/Abstract/Groups/GroupMember.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
using Newtonsoft.Json;

namespace AuroraNative
{
/// <summary>
/// 群成员信息 抽象类
/// </summary>
public sealed class GroupMember
{
#region --属性--

/// <summary>
/// 群号
/// </summary>
[JsonProperty(PropertyName = "group_id", NullValueHandling = NullValueHandling.Include)]
public long GroupID;

/// <summary>
/// QQ号
/// </summary>
[JsonProperty(PropertyName = "user_id", NullValueHandling = NullValueHandling.Include)]
public long UserID;

/// <summary>
/// 昵称
/// </summary>
[JsonProperty(PropertyName = "nickname", NullValueHandling = NullValueHandling.Include)]
public string NickName;

/// <summary>
/// 群名片
/// </summary>
[JsonProperty(PropertyName = "card", NullValueHandling = NullValueHandling.Include)]
public string Card;

/// <summary>
/// 现在人数
/// </summary>
[JsonProperty(PropertyName = "sex", NullValueHandling = NullValueHandling.Include)]
public string Sex;

/// <summary>
/// 最大人数
/// </summary>
[JsonProperty(PropertyName = "age", NullValueHandling = NullValueHandling.Include)]
public int MaxMemberCount;

/// <summary>
/// 地区
/// </summary>
[JsonProperty(PropertyName = "area", NullValueHandling = NullValueHandling.Include)]
public string Area;

/// <summary>
/// 加群时间戳
/// </summary>
[JsonProperty(PropertyName = "join_time", NullValueHandling = NullValueHandling.Include)]
public int JoinTime;

/// <summary>
/// 最后发言时间戳
/// </summary>
[JsonProperty(PropertyName = "last_sent_time", NullValueHandling = NullValueHandling.Include)]
public int LastSentTime;

/// <summary>
/// 成员等级
/// </summary>
[JsonProperty(PropertyName = "level", NullValueHandling = NullValueHandling.Include)]
public int Level;

/// <summary>
/// 角色
/// </summary>
[JsonProperty(PropertyName = "role", NullValueHandling = NullValueHandling.Include)]
public int Role;

/// <summary>
/// 是否不良记录成员
/// </summary>
[JsonProperty(PropertyName = "unfriendly", NullValueHandling = NullValueHandling.Include)]
public bool UnFriendly;

/// <summary>
/// 专属头衔
/// </summary>
[JsonProperty(PropertyName = "title", NullValueHandling = NullValueHandling.Include)]
public string ExclusiveTitle;

/// <summary>
/// 专属头衔过期时间戳
/// </summary>
[JsonProperty(PropertyName = "title_expire_time", NullValueHandling = NullValueHandling.Include)]
public long ExclusiveTitleTime;

/// <summary>
/// 是否允许修改群名片
/// </summary>
[JsonProperty(PropertyName = "card_changeable", NullValueHandling = NullValueHandling.Include)]
public bool IsChangeCard;

#endregion
}
}
38 changes: 38 additions & 0 deletions AuroraNative/Abstract/Groups/Groups.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
using Newtonsoft.Json;

namespace AuroraNative
{
/// <summary>
/// 群组 抽象类
/// </summary>
public sealed class Groups
{
#region --属性--

/// <summary>
/// 群号
/// </summary>
[JsonProperty(PropertyName = "group_id")]
public long GroupID;

/// <summary>
/// 群名称
/// </summary>
[JsonProperty(PropertyName = "group_name")]
public string GroupName;

/// <summary>
/// 现在人数
/// </summary>
[JsonProperty(PropertyName = "member_count")]
public int MemberCount;

/// <summary>
/// 最大人数
/// </summary>
[JsonProperty(PropertyName = "max_member_count")]
public int MaxMemberCount;

#endregion
}
}
44 changes: 44 additions & 0 deletions AuroraNative/Abstract/Groups/HonorListInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using Newtonsoft.Json;

namespace AuroraNative
{
/// <summary>
/// 群荣誉详细信息 抽象类
/// </summary>
public sealed class HonorListInfo
{
#region --属性--

/// <summary>
/// QQ号
/// </summary>
[JsonProperty(PropertyName = "user_id")]
public long UserID;

/// <summary>
/// 昵称
/// </summary>
[JsonProperty(PropertyName = "nickname")]
public string NickName;

/// <summary>
/// 头像URL
/// </summary>
[JsonProperty(PropertyName = "avatar")]
public string Avater;

/// <summary>
/// 荣誉描述
/// </summary>
[JsonProperty(PropertyName = "description", NullValueHandling = NullValueHandling.Ignore)]
public string Description;

/// <summary>
/// 持续天数
/// </summary>
[JsonProperty(PropertyName = "day_count", NullValueHandling = NullValueHandling.Ignore)]
public string DayCount;

#endregion
}
}
Loading

0 comments on commit 90571c4

Please sign in to comment.