mirror of
https://github.com/timi137137/AuroraNative.git
synced 2025-09-19 14:26:00 +00:00
Rename
This commit is contained in:
2
.github/workflows/BuildPackages.yml
vendored
2
.github/workflows/BuildPackages.yml
vendored
@@ -26,5 +26,5 @@ jobs:
|
|||||||
- name: Publish
|
- name: Publish
|
||||||
uses: brandedoutcast/publish-nuget@v2.5.2
|
uses: brandedoutcast/publish-nuget@v2.5.2
|
||||||
with:
|
with:
|
||||||
PROJECT_FILE_PATH: AuroraNavite/AuroraNavite.csproj
|
PROJECT_FILE_PATH: AuroraNative/AuroraNative.csproj
|
||||||
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
|
NUGET_KEY: ${{secrets.NUGET_API_KEY}}
|
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.31005.135
|
VisualStudioVersion = 16.0.31005.135
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuroraNavite", "AuroraNavite\AuroraNavite.csproj", "{35A21EA1-3EA7-45A8-A483-DB83DBEC902E}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AuroraNative", "AuroraNavite\AuroraNative.csproj", "{35A21EA1-3EA7-45A8-A483-DB83DBEC902E}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
@@ -1,11 +1,11 @@
|
|||||||
using AuroraNavite.EventArgs;
|
using AuroraNative.EventArgs;
|
||||||
using AuroraNavite.WebSockets;
|
using AuroraNative.WebSockets;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace AuroraNavite
|
namespace AuroraNative
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// API 类
|
/// API 类
|
@@ -1,7 +1,7 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
|
||||||
namespace AuroraNavite
|
namespace AuroraNative
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// API基础 抽象类
|
/// API基础 抽象类
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace AuroraNavite
|
namespace AuroraNative
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 特性的基类
|
/// 特性的基类
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace AuroraNavite
|
namespace AuroraNative
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 消息事件 特性
|
/// 消息事件 特性
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace AuroraNavite
|
namespace AuroraNative
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 元事件 特性
|
/// 元事件 特性
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace AuroraNavite
|
namespace AuroraNative
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 通知事件 特性
|
/// 通知事件 特性
|
@@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
|
||||||
namespace AuroraNavite
|
namespace AuroraNative
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 上报类型 特性
|
/// 上报类型 特性
|
@@ -6,9 +6,9 @@
|
|||||||
<Authors>悠静萝莉,Monodesu</Authors>
|
<Authors>悠静萝莉,Monodesu</Authors>
|
||||||
<Description>This donet SDK based on go-cqhttp</Description>
|
<Description>This donet SDK based on go-cqhttp</Description>
|
||||||
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
<PackageLicenseFile>LICENSE</PackageLicenseFile>
|
||||||
<RepositoryUrl>https://github.com/timi137137/AuroraNavite</RepositoryUrl>
|
<RepositoryUrl>https://github.com/timi137137/AuroraNative</RepositoryUrl>
|
||||||
<RepositoryType>git repo</RepositoryType>
|
<RepositoryType>git repo</RepositoryType>
|
||||||
<PackageTags>SDK AuroraNavite Navite mikuhl go-cqhttp</PackageTags>
|
<PackageTags>SDK AuroraNative Navite mikuhl go-cqhttp</PackageTags>
|
||||||
<Copyright>悠静萝莉 Copyright©2021</Copyright>
|
<Copyright>悠静萝莉 Copyright©2021</Copyright>
|
||||||
<SignAssembly>false</SignAssembly>
|
<SignAssembly>false</SignAssembly>
|
||||||
<AssemblyOriginatorKeyFile>个人签名密码默认a.pfx</AssemblyOriginatorKeyFile>
|
<AssemblyOriginatorKeyFile>个人签名密码默认a.pfx</AssemblyOriginatorKeyFile>
|
||||||
@@ -18,10 +18,12 @@
|
|||||||
<FileVersion>0.0.1.0227</FileVersion>
|
<FileVersion>0.0.1.0227</FileVersion>
|
||||||
<PackageIcon>Icon.png</PackageIcon>
|
<PackageIcon>Icon.png</PackageIcon>
|
||||||
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
|
<EnforceCodeStyleInBuild>false</EnforceCodeStyleInBuild>
|
||||||
|
<AssemblyName>AuroraNative</AssemblyName>
|
||||||
|
<RootNamespace>AuroraNative</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||||
<DocumentationFile>J:\AuroraNavite\AuroraNavite\AuroraNavite.xml</DocumentationFile>
|
<DocumentationFile>J:\AuroraNative\AuroraNative\AuroraNative.xml</DocumentationFile>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
using AuroraNavite.EventArgs;
|
using AuroraNative.EventArgs;
|
||||||
using Newtonsoft.Json.Linq;
|
using Newtonsoft.Json.Linq;
|
||||||
|
|
||||||
namespace AuroraNavite
|
namespace AuroraNative
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 事件类
|
/// 事件类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述匿名信息的基础类, 该类是抽象的
|
/// 提供用于描述匿名信息的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述事件参数的基础类, 该类是抽象的
|
/// 提供用于描述事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述事件参数的基础类, 该类是抽象的
|
/// 提供用于描述事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述匿名信息的基础类, 该类是抽象的
|
/// 提供用于描述匿名信息的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述发送者信息的基础类, 该类是抽象的
|
/// 提供用于描述发送者信息的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述消息事件中群聊消息事件参数的类
|
/// 提供用于描述消息事件中群聊消息事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述消息事件参数的基础类, 该类是抽象的
|
/// 提供用于描述消息事件参数的基础类, 该类是抽象的
|
@@ -1,4 +1,4 @@
|
|||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述消息事件中私聊消息事件参数的类
|
/// 提供用于描述消息事件中私聊消息事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述元事件中心跳事件参数的类
|
/// 提供用于描述元事件中心跳事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述元事件中生命周期事件参数的类
|
/// 提供用于描述元事件中生命周期事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述元事件参数的基础类, 该类是抽象的
|
/// 提供用于描述元事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中其他客户端在线状态变更事件参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件中其他客户端在线状态变更事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群成员增加事件参数的类
|
/// 提供用于描述通知事件中群成员增加事件参数的类
|
@@ -1,4 +1,4 @@
|
|||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中添加好友通知事件参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件中添加好友通知事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中接收到离线文件事件参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件中接收到离线文件事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群成员增加事件参数的类
|
/// 提供用于描述通知事件中群成员增加事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群成员名片更新(核验)事件参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件中群成员名片更新(核验)事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群管理员变动事件参数的类
|
/// 提供用于描述通知事件中群管理员变动事件参数的类
|
@@ -1,4 +1,4 @@
|
|||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群成员减少事件参数的类
|
/// 提供用于描述通知事件中群成员减少事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群成员荣誉变更提示事件参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件中群成员荣誉变更提示事件参数的基础类, 该类是抽象的
|
@@ -1,4 +1,4 @@
|
|||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群成员增加事件参数的类
|
/// 提供用于描述通知事件中群成员增加事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群消息撤回参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件中群消息撤回参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群通知事件参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件中群通知事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群内戳一戳事件参数的类
|
/// 提供用于描述通知事件中群内戳一戳事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群红包运气王提示事件参数的类
|
/// 提供用于描述通知事件中群红包运气王提示事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中群文件上传事件参数的类
|
/// 提供用于描述通知事件中群文件上传事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中戳一戳事件参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件中戳一戳事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中好友消息撤回参数的基础类, 该类是抽象的
|
/// 提供用于描述通知事件中好友消息撤回参数的基础类, 该类是抽象的
|
@@ -1,4 +1,4 @@
|
|||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述通知事件中好友戳一戳事件参数的类
|
/// 提供用于描述通知事件中好友戳一戳事件参数的类
|
@@ -1,4 +1,4 @@
|
|||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述消息事件中好友请求事件参数的类
|
/// 提供用于描述消息事件中好友请求事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述消息事件中群请求事件参数的类
|
/// 提供用于描述消息事件中群请求事件参数的类
|
@@ -1,6 +1,6 @@
|
|||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace AuroraNavite.EventArgs
|
namespace AuroraNative.EventArgs
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提供用于描述请求事件参数的基础类, 该类是抽象的
|
/// 提供用于描述请求事件参数的基础类, 该类是抽象的
|
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace AuroraNavite.Exceptions
|
namespace AuroraNative.Exceptions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 异常 类 -- 基类
|
/// 异常 类 -- 基类
|
@@ -1,4 +1,4 @@
|
|||||||
namespace AuroraNavite.Exceptions
|
namespace AuroraNative.Exceptions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 异常 类 -- 关于Json异常
|
/// 异常 类 -- 关于Json异常
|
@@ -1,4 +1,4 @@
|
|||||||
namespace AuroraNavite.Exceptions
|
namespace AuroraNative.Exceptions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 异常 类 -- 关于WebSocket异常
|
/// 异常 类 -- 关于WebSocket异常
|
@@ -2,7 +2,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
|
|
||||||
namespace AuroraNavite
|
namespace AuroraNative
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 通用方法 类
|
/// 通用方法 类
|
@@ -8,7 +8,7 @@ using System.Text;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace AuroraNavite.WebSockets
|
namespace AuroraNative.WebSockets
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// WebSocket 基础类
|
/// WebSocket 基础类
|
@@ -5,7 +5,7 @@ using System.Reflection;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace AuroraNavite.WebSockets
|
namespace AuroraNative.WebSockets
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// WebSocket 客户端 封装类
|
/// WebSocket 客户端 封装类
|
||||||
@@ -27,6 +27,15 @@ namespace AuroraNavite.WebSockets
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region --构造函数--
|
||||||
|
|
||||||
|
static Client()
|
||||||
|
{
|
||||||
|
AttributeTypes = Assembly.GetExecutingAssembly().GetTypes().Where(p => p.IsAbstract == false && p.IsInterface == false && typeof(Attribute).IsAssignableFrom(p)).ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region --公开函数--
|
#region --公开函数--
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -35,7 +44,6 @@ namespace AuroraNavite.WebSockets
|
|||||||
/// <returns>连接成功返回true,反而异之</returns>
|
/// <returns>连接成功返回true,反而异之</returns>
|
||||||
public bool Create()
|
public bool Create()
|
||||||
{
|
{
|
||||||
WebSocket = new ClientWebSocket();
|
|
||||||
if (WebSocket is ClientWebSocket socket) {
|
if (WebSocket is ClientWebSocket socket) {
|
||||||
Task Connect = socket.ConnectAsync(new Uri("ws://" + Host + "/"), CancellationToken.None);
|
Task Connect = socket.ConnectAsync(new Uri("ws://" + Host + "/"), CancellationToken.None);
|
||||||
Connect.Wait();
|
Connect.Wait();
|
||||||
@@ -59,15 +67,6 @@ namespace AuroraNavite.WebSockets
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region --构造函数--
|
|
||||||
|
|
||||||
static Client()
|
|
||||||
{
|
|
||||||
AttributeTypes = Assembly.GetExecutingAssembly().GetTypes().Where(p => p.IsAbstract == false && p.IsInterface == false && typeof(Attribute).IsAssignableFrom(p)).ToArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region --私有函数--
|
#region --私有函数--
|
||||||
|
|
||||||
private async void Feedback()
|
private async void Feedback()
|
@@ -6,7 +6,7 @@ using System.Reflection;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace AuroraNavite.WebSockets
|
namespace AuroraNative.WebSockets
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// WebSocket 服务器 封装类
|
/// WebSocket 服务器 封装类
|
||||||
@@ -31,6 +31,15 @@ namespace AuroraNavite.WebSockets
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region --构造函数--
|
||||||
|
|
||||||
|
static Server()
|
||||||
|
{
|
||||||
|
AttributeTypes = Assembly.GetExecutingAssembly().GetTypes().Where(p => p.IsAbstract == false && p.IsInterface == false && typeof(Attribute).IsAssignableFrom(p)).ToArray();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#region --公开函数--
|
#region --公开函数--
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@@ -60,15 +69,6 @@ namespace AuroraNavite.WebSockets
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region --构造函数--
|
|
||||||
|
|
||||||
static Server()
|
|
||||||
{
|
|
||||||
AttributeTypes = Assembly.GetExecutingAssembly().GetTypes().Where(p => p.IsAbstract == false && p.IsInterface == false && typeof(Attribute).IsAssignableFrom(p)).ToArray();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region --私有函数--
|
#region --私有函数--
|
||||||
|
|
||||||
private async void Feedback()
|
private async void Feedback()
|
12
README.md
12
README.md
@@ -1,14 +1,14 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img src="Icon.png" width="200" height="200" alt="go-cqhttp">
|
<img src="Icon.png" width="200" height="200" alt="go-cqhttp">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<h1 align="center">AuroraNavite</h2>
|
<h1 align="center">AuroraNative</h2>
|
||||||
<h3 align="center"><b>基于 <a href="https://github.com/Mrs4s/go-cqhttp">go-cqhttp</a> 以及 <a href="https://github.com/howmanybots/onebot/blob/master/README.md">OneBot</a> 的 C# 机器人开发框架 </b></h3>
|
<h3 align="center"><b>基于 <a href="https://github.com/Mrs4s/go-cqhttp">go-cqhttp</a> 以及 <a href="https://github.com/howmanybots/onebot/blob/master/README.md">OneBot</a> 的 C# 机器人开发框架 </b></h3>
|
||||||
|
|
||||||
|
|
||||||
<h4 align="center">
|
<h4 align="center">
|
||||||
<a href="https://www.nuget.org/packages/AuroraNavite/">
|
<a href="https://www.nuget.org/packages/AuroraNative/">
|
||||||
<img src="https://img.shields.io/nuget/vpre/AuroraNavite?style=flat-square">
|
<img src="https://img.shields.io/nuget/vpre/AuroraNative?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/howmanybots/onebot">
|
<a href="https://github.com/howmanybots/onebot">
|
||||||
<img src="https://img.shields.io/badge/OneBot-v11-blue?style=flat-square">
|
<img src="https://img.shields.io/badge/OneBot-v11-blue?style=flat-square">
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
<a href="https://github.com/Mrs4s/go-cqhttp/releases">
|
<a href="https://github.com/Mrs4s/go-cqhttp/releases">
|
||||||
<img src="https://img.shields.io/badge/go--cqhttp-v0.9.40--fix4-blueviolet?style=flat-square">
|
<img src="https://img.shields.io/badge/go--cqhttp-v0.9.40--fix4-blueviolet?style=flat-square">
|
||||||
</a>
|
</a>
|
||||||
<img src="https://img.shields.io/github/license/timi137137/AuroraNavite?style=flat-square">
|
<img src="https://img.shields.io/github/license/timi137137/AuroraNative?style=flat-square">
|
||||||
<img src="https://img.shields.io/github/workflow/status/timi137137/AuroraNavite/buildpackages/master?style=flat-square">
|
<img src="https://img.shields.io/github/workflow/status/timi137137/AuroraNative/buildpackages/master?style=flat-square">
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user