├── .gitattributes ├── .gitignore ├── DllExport.bat ├── DllExport_Configure.bat ├── LICENSE ├── Lib └── Newtonsoft.Json.dll ├── Native.Core ├── CQMain.cs ├── Domain │ └── AppData.cs ├── Export │ ├── CQEventExport.cs │ ├── CQExport.tt │ ├── CQMenuExport.cs │ └── CQStatusExport.cs ├── FodyWeavers.xml ├── Native.Core.csproj ├── Properties │ └── AssemblyInfo.cs ├── app.json └── packages.config ├── Native.Sdk ├── Cqp │ ├── CQApi.cs │ ├── CQLog.cs │ ├── Core │ │ ├── CQP.cs │ │ └── Kernel32.cs │ ├── Enum │ │ ├── CQAudioFormat.cs │ │ ├── CQDiscussMessageType.cs │ │ ├── CQFace.cs │ │ ├── CQFloatWindowColors.cs │ │ ├── CQFriendAddRequestType.cs │ │ ├── CQFriendAddType.cs │ │ ├── CQFunction.cs │ │ ├── CQGroupAddRequestType.cs │ │ ├── CQGroupBanSpeakType.cs │ │ ├── CQGroupFileUploadType.cs │ │ ├── CQGroupManageChangeType.cs │ │ ├── CQGroupMemberDecreaseType.cs │ │ ├── CQGroupMemberIncreaseType.cs │ │ ├── CQGroupMessageType.cs │ │ ├── CQLogLevel.cs │ │ ├── CQMessageEventType.cs │ │ ├── CQMessageHandler.cs │ │ ├── CQMusicStyle.cs │ │ ├── CQMusicType.cs │ │ ├── CQPrviateMessageType.cs │ │ ├── CQResponseType.cs │ │ ├── QQGroupMemberType.cs │ │ └── QQSex.cs │ ├── EventArgs │ │ ├── CQAppDisableEventArgs.cs │ │ ├── CQAppEnableEventArgs.cs │ │ ├── CQDiscussMessageEventArgs.cs │ │ ├── CQEventArgs.cs │ │ ├── CQEventEventArgs.cs │ │ ├── CQExitEventArgs.cs │ │ ├── CQFriendAddEventArgs.cs │ │ ├── CQFriendAddRequestEventArgs.cs │ │ ├── CQGroupAddRequestEventArgs.cs │ │ ├── CQGroupBanSpeakEventArgs.cs │ │ ├── CQGroupManageChangeEventArgs.cs │ │ ├── CQGroupMemberDecreaseEventArgs.cs │ │ ├── CQGroupMemberIncreaseEventArgs.cs │ │ ├── CQGroupMessageEventArgs.cs │ │ ├── CQGroupUploadEventArgs.cs │ │ ├── CQMenuCallEventArgs.cs │ │ ├── CQMenuEventArgs.cs │ │ ├── CQPrivateMessageEventArgs.cs │ │ ├── CQStartupEventArgs.cs │ │ ├── CQStatusEventArgs.cs │ │ └── CQStatusUpdateEventArgs.cs │ ├── Expand │ │ ├── BinaryReaderExpand.cs │ │ ├── BinaryWriterExpand.cs │ │ └── SystemExpand.cs │ ├── Interface │ │ ├── IAppDisable.cs │ │ ├── IAppEnable.cs │ │ ├── ICQExit.cs │ │ ├── ICQStartup.cs │ │ ├── IDiscussMessage.cs │ │ ├── IFriendAdd.cs │ │ ├── IFriendAddRequest.cs │ │ ├── IGroupAddRequest.cs │ │ ├── IGroupBanSpeak.cs │ │ ├── IGroupManageChange.cs │ │ ├── IGroupMemberDecrease.cs │ │ ├── IGroupMemberIncrease.cs │ │ ├── IGroupMessage.cs │ │ ├── IGroupUpload.cs │ │ ├── IMenuCall.cs │ │ ├── IPrivateMessage.cs │ │ ├── IStatusUpdate.cs │ │ └── IToSendString.cs │ └── Model │ │ ├── AppInfo.cs │ │ ├── BasisModel.cs │ │ ├── BasisStreamModel.cs │ │ ├── CQCode.cs │ │ ├── CQFloatWindow.cs │ │ ├── Discuss.cs │ │ ├── FriendInfo.cs │ │ ├── FriendInfoCollection.cs │ │ ├── Group.cs │ │ ├── GroupFileInfo.cs │ │ ├── GroupInfo.cs │ │ ├── GroupInfoCollection.cs │ │ ├── GroupMemberAnonymousInfo.cs │ │ ├── GroupMemberInfo.cs │ │ ├── GroupMemberInfoCollection.cs │ │ ├── QQ.cs │ │ ├── QQMessage.cs │ │ ├── QQRequest.cs │ │ └── StrangerInfo.cs ├── Native.Sdk.csproj └── Properties │ └── AssemblyInfo.cs ├── Native.Tool ├── Http │ ├── HttpTool.cs │ └── HttpWebClient.cs ├── IniConfig │ ├── Attribute │ │ ├── IniConfigKeyAttribute.cs │ │ ├── IniConfigSectionAttribute.cs │ │ ├── IniKeyAttribute.cs │ │ ├── IniNonSerializeAttribute.cs │ │ ├── IniSectionAttribute.cs │ │ └── IniSerializeAttribute.cs │ ├── Exception │ │ ├── IniConfigException.cs │ │ ├── PropertyNotFoundException.cs │ │ └── SectionNotFoundException.cs │ ├── IniConfig.cs │ ├── IniConvert.cs │ ├── Linq │ │ ├── IContainer.cs │ │ ├── IObject.cs │ │ ├── ISection.cs │ │ ├── IValue.cs │ │ ├── IValueType.cs │ │ ├── IniObject.cs │ │ ├── IniSection.cs │ │ └── IniValue.cs │ └── Utilities │ │ ├── ConvertUtils.cs │ │ ├── MathUtils.cs │ │ ├── MiscellaneousUtils.cs │ │ └── ReflectionUtils.cs ├── Native.Tool.csproj ├── Properties │ └── AssemblyInfo.cs └── SQLite │ ├── AssemblySourceIdAttribute.cs │ ├── AssemblySourceTimeStampAttribute.cs │ ├── Configurations │ └── System.Data.SQLite.dll.config │ ├── Generated │ └── SR.resources │ ├── ISQLiteNativeModule.cs │ ├── LINQ │ ├── SQLiteConnection_Linq.cs │ └── SQLiteFactory_Linq.cs │ ├── Resources │ ├── DataTypes.xml │ ├── MetaDataCollections.xml │ ├── SQLiteCommand.bmp │ ├── SQLiteConnection.bmp │ ├── SQLiteDataAdapter.bmp │ ├── SR.Designer.cs │ └── SR.resx │ ├── SQLite3.cs │ ├── SQLite3_UTF16.cs │ ├── SQLiteBackup.cs │ ├── SQLiteBase.cs │ ├── SQLiteBlob.cs │ ├── SQLiteCommand.cs │ ├── SQLiteCommandBuilder.cs │ ├── SQLiteConnection.cs │ ├── SQLiteConnectionPool.cs │ ├── SQLiteConnectionStringBuilder.cs │ ├── SQLiteConvert.cs │ ├── SQLiteDataAdapter.cs │ ├── SQLiteDataReader.cs │ ├── SQLiteDefineConstants.cs │ ├── SQLiteEnlistment.cs │ ├── SQLiteException.cs │ ├── SQLiteFactory.cs │ ├── SQLiteFunction.cs │ ├── SQLiteFunctionAttribute.cs │ ├── SQLiteKeyReader.cs │ ├── SQLiteLog.cs │ ├── SQLiteMetaDataCollectionNames.cs │ ├── SQLiteModule.cs │ ├── SQLiteModuleCommon.cs │ ├── SQLiteModuleEnumerable.cs │ ├── SQLiteModuleNoop.cs │ ├── SQLiteParameter.cs │ ├── SQLiteParameterCollection.cs │ ├── SQLitePatchLevel.cs │ ├── SQLiteSession.cs │ ├── SQLiteStatement.cs │ ├── SQLiteTransaction.cs │ ├── SQLiteTransaction2.cs │ ├── SQLiteTransactionBase.cs │ ├── Targets │ ├── System.Data.SQLite.Files.targets │ ├── System.Data.SQLite.Properties.targets │ └── System.Data.SQLite.References.targets │ └── UnsafeNativeMethods.cs ├── Native.sln ├── README.md ├── UPDATE.md └── packages ├── Costura.Fody.1.6.2 ├── .signature.p7s ├── Costura.Fody.1.6.2.nupkg ├── Costura.Fody.dll ├── Costura.Tasks.dll ├── build │ ├── dotnet │ │ └── Costura.Fody.targets │ └── portable-net+sl+win+wpa+wp │ │ └── Costura.Fody.targets ├── lib │ ├── dotnet │ │ └── Costura.dll │ └── portable-net+sl+win+wpa+wp │ │ └── Costura.dll └── tools │ ├── install.ps1 │ └── uninstall.ps1 ├── DllExport.1.6.1 ├── 3rd-party.txt ├── DllExport.1.6.1.nupkg ├── DllExport.bat ├── License.txt ├── Readme.md ├── build │ └── net20 │ │ └── DllExport.targets ├── build_info.txt ├── changelog.txt ├── gcache │ └── metalib │ │ └── System.Runtime.InteropServices │ │ ├── DllExport.dll │ │ └── DllExport.dll.ddNSi ├── hMSBuild.bat ├── lib │ └── net20 │ │ └── _._ └── tools │ ├── Conari.dll │ ├── Conari.pdb │ ├── Conari.xml │ ├── Microsoft.Build.Framework.dll │ ├── Microsoft.Build.Utilities.v4.0.dll │ ├── Microsoft.Build.dll │ ├── Microsoft.Management.Infrastructure.dll │ ├── Mono.Cecil.dll │ ├── MvsSln.dll │ ├── MvsSln.pdb │ ├── MvsSln.xml │ ├── NSBin.dll │ ├── NSBin.pdb │ ├── PeViewer.exe │ ├── PeViewer.pdb │ ├── RGiesecke.DllExport.MSBuild.dll │ ├── RGiesecke.DllExport.MSBuild.pdb │ ├── RGiesecke.DllExport.dll │ ├── RGiesecke.DllExport.pdb │ ├── System.Management.Automation.dll │ ├── build.targets │ ├── coreclr │ ├── LICENSE.TXT │ ├── PATENTS.TXT │ ├── README.md │ ├── _Version.txt │ ├── changelog.txt │ ├── coreclr.dll │ ├── ilasm.exe │ ├── ildasm.exe │ ├── ildasmrc.dll │ ├── mscordaccore.dll │ └── mscordbi.dll │ ├── gnt.bat │ ├── hMSBuild.bat │ ├── net.r_eg.DllExport.Configurator.dll │ ├── net.r_eg.DllExport.Configurator.pdb │ ├── net.r_eg.DllExport.Wizard.dll │ ├── net.r_eg.DllExport.Wizard.pdb │ ├── net.r_eg.DllExport.Wizard.targets │ ├── net.r_eg.DllExport.targets │ └── raw │ └── lib │ └── net20 │ └── DllExport.dll ├── Fody.2.2.1.0 ├── .signature.p7s ├── Content │ └── FodyWeavers.xml ├── Fody.2.2.1.0.nupkg ├── Fody.dll ├── FodyCommon.dll ├── FodyIsolated.dll ├── Mono.Cecil.Mdb.dll ├── Mono.Cecil.Pdb.dll ├── Mono.Cecil.Rocks.dll ├── Mono.Cecil.dll ├── Tools │ └── install.ps1 └── build │ ├── net452 │ └── Fody.targets │ ├── netstandard1.2 │ └── Fody.targets │ └── portable-net+sl+win+wpa+wp │ └── Fody.targets └── Unity.5.8.6 ├── .signature.p7s ├── Unity.5.8.6.nupkg └── lib ├── net40 ├── CommonServiceLocator.dll ├── Unity.Abstractions.dll ├── Unity.Container.dll ├── Unity.Interception.dll └── Unity.ServiceLocation.dll ├── net45 ├── CommonServiceLocator.dll ├── Unity.Abstractions.dll ├── Unity.Configuration.dll ├── Unity.Container.dll ├── Unity.Interception.Configuration.dll ├── Unity.Interception.dll ├── Unity.RegistrationByConvention.dll └── Unity.ServiceLocation.dll ├── net46 ├── CommonServiceLocator.dll ├── Unity.Abstractions.dll ├── Unity.Configuration.dll ├── Unity.Container.dll ├── Unity.Interception.Configuration.dll ├── Unity.Interception.dll ├── Unity.RegistrationByConvention.dll └── Unity.ServiceLocation.dll ├── net47 ├── CommonServiceLocator.dll ├── Unity.Abstractions.dll ├── Unity.Configuration.dll ├── Unity.Container.dll ├── Unity.Interception.Configuration.dll ├── Unity.Interception.dll ├── Unity.RegistrationByConvention.dll └── Unity.ServiceLocation.dll ├── netcoreapp1.0 ├── CommonServiceLocator.deps.json ├── CommonServiceLocator.dll ├── Unity.Abstractions.deps.json ├── Unity.Abstractions.dll ├── Unity.Container.deps.json ├── Unity.Container.dll ├── Unity.ServiceLocation.deps.json └── Unity.ServiceLocation.dll ├── netcoreapp2.0 ├── Unity.Abstractions.dll ├── Unity.Container.deps.json └── Unity.Container.dll ├── netstandard1.0 ├── CommonServiceLocator.deps.json ├── CommonServiceLocator.dll ├── Unity.Abstractions.deps.json ├── Unity.Abstractions.dll ├── Unity.Container.deps.json ├── Unity.Container.dll ├── Unity.ServiceLocation.deps.json └── Unity.ServiceLocation.dll └── netstandard2.0 ├── CommonServiceLocator.deps.json ├── CommonServiceLocator.dll ├── Unity.Abstractions.deps.json ├── Unity.Abstractions.dll ├── Unity.Container.deps.json ├── Unity.Container.dll ├── Unity.ServiceLocation.deps.json └── Unity.ServiceLocation.dll /.gitattributes: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # Set default behavior to automatically normalize line endings. 3 | ############################################################################### 4 | * text= 5 | 6 | ############################################################################### 7 | # Set default behavior for command prompt diff. 8 | # 9 | # This is need for earlier builds of msysgit that does not have it on by 10 | # default for csharp files. 11 | # Note: This is only used by command line 12 | ############################################################################### 13 | #*.cs diff=csharp 14 | 15 | ############################################################################### 16 | # Set the merge driver for project and solution files 17 | # 18 | # Merging from the command prompt will add diff markers to the files if there 19 | # are conflicts (Merging from VS is not affected by the settings below, in VS 20 | # the diff markers are never inserted). Diff markers may cause the following 21 | # file extensions to fail to load in VS. An alternative would be to treat 22 | # these files as binary and thus will always conflict and require user 23 | # intervention with every merge. To do so, just uncomment the entries below 24 | ############################################################################### 25 | #*.sln merge=binary 26 | #*.csproj merge=binary 27 | #*.vbproj merge=binary 28 | #*.vcxproj merge=binary 29 | #*.vcproj merge=binary 30 | #*.dbproj merge=binary 31 | #*.fsproj merge=binary 32 | #*.lsproj merge=binary 33 | #*.wixproj merge=binary 34 | #*.modelproj merge=binary 35 | #*.sqlproj merge=binary 36 | #*.wwaproj merge=binary 37 | 38 | ############################################################################### 39 | # behavior for image files 40 | # 41 | # image files are treated as binary by default. 42 | ############################################################################### 43 | #*.jpg binary 44 | #*.png binary 45 | #*.gif binary 46 | 47 | ############################################################################### 48 | # diff behavior for common document formats 49 | # 50 | # Convert binary document formats to text before diffing them. This feature 51 | # is only available from the command line. Turn it on by uncommenting the 52 | # entries below. 53 | ############################################################################### 54 | #*.doc diff=astextplain 55 | #*.DOC diff=astextplain 56 | #*.docx diff=astextplain 57 | #*.DOCX diff=astextplain 58 | #*.dot diff=astextplain 59 | #*.DOT diff=astextplain 60 | #*.pdf diff=astextplain 61 | #*.PDF diff=astextplain 62 | #*.rtf diff=astextplain 63 | #*.RTF diff=astextplain 64 | -------------------------------------------------------------------------------- /DllExport_Configure.bat: -------------------------------------------------------------------------------- 1 | DllExport -action Configure %* -------------------------------------------------------------------------------- /Lib/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/Lib/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /Native.Core/CQMain.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Unity; 7 | 8 | namespace Native.Core 9 | { 10 | /// 11 | /// 酷Q应用主入口类 12 | /// 13 | public class CQMain 14 | { 15 | /// 16 | /// 在应用被加载时将调用此方法进行事件注册, 请在此方法里向 容器中注册需要使用的事件 17 | /// 18 | /// 用于注册的 IOC 容器 19 | public static void Register (IUnityContainer unityContainer) 20 | { 21 | 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Core/Domain/AppData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Native.Sdk.Cqp; 7 | using Unity; 8 | 9 | namespace Native.Core.Domain 10 | { 11 | public static class AppData 12 | { 13 | /// 14 | /// 获取当前 App 使用的 酷Q Api 接口实例 15 | /// 16 | public static CQApi CQApi { get; private set; } 17 | 18 | /// 19 | /// 获取当前 App 使用的 酷Q Log 接口实例 20 | /// 21 | public static CQLog CQLog { get; private set; } 22 | 23 | /// 24 | /// 获取当前 App 使用的依赖注入容器实例 25 | /// 26 | public static IUnityContainer UnityContainer { get; private set; } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Native.Core/Export/CQMenuExport.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * 此文件由T4引擎自动生成, 请勿修改此文件中的代码! 3 | */ 4 | using System; 5 | using System.Reflection; 6 | using System.Runtime.InteropServices; 7 | using Native.Core.Domain; 8 | using Native.Sdk.Cqp; 9 | using Native.Sdk.Cqp.EventArgs; 10 | using Native.Sdk.Cqp.Interface; 11 | using Unity; 12 | 13 | namespace Native.App.Export 14 | { 15 | /// 16 | /// 表示酷Q菜单导出的类 17 | /// 18 | public class CQMenuExport 19 | { 20 | #region --构造函数-- 21 | /// 22 | /// 由托管环境初始化的 的新实例 23 | /// 24 | static CQMenuExport () 25 | { 26 | 27 | // 调用方法进行实例化 28 | ResolveBackcall (); 29 | } 30 | #endregion 31 | 32 | #region --私有方法-- 33 | /// 34 | /// 读取容器中的注册项, 进行事件分发 35 | /// 36 | private static void ResolveBackcall () 37 | { 38 | /* 39 | * Name: 设置A 40 | * Function: _menuA 41 | */ 42 | if (AppData.UnityContainer.IsRegistered ("设置A")) 43 | { 44 | Menu_menuAHandler += AppData.UnityContainer.Resolve ("设置A").MenuCall; 45 | } 46 | 47 | /* 48 | * Name: 设置B 49 | * Function: _menuB 50 | */ 51 | if (AppData.UnityContainer.IsRegistered ("设置B")) 52 | { 53 | Menu_menuBHandler += AppData.UnityContainer.Resolve ("设置B").MenuCall; 54 | } 55 | 56 | } 57 | #endregion 58 | 59 | #region --导出方法-- 60 | /* 61 | * Name: 设置A 62 | * Function: _menuA 63 | */ 64 | public static event EventHandler Menu_menuAHandler; 65 | [DllExport (ExportName = "_menuA", CallingConvention = CallingConvention.StdCall)] 66 | public static int Menu_menuA () 67 | { 68 | if (Menu_menuAHandler != null) 69 | { 70 | CQMenuCallEventArgs args = new CQMenuCallEventArgs (AppData.CQApi, AppData.CQLog, "设置A", "_menuA"); 71 | Menu_menuAHandler (typeof (CQMenuExport), args); 72 | } 73 | return 0; 74 | } 75 | 76 | /* 77 | * Name: 设置B 78 | * Function: _menuB 79 | */ 80 | public static event EventHandler Menu_menuBHandler; 81 | [DllExport (ExportName = "_menuB", CallingConvention = CallingConvention.StdCall)] 82 | public static int Menu_menuB () 83 | { 84 | if (Menu_menuBHandler != null) 85 | { 86 | CQMenuCallEventArgs args = new CQMenuCallEventArgs (AppData.CQApi, AppData.CQLog, "设置B", "_menuB"); 87 | Menu_menuBHandler (typeof (CQMenuExport), args); 88 | } 89 | return 0; 90 | } 91 | 92 | #endregion 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /Native.Core/Export/CQStatusExport.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * 此文件由T4引擎自动生成, 请勿修改此文件中的代码! 3 | */ 4 | using System; 5 | using System.Reflection; 6 | using System.Runtime.InteropServices; 7 | using Native.Core.Domain; 8 | using Native.Sdk.Cqp; 9 | using Native.Sdk.Cqp.EventArgs; 10 | using Native.Sdk.Cqp.Interface; 11 | using Native.Sdk.Cqp.Model; 12 | using Unity; 13 | 14 | namespace Native.App.Export 15 | { 16 | /// 17 | /// 表示酷Q状态导出的类 18 | /// 19 | public class CQStatusExport 20 | { 21 | #region --构造函数-- 22 | /// 23 | /// 由托管环境初始化的 的新实例 24 | /// 25 | static CQStatusExport () 26 | { 27 | // 调用方法进行实例化 28 | ResolveBackcall (); 29 | } 30 | #endregion 31 | 32 | #region --私有方法-- 33 | /// 34 | /// 读取容器中的注册项, 进行事件分发 35 | /// 36 | private static void ResolveBackcall () 37 | { 38 | /* 39 | * Id: 1 40 | * Name: 运行时间 41 | * Title: UPTIME 42 | * Function: _statusUptime 43 | * Period: 1000 44 | */ 45 | if (AppData.UnityContainer.IsRegistered ("运行时间")) 46 | { 47 | Status_statusUptimeHandler += AppData.UnityContainer.Resolve ("运行时间").StatusUpdate; 48 | } 49 | 50 | } 51 | #endregion 52 | 53 | #region --导出方法-- 54 | /* 55 | * Id: 1 56 | * Name: 运行时间 57 | * Title: UPTIME 58 | * Function: _statusUptime 59 | * Period: 1000 60 | */ 61 | public static event Func Status_statusUptimeHandler; 62 | [DllExport (ExportName = "_statusUptime", CallingConvention = CallingConvention.StdCall)] 63 | public static string Status_statusUptime () 64 | { 65 | CQStatusUpdateEventArgs args = new CQStatusUpdateEventArgs (AppData.CQApi, AppData.CQLog, 1, "运行时间", "UPTIME", "_statusUptime", 1000); 66 | if (Status_statusUptimeHandler != null) 67 | { 68 | return Status_statusUptimeHandler (typeof (CQStatusExport), args).ToSendString (); 69 | } 70 | return new CQFloatWindow ().ToSendString (); // 返回默认悬浮窗样式 71 | } 72 | 73 | #endregion 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Native.Core/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Native.Core/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("Native.Core")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("Native.Core")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2020")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("c03c5bb7-91d0-4894-aaf9-127090dfad91")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion ("4.2.8.0616")] 36 | [assembly: AssemblyFileVersion ("4.2.8.0616")] 37 | -------------------------------------------------------------------------------- /Native.Core/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Core/Kernel32.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.InteropServices; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Core 9 | { 10 | internal class Kernel32 11 | { 12 | [DllImport ("kernel32.dll", EntryPoint = "lstrlenA", CharSet = CharSet.Ansi)] 13 | public extern static int LstrlenA (IntPtr ptr); 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQAudioFormat.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q接收语音时的转换格式 11 | /// 12 | public enum CQAudioFormat 13 | { 14 | /// 15 | /// mp3音频格式 16 | /// 17 | [Description("mp3")] 18 | MPEG_Layer3, 19 | /// 20 | /// arm音频格式 21 | /// 22 | [Description ("arm")] 23 | AMR_NB, 24 | /// 25 | /// wma音频格式 26 | /// 27 | [Description ("wma")] 28 | Windows_Media_Audio, 29 | /// 30 | /// m4a音频格式 31 | /// 32 | [Description ("m4a")] 33 | MPEG4, 34 | /// 35 | /// spx音频格式 36 | /// 37 | [Description ("spx")] 38 | Speex, 39 | /// 40 | /// ogg音频格式 41 | /// 42 | [Description ("ogg")] 43 | OggVorbis, 44 | /// 45 | /// wav音频格式 46 | /// 47 | [Description ("wav")] 48 | WAVE, 49 | /// 50 | /// flac音频格式 51 | /// 52 | [Description ("flac")] 53 | FLAC 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQDiscussMessageType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q讨论组消息的类型 11 | /// 12 | public enum CQDiscussMessageType 13 | { 14 | /// 15 | /// 讨论组 16 | /// 17 | Discuss = 1 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQFace.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace Native.Sdk.Cqp.Enum 7 | { 8 | /// 9 | /// 指示酷Q表情代码 10 | /// 11 | public enum CQFace 12 | { 13 | #pragma warning disable CS1591 // 缺少对公共可见类型或成员的 XML 注释 14 | 惊讶 = 0, 15 | 撇嘴 = 1, 16 | 色 = 2, 17 | 发呆 = 3, 18 | 得意 = 4, 19 | 流泪 = 5, 20 | 害羞 = 6, 21 | 闭嘴 = 7, 22 | 睡 = 8, 23 | 大哭 = 9, 24 | 尴尬 = 10, 25 | 发怒 = 11, 26 | 调皮 = 12, 27 | 呲牙 = 13, 28 | 微笑 = 14, 29 | 难过 = 15, 30 | 酷 = 16, 31 | 抓狂 = 18, 32 | 吐 = 19, 33 | 偷笑 = 20, 34 | 可爱 = 21, 35 | 白眼 = 22, 36 | 傲慢 = 23, 37 | 饥饿 = 24, 38 | 困 = 25, 39 | 惊恐 = 26, 40 | 流汗 = 27, 41 | 憨笑 = 28, 42 | 大兵 = 29, 43 | 奋斗 = 30, 44 | 咒骂 = 31, 45 | 疑问 = 32, 46 | 晕 = 34, 47 | 折磨 = 35, 48 | 衰 = 36, 49 | 骷髅 = 37, 50 | 敲打 = 38, 51 | 再见 = 39, 52 | 发抖 = 41, 53 | 爱情 = 42, 54 | 跳跳 = 43, 55 | 猪头 = 46, 56 | 拥抱 = 49, 57 | 蛋糕 = 53, 58 | 闪电 = 54, 59 | 炸弹 = 55, 60 | 刀 = 56, 61 | 足球 = 57, 62 | 便便 = 59, 63 | 咖啡 = 60, 64 | 饭 = 61, 65 | 玫瑰 = 63, 66 | 凋谢 = 64, 67 | 爱心 = 66, 68 | 心碎 = 67, 69 | 礼物 = 69, 70 | 太阳 = 74, 71 | 月亮 = 75, 72 | 强 = 76, 73 | 弱 = 77, 74 | 握手 = 78, 75 | 胜利 = 79, 76 | 飞吻 = 85, 77 | 怄火 = 86, 78 | 西瓜 = 89, 79 | 冷汗 = 96, 80 | 擦汗 = 97, 81 | 抠鼻 = 98, 82 | 鼓掌 = 99, 83 | 糗大了 = 100, 84 | 坏笑 = 101, 85 | 左哼哼 = 102, 86 | 右哼哼 = 103, 87 | 哈欠 = 104, 88 | 鄙视 = 105, 89 | 委屈 = 106, 90 | 快哭了 = 107, 91 | 阴险 = 108, 92 | 亲亲 = 109, 93 | 吓 = 110, 94 | 可怜 = 111, 95 | 菜刀 = 112, 96 | 啤酒 = 113, 97 | 篮球 = 114, 98 | 乒乓 = 115, 99 | 示爱 = 116, 100 | 瓢虫 = 117, 101 | 抱拳 = 118, 102 | 勾引 = 119, 103 | 拳头 = 120, 104 | 差劲 = 121, 105 | 爱你 = 122, 106 | 不 = 123, 107 | 好 = 124, 108 | 转圈 = 125, 109 | 磕头 = 126, 110 | 回头 = 127, 111 | 跳绳 = 128, 112 | 挥手 = 129, 113 | 激动 = 130, 114 | 街舞 = 131, 115 | 献吻 = 132, 116 | 左太极 = 133, 117 | 右太极 = 134, 118 | 双喜 = 136, 119 | 鞭炮 = 137, 120 | 灯笼 = 138, 121 | 发财 = 139, 122 | K歌 = 140, 123 | 购物 = 141, 124 | 邮件 = 142, 125 | 帅 = 143, 126 | 喝彩 = 144, 127 | 祈祷 = 145, 128 | 爆筋 = 146, 129 | 棒棒糖 = 147, 130 | 喝奶 = 148, 131 | 下面 = 149, 132 | 香蕉 = 150, 133 | 飞机 = 151, 134 | 开车 = 152, 135 | 高铁左车头 = 153, 136 | 车厢 = 154, 137 | 高铁右车头 = 155, 138 | 多云 = 156, 139 | 下雨 = 157, 140 | 钞票 = 158, 141 | 熊猫 = 159, 142 | 灯泡 = 160, 143 | 风车 = 161, 144 | 闹钟 = 162, 145 | 打伞 = 163, 146 | 彩球 = 164, 147 | 钻戒 = 165, 148 | 沙发 = 166, 149 | 纸巾 = 167, 150 | 药 = 168, 151 | 手枪 = 169, 152 | 青蛙 = 170 153 | #pragma warning restore CS1591 // 缺少对公共可见类型或成员的 XML 注释 154 | } 155 | } 156 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQFloatWindowColors.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Enum 9 | { 10 | /// 11 | /// 指示 酷Q悬浮窗颜色 的枚举 12 | /// 13 | public enum CQFloatWindowColors 14 | { 15 | /// 16 | /// 绿色 17 | /// 18 | [Description ("绿色")] 19 | Green = 1, 20 | /// 21 | /// 橙色 22 | /// 23 | [Description ("橙色")] 24 | Orange = 2, 25 | /// 26 | /// 红色 27 | /// 28 | [Description ("红色")] 29 | Red = 3, 30 | /// 31 | /// 深红 32 | /// 33 | [Description ("深红")] 34 | Crimson = 4, 35 | /// 36 | /// 黑色 37 | /// 38 | [Description ("黑色")] 39 | Black = 5, 40 | /// 41 | /// 灰色 42 | /// 43 | [Description ("灰色")] 44 | Gray = 6 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQFriendAddRequestType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q 好友添加请求 的事件子类型 11 | /// 12 | public enum CQFriendAddRequestType 13 | { 14 | /// 15 | /// 好友添加请求 16 | /// 17 | FriendAdd = 1 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQFriendAddType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q 好友事件 的事件类型 11 | /// 12 | public enum CQFriendAddType 13 | { 14 | /// 15 | /// 好友已添加 16 | /// 17 | FriendAdd = 1 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQFunction.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 表示酷Q消息中内含 [CQ:...] 中的类型 11 | /// 12 | [DefaultValue (CQFunction.Unknown)] 13 | public enum CQFunction 14 | { 15 | /// 16 | /// 未知类型, 同时也是默认值 17 | /// 18 | [Description ("unknown")] 19 | Unknown, 20 | /// 21 | /// QQ表情 22 | /// 23 | [Description ("face")] 24 | Face, 25 | /// 26 | /// Emoji表情 27 | /// 28 | [Description ("emoji")] 29 | Emoji, 30 | /// 31 | /// 原创表情 32 | /// 33 | [Description ("bface")] 34 | Bface, 35 | /// 36 | /// 小表情 37 | /// 38 | [Description ("sface")] 39 | Sface, 40 | /// 41 | /// 图片 42 | /// 43 | [Description ("image")] 44 | Image, 45 | /// 46 | /// 语音 47 | /// 48 | [Description ("record")] 49 | Record, 50 | /// 51 | /// At默认 52 | /// 53 | [Description ("at")] 54 | At, 55 | /// 56 | /// 猜拳魔法表情 57 | /// 58 | [Description ("rps")] 59 | Rps, 60 | /// 61 | /// 掷骰子魔法表情 62 | /// 63 | [Description ("dice")] 64 | Dice, 65 | /// 66 | /// 戳一戳 67 | /// 68 | [Description ("shake")] 69 | Shake, 70 | /// 71 | /// 音乐 72 | /// 73 | [Description ("music")] 74 | Music, 75 | /// 76 | /// 链接分享 77 | /// 78 | [Description ("share")] 79 | Share, 80 | /// 81 | /// 卡片消息 82 | /// 83 | [Description ("rich")] 84 | Rich, 85 | /// 86 | /// 签到 87 | /// 88 | [Description ("sign")] 89 | Sign, 90 | /// 91 | /// 红包 92 | /// 93 | [Description ("hb")] 94 | Hb, 95 | /// 96 | /// 推荐 97 | /// 98 | [Description ("contact")] 99 | Contact, 100 | /// 101 | /// 厘米秀 102 | /// 103 | [Description ("show")] 104 | Show, 105 | /// 106 | /// 位置分享 107 | /// 108 | [Description ("location")] 109 | Location, 110 | /// 111 | /// 匿名消息 112 | /// 113 | [Description ("anonymous")] 114 | Anonymous 115 | } 116 | } 117 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQGroupAddRequestType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q 群添加请求 的事件类型 11 | /// 12 | public enum CQGroupAddRequestType 13 | { 14 | /// 15 | /// 申请入群 16 | /// 17 | ApplyAddGroup = 1, 18 | /// 19 | /// 机器人被邀请 20 | /// 21 | RobotBeInviteAddGroup = 2 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQGroupBanSpeakType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q 群禁言 事件的类型 11 | /// 12 | public enum CQGroupBanSpeakType 13 | { 14 | /// 15 | /// 解除禁言 16 | /// 17 | RemoveBanSpeak = 1, 18 | /// 19 | /// 设置禁言 20 | /// 21 | SetBanSpeak = 2 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQGroupFileUploadType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q 群文件上传 的事件类型 11 | /// 12 | public enum CQGroupFileUploadType 13 | { 14 | /// 15 | /// 文件上传 16 | /// 17 | FileUpload = 1 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQGroupManageChangeType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q 群管理改变 的类型 11 | /// 12 | public enum CQGroupManageChangeType 13 | { 14 | /// 15 | /// 被取消管理 16 | /// 17 | RemoveManage = 1, 18 | /// 19 | /// 被设置管理 20 | /// 21 | SetManage = 2 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQGroupMemberDecreaseType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q 群成员减少 的类型 11 | /// 12 | public enum CQGroupMemberDecreaseType 13 | { 14 | /// 15 | /// 退出群 16 | /// 17 | ExitGroup = 1, 18 | /// 19 | /// 移除群 20 | /// 21 | RemoveGroup = 2 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQGroupMemberIncreaseType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q 群成员增加 的类型 11 | /// 12 | public enum CQGroupMemberIncreaseType 13 | { 14 | /// 15 | /// 同意入群 16 | /// 17 | Pass = 1, 18 | /// 19 | /// 邀请入群 20 | /// 21 | Invite = 2 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQGroupMessageType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q群聊消息类型 11 | /// 12 | public enum CQGroupMessageType 13 | { 14 | /// 15 | /// 群聊 16 | /// 17 | Group = 1 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQLogLevel.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 表示酷Q日志中的类型等级 11 | /// 12 | public enum CQLogLevel 13 | { 14 | /// 15 | /// 调试. 颜色: 灰色 16 | /// 17 | Debug = 0, 18 | /// 19 | /// 信息. 颜色: 黑色 20 | /// 21 | Info = 10, 22 | /// 23 | /// 信息 (成功) 颜色: 紫色 24 | /// 25 | InfoSuccess = 11, 26 | /// 27 | /// 信息 (接收) 颜色: 蓝色 28 | /// 29 | InfoReceive = 12, 30 | /// 31 | /// 信息 (发送) 颜色: 绿色 32 | /// 33 | InfoSend = 13, 34 | /// 35 | /// 警告 颜色: 橙色 36 | /// 37 | Warning = 20, 38 | /// 39 | /// 错误 颜色: 红色 40 | /// 41 | Error = 30, 42 | /// 43 | /// 致命错误 颜色: 深红色 44 | /// 45 | Fatal = 40 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQMessageEventType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q消息类事件的事件类型 11 | /// 12 | public enum CQMessageEventType 13 | { 14 | /// 15 | /// 私聊消息 16 | /// 17 | PrivateMessage = 21, 18 | /// 19 | /// 群消息 20 | /// 21 | GroupMessage = 2, 22 | /// 23 | /// 讨论组消息 24 | /// 25 | DiscussMessage = 4, 26 | /// 27 | /// 群文件上传 28 | /// 29 | GroupFileUpload = 11, 30 | /// 31 | /// 群管理变动 32 | /// 33 | GroupManageChange = 101, 34 | /// 35 | /// 群成员减少 36 | /// 37 | GroupMemberDecrease = 102, 38 | /// 39 | /// 群成员增加 40 | /// 41 | GroupMemberIncrease = 103, 42 | /// 43 | /// 群成员禁言 44 | /// 45 | GroupMemberBanSpeak = 104, 46 | /// 47 | /// 好友添加 48 | /// 49 | FriendAdd = 201, 50 | /// 51 | /// 好友添加请求 52 | /// 53 | FriendAddRequest = 301, 54 | /// 55 | /// 群添加请求 56 | /// 57 | GroupAddRequest = 302, 58 | /// 59 | /// 酷Q启动 60 | /// 61 | CQStartup = 1001, 62 | /// 63 | /// 酷Q退出 64 | /// 65 | CQExit = 1002, 66 | /// 67 | /// 酷Q应用被启用 68 | /// 69 | CQAppEnable = 1003, 70 | /// 71 | /// 酷Q应用被禁用 72 | /// 73 | CQAppDisable = 1004 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQMessageHandler.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q处理消息的方式 11 | /// 12 | public enum CQMessageHandler 13 | { 14 | /// 15 | /// 忽略消息, 允许后续应用继续处理此消息 16 | /// 17 | Ignore = 0, 18 | /// 19 | /// 拦截消息, 以阻止后续应用继续处理此消息 20 | /// 21 | Intercept = 1 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQMusicStyle.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示分享音乐时使用的分享卡片样式 11 | /// 12 | public enum CQMusicStyle 13 | { 14 | /// 15 | /// 旧版样式 16 | /// 17 | Old = 0, 18 | /// 19 | /// 大卡片样式 20 | /// 21 | BigCard = 1, 22 | /// 23 | /// 最新样式 24 | /// 25 | New = 2 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQMusicType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Enum 9 | { 10 | /// 11 | /// 指示点歌时使用的音乐来源 12 | /// 13 | [DefaultValue (CQMusicType.Tencent)] 14 | public enum CQMusicType 15 | { 16 | /// 17 | /// QQ 音乐 18 | /// 19 | [Description ("qq")] 20 | Tencent, 21 | /// 22 | /// 网易云音乐 23 | /// 24 | [Description ("163")] 25 | Netease, 26 | /// 27 | /// 虾米音乐 28 | /// 29 | [Description ("xiami")] 30 | XiaMi 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQPrviateMessageType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q私聊消息类型 11 | /// 12 | public enum CQPrviateMessageType 13 | { 14 | /// 15 | /// 好友 16 | /// 17 | Friend = 11, 18 | /// 19 | /// 在线状态 20 | /// 21 | OnlineStatus = 1, 22 | /// 23 | /// 群 24 | /// 25 | Group = 2, 26 | /// 27 | /// 讨论组 28 | /// 29 | Discuss = 3 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/CQResponseType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 指示酷Q请求响应类型 11 | /// 12 | public enum CQResponseType 13 | { 14 | /// 15 | /// 通过 16 | /// 17 | PASS = 1, 18 | /// 19 | /// 不通过 20 | /// 21 | FAIL = 2 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/QQGroupMemberType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 表示群成员对于所在群的群成员类型 11 | /// 12 | public enum QQGroupMemberType 13 | { 14 | /// 15 | /// 成员 16 | /// 17 | [Description ("成员")] 18 | Member = 1, 19 | /// 20 | /// 管理 21 | /// 22 | [Description ("管理员")] 23 | Manage = 2, 24 | /// 25 | /// 群主 26 | /// 27 | [Description ("群主")] 28 | Creator = 3 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Enum/QQSex.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | 7 | namespace Native.Sdk.Cqp.Enum 8 | { 9 | /// 10 | /// 表示QQ性别的枚举 11 | /// 12 | public enum QQSex 13 | { 14 | /// 15 | /// 男性 16 | /// 17 | [Description ("男")] 18 | Man = 0, 19 | /// 20 | /// 女性 21 | /// 22 | [Description ("女")] 23 | Woman = 1, 24 | /// 25 | /// 未知 26 | /// 27 | [Description ("未知")] 28 | Unknown = 255 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQAppDisableEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.EventArgs 8 | { 9 | /// 10 | /// 提供用于描述应用停用事件参数的类 11 | /// 12 | /// Type: 1004 13 | /// 14 | public sealed class CQAppDisableEventArgs : CQEventEventArgs 15 | { 16 | #region --构造函数-- 17 | /// 18 | /// 初始化 类的新实例 19 | /// 20 | /// 酷Q的接口实例 21 | /// 酷Q的日志实例 22 | /// 事件id 23 | /// 类型 24 | /// 名称 25 | /// 函数名 26 | /// 默认优先级 27 | public CQAppDisableEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority) 28 | : base (api, log, id, type, name, function, priority) 29 | { 30 | } 31 | #endregion 32 | 33 | #region --公开方法-- 34 | /// 35 | /// 返回表示当前对象的字符串 36 | /// 37 | /// 表示当前对象的字符串 38 | public override string ToString () 39 | { 40 | StringBuilder builder = new StringBuilder (); 41 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 42 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 43 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 44 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 45 | builder.AppendFormat ("优先级: {0}", this.Priority); 46 | return builder.ToString (); 47 | } 48 | #endregion 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQAppEnableEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.EventArgs 8 | { 9 | /// 10 | /// 提供用于描述应用启用事件参数的类 11 | /// 12 | /// Type: 1003 13 | /// 14 | public sealed class CQAppEnableEventArgs : CQEventEventArgs 15 | { 16 | #region --构造函数-- 17 | /// 18 | /// 初始化 类的新实例 19 | /// 20 | /// 酷Q的接口实例 21 | /// 酷Q的日志实例 22 | /// 事件id 23 | /// 类型 24 | /// 名称 25 | /// 函数名 26 | /// 默认优先级 27 | public CQAppEnableEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority) 28 | : base (api, log, id, type, name, function, priority) 29 | { 30 | } 31 | #endregion 32 | 33 | #region --公开方法-- 34 | /// 35 | /// 返回表示当前对象的字符串 36 | /// 37 | /// 表示当前对象的字符串 38 | public override string ToString () 39 | { 40 | StringBuilder builder = new StringBuilder (); 41 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 42 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 43 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 44 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 45 | builder.AppendFormat ("优先级: {0}", this.Priority); 46 | return builder.ToString (); 47 | } 48 | #endregion 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQDiscussMessageEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Model; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace Native.Sdk.Cqp.EventArgs 10 | { 11 | /// 12 | /// 提供用于描述酷Q讨论组事件参数的类 13 | /// 14 | /// Type: 4 15 | /// 16 | public sealed class CQDiscussMessageEventArgs : CQEventEventArgs 17 | { 18 | #region --属性-- 19 | /// 20 | /// 获取当前事件的消息子类型 21 | /// 22 | public CQDiscussMessageType SubType { get; private set; } 23 | 24 | /// 25 | /// 获取当前事件的来源讨论组 26 | /// 27 | public Discuss FromDiscuss { get; private set; } 28 | 29 | /// 30 | /// 获取当前事件的来源QQ 31 | /// 32 | public QQ FromQQ { get; private set; } 33 | 34 | /// 35 | /// 获取当前事件的消息内容 36 | /// 37 | public QQMessage Message { get; private set; } 38 | #endregion 39 | 40 | #region --构造函数-- 41 | /// 42 | /// 初始化 类的新实例 43 | /// 44 | /// 酷Q的接口实例 45 | /// 酷Q的日志实例 46 | /// 事件Id 47 | /// 事件类型 48 | /// 事件名称 49 | /// 函数名称 50 | /// 默认优先级 51 | /// 子类型 52 | /// 消息Id 53 | /// 来源讨论组 54 | /// 来源QQ 55 | /// 消息内容 56 | /// 是否为正则消息 57 | public CQDiscussMessageEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int msgId, long fromDiscuss, long fromQQ, string msg, bool isRegex) 58 | : base (api, log, id, type, name, function, priority) 59 | { 60 | this.SubType = (CQDiscussMessageType)subType; 61 | this.Message = new QQMessage (api, msgId, msg, isRegex); 62 | this.FromDiscuss = new Discuss (api, fromDiscuss); 63 | this.FromQQ = new QQ (api, fromQQ); 64 | } 65 | #endregion 66 | 67 | #region --公开方法-- 68 | /// 69 | /// 返回表示当前对象的字符串 70 | /// 71 | /// 表示当前对象的字符串 72 | public override string ToString () 73 | { 74 | StringBuilder builder = new StringBuilder (); 75 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 76 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 77 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 78 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 79 | builder.AppendLine (string.Format ("优先级: {0}", this.Priority)); 80 | builder.AppendLine (string.Format ("子类型: {0}({1})", this.SubType, (int)this.SubType)); 81 | builder.AppendLine (string.Format ("讨论组号: {0}", this.FromDiscuss != null ? this.FromDiscuss.Id.ToString () : string.Empty)); 82 | builder.AppendLine (string.Format ("账号: {0}", this.FromQQ != null ? this.FromQQ.Id.ToString () : string.Empty)); 83 | builder.Append (this.Message != null ? this.Message.ToString () : "消息: "); 84 | return builder.ToString (); 85 | } 86 | #endregion 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.EventArgs 8 | { 9 | /// 10 | /// 提供用于描述酷Q事件参数的基础类, 该类是抽象的 11 | /// 12 | public abstract class CQEventArgs 13 | { 14 | #region --属性-- 15 | /// 16 | /// 获取当前事件的 实例. 17 | /// 18 | public CQApi CQApi { get; private set; } 19 | 20 | /// 21 | /// 获取当前事件的 实例. 22 | /// 23 | public CQLog CQLog { get; private set; } 24 | 25 | /// 26 | /// 获取当前事件的回调函数名称. 是 function 字段 27 | /// 28 | public string Function { get; private set; } 29 | #endregion 30 | 31 | #region --构造函数-- 32 | /// 33 | /// 初始化 类的新实例 34 | /// 35 | /// 酷Q的接口实例 36 | /// 酷Q的日志实例 37 | /// 触发此事件的函数名称 38 | public CQEventArgs (CQApi api, CQLog log, string function) 39 | { 40 | this.CQApi = api; 41 | this.CQLog = log; 42 | this.Function = function; 43 | } 44 | #endregion 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQEventEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.EventArgs 9 | { 10 | /// 11 | /// 提供用于描述酷Q事件类事件参数的基础类, 该类是抽象的 12 | /// 13 | public abstract class CQEventEventArgs : CQEventArgs 14 | { 15 | #region --属性-- 16 | /// 17 | /// 获取来源事件的事件ID. 是 id 字段 18 | /// 19 | public int Id { get; private set; } 20 | 21 | /// 22 | /// 获取来源事件的事件类型. 是 type 字段 23 | /// 24 | public CQMessageEventType Type { get; private set; } 25 | 26 | /// 27 | /// 获取来源事件的事件名称. 是 name 字段 28 | /// 29 | public string Name { get; private set; } 30 | 31 | /// 32 | /// 获取来源事件的默认优先级. 是 priority 字段, 该值不会随着酷Q的调整而变动 33 | /// 34 | public uint Priority { get; private set; } 35 | 36 | /// 37 | /// 获取或设置一个值, 指示该事件是否已经处理 38 | /// 39 | public bool Handler { get; set; } 40 | #endregion 41 | 42 | #region --构造函数-- 43 | /// 44 | /// 初始化 类的新实例 45 | /// 46 | /// 酷Q的接口实例 47 | /// 酷Q的日志实例 48 | /// 事件id 49 | /// 类型 50 | /// 名称 51 | /// 函数名 52 | /// 默认优先级 53 | public CQEventEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority) 54 | : base (api, log, function) 55 | { 56 | this.Id = id; 57 | this.Type = (CQMessageEventType)type; 58 | this.Name = name; 59 | this.Priority = priority; 60 | this.Handler = false; 61 | } 62 | #endregion 63 | } 64 | } 65 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQExitEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.EventArgs 8 | { 9 | /// 10 | /// 提供用于描述酷Q停止事件参数的类 11 | /// 12 | /// Type: 1002 13 | /// 14 | public sealed class CQExitEventArgs : CQEventEventArgs 15 | { 16 | #region --构造函数-- 17 | /// 18 | /// 初始化 类的新实例 19 | /// 20 | /// 酷Q的接口实例 21 | /// 酷Q的日志实例 22 | /// 事件ID 23 | /// 类型 24 | /// 名称 25 | /// 函数名称 26 | /// 默认优先级 27 | public CQExitEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority) 28 | : base (api, log, id, type, name, function, priority) 29 | { 30 | } 31 | #endregion 32 | 33 | #region --公开方法-- 34 | /// 35 | /// 返回表示当前对象的字符串 36 | /// 37 | /// 表示当前对象的字符串 38 | public override string ToString () 39 | { 40 | StringBuilder builder = new StringBuilder (); 41 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 42 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 43 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 44 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 45 | builder.AppendFormat ("优先级: {0}", this.Priority); 46 | return builder.ToString (); 47 | } 48 | #endregion 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQFriendAddEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Expand; 3 | using Native.Sdk.Cqp.Model; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Native.Sdk.Cqp.EventArgs 11 | { 12 | /// 13 | /// 提供用于描述酷Q好友事件参数的类 14 | /// 15 | /// Type: 201 16 | /// 17 | public sealed class CQFriendAddEventArgs : CQEventEventArgs 18 | { 19 | #region --属性-- 20 | /// 21 | /// 获取当前事件的子类型 22 | /// 23 | public CQFriendAddType SubType { get; private set; } 24 | 25 | /// 26 | /// 获取当前事件的发送时间 27 | /// 28 | public DateTime SendTime { get; private set; } 29 | 30 | /// 31 | /// 获取当前事件的来源QQ 32 | /// 33 | public QQ FromQQ { get; private set; } 34 | #endregion 35 | 36 | #region --构造函数-- 37 | /// 38 | /// 初始化 类的新实例 39 | /// 40 | /// 酷Q的接口实例 41 | /// 酷Q的日志实例 42 | /// 事件Id 43 | /// 事件类型 44 | /// 事件名称 45 | /// 函数名称 46 | /// 默认优先级 47 | /// 子类型 48 | /// 发送时间 49 | /// 来源QQ 50 | public CQFriendAddEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int sendTime, long fromQQ) 51 | : base (api, log, id, type, name, function, priority) 52 | { 53 | this.SubType = (CQFriendAddType)subType; 54 | this.SendTime = sendTime.ToDateTime (); 55 | this.FromQQ = new QQ (api, fromQQ); 56 | } 57 | #endregion 58 | 59 | #region --公开方法-- 60 | /// 61 | /// 返回表示当前对象的字符串 62 | /// 63 | /// 表示当前对象的字符串 64 | public override string ToString () 65 | { 66 | StringBuilder builder = new StringBuilder (); 67 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 68 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 69 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 70 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 71 | builder.AppendLine (string.Format ("优先级: {0}", this.Priority)); 72 | builder.AppendLine (string.Format ("子类型: {0}({1})", this.SubType, (int)this.SubType)); 73 | builder.AppendLine (string.Format ("发送时间: {0}", this.SendTime)); 74 | builder.AppendFormat ("账号: {0}", this.FromQQ != null ? this.FromQQ.Id.ToString () : string.Empty); 75 | return builder.ToString (); 76 | } 77 | #endregion 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQFriendAddRequestEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Expand; 3 | using Native.Sdk.Cqp.Model; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Native.Sdk.Cqp.EventArgs 11 | { 12 | /// 13 | /// 提供用于描述酷Q好友添加请求事件参数的类 14 | /// 15 | /// Type: 301 16 | /// 17 | public class CQFriendAddRequestEventArgs : CQEventEventArgs 18 | { 19 | #region --属性-- 20 | /// 21 | /// 获取当前事件的子类型 22 | /// 23 | public CQFriendAddRequestType SubType { get; private set; } 24 | 25 | /// 26 | /// 获取当前事件的发送时间 27 | /// 28 | public DateTime SendTime { get; private set; } 29 | 30 | /// 31 | /// 获取当前事件的来源QQ 32 | /// 33 | public QQ FromQQ { get; private set; } 34 | 35 | /// 36 | /// 获取当前事件的附加消息 37 | /// 38 | public string AppendMessage { get; private set; } 39 | 40 | /// 41 | /// 获取当前事件用于处理请求所使用的响应标识 42 | /// 43 | public QQRequest Request { get; private set; } 44 | #endregion 45 | 46 | #region --构造函数-- 47 | /// 48 | /// 初始化 类的新实例 49 | /// 50 | /// 酷Q的接口实例 51 | /// 酷Q的日志实例 52 | /// 事件Id 53 | /// 事件类型 54 | /// 事件名称 55 | /// 函数名称 56 | /// 默认优先级 57 | /// 子类型 58 | /// 发送时间 59 | /// 来源QQ 60 | /// 附言 61 | /// 反馈标识 62 | public CQFriendAddRequestEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int sendTime, long fromQQ, string msg, string responseFlag) 63 | : base (api, log, id, type, name, function, priority) 64 | { 65 | this.SubType = (CQFriendAddRequestType)subType; 66 | this.SendTime = sendTime.ToDateTime (); 67 | this.FromQQ = new QQ (api, fromQQ); 68 | this.AppendMessage = msg; 69 | this.Request = new QQRequest (api, responseFlag); 70 | } 71 | #endregion 72 | 73 | #region --公开方法-- 74 | /// 75 | /// 返回表示当前对象的字符串 76 | /// 77 | /// 表示当前对象的字符串 78 | public override string ToString () 79 | { 80 | StringBuilder builder = new StringBuilder (); 81 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 82 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 83 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 84 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 85 | builder.AppendLine (string.Format ("优先级: {0}", this.Priority)); 86 | builder.AppendLine (string.Format ("子类型: {0}({1})", this.SubType, (int)this.SubType)); 87 | builder.AppendLine (string.Format ("发送时间: {0}", this.SendTime)); 88 | builder.AppendLine (string.Format ("账号: {0}", this.FromQQ != null ? this.FromQQ.Id.ToString () : string.Empty)); 89 | builder.AppendFormat ("附加消息: {0}", this.AppendMessage != null ? this.AppendMessage : string.Empty); 90 | return builder.ToString (); 91 | } 92 | #endregion 93 | } 94 | } 95 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQGroupAddRequestEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Expand; 3 | using Native.Sdk.Cqp.Model; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Native.Sdk.Cqp.EventArgs 11 | { 12 | /// 13 | /// 提供用于描述酷Q加群申请事件参数的类 14 | /// 15 | /// Type: 302 16 | /// 17 | public sealed class CQGroupAddRequestEventArgs : CQEventEventArgs 18 | { 19 | #region --属性-- 20 | /// 21 | /// 获取当前事件的子类型 22 | /// 23 | public CQGroupAddRequestType SubType { get; private set; } 24 | 25 | /// 26 | /// 获取当前事件的发送时间 27 | /// 28 | public DateTime SendTime { get; private set; } 29 | 30 | /// 31 | /// 获取当前事件的来源群 32 | /// 33 | public Group FromGroup { get; private set; } 34 | 35 | /// 36 | /// 获取当前事件的来源QQ 37 | /// 38 | public QQ FromQQ { get; private set; } 39 | 40 | /// 41 | /// 获取当前事件的附加消息 42 | /// 43 | public string AppendMessage { get; private set; } 44 | 45 | /// 46 | /// 获取当前事件用于处理请求的反馈标识 47 | /// 48 | public QQRequest Request { get; private set; } 49 | #endregion 50 | 51 | #region --构造函数-- 52 | /// 53 | /// 初始化 类的新实例 54 | /// 55 | /// 酷Q的接口实例 56 | /// 酷Q的日志实例 57 | /// 事件Id 58 | /// 事件类型 59 | /// 事件名称 60 | /// 函数名称 61 | /// 默认优先级 62 | /// 子类型 63 | /// 发送时间 64 | /// 来源群 65 | /// 来源QQ 66 | /// 附加消息 67 | /// 反馈标识 68 | public CQGroupAddRequestEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int sendTime, long fromGroup, long fromQQ, string msg, string responseFlag) 69 | : base (api, log, id, type, name, function, priority) 70 | { 71 | this.SubType = (CQGroupAddRequestType)subType; 72 | this.SendTime = sendTime.ToDateTime (); 73 | this.FromGroup = new Group (api, fromGroup); 74 | this.FromQQ = new QQ (api, fromQQ); 75 | this.AppendMessage = msg; 76 | this.Request = new QQRequest (api, responseFlag); 77 | } 78 | #endregion 79 | 80 | #region --公开方法-- 81 | /// 82 | /// 返回表示当前对象的字符串 83 | /// 84 | /// 表示当前对象的字符串 85 | public override string ToString () 86 | { 87 | StringBuilder builder = new StringBuilder (); 88 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 89 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 90 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 91 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 92 | builder.AppendLine (string.Format ("优先级: {0}", this.Priority)); 93 | builder.AppendLine (string.Format ("子类型: {0}({1})", this.SubType, (int)this.SubType)); 94 | builder.AppendLine (string.Format ("发送时间: {0}", this.SendTime)); 95 | builder.AppendLine (string.Format ("群号: {0}", this.FromGroup != null ? this.FromGroup.Id.ToString () : string.Empty)); 96 | builder.AppendLine (string.Format ("账号: {0}", this.FromQQ != null ? this.FromQQ.Id.ToString () : string.Empty)); 97 | builder.AppendFormat ("附加消息: {0}", this.AppendMessage != null ? this.AppendMessage : string.Empty); 98 | return builder.ToString (); 99 | } 100 | #endregion 101 | } 102 | } 103 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQGroupManageChangeEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Expand; 3 | using Native.Sdk.Cqp.Model; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Native.Sdk.Cqp.EventArgs 11 | { 12 | /// 13 | /// 提供用于描述酷Q群管理变化事件参数的类 14 | /// 15 | /// Type: 101 16 | /// 17 | public sealed class CQGroupManageChangeEventArgs : CQEventEventArgs 18 | { 19 | #region --属性-- 20 | /// 21 | /// 获取当前事件的子类型 22 | /// 23 | public CQGroupManageChangeType SubType { get; private set; } 24 | 25 | /// 26 | /// 获取当前事件的发送时间 27 | /// 28 | public DateTime SendTime { get; private set; } 29 | 30 | /// 31 | /// 获取当前事件的来源群 32 | /// 33 | public Group FromGroup { get; private set; } 34 | 35 | /// 36 | /// 被操作的QQ 37 | /// 38 | public QQ BeingOperateQQ { get; private set; } 39 | #endregion 40 | 41 | #region --构造函数-- 42 | /// 43 | /// 初始化 类的新实例 44 | /// 45 | /// 酷Q的接口实例 46 | /// 酷Q的日志实例 47 | /// 事件Id 48 | /// 事件类型 49 | /// 事件名称 50 | /// 函数名称 51 | /// 默认优先级 52 | /// 子类型 53 | /// 发送时间 54 | /// 来源群 55 | /// 被操作QQ 56 | public CQGroupManageChangeEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int sendTime, long fromGroup, long beingOperateQQ) 57 | : base (api, log, id, type, name, function, priority) 58 | { 59 | this.SubType = (CQGroupManageChangeType)subType; 60 | this.SendTime = sendTime.ToDateTime (); 61 | this.FromGroup = new Group (api, fromGroup); 62 | this.BeingOperateQQ = new QQ (api, beingOperateQQ); 63 | } 64 | #endregion 65 | 66 | #region --公开函数-- 67 | /// 68 | /// 返回表示当前对象的字符串 69 | /// 70 | /// 表示当前对象的字符串 71 | public override string ToString () 72 | { 73 | StringBuilder builder = new StringBuilder (); 74 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 75 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 76 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 77 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 78 | builder.AppendLine (string.Format ("优先级: {0}", this.Priority)); 79 | builder.AppendLine (string.Format ("子类型: {0}({1})", this.SubType, (int)this.SubType)); 80 | builder.AppendLine (string.Format ("发送时间: {0}", this.SendTime)); 81 | builder.AppendLine (string.Format ("群号: {0}", this.FromGroup != null ? this.FromGroup.Id.ToString () : string.Empty)); 82 | builder.AppendFormat ("被操作账号: {0}", this.BeingOperateQQ != null ? this.BeingOperateQQ.Id.ToString () : string.Empty); 83 | return builder.ToString (); 84 | } 85 | #endregion 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQGroupMemberDecreaseEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Expand; 3 | using Native.Sdk.Cqp.Model; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Native.Sdk.Cqp.EventArgs 11 | { 12 | /// 13 | /// 提供用于描述酷Q群成员减少事件参数的类 14 | /// 15 | /// Type: 102 16 | /// 17 | public sealed class CQGroupMemberDecreaseEventArgs : CQEventEventArgs 18 | { 19 | #region --属性-- 20 | /// 21 | /// 获取当前事件的子类型 22 | /// 23 | public CQGroupMemberDecreaseType SubType { get; private set; } 24 | 25 | /// 26 | /// 获取当前事件的发送时间 27 | /// 28 | public DateTime SendTime { get; private set; } 29 | 30 | /// 31 | /// 获取当前事件的来源群 32 | /// 33 | public Group FromGroup { get; private set; } 34 | 35 | /// 36 | /// 获取当前事件的来源QQ 37 | /// 38 | public QQ FromQQ { get; private set; } 39 | 40 | /// 41 | /// 获取当前事件被操作的QQ 42 | /// 43 | public QQ BeingOperateQQ { get; private set; } 44 | #endregion 45 | 46 | #region --构造函数-- 47 | /// 48 | /// 初始化 类的新实例 49 | /// 50 | /// 酷Q的接口实例 51 | /// 酷Q的日志实例 52 | /// 事件ID 53 | /// 事件类型 54 | /// 事件名称 55 | /// 函数名称 56 | /// 默认优先级 57 | /// 子类型 58 | /// 发送时间 59 | /// 来源群 60 | /// 来源QQ 61 | /// 被操作QQ 62 | public CQGroupMemberDecreaseEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int sendTime, long fromGroup, long fromQQ, long beingOperateQQ) 63 | : base (api, log, id, type, name, function, priority) 64 | { 65 | this.SubType = (CQGroupMemberDecreaseType)subType; 66 | this.SendTime = sendTime.ToDateTime (); 67 | this.FromGroup = new Group (api, fromGroup); 68 | if (subType == 2) // 仅仅当类型为2时存在 FromQQ 69 | { 70 | this.FromQQ = new QQ (api, fromQQ); 71 | } 72 | this.BeingOperateQQ = new QQ (api, beingOperateQQ); 73 | } 74 | #endregion 75 | 76 | #region --公开函数-- 77 | /// 78 | /// 返回表示当前对象的字符串 79 | /// 80 | /// 表示当前对象的字符串 81 | public override string ToString () 82 | { 83 | StringBuilder builder = new StringBuilder (); 84 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 85 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 86 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 87 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 88 | builder.AppendLine (string.Format ("优先级: {0}", this.Priority)); 89 | builder.AppendLine (string.Format ("子类型: {0}({1})", this.SubType, (int)this.SubType)); 90 | builder.AppendLine (string.Format ("发送时间: {0}", this.SendTime)); 91 | builder.AppendLine (string.Format ("群号: {0}", this.FromGroup != null ? this.FromGroup.Id.ToString () : string.Empty)); 92 | builder.AppendLine (string.Format ("操作者账号: {0}", this.FromQQ != null ? this.FromQQ.Id.ToString () : string.Empty)); 93 | builder.AppendFormat ("被操作账号: {0}", this.BeingOperateQQ != null ? this.BeingOperateQQ.Id.ToString () : string.Empty); 94 | return builder.ToString (); 95 | } 96 | #endregion 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQGroupMemberIncreaseEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Expand; 3 | using Native.Sdk.Cqp.Model; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Native.Sdk.Cqp.EventArgs 11 | { 12 | /// 13 | /// 提供用于描述酷Q群成员增加事件参数的类 14 | /// 15 | /// Type: 103 16 | /// 17 | public sealed class CQGroupMemberIncreaseEventArgs : CQEventEventArgs 18 | { 19 | #region --属性-- 20 | /// 21 | /// 获取当前事件的子类型 22 | /// 23 | public CQGroupMemberIncreaseType SubType { get; private set; } 24 | 25 | /// 26 | /// 获取当前事件的发送时间 27 | /// 28 | public DateTime SendTime { get; private set; } 29 | 30 | /// 31 | /// 获取当前事件的来源群 32 | /// 33 | public Group FromGroup { get; private set; } 34 | 35 | /// 36 | /// 获取当前事件的来源QQ 37 | /// 38 | public QQ FromQQ { get; private set; } 39 | 40 | /// 41 | /// 获取当前事件的被操作QQ 42 | /// 43 | public QQ BeingOperateQQ { get; private set; } 44 | #endregion 45 | 46 | #region --构造函数-- 47 | /// 48 | /// 初始化 类的新实例 49 | /// 50 | /// 酷Q的接口实例 51 | /// 酷Q的日志实例 52 | /// 事件Id 53 | /// 事件类型 54 | /// 事件名称 55 | /// 函数名称 56 | /// 默认优先级 57 | /// 子类型 58 | /// 发送时间 59 | /// 来源群 60 | /// 来源QQ 61 | /// 被操作QQ 62 | public CQGroupMemberIncreaseEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int sendTime, long fromGroup, long fromQQ, long beingOperateQQ) 63 | : base (api, log, id, type, name, function, priority) 64 | { 65 | this.SubType = (CQGroupMemberIncreaseType)subType; 66 | this.SendTime = sendTime.ToDateTime (); 67 | this.FromGroup = new Group (api, fromGroup); 68 | if (fromQQ >= QQ.MinValue) 69 | { 70 | this.FromQQ = new QQ (api, fromQQ); 71 | } 72 | if (beingOperateQQ >= QQ.MinValue) 73 | { 74 | this.BeingOperateQQ = new QQ (api, beingOperateQQ); 75 | } 76 | } 77 | #endregion 78 | 79 | #region --公开函数-- 80 | /// 81 | /// 返回表示当前对象的字符串 82 | /// 83 | /// 表示当前对象的字符串 84 | public override string ToString () 85 | { 86 | StringBuilder builder = new StringBuilder (); 87 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 88 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 89 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 90 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 91 | builder.AppendLine (string.Format ("优先级: {0}", this.Priority)); 92 | builder.AppendLine (string.Format ("子类型: {0}({1})", this.SubType, (int)this.SubType)); 93 | builder.AppendLine (string.Format ("发送时间: {0}", this.SendTime)); 94 | builder.AppendLine (string.Format ("群号: {0}", this.FromGroup != null ? this.FromGroup.Id.ToString () : string.Empty)); 95 | builder.AppendLine (string.Format ("操作者账号: {0}", this.FromQQ != null ? this.FromQQ.Id.ToString () : string.Empty)); 96 | builder.AppendFormat ("被操作账号: {0}", this.BeingOperateQQ != null ? this.BeingOperateQQ.Id.ToString () : string.Empty); 97 | return builder.ToString (); 98 | } 99 | #endregion 100 | } 101 | } 102 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQGroupUploadEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Expand; 3 | using Native.Sdk.Cqp.Model; 4 | using System; 5 | using System.Collections.Generic; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Native.Sdk.Cqp.EventArgs 11 | { 12 | /// 13 | /// 提供用于描述酷Q群文件上传事件参数的类 14 | /// 15 | /// Type: 11 16 | /// 17 | public sealed class CQGroupUploadEventArgs : CQEventEventArgs 18 | { 19 | #region --属性-- 20 | /// 21 | /// 获取当前事件的消息子类型 22 | /// 23 | public CQGroupFileUploadType SubType { get; private set; } 24 | 25 | /// 26 | /// 获取当前事件的发送时间 27 | /// 28 | public DateTime SendTime { get; private set; } 29 | 30 | /// 31 | /// 获取当前事件的来源群 32 | /// 33 | public Group FromGroup { get; private set; } 34 | 35 | /// 36 | /// 获取当前事件的来源QQ 37 | /// 38 | public QQ FromQQ { get; private set; } 39 | 40 | /// 41 | /// 获取当前事件的文件信息 42 | /// 43 | public GroupFileInfo FileInfo { get; private set; } 44 | #endregion 45 | 46 | #region --构造函数-- 47 | /// 48 | /// 初始化 类的新实例 49 | /// 50 | /// 酷Q的接口实例 51 | /// 酷Q的日志实例 52 | /// 事件Id 53 | /// 事件类型 54 | /// 事件名称 55 | /// 函数名称 56 | /// 默认优先级 57 | /// 子类型 58 | /// 发送时间 59 | /// 来源群 60 | /// 来源QQ 61 | /// 文件信息 62 | public CQGroupUploadEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int sendTime, long fromGroup, long fromQQ, string file) 63 | : base (api, log, id, type, name, function, priority) 64 | { 65 | this.SubType = (CQGroupFileUploadType)subType; 66 | this.SendTime = sendTime.ToDateTime (); 67 | this.FromGroup = new Group (api, fromGroup); 68 | this.FromQQ = new QQ (api, fromQQ); 69 | this.FileInfo = new GroupFileInfo (api, file); 70 | } 71 | #endregion 72 | 73 | #region --公开函数-- 74 | /// 75 | /// 返回表示当前对象的字符串 76 | /// 77 | /// 表示当前对象的字符串 78 | public override string ToString () 79 | { 80 | StringBuilder builder = new StringBuilder (); 81 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 82 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 83 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 84 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 85 | builder.AppendLine (string.Format ("优先级: {0}", this.Priority)); 86 | builder.AppendLine (string.Format ("子类型: {0}({1})", this.SubType, (int)this.SubType)); 87 | builder.AppendLine (string.Format ("发送时间: {0}", this.SendTime)); 88 | builder.AppendLine (string.Format ("群号: {0}", this.FromGroup != null ? this.FromGroup.Id.ToString () : string.Empty)); 89 | builder.AppendLine (string.Format ("账号: {0}", this.FromQQ != null ? this.FromQQ.Id.ToString () : string.Empty)); 90 | builder.Append (this.FileInfo != null ? this.FileInfo.ToString () : "文件信息: "); 91 | return builder.ToString (); 92 | } 93 | #endregion 94 | } 95 | } 96 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQMenuCallEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.EventArgs 8 | { 9 | /// 10 | /// 提供用于描述酷Q菜单调用事件参数的类 11 | /// 12 | public class CQMenuCallEventArgs : CQMenuEventArgs 13 | { 14 | #region --构造函数-- 15 | /// 16 | /// 初始化 类的新实例 17 | /// 18 | /// 酷Q的接口实例 19 | /// 酷Q的日志实例 20 | /// 菜单名称 21 | /// 菜单函数 22 | public CQMenuCallEventArgs (CQApi api, CQLog log, string name, string function) 23 | : base (api, log, name, function) 24 | { 25 | } 26 | #endregion 27 | 28 | #region --公开方法-- 29 | /// 30 | /// 返回表示当前对象的字符串 31 | /// 32 | /// 表示当前对象的字符串 33 | public override string ToString () 34 | { 35 | StringBuilder builder = new StringBuilder (); 36 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 37 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 38 | return builder.ToString (); 39 | } 40 | #endregion 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQMenuEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.EventArgs 8 | { 9 | /// 10 | /// 提供用于描述酷Q菜单类事件参数的基础类, 该类是抽象的 11 | /// 12 | public abstract class CQMenuEventArgs : CQEventArgs 13 | { 14 | #region --属性-- 15 | /// 16 | /// 获取来源事件的事件名称. 是 name 字段 17 | /// 18 | public string Name { get; private set; } 19 | #endregion 20 | 21 | #region --构造函数-- 22 | /// 23 | /// 初始化 类的新实例 24 | /// 25 | /// 酷Q的接口实例 26 | /// 酷Q的日志实例 27 | /// 菜单名称 28 | /// 函数名 29 | public CQMenuEventArgs (CQApi api, CQLog log, string name, string function) 30 | : base (api, log, function) 31 | { 32 | this.Name = name; 33 | } 34 | #endregion 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQPrivateMessageEventArgs.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Model; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace Native.Sdk.Cqp.EventArgs 10 | { 11 | /// 12 | /// 提供用于描述酷Q私聊消息事件参数的类 13 | /// 14 | /// Type: 21 15 | /// 16 | public sealed class CQPrivateMessageEventArgs : CQEventEventArgs 17 | { 18 | #region --属性-- 19 | /// 20 | /// 获取当前事件的消息子类型 21 | /// 22 | public CQPrviateMessageType SubType { get; private set; } 23 | 24 | /// 25 | /// 获取当前事件的来源QQ 26 | /// 27 | public QQ FromQQ { get; private set; } 28 | 29 | /// 30 | /// 获取当前事件的消息内容 31 | /// 32 | public QQMessage Message { get; private set; } 33 | #endregion 34 | 35 | #region --构造函数-- 36 | /// 37 | /// 初始化 类的新实例 38 | /// 39 | /// 酷Q的接口实例 40 | /// 酷Q的日志实例 41 | /// 事件id 42 | /// 事件类型 43 | /// 事件名称 44 | /// 事件函数名 45 | /// 事件优先级 46 | /// 消息子类型 47 | /// 消息ID 48 | /// 来源QQ 49 | /// 消息内容 50 | /// 是否为正则消息 51 | public CQPrivateMessageEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority, int subType, int msgId, long fromQQ, string msg, bool isRegex) 52 | : base (api, log, id, type, name, function, priority) 53 | { 54 | this.SubType = (CQPrviateMessageType)subType; 55 | this.FromQQ = new QQ (api, fromQQ); 56 | this.Message = new QQMessage (api, msgId, msg, isRegex); 57 | } 58 | #endregion 59 | 60 | #region --公开函数-- 61 | /// 62 | /// 返回表示当前对象的字符串 63 | /// 64 | /// 表示当前对象的字符串 65 | public override string ToString () 66 | { 67 | StringBuilder builder = new StringBuilder (); 68 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 69 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 70 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 71 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 72 | builder.AppendLine (string.Format ("优先级: {0}", this.Priority)); 73 | builder.AppendLine (string.Format ("子类型: {0}({1})", this.SubType, (int)this.SubType)); 74 | builder.AppendLine (string.Format ("账号: {0}", this.FromQQ != null ? this.FromQQ.Id.ToString () : string.Empty)); 75 | builder.Append (this.Message != null ? this.Message.ToString () : "消息: "); 76 | return builder.ToString (); 77 | } 78 | #endregion 79 | } 80 | } 81 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQStartupEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.EventArgs 8 | { 9 | /// 10 | /// 提供用于描述酷Q启动事件参数的类 11 | /// 12 | /// Type: 1001 13 | /// 14 | public sealed class CQStartupEventArgs : CQEventEventArgs 15 | { 16 | #region --构造函数-- 17 | /// 18 | /// 初始化 类的新实例 19 | /// 20 | /// 酷Q的接口实例 21 | /// 酷Q的日志实例 22 | /// 事件ID 23 | /// 类型 24 | /// 名称 25 | /// 函数名称 26 | /// 默认优先级 27 | public CQStartupEventArgs (CQApi api, CQLog log, int id, int type, string name, string function, uint priority) 28 | : base (api, log, id, type, name, function, priority) 29 | { 30 | } 31 | #endregion 32 | 33 | #region --公开方法-- 34 | /// 35 | /// 返回表示当前对象的字符串 36 | /// 37 | /// 表示当前对象的字符串 38 | public override string ToString () 39 | { 40 | StringBuilder builder = new StringBuilder (); 41 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 42 | builder.AppendLine (string.Format ("类型: {0}({1})", this.Type, (int)this.Type)); 43 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 44 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 45 | builder.AppendFormat ("优先级: {0}", this.Priority); 46 | return builder.ToString (); 47 | } 48 | #endregion 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQStatusEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.EventArgs 8 | { 9 | /// 10 | /// 提供用于描述酷Q悬浮窗状态事件参数的类, 该类是抽象的 11 | /// 12 | public abstract class CQStatusEventArgs : CQEventArgs 13 | { 14 | #region --属性-- 15 | /// 16 | /// 获取来源事件的ID. 是 id 字段 17 | /// 18 | public int Id { get; private set; } 19 | 20 | /// 21 | /// 获取来源事件的名称. 是 name 字段 22 | /// 23 | public string Name { get; private set; } 24 | 25 | /// 26 | /// 获取来源事件的显示标题. 是 title 字段 27 | /// 28 | public string Title { get; private set; } 29 | 30 | /// 31 | /// 获取来源事件的刷新间隔. 是 period 字段, 目前仅支持 1000ms (1秒) 32 | /// 33 | public TimeSpan Period { get; private set; } 34 | #endregion 35 | 36 | #region --构造函数-- 37 | /// 38 | /// 初始化 类的新实例 39 | /// 40 | /// 酷Q的接口实例 41 | /// 酷Q的日志实例 42 | /// 事件Id 43 | /// 名称 44 | /// 标题 45 | /// 函数名 46 | /// 刷新间隔 47 | public CQStatusEventArgs (CQApi api, CQLog log, int id, string name, string title, string function, long period) 48 | : base (api, log, function) 49 | { 50 | this.Id = id; 51 | this.Name = name; 52 | this.Title = title; 53 | this.Period = new TimeSpan (period * TimeSpan.TicksPerMillisecond); 54 | } 55 | #endregion 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/EventArgs/CQStatusUpdateEventArgs.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.EventArgs 8 | { 9 | /// 10 | /// 提供用于描述酷Q悬浮窗状态更新事件参数的类 11 | /// 12 | public sealed class CQStatusUpdateEventArgs : CQStatusEventArgs 13 | { 14 | #region --构造函数-- 15 | /// 16 | /// 初始化 类的新实例 17 | /// 18 | /// 酷Q的接口实例 19 | /// 酷Q的日志实例 20 | /// 悬浮窗id 21 | /// 名称 22 | /// 英文名称 23 | /// 函数名称 24 | /// 更新间隔 25 | public CQStatusUpdateEventArgs (CQApi api, CQLog log, int id, string name, string title, string function, long period) 26 | : base (api, log, id, name, title, function, period) 27 | { 28 | } 29 | #endregion 30 | 31 | #region --公开方法-- 32 | /// 33 | /// 返回表示当前对象的字符串 34 | /// 35 | /// 表示当前对象的字符串 36 | public override string ToString () 37 | { 38 | StringBuilder builder = new StringBuilder (); 39 | builder.AppendLine (string.Format ("ID: {0}", this.Id)); 40 | builder.AppendLine (string.Format ("名称: {0}", this.Name)); 41 | builder.AppendLine (string.Format ("标题: {0}", this.Title)); 42 | builder.AppendLine (string.Format ("函数: {0}", this.Function)); 43 | builder.AppendFormat ("刷新间隔: {0}", this.Period); 44 | return builder.ToString (); 45 | } 46 | #endregion 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Expand/BinaryWriterExpand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.IO; 6 | 7 | namespace Native.Sdk.Cqp.Expand 8 | { 9 | /// 10 | /// 类的扩展方法集 11 | /// 12 | public static class BinaryWriterExpand 13 | { 14 | #region --公开方法-- 15 | /// 16 | /// 将写入基础流的 数值 17 | /// 18 | /// 基础 对象 19 | /// 要写入的值 20 | /// 出现 I/O 错误。 21 | /// 流已关闭。 22 | /// buffer 为 null。 23 | public static void Write_Ex (this BinaryWriter binary, short value) 24 | { 25 | SetBinary (binary, BitConverter.GetBytes (value), true); 26 | } 27 | 28 | /// 29 | /// 将写入基础流的 数值 30 | /// 31 | /// 基础 对象 32 | /// 要写入的值 33 | /// 出现 I/O 错误。 34 | /// 流已关闭。 35 | /// buffer 为 null。 36 | public static void Write_Ex (this BinaryWriter binary, int value) 37 | { 38 | SetBinary (binary, BitConverter.GetBytes (value), true); 39 | } 40 | 41 | /// 42 | /// 将写入基础流的 数值 43 | /// 44 | /// 基础 对象 45 | /// 要写入的值 46 | /// 出现 I/O 错误。 47 | /// 流已关闭。 48 | /// buffer 为 null。 49 | public static void Write_Ex (this BinaryWriter binary, long value) 50 | { 51 | SetBinary (binary, BitConverter.GetBytes (value), true); 52 | } 53 | 54 | /// 55 | /// 将写入基础流的 数值 56 | /// 57 | /// 基础 对象 58 | /// 要写入的值 59 | /// 出现 I/O 错误。 60 | /// 流已关闭。 61 | /// buffer 为 null。 62 | public static void Write_Ex (this BinaryWriter binary, string value) 63 | { 64 | byte[] buffer = Encoding.Default.GetBytes (value); 65 | Write_Ex (binary, (short)buffer.Length); 66 | SetBinary (binary, buffer, false); 67 | } 68 | 69 | /// 70 | /// 将基础流转换为相同的字节数组 71 | /// 72 | /// 基础 对象 73 | public static byte[] ToArray (this BinaryWriter binary) 74 | { 75 | long position = binary.BaseStream.Position; // 记录原指针位置 76 | 77 | byte[] buffer = new byte[binary.BaseStream.Length]; 78 | binary.BaseStream.Position = 0; // 设置读取位置为 0 79 | binary.BaseStream.Read (buffer, 0, buffer.Length); 80 | 81 | binary.BaseStream.Position = position; // 还原原指针位置 82 | return buffer; 83 | } 84 | #endregion 85 | 86 | #region --私有方法-- 87 | private static void SetBinary (BinaryWriter binary, byte[] buffer, bool isReverse) 88 | { 89 | if (isReverse) 90 | { 91 | buffer = buffer.Reverse ().ToArray (); 92 | } 93 | binary.Write (buffer); 94 | } 95 | #endregion 96 | } 97 | } 98 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Expand/SystemExpand.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Reflection; 6 | using System.Runtime.InteropServices; 7 | using System.Text; 8 | using Native.Sdk.Cqp.Core; 9 | using Native.Sdk.Cqp.Interface; 10 | 11 | namespace Native.Sdk.Cqp.Expand 12 | { 13 | /// 14 | /// 其它类扩展方法集 15 | /// 16 | public static class SystemExpand 17 | { 18 | /// 19 | /// 获取 Unix 时间戳的 表示形式 20 | /// 21 | /// unix 时间戳 22 | /// 23 | public static DateTime ToDateTime (this int unixTime) 24 | { 25 | DateTime dtStart = TimeZone.CurrentTimeZone.ToLocalTime (new DateTime (1970, 1, 1)); 26 | TimeSpan toNow = new TimeSpan (long.Parse (string.Format ("{0}0000000", unixTime))); 27 | DateTime daTime = dtStart.Add (toNow); 28 | return daTime; 29 | } 30 | 31 | /// 32 | /// 获取当前对象的 实例, 该实例为 类型 33 | /// 34 | /// 将转换的对象 35 | /// 转换的编码 36 | /// 37 | public static GCHandle GetStringGCHandle (this string source, Encoding encoding = null) 38 | { 39 | if (encoding == null) 40 | { 41 | encoding = Encoding.Default; 42 | } 43 | 44 | byte[] buffer = encoding.GetBytes (source); 45 | return GCHandle.Alloc (buffer, GCHandleType.Pinned); 46 | } 47 | 48 | /// 49 | /// 读取指针内所有的字节数组并编码为指定字符串 50 | /// 51 | /// 字符串的 对象 52 | /// 目标编码格式 53 | /// 54 | public static string ToString (this IntPtr strPtr, Encoding encoding = null) 55 | { 56 | if (encoding == null) 57 | { 58 | encoding = Encoding.Default; 59 | } 60 | 61 | int len = Kernel32.LstrlenA (strPtr); //获取指针中数据的长度 62 | if (len == 0) 63 | { 64 | return string.Empty; 65 | } 66 | byte[] buffer = new byte[len]; 67 | Marshal.Copy (strPtr, buffer, 0, len); 68 | return encoding.GetString (buffer); 69 | } 70 | 71 | /// 72 | /// 将对象转换为可发送的字符串, 如果待转换的对象继承自 将使用该接口的方法获取字符串 73 | /// 74 | /// 消息参数 75 | /// 发现有 null 参数 76 | /// 可发送的字符串 77 | public static string ToSendString (this object[] objects) 78 | { 79 | StringBuilder builder = new StringBuilder (); 80 | for (int i = 0; i < objects.Length; i++) 81 | { 82 | if (objects[i] == null) 83 | { 84 | throw new ArgumentNullException ("objects", string.Format ("第 {0} 个成员为 null", i)); 85 | } 86 | 87 | IToSendString sendString = objects[i] as IToSendString; 88 | if (sendString != null) 89 | { 90 | builder.Append (sendString.ToSendString ()); 91 | } 92 | else 93 | { 94 | builder.Append (objects[i].ToString ()); 95 | } 96 | } 97 | return builder.ToString (); 98 | } 99 | 100 | /// 101 | /// 读取 标记 的值 102 | /// 103 | /// 原始 值 104 | /// 105 | public static string GetDescription (this System.Enum value) 106 | { 107 | if (value == null) 108 | { 109 | return string.Empty; 110 | } 111 | 112 | FieldInfo fieldInfo = value.GetType ().GetField (value.ToString ()); 113 | DescriptionAttribute attribute = fieldInfo.GetCustomAttribute (false); 114 | return attribute.Description; 115 | } 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IAppDisable.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q应用禁用接口 12 | /// 13 | /// Type: 1004 14 | /// 15 | public interface IAppDisable 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q应用禁用 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void AppDisable (object sender, CQAppDisableEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IAppEnable.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q应用启用接口 12 | /// 13 | /// Type: 1003 14 | /// 15 | public interface IAppEnable 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q应用启用 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void AppEnable (object sender, CQAppEnableEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/ICQExit.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q退出事件接口 12 | /// 13 | /// Type: 1002 14 | /// 15 | public interface ICQExit 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q退出事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void CQExit (object sender, CQExitEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/ICQStartup.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q启动事件接口 12 | /// 13 | /// Type: 1001 14 | /// 15 | public interface ICQStartup 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q启动事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void CQStartup (object sender, CQStartupEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IDiscussMessage.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q讨论组消息接口 12 | /// 13 | /// Type: 4 14 | /// 15 | public interface IDiscussMessage 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q讨论组消息 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void DiscussMessage (object sender, CQDiscussMessageEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IFriendAdd.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q好友添加事件接口 12 | /// 13 | /// Type: 201 14 | /// 15 | public interface IFriendAdd 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q好友添加事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void FriendAdd (object sender, CQFriendAddEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IFriendAddRequest.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q好友添加请求事件接口 12 | /// 13 | /// Type: 301 14 | /// 15 | public interface IFriendAddRequest 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q好友添加请求事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void FriendAddRequest (object sender, CQFriendAddRequestEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IGroupAddRequest.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q群添加请求事件接口 12 | /// 13 | /// Type: 302 14 | /// 15 | public interface IGroupAddRequest 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q群添加请求事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void GroupAddRequest (object sender, CQGroupAddRequestEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IGroupBanSpeak.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q群禁言事件接口 12 | /// 13 | /// Type: 104 14 | /// 15 | public interface IGroupBanSpeak 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q群禁言事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void GroupBanSpeak (object sender, CQGroupBanSpeakEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IGroupManageChange.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q群管理变动事件接口 12 | /// 13 | /// Type: 101 14 | /// 15 | public interface IGroupManageChange 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q群管理变动事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void GroupManageChange (object sender, CQGroupManageChangeEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IGroupMemberDecrease.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q群成员减少事件接口 12 | /// 13 | /// Type: 102 14 | /// 15 | public interface IGroupMemberDecrease 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q群成员减少事件接口 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void GroupMemberDecrease (object sender, CQGroupMemberDecreaseEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IGroupMemberIncrease.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q群成员增加事件接口 12 | /// 13 | /// Type: 103 14 | /// 15 | public interface IGroupMemberIncrease 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q群成员增加事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void GroupMemberIncrease (object sender, CQGroupMemberIncreaseEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IGroupMessage.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Native.Sdk.Cqp.EventArgs; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q群聊消息接口 12 | /// 13 | /// Type: 2 14 | /// 15 | public interface IGroupMessage 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q群聊消息 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void GroupMessage (object sender, CQGroupMessageEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IGroupUpload.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Native.Sdk.Cqp.EventArgs; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q群上传事件接口 12 | /// 13 | /// Type: 11 14 | /// 15 | public interface IGroupUpload 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q群上传事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void GroupUpload (object sender, CQGroupUploadEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IMenuCall.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q调用菜单事件接口 12 | /// 13 | public interface IMenuCall 14 | { 15 | /// 16 | /// 当在派生类中重写时, 处理 酷Q调用菜单事件 回调 17 | /// 18 | /// 事件来源对象 19 | /// 附加的事件参数 20 | void MenuCall (object sender, CQMenuCallEventArgs e); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IPrivateMessage.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Interface 9 | { 10 | /// 11 | /// 酷Q私聊消息事件接口 12 | /// 13 | /// Type: 21 14 | /// 15 | public interface IPrivateMessage 16 | { 17 | /// 18 | /// 当在派生类中重写时, 处理 酷Q私聊消息事件 回调 19 | /// 20 | /// 事件来源对象 21 | /// 附加的事件参数 22 | void PrivateMessage (object sender, CQPrivateMessageEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IStatusUpdate.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.EventArgs; 2 | using Native.Sdk.Cqp.Model; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace Native.Sdk.Cqp.Interface 10 | { 11 | /// 12 | /// 酷Q更新状态事件接口 13 | /// 14 | public interface IStatusUpdate 15 | { 16 | /// 17 | /// 当在派生类中重写时, 处理 酷Q更新状态事件 回调 18 | /// 19 | /// 事件来源对象 20 | /// 附加的事件参数 21 | /// 返回用于展示的 对象 22 | CQFloatWindow StatusUpdate (object sender, CQStatusUpdateEventArgs e); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Interface/IToSendString.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Interface 8 | { 9 | /// 10 | /// 转换发送字符串的接口 11 | /// 12 | public interface IToSendString 13 | { 14 | /// 15 | /// 当在派生类中重写时, 处理返回用于发送的字符串 16 | /// 17 | /// 用于发送的字符串 18 | string ToSendString (); 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Model/AppInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Sdk.Cqp.Model 8 | { 9 | /// 10 | /// 表示当前插件的一些基本信息的类 11 | /// 12 | public class AppInfo 13 | { 14 | #region --属性-- 15 | /// 16 | /// 获取当前应用的 AppID 17 | /// 18 | public string Id { get; private set; } 19 | 20 | /// 21 | /// 获取当前应用的返回码 22 | /// 23 | public int ResultCode { get; private set; } 24 | 25 | /// 26 | /// 获取当前应用的 Api 版本 27 | /// 28 | public int ApiVersion { get; private set; } 29 | 30 | /// 31 | /// 获取当前应用的名称 32 | /// 33 | public string Name { get; private set; } 34 | 35 | /// 36 | /// 获取当前应用的版本号 37 | /// 38 | public Version Version { get; private set; } 39 | 40 | /// 41 | /// 获取当前应用的顺序版本 42 | /// 43 | public int VersionId { get; private set; } 44 | 45 | /// 46 | /// 获取当前应用的作者名 47 | /// 48 | public string Author { get; private set; } 49 | 50 | /// 51 | /// 获取当前应用的说明文本 52 | /// 53 | public string Description { get; private set; } 54 | 55 | /// 56 | /// 获取当前应用的验证码 57 | /// 58 | public int AuthCode { get; private set; } 59 | #endregion 60 | 61 | #region --构造函数-- 62 | /// 63 | /// 初始化 类的新实例 64 | /// 65 | /// 当前应用appid 66 | /// 返回码 67 | /// api版本 68 | /// 应用名称 69 | /// 版本号 70 | /// 版本id 71 | /// 应用作者 72 | /// 应用说明 73 | /// 应用授权码 74 | public AppInfo (string id, int resCode, int apiVer, string name, string version, int versionId, string author, string description, int authCode) 75 | { 76 | this.Id = id; 77 | this.ResultCode = resCode; 78 | this.ApiVersion = apiVer; 79 | this.Name = name; 80 | this.Version = new Version (version); 81 | this.VersionId = versionId; 82 | this.Author = author; 83 | this.Description = description; 84 | this.AuthCode = authCode; 85 | } 86 | #endregion 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Model/BasisModel.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Interface; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Sdk.Cqp.Model 9 | { 10 | /// 11 | /// 描述酷Q数据模型的基础类, 该类是抽象的 12 | /// 13 | public abstract class BasisModel : IToSendString 14 | { 15 | #region --属性-- 16 | /// 17 | /// 获取当前模型持有用于扩展自身的 对象 18 | /// 19 | public CQApi CQApi { get; private set; } 20 | #endregion 21 | 22 | #region --构造函数-- 23 | /// 24 | /// 使用指定的 初始化当前类的新实例 25 | /// 26 | /// 模型使用的 27 | /// 参数: api 为 null 28 | public BasisModel (CQApi api) 29 | { 30 | if (api == null) 31 | { 32 | throw new ArgumentNullException ("api"); 33 | } 34 | 35 | this.CQApi = api; 36 | } 37 | #endregion 38 | 39 | #region --公开方法-- 40 | /// 41 | /// 当在派生类中重写时, 处理返回用于发送的字符串 42 | /// 43 | /// 用于发送的字符串 44 | public abstract string ToSendString (); 45 | #endregion 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Model/BasisStreamModel.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Interface; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace Native.Sdk.Cqp.Model 10 | { 11 | /// 12 | /// 描述酷Q需要解析数据流模型的基础类, 该类是抽象的 13 | /// 14 | public abstract class BasisStreamModel : BasisModel, IToSendString 15 | { 16 | #region --构造函数-- 17 | /// 18 | /// 使用指定的密文初始化 类的新实例 19 | /// 20 | /// 模型使用的 21 | /// 模型使用的解密密文字符串 22 | /// 参数: api 或 cipherText 为 null 23 | /// cipherText 的长度(忽略空格)不是 0 或 4 的倍数。 或 cipherText 的格式无效。 cipherText 包含非 base 64 字符、两个以上的填充字符或者在填充字符中包含非空格字符 24 | public BasisStreamModel (CQApi api, string cipherText) 25 | : this (api, Convert.FromBase64String (cipherText)) 26 | { 27 | 28 | } 29 | /// 30 | /// 使用指定的密文初始化 类的新实例 31 | /// 32 | /// 模型使用的 33 | /// 模型使用的解密密文字节数组 34 | /// 参数: api 或 cipherBytes 为 null 35 | public BasisStreamModel (CQApi api, byte[] cipherBytes) 36 | : base (api) 37 | { 38 | if (cipherBytes.Length > 0) 39 | { 40 | using (BinaryReader reader = new BinaryReader (new MemoryStream (cipherBytes))) 41 | { 42 | this.Initialize (reader); 43 | } 44 | } 45 | } 46 | #endregion 47 | 48 | #region --私有方法-- 49 | /// 50 | /// 当在派生类中重写时, 进行当前模型初始化 51 | /// 52 | /// 解析模型的数据源 53 | protected abstract void Initialize (BinaryReader reader); 54 | #endregion 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Model/GroupFileInfo.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Expand; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using System.Linq; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace Native.Sdk.Cqp.Model 10 | { 11 | /// 12 | /// 表示描述 群文件信息 的类 13 | /// 14 | public class GroupFileInfo : BasisStreamModel, IEquatable 15 | { 16 | #region --属性-- 17 | /// 18 | /// 获取一个值, 指示当前文件的 Busid (唯一标识符) 19 | /// 20 | public int Id { get; private set; } 21 | /// 22 | /// 获取一个值, 指示当前文件的名称 23 | /// 24 | public string FileName { get; private set; } 25 | /// 26 | /// 获取一个值, 指示当前文件的Id 27 | /// 28 | public string FileId { get; private set; } 29 | /// 30 | /// 获取一个值, 指示当前文件的大小 31 | /// 32 | public long FileSize { get; private set; } 33 | #endregion 34 | 35 | #region --构造函数-- 36 | /// 37 | /// 使用指定的密文初始化 类的新实例 38 | /// 39 | /// 模型使用的 40 | /// 模型使用的解密密文字符串 41 | public GroupFileInfo (CQApi api, string cipherText) 42 | : base (api, cipherText) 43 | { 44 | } 45 | #endregion 46 | 47 | #region --公开方法-- 48 | /// 49 | /// 指示当前对象是否等于同一类型的另一个对象 50 | /// 51 | /// 一个与此对象进行比较的对象 52 | /// 如果当前对象等于 other 参数,则为 ;否则为 53 | public bool Equals (GroupFileInfo other) 54 | { 55 | if (other == null) 56 | { 57 | return false; 58 | } 59 | 60 | return this.Id == other.Id && this.FileName.Equals (other.FileName) && this.FileId.Equals (other.FileId) && this.FileSize == other.FileSize; 61 | } 62 | /// 63 | /// 指示当前对象是否等于同一类型的另一个对象 64 | /// 65 | /// 一个与此对象进行比较的对象 66 | /// 如果当前对象等于 other 参数,则为 ;否则为 67 | public override bool Equals (object obj) 68 | { 69 | return this.Equals (obj as GroupFileInfo); 70 | } 71 | /// 72 | /// 返回此实例的哈希代码 73 | /// 74 | /// 32 位有符号整数哈希代码 75 | public override int GetHashCode () 76 | { 77 | return this.Id.GetHashCode () & this.FileName.GetHashCode () & this.FileId.GetHashCode () & this.FileSize.GetHashCode (); 78 | } 79 | /// 80 | /// 返回表示当前对象的字符串 81 | /// 82 | /// 表示当前对象的字符串 83 | public override string ToString () 84 | { 85 | StringBuilder builder = new StringBuilder (); 86 | builder.AppendFormat ("BusId: {0}{1}", this.Id, Environment.NewLine); 87 | builder.AppendFormat ("文件名: {0}{1}", this.FileName, Environment.NewLine); 88 | builder.AppendFormat ("文件ID: {0}{1}", this.FileId, Environment.NewLine); 89 | builder.AppendFormat ("文件大小: {0}{1}", this.FileSize, Environment.NewLine); 90 | return builder.ToString (); 91 | } 92 | /// 93 | /// 返回用于发送的字符串 94 | /// 95 | /// 用于发送的字符串 96 | public override string ToSendString () 97 | { 98 | return this.ToString (); 99 | } 100 | #endregion 101 | 102 | #region --私有方法-- 103 | /// 104 | /// 当在派生类中重写时, 进行当前模型初始化 105 | /// 106 | /// 解析模型的数据源 107 | protected override void Initialize (BinaryReader reader) 108 | { 109 | if (reader.Length () < 20) 110 | { 111 | throw new InvalidDataException ("读取失败, 获取的原始数据长度小于 20"); 112 | } 113 | 114 | this.FileId = reader.ReadString_Ex (CQApi.DefaultEncoding); 115 | this.FileName = reader.ReadString_Ex (CQApi.DefaultEncoding); 116 | this.FileSize = reader.ReadInt64_Ex (); 117 | this.Id = (int)reader.ReadInt64_Ex (); 118 | } 119 | #endregion 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Model/GroupInfoCollection.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Expand; 2 | using System; 3 | using System.Collections; 4 | using System.Collections.Generic; 5 | using System.IO; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Native.Sdk.Cqp.Model 11 | { 12 | /// 13 | /// 描述 QQ群信息集合 的类 14 | /// 15 | public class GroupInfoCollection : BasisStreamModel, IReadOnlyCollection, IEquatable 16 | { 17 | #region --字段-- 18 | private List _list; 19 | #endregion 20 | 21 | #region --属性-- 22 | /// 23 | /// 获取 中包含的元素数 24 | /// 25 | public int Count 26 | { 27 | get { return this._list.Count; } 28 | } 29 | #endregion 30 | 31 | #region --构造函数-- 32 | /// 33 | /// 使用指定的密文初始化 类的新实例 34 | /// 35 | /// 模型使用的 36 | /// 模型使用的解密密文字符串 37 | public GroupInfoCollection (CQApi api, string cipherText) 38 | : base (api, cipherText) 39 | { 40 | } 41 | #endregion 42 | 43 | #region --公开方法-- 44 | /// 45 | /// 返回一个循环访问集合的枚举器 46 | /// 47 | /// 用于循环访问集合的枚举数 48 | public IEnumerator GetEnumerator () 49 | { 50 | return this._list.GetEnumerator (); 51 | } 52 | /// 53 | /// 返回一个循环访问集合的枚举器 54 | /// 55 | /// 用于循环访问集合的枚举数 56 | IEnumerator IEnumerable.GetEnumerator () 57 | { 58 | return this.GetEnumerator (); 59 | } 60 | /// 61 | /// 指示当前对象是否等于同一类型的另一个对象 62 | /// 63 | /// 一个与此对象进行比较的对象 64 | /// 如果当前对象等于 other 参数,则为 ;否则为 65 | public bool Equals (GroupInfoCollection other) 66 | { 67 | if (other == null) 68 | { 69 | return false; 70 | } 71 | 72 | return this._list.SequenceEqual (other._list); 73 | } 74 | /// 75 | /// 指示当前对象是否等于同一类型的另一个对象 76 | /// 77 | /// 一个与此对象进行比较的对象 78 | /// 如果当前对象等于 other 参数,则为 ;否则为 79 | public override bool Equals (object obj) 80 | { 81 | return this.Equals (obj as GroupInfoCollection); 82 | } 83 | /// 84 | /// 返回此实例的哈希代码 85 | /// 86 | /// 32 位有符号整数哈希代码 87 | public override int GetHashCode () 88 | { 89 | return this._list.GetHashCode (); 90 | } 91 | /// 92 | /// 返回表示当前对象的字符串 93 | /// 94 | /// 表示当前对象的字符串 95 | public override string ToString () 96 | { 97 | StringBuilder builder = new StringBuilder (); 98 | foreach (GroupInfo item in this) 99 | { 100 | builder.AppendFormat ("群: {0}({1}){2}", item.Name, item.Group.Id, Environment.NewLine); 101 | builder.AppendLine (); 102 | } 103 | return builder.ToString (); 104 | } 105 | /// 106 | /// 返回用于发送的字符串 107 | /// 108 | /// 用于发送的字符串 109 | public override string ToSendString () 110 | { 111 | return this.ToString (); 112 | } 113 | #endregion 114 | 115 | #region --私有方法-- 116 | /// 117 | /// 当在派生类中重写时, 进行当前模型初始化 118 | /// 119 | /// 解析模型的数据源 120 | protected override void Initialize (BinaryReader reader) 121 | { 122 | if (this._list == null) 123 | { 124 | this._list = new List (); 125 | } 126 | 127 | int count = reader.ReadInt32_Ex (); 128 | for (int i = 0; i < count; i++) 129 | { 130 | if (reader.Length () <= 0) 131 | { 132 | throw new EndOfStreamException ("无法读取数据, 因为已经读取到数据流末尾"); 133 | } 134 | 135 | this._list.Add (new GroupInfo (this.CQApi, reader.ReadToken_Ex (), true)); 136 | } 137 | } 138 | #endregion 139 | } 140 | } 141 | -------------------------------------------------------------------------------- /Native.Sdk/Cqp/Model/StrangerInfo.cs: -------------------------------------------------------------------------------- 1 | using Native.Sdk.Cqp.Enum; 2 | using Native.Sdk.Cqp.Expand; 3 | using System; 4 | using System.Collections.Generic; 5 | using System.IO; 6 | using System.Linq; 7 | using System.Text; 8 | using System.Threading.Tasks; 9 | 10 | namespace Native.Sdk.Cqp.Model 11 | { 12 | /// 13 | /// 描述 QQ陌生人信息 的类 14 | /// 15 | public class StrangerInfo : BasisStreamModel, IEquatable 16 | { 17 | #region --属性-- 18 | /// 19 | /// 获取一个值, 指示当前的账号的 实例 20 | /// 21 | public QQ QQ { get; private set; } 22 | /// 23 | /// 获取一个值, 指示当前的QQ昵称 24 | /// 25 | public string Nick { get; private set; } 26 | /// 27 | /// 获取一个值, 指示当前QQ的性别 28 | /// 29 | public QQSex Sex { get; private set; } 30 | /// 31 | /// 获取一个值, 指示当前的年龄 32 | /// 33 | public int Age { get; private set; } 34 | #endregion 35 | 36 | #region --构造函数-- 37 | /// 38 | /// 使用指定的密文初始化 类的新实例 39 | /// 40 | /// 模型使用的 41 | /// 模型使用的解密密文字符串 42 | public StrangerInfo (CQApi api, string cipherText) 43 | : base (api, cipherText) 44 | { 45 | } 46 | #endregion 47 | 48 | #region --公开方法-- 49 | /// 50 | /// 指示当前对象是否等于同一类型的另一个对象 51 | /// 52 | /// 一个与此对象进行比较的对象 53 | /// 如果当前对象等于 other 参数,则为 ;否则为 54 | public bool Equals (StrangerInfo other) 55 | { 56 | if (other == null) 57 | { 58 | return false; 59 | } 60 | 61 | return this.QQ.Equals (other.QQ) && this.Nick.Equals (other.Nick) && this.Sex == other.Sex && this.Age == other.Age; 62 | } 63 | /// 64 | /// 指示当前对象是否等于同一类型的另一个对象 65 | /// 66 | /// 一个与此对象进行比较的对象 67 | /// 如果当前对象等于 other 参数,则为 ;否则为 68 | public override bool Equals (object obj) 69 | { 70 | return this.Equals (obj as StrangerInfo); 71 | } 72 | /// 73 | /// 返回此实例的哈希代码 74 | /// 75 | /// 32 位有符号整数哈希代码 76 | public override int GetHashCode () 77 | { 78 | return this.QQ.GetHashCode () & this.Nick.GetHashCode () & this.Sex.GetHashCode () & this.Age.GetHashCode (); 79 | } 80 | /// 81 | /// 返回表示当前对象的字符串 82 | /// 83 | /// 表示当前对象的字符串 84 | public override string ToString () 85 | { 86 | StringBuilder builder = new StringBuilder (); 87 | builder.AppendFormat ("QQ: {0}{1}", this.QQ.ToSendString (), Environment.NewLine); 88 | builder.AppendFormat ("昵称: {0}{1}", this.Nick, Environment.NewLine); 89 | builder.AppendFormat ("性别: {0}{1}", this.Sex.GetDescription (), Environment.NewLine); 90 | builder.AppendFormat ("年龄: {0}{1}", this.Age, Environment.NewLine); 91 | return builder.ToString (); 92 | } 93 | /// 94 | /// 当在派生类中重写时, 处理返回用于发送的字符串 95 | /// 96 | /// 用于发送的字符串 97 | public override string ToSendString () 98 | { 99 | return this.ToString (); 100 | } 101 | #endregion 102 | 103 | #region --私有方法-- 104 | /// 105 | /// 进行当前模型初始化 106 | /// 107 | /// 解析模型的数据源 108 | protected override void Initialize (BinaryReader reader) 109 | { 110 | this.QQ = new QQ (this.CQApi, reader.ReadInt64_Ex ()); 111 | this.Nick = reader.ReadString_Ex (CQApi.DefaultEncoding); 112 | this.Sex = (QQSex)reader.ReadInt32_Ex (); 113 | this.Age = reader.ReadInt32_Ex (); 114 | } 115 | #endregion 116 | } 117 | } 118 | -------------------------------------------------------------------------------- /Native.Sdk/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("Native.Sdk")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Jie2GG")] 12 | [assembly: AssemblyProduct ("(Native)原生应用开发框架接口集")] 13 | [assembly: AssemblyCopyright ("Copyright © Microsoft 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("d7a958b3-79d9-49f8-8bb4-9619bab6ecba")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion ("2.9.3.0616")] 36 | [assembly: AssemblyFileVersion ("2.9.3.0616")] 37 | -------------------------------------------------------------------------------- /Native.Tool/Http/HttpTool.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Web; 6 | 7 | namespace Native.Tool.Http 8 | { 9 | /// 10 | /// Http 工具类 11 | /// 12 | public static class HttpTool 13 | { 14 | /// 15 | /// 使用默认编码对 URL 进行编码 16 | /// 17 | /// 要编码的地址 18 | /// 编码后的地址 19 | public static string UrlEncode (string url) 20 | { 21 | return HttpUtility.UrlEncode (url); 22 | } 23 | 24 | /// 25 | /// 使用指定的编码 对 URL 进行编码 26 | /// 27 | /// 要编码的地址 28 | /// 编码类型 29 | /// 编码后的地址 30 | public static string UrlEncode (string url, Encoding encoding) 31 | { 32 | return HttpUtility.UrlEncode (url, encoding); 33 | } 34 | 35 | /// 36 | /// 使用默认编码对 URL 进行解码 37 | /// 38 | /// 要解码的地址 39 | /// 编码后的地址 40 | public static string UrlDecode (string url) 41 | { 42 | return HttpUtility.UrlDecode (url); 43 | } 44 | 45 | /// 46 | /// 使用指定的编码 对 URL 进行解码 47 | /// 48 | /// 要解码的地址 49 | /// 编码类型 50 | /// 编码后的地址 51 | public static string UrlDecode (string url, Encoding encoding) 52 | { 53 | return HttpUtility.UrlDecode (url, encoding); 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Attribute/IniConfigKeyAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Attribute 8 | { 9 | /// 10 | /// 表示 IniConfig 在序列化时将表示为键的特性 11 | /// 12 | [Obsolete("该类型跟随 IniConvert 类型过期")] 13 | [AttributeUsage (AttributeTargets.Property, AllowMultiple = false)] 14 | public sealed class IniConfigKeyAttribute : System.Attribute 15 | { 16 | /// 17 | /// 表示 IniConfig 文件中存储的键名称 18 | /// 19 | public string KeyName { get; set; } 20 | 21 | /// 22 | /// 初始化 类的新实例 23 | /// 24 | public IniConfigKeyAttribute () 25 | : this (null) 26 | { } 27 | 28 | /// 29 | /// 初始化 类的新实例 30 | /// 31 | /// 用于表示键值对 "键" 的名称 32 | public IniConfigKeyAttribute (string keyName) 33 | { 34 | this.KeyName = keyName; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Attribute/IniConfigSectionAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Attribute 8 | { 9 | /// 10 | /// 表示 IniConfig 在序列化时将表示为节的特性 11 | /// 12 | [Obsolete ("该类型跟随 IniConvert 类型过期")] 13 | [AttributeUsage (AttributeTargets.Class | AttributeTargets.Struct)] 14 | public sealed class IniConfigSectionAttribute : System.Attribute 15 | { 16 | /// 17 | /// 表示 IniConfig 中存储的节名称 18 | /// 19 | public string SectionName { get; set; } 20 | 21 | /// 22 | /// 初始化 类的新实例 23 | /// 24 | public IniConfigSectionAttribute () 25 | : this (null) 26 | { } 27 | 28 | /// 29 | /// 初始化 类的新实例 30 | /// 31 | /// 用于表示节点的节名称 32 | public IniConfigSectionAttribute (string sectionName) 33 | { 34 | this.SectionName = sectionName; 35 | } 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Attribute/IniKeyAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Attribute 8 | { 9 | /// 10 | /// 表示配置项 (Ini) 文件键名称的特性 11 | /// 12 | [AttributeUsage (AttributeTargets.Property)] 13 | public sealed class IniKeyAttribute : System.Attribute 14 | { 15 | #region --字段-- 16 | private string _keyName; 17 | #endregion 18 | 19 | #region --属性-- 20 | /// 21 | /// 获取或设置配置项 (Ini) 键名称 22 | /// 23 | public string KeyName 24 | { 25 | get { return this._keyName; } 26 | set 27 | { 28 | if (string.IsNullOrEmpty (value)) 29 | { 30 | throw new ArgumentException ("传入的字符串不允许用来设置键名称, 原因: 键名称不能为空", "value"); 31 | } 32 | this._keyName = value; 33 | } 34 | } 35 | #endregion 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Attribute/IniNonSerializeAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Attribute 8 | { 9 | /// 10 | /// 表示对象不参与 IniConfig 的序列化的特性 11 | /// 12 | [Obsolete ("该类型跟随 IniConvert 类型过期")] 13 | [AttributeUsage (AttributeTargets.Property)] 14 | public sealed class IniNonSerializeAttribute : System.Attribute 15 | { 16 | 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Attribute/IniSectionAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Attribute 8 | { 9 | /// 10 | /// 表示配置项 (Ini) 文件节名称的特性 11 | /// 12 | [AttributeUsage (AttributeTargets.Class)] 13 | public sealed class IniSectionAttribute : System.Attribute 14 | { 15 | #region --字段-- 16 | private string _sectionName; 17 | #endregion 18 | 19 | #region --属性-- 20 | /// 21 | /// 获取或设置配置项 (Ini) 节名称 22 | /// 23 | public string SectionName 24 | { 25 | get { return this._sectionName; } 26 | set 27 | { 28 | if (string.IsNullOrEmpty (value)) 29 | { 30 | throw new ArgumentException ("传入的字符串不允许用来设置节名称, 原因: 节名称不能为空", "value"); 31 | } 32 | this._sectionName = value; 33 | } 34 | } 35 | #endregion 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Attribute/IniSerializeAttribute.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Attribute 8 | { 9 | /// 10 | /// 表示对象参数 IniConfig 对象序列化的特性 11 | /// 12 | [Obsolete ("该类型跟随 IniConvert 类型过期")] 13 | [AttributeUsage (AttributeTargets.Property)] 14 | public class IniSerializeAttribute : System.Attribute 15 | { 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Exception/IniConfigException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Runtime.Serialization; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Tool.IniConfig.Exception 9 | { 10 | /// 11 | /// 表示 IniConfig 运行期间发生的错误 12 | /// 13 | [Obsolete ("该类型跟随 IniConvert 类型过期")] 14 | public class IniConfigException : System.Exception 15 | { 16 | /// 17 | /// 初始化 类的新实例 18 | /// 19 | public IniConfigException () 20 | { 21 | } 22 | 23 | /// 24 | /// 用指定的错误消息初始化 类的新实例 25 | /// 26 | /// 描述错误的消息 27 | public IniConfigException (string message) : base (message) 28 | { 29 | } 30 | 31 | /// 32 | /// 使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 类的新实例 33 | /// 34 | /// 解释异常原因的错误消息 35 | /// 导致当前异常的异常;如果未指定内部异常,则是一个 null 引用(在 Visual Basic 中为 Nothing) 36 | public IniConfigException (string message, System.Exception innerException) : base (message, innerException) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Exception/PropertyNotFoundException.cs: -------------------------------------------------------------------------------- 1 | using Native.Tool.IniConfig; 2 | using System; 3 | using System.Collections.Generic; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Tool.IniConfig.Exception 9 | { 10 | /// 11 | /// 表示属性找不到的异常 12 | /// 13 | [Obsolete ("该类型跟随 IniConfigException 类型过期")] 14 | public sealed class PropertyNotFoundException : IniConfigException 15 | { 16 | /// 17 | /// 初始化 类的新实例 18 | /// 19 | public PropertyNotFoundException () 20 | { 21 | } 22 | 23 | /// 24 | /// 用指定的错误消息初始化 类的新实例 25 | /// 26 | /// 描述错误的消息 27 | public PropertyNotFoundException (string message) 28 | : base (message) 29 | { 30 | } 31 | 32 | /// 33 | /// 使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 类的新实例 34 | /// 35 | /// 解释异常原因的错误消息 36 | /// 导致当前异常的异常;如果未指定内部异常,则是一个 null 引用(在 Visual Basic 中为 Nothing) 37 | public PropertyNotFoundException (string message, System.Exception innerException) 38 | : base (message, innerException) 39 | { 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Exception/SectionNotFoundException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Exception 8 | { 9 | /// 10 | /// 表示 "节" 找不到的异常 11 | /// 12 | [Obsolete ("该类型跟随 IniConfigException 类型过期")] 13 | public class SectionNotFoundException : IniConfigException 14 | { 15 | /// 16 | /// 初始化 类的新实例 17 | /// 18 | public SectionNotFoundException () 19 | { 20 | } 21 | 22 | /// 23 | /// 用指定的错误消息初始化 类的新实例 24 | /// 25 | /// 描述错误的消息 26 | public SectionNotFoundException (string message) : base (message) 27 | { 28 | } 29 | 30 | /// 31 | /// 使用指定的错误消息和对作为此异常原因的内部异常的引用来初始化 类的新实例 32 | /// 33 | /// 解释异常原因的错误消息 34 | /// 导致当前异常的异常;如果未指定内部异常,则是一个 null 引用(在 Visual Basic 中为 Nothing) 35 | public SectionNotFoundException (string message, System.Exception innerException) : base (message, innerException) 36 | { 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Linq/IValueType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | 8 | namespace Native.Tool.IniConfig.Linq 9 | { 10 | [DefaultValue (IValueType.String)] 11 | public enum IValueType 12 | { 13 | /// 14 | /// 一个空引用 15 | /// 16 | Empty, 17 | /// 18 | /// 表示布尔值的简单类型 19 | /// 20 | Boolean, 21 | /// 22 | /// 表示整数值的类型 23 | /// 24 | Integer, 25 | /// 26 | /// 表示浮点数值的类型 27 | /// 28 | Float, 29 | /// 30 | /// 表示日期和时间值的类型 31 | /// 32 | DateTime, 33 | /// 34 | /// 表示时间间的类型 35 | /// 36 | TimeSpan, 37 | /// 38 | /// 表示字节数组的类型 39 | /// 40 | Bytes, 41 | /// 42 | /// 表示 Unicode 字符字符串的密封的类类型 43 | /// 44 | String, 45 | /// 46 | /// 表示全局唯一标识(GUID)的类型 47 | /// 48 | Guid, 49 | /// 50 | /// 表示统一资源标识符 (URI) 的类型 51 | /// 52 | Uri 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Utilities/ConvertUtils.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Globalization; 4 | using System.Linq; 5 | using System.Numerics; 6 | using System.Text; 7 | using System.Threading.Tasks; 8 | 9 | namespace Native.Tool.IniConfig.Utilities 10 | { 11 | internal static class ConvertUtils 12 | { 13 | internal static TimeSpan StringToTimeSpan (string input) 14 | { 15 | return TimeSpan.Parse (input, CultureInfo.InvariantCulture); 16 | } 17 | 18 | internal static BigInteger ToBigInteger (object value) 19 | { 20 | if (value is BigInteger) 21 | { 22 | return (BigInteger)value; 23 | } 24 | 25 | string value2 = value as string; 26 | if (value2 != null) 27 | { 28 | return BigInteger.Parse (value2, CultureInfo.InvariantCulture); 29 | } 30 | if (value is float) 31 | { 32 | float value3 = (float)value; 33 | return new BigInteger (value3); 34 | } 35 | if (value is double) 36 | { 37 | double value4 = (double)value; 38 | return new BigInteger (value4); 39 | } 40 | if (value is decimal) 41 | { 42 | decimal value5 = (decimal)value; 43 | return new BigInteger (value5); 44 | } 45 | if (value is int) 46 | { 47 | int value6 = (int)value; 48 | return new BigInteger (value6); 49 | } 50 | if (value is long) 51 | { 52 | long value7 = (long)value; 53 | return new BigInteger (value7); 54 | } 55 | if (value is uint) 56 | { 57 | uint value8 = (uint)value; 58 | return new BigInteger (value8); 59 | } 60 | if (value is ulong) 61 | { 62 | ulong value9 = (ulong)value; 63 | return new BigInteger (value9); 64 | } 65 | byte[] value10; 66 | if ((value10 = (value as byte[])) != null) 67 | { 68 | return new BigInteger (value10); 69 | } 70 | 71 | throw new InvalidCastException (string.Format ("无法将 {0} 转换为 BigInteger.", value.GetType ().Name)); 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Utilities/MathUtils.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Utilities 8 | { 9 | internal class MathUtils 10 | { 11 | internal static bool ApproxEquals(double a, double b) 12 | { 13 | if (a == b) 14 | { 15 | return true; 16 | } 17 | double num = (Math.Abs (a) + Math.Abs (b) + 10.0) * 2.2204460492503131E-16; 18 | double num2 = a - b; 19 | return -num < num2 && num > num2; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Utilities/MiscellaneousUtils.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Utilities 8 | { 9 | internal class MiscellaneousUtils 10 | { 11 | internal static int ByteArrayCompare (byte[] b1, byte[] b2) 12 | { 13 | int num = b1.Length.CompareTo (b2.Length); 14 | if (num != 0) 15 | { 16 | return num; 17 | } 18 | for (int i = 0; i < b1.Length; i++) 19 | { 20 | int temp = b1[i].CompareTo (b2[i]); 21 | if (temp != 0) 22 | { 23 | return temp; 24 | } 25 | } 26 | return 0; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Native.Tool/IniConfig/Utilities/ReflectionUtils.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace Native.Tool.IniConfig.Utilities 8 | { 9 | internal class ReflectionUtils 10 | { 11 | internal static bool IsNullableType (Type t) 12 | { 13 | if (t == null) 14 | { 15 | throw new ArgumentNullException ("t"); 16 | } 17 | 18 | return t.IsGenericType && t.GetGenericTypeDefinition () == typeof (Nullable<>); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Native.Tool/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // 有关程序集的一般信息由以下 6 | // 控制。更改这些特性值可修改 7 | // 与程序集关联的信息。 8 | [assembly: AssemblyTitle("Native.Tool")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany ("Jie2GG")] 12 | [assembly: AssemblyProduct ("(Native)原生应用开发框架工具集")] 13 | [assembly: AssemblyCopyright ("Copyright © Microsoft 2018")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // 将 ComVisible 设置为 false 会使此程序集中的类型 18 | //对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 19 | //请将此类型的 ComVisible 特性设置为 true。 20 | [assembly: ComVisible(false)] 21 | 22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID 23 | [assembly: Guid("0ca93eb9-4e25-46c6-94d2-0f97137a1606")] 24 | 25 | // 程序集的版本信息由下列四个值组成: 26 | // 27 | // 主版本 28 | // 次版本 29 | // 生成号 30 | // 修订号 31 | // 32 | // 可以指定所有值,也可以使用以下所示的 "*" 预置版本号和修订号 33 | //通过使用 "*",如下所示: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion ("3.3.3.0601")] 36 | [assembly: AssemblyFileVersion ("3.3.3.0601")] 37 | -------------------------------------------------------------------------------- /Native.Tool/SQLite/AssemblySourceIdAttribute.cs: -------------------------------------------------------------------------------- 1 | /******************************************************** 2 | * ADO.NET 2.0 Data Provider for SQLite Version 3.X 3 | * Written by Joe Mistachkin (joe@mistachkin.com) 4 | * 5 | * Released to the public domain, use at your own risk! 6 | ********************************************************/ 7 | 8 | using System; 9 | 10 | namespace System.Data.SQLite 11 | { 12 | /// 13 | /// Defines a source code identifier custom attribute for an assembly 14 | /// manifest. 15 | /// 16 | [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] 17 | public sealed class AssemblySourceIdAttribute : Attribute 18 | { 19 | /// 20 | /// Constructs an instance of this attribute class using the specified 21 | /// source code identifier value. 22 | /// 23 | /// 24 | /// The source code identifier value to use. 25 | /// 26 | public AssemblySourceIdAttribute(string value) 27 | { 28 | sourceId = value; 29 | } 30 | 31 | /////////////////////////////////////////////////////////////////////// 32 | 33 | private string sourceId; 34 | /// 35 | /// Gets the source code identifier value. 36 | /// 37 | public string SourceId 38 | { 39 | get { return sourceId; } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Native.Tool/SQLite/AssemblySourceTimeStampAttribute.cs: -------------------------------------------------------------------------------- 1 | /******************************************************** 2 | * ADO.NET 2.0 Data Provider for SQLite Version 3.X 3 | * Written by Joe Mistachkin (joe@mistachkin.com) 4 | * 5 | * Released to the public domain, use at your own risk! 6 | ********************************************************/ 7 | 8 | using System; 9 | 10 | namespace System.Data.SQLite 11 | { 12 | /// 13 | /// Defines a source code time-stamp custom attribute for an assembly 14 | /// manifest. 15 | /// 16 | [AttributeUsage(AttributeTargets.Assembly, Inherited = false)] 17 | public sealed class AssemblySourceTimeStampAttribute : Attribute 18 | { 19 | /// 20 | /// Constructs an instance of this attribute class using the specified 21 | /// source code time-stamp value. 22 | /// 23 | /// 24 | /// The source code time-stamp value to use. 25 | /// 26 | public AssemblySourceTimeStampAttribute(string value) 27 | { 28 | sourceTimeStamp = value; 29 | } 30 | 31 | /////////////////////////////////////////////////////////////////////// 32 | 33 | private string sourceTimeStamp; 34 | /// 35 | /// Gets the source code time-stamp value. 36 | /// 37 | public string SourceTimeStamp 38 | { 39 | get { return sourceTimeStamp; } 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /Native.Tool/SQLite/Generated/SR.resources: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/Native.Tool/SQLite/Generated/SR.resources -------------------------------------------------------------------------------- /Native.Tool/SQLite/LINQ/SQLiteConnection_Linq.cs: -------------------------------------------------------------------------------- 1 | /******************************************************** 2 | * ADO.NET 2.0 Data Provider for SQLite Version 3.X 3 | * Written by Robert Simpson (robert@blackcastlesoft.com) 4 | * 5 | * Released to the public domain, use at your own risk! 6 | ********************************************************/ 7 | 8 | namespace System.Data.SQLite 9 | { 10 | using System.Data.Common; 11 | 12 | public sealed partial class SQLiteConnection 13 | { 14 | /// 15 | /// Returns the instance. 16 | /// 17 | protected override DbProviderFactory DbProviderFactory 18 | { 19 | get { return SQLiteFactory.Instance; } 20 | } 21 | } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /Native.Tool/SQLite/Resources/MetaDataCollections.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 11 | 12 | 13 | 14 | MetaDataCollections 15 | 0 16 | 0 17 | 18 | 19 | DataSourceInformation 20 | 0 21 | 0 22 | 23 | 24 | DataTypes 25 | 0 26 | 0 27 | 28 | 29 | ReservedWords 30 | 0 31 | 0 32 | 33 | 34 | Catalogs 35 | 1 36 | 1 37 | 38 | 39 | Columns 40 | 4 41 | 4 42 | 43 | 44 | Indexes 45 | 4 46 | 3 47 | 48 | 49 | IndexColumns 50 | 5 51 | 4 52 | 53 | 54 | Tables 55 | 4 56 | 3 57 | 58 | 59 | Views 60 | 3 61 | 3 62 | 63 | 64 | ViewColumns 65 | 4 66 | 4 67 | 68 | 69 | ForeignKeys 70 | 4 71 | 3 72 | 73 | 74 | Triggers 75 | 4 76 | 3 77 | 78 | 79 | -------------------------------------------------------------------------------- /Native.Tool/SQLite/Resources/SQLiteCommand.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/Native.Tool/SQLite/Resources/SQLiteCommand.bmp -------------------------------------------------------------------------------- /Native.Tool/SQLite/Resources/SQLiteConnection.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/Native.Tool/SQLite/Resources/SQLiteConnection.bmp -------------------------------------------------------------------------------- /Native.Tool/SQLite/Resources/SQLiteDataAdapter.bmp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/Native.Tool/SQLite/Resources/SQLiteDataAdapter.bmp -------------------------------------------------------------------------------- /Native.Tool/SQLite/SQLiteMetaDataCollectionNames.cs: -------------------------------------------------------------------------------- 1 | /******************************************************** 2 | * ADO.NET 2.0 Data Provider for SQLite Version 3.X 3 | * Written by Robert Simpson (robert@blackcastlesoft.com) 4 | * 5 | * Released to the public domain, use at your own risk! 6 | ********************************************************/ 7 | 8 | namespace System.Data.SQLite 9 | { 10 | /// 11 | /// MetaDataCollections specific to SQLite 12 | /// 13 | public static class SQLiteMetaDataCollectionNames 14 | { 15 | /// 16 | /// Returns a list of databases attached to the connection 17 | /// 18 | public static readonly string Catalogs = "Catalogs"; 19 | /// 20 | /// Returns column information for the specified table 21 | /// 22 | public static readonly string Columns = "Columns"; 23 | /// 24 | /// Returns index information for the optionally-specified table 25 | /// 26 | public static readonly string Indexes = "Indexes"; 27 | /// 28 | /// Returns base columns for the given index 29 | /// 30 | public static readonly string IndexColumns = "IndexColumns"; 31 | /// 32 | /// Returns the tables in the given catalog 33 | /// 34 | public static readonly string Tables = "Tables"; 35 | /// 36 | /// Returns user-defined views in the given catalog 37 | /// 38 | public static readonly string Views = "Views"; 39 | /// 40 | /// Returns underlying column information on the given view 41 | /// 42 | public static readonly string ViewColumns = "ViewColumns"; 43 | /// 44 | /// Returns foreign key information for the given catalog 45 | /// 46 | public static readonly string ForeignKeys = "ForeignKeys"; 47 | /// 48 | /// Returns the triggers on the database 49 | /// 50 | public static readonly string Triggers = "Triggers"; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Native.Tool/SQLite/SQLitePatchLevel.cs: -------------------------------------------------------------------------------- 1 | /******************************************************** 2 | * ADO.NET 2.0 Data Provider for SQLite Version 3.X 3 | * Written by Joe Mistachkin (joe@mistachkin.com) 4 | * 5 | * Released to the public domain, use at your own risk! 6 | ********************************************************/ 7 | 8 | using System.Data.SQLite; 9 | 10 | /////////////////////////////////////////////////////////////////////////////// 11 | 12 | [assembly: AssemblySourceId(null)] 13 | 14 | /////////////////////////////////////////////////////////////////////////////// 15 | 16 | [assembly: AssemblySourceTimeStamp(null)] 17 | -------------------------------------------------------------------------------- /Native.Tool/SQLite/Targets/System.Data.SQLite.References.targets: -------------------------------------------------------------------------------- 1 | 9 | 10 | 15 | 16 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 29 | 30 | 31 | 32 | 33 | False 34 | 35 | 36 | False 37 | 38 | 39 | False 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /Native.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 15 4 | VisualStudioVersion = 15.0.28307.1000 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Native.Tool", "Native.Tool\Native.Tool.csproj", "{0CA93EB9-4E25-46C6-94D2-0F97137A1606}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Native.Sdk", "Native.Sdk\Native.Sdk.csproj", "{D7A958B3-79D9-49F8-8BB4-9619BAB6ECBA}" 9 | EndProject 10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Native.Core", "Native.Core\Native.Core.csproj", "{C03C5BB7-91D0-4894-AAF9-127090DFAD91}" 11 | EndProject 12 | Global 13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 14 | Debug|x86 = Debug|x86 15 | Release|x86 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 18 | {0CA93EB9-4E25-46C6-94D2-0F97137A1606}.Debug|x86.ActiveCfg = Debug|x86 19 | {0CA93EB9-4E25-46C6-94D2-0F97137A1606}.Debug|x86.Build.0 = Debug|x86 20 | {0CA93EB9-4E25-46C6-94D2-0F97137A1606}.Release|x86.ActiveCfg = Release|x86 21 | {0CA93EB9-4E25-46C6-94D2-0F97137A1606}.Release|x86.Build.0 = Release|x86 22 | {D7A958B3-79D9-49F8-8BB4-9619BAB6ECBA}.Debug|x86.ActiveCfg = Debug|x86 23 | {D7A958B3-79D9-49F8-8BB4-9619BAB6ECBA}.Debug|x86.Build.0 = Debug|x86 24 | {D7A958B3-79D9-49F8-8BB4-9619BAB6ECBA}.Release|x86.ActiveCfg = Release|x86 25 | {D7A958B3-79D9-49F8-8BB4-9619BAB6ECBA}.Release|x86.Build.0 = Release|x86 26 | {C03C5BB7-91D0-4894-AAF9-127090DFAD91}.Debug|x86.ActiveCfg = Debug|x86 27 | {C03C5BB7-91D0-4894-AAF9-127090DFAD91}.Debug|x86.Build.0 = Debug|x86 28 | {C03C5BB7-91D0-4894-AAF9-127090DFAD91}.Release|x86.ActiveCfg = Release|x86 29 | {C03C5BB7-91D0-4894-AAF9-127090DFAD91}.Release|x86.Build.0 = Release|x86 30 | EndGlobalSection 31 | GlobalSection(SolutionProperties) = preSolution 32 | HideSolutionNode = FALSE 33 | EndGlobalSection 34 | GlobalSection(ExtensibilityGlobals) = postSolution 35 | SolutionGuid = {EE9D5E5A-55AA-4FD1-A2AC-7091CBED6C85} 36 | EndGlobalSection 37 | EndGlobal 38 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## 简介 2 | 3 | Native.SDK 是为了方便 .Net 平台开发者高效开发 酷Q应用 的开发框架。封装酷Q 提供的接口,提供了安全高效的Api,同时抽象了事件中的基础数据类型,并且提供了完整的托管异常处理,提供了优秀的开发环境。 4 | 5 | ## 特点 6 | 7 | * 支持原生导出函数,不需要前置插件作为服务端。(能够在 .Net 平台中导出 C/C++ 可用的导出函数) 8 | * 支持包括 WebServices 在内的所有 .Net 项目进行交互。 9 | * 支持编译整合DLL。(在编译的同时,对所有使用到的程序集进行整合打包,保证最终结果只有 app.dll) 10 | * 支持自由调整 .Net Framework 版本 11 | * 支持 C# 和 VB.NET 两种语言编写代码 12 | * 使用 UTF-8 编码,并且在托管和非托管之间启用了 GB18030 编码的转换 13 | * 可以在 酷Q on Docker 中运行。(目前仅支持 .Net Framework 4.5) 14 | 15 | ## 在线文档 16 | 17 | [Native 在线文档](https://native.run/) 18 | 19 | ## 更新日志 20 | 21 | [Native 更新日志](UPDATE.md) 22 | 23 | ## 关于打赏 24 | 25 | 您的支持就是我更新的动力! 26 | 27 | 支付宝二维码微信二维码 28 | -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/.signature.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Costura.Fody.1.6.2/.signature.p7s -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/Costura.Fody.1.6.2.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Costura.Fody.1.6.2/Costura.Fody.1.6.2.nupkg -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/Costura.Fody.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Costura.Fody.1.6.2/Costura.Fody.dll -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/Costura.Tasks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Costura.Fody.1.6.2/Costura.Tasks.dll -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/build/dotnet/Costura.Fody.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | $(MSBuildThisFileDirectory)..\..\ 6 | 7 | 8 | 11 | 12 | 13 | 14 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/build/portable-net+sl+win+wpa+wp/Costura.Fody.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | $(MSBuildThisFileDirectory)..\..\ 6 | 7 | 8 | 11 | 12 | 13 | 14 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/lib/dotnet/Costura.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Costura.Fody.1.6.2/lib/dotnet/Costura.dll -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/lib/portable-net+sl+win+wpa+wp/Costura.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Costura.Fody.1.6.2/lib/portable-net+sl+win+wpa+wp/Costura.dll -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | 4 | function RemoveForceProjectLevelHack($project) 5 | { 6 | Write-Host "RemoveForceProjectLevelHack" 7 | Foreach ($item in $project.ProjectItems) 8 | { 9 | if ($item.Name -eq "Fody_ToBeDeleted.txt") 10 | { 11 | $item.Delete() 12 | } 13 | } 14 | } 15 | 16 | function FlushVariables() 17 | { 18 | Write-Host "Flushing environment variables" 19 | $env:FodyLastProjectPath = "" 20 | $env:FodyLastWeaverName = "" 21 | $env:FodyLastXmlContents = "" 22 | } 23 | 24 | function Update-FodyConfig($addinName, $project) 25 | { 26 | Write-Host "Update-FodyConfig" 27 | $fodyWeaversPath = [System.IO.Path]::Combine([System.IO.Path]::GetDirectoryName($project.FullName), "FodyWeavers.xml") 28 | 29 | $FodyLastProjectPath = $env:FodyLastProjectPath 30 | $FodyLastWeaverName = $env:FodyLastWeaverName 31 | $FodyLastXmlContents = $env:FodyLastXmlContents 32 | 33 | if ( 34 | ($FodyLastProjectPath -eq $project.FullName) -and 35 | ($FodyLastWeaverName -eq $addinName)) 36 | { 37 | Write-Host "Upgrade detected. Restoring content for $addinName" 38 | [System.IO.File]::WriteAllText($fodyWeaversPath, $FodyLastXmlContents) 39 | FlushVariables 40 | return 41 | } 42 | 43 | FlushVariables 44 | 45 | $xml = [xml](get-content $fodyWeaversPath) 46 | 47 | $weavers = $xml["Weavers"] 48 | $node = $weavers.SelectSingleNode($addinName) 49 | 50 | if (-not $node) 51 | { 52 | Write-Host "Appending node" 53 | $newNode = $xml.CreateElement($addinName) 54 | $weavers.AppendChild($newNode) 55 | } 56 | 57 | $xml.Save($fodyWeaversPath) 58 | } 59 | 60 | function Fix-ReferencesCopyLocal($package, $project) 61 | { 62 | Write-Host "Fix-ReferencesCopyLocal $($package.Id)" 63 | $asms = $package.AssemblyReferences | %{$_.Name} 64 | 65 | foreach ($reference in $project.Object.References) 66 | { 67 | if ($asms -contains $reference.Name + ".dll") 68 | { 69 | if($reference.CopyLocal -eq $true) 70 | { 71 | $reference.CopyLocal = $false; 72 | } 73 | } 74 | } 75 | } 76 | 77 | function UnlockWeaversXml($project) 78 | { 79 | $fodyWeaversProjectItem = $project.ProjectItems.Item("FodyWeavers.xml"); 80 | if ($fodyWeaversProjectItem) 81 | { 82 | $fodyWeaversProjectItem.Open("{7651A701-06E5-11D1-8EBD-00A0C90F26EA}") 83 | $fodyWeaversProjectItem.Save() 84 | $fodyWeaversProjectItem.Document.Close() 85 | } 86 | } 87 | 88 | UnlockWeaversXml($project) 89 | 90 | RemoveForceProjectLevelHack $project 91 | 92 | Update-FodyConfig $package.Id.Replace(".Fody", "") $project 93 | 94 | Fix-ReferencesCopyLocal $package $project -------------------------------------------------------------------------------- /packages/Costura.Fody.1.6.2/tools/uninstall.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | 3 | 4 | function Update-FodyConfig($addinName, $project) 5 | { 6 | $fodyWeaversPath = [System.IO.Path]::Combine([System.IO.Path]::GetDirectoryName($project.FullName), "FodyWeavers.xml") 7 | 8 | if (!(Test-Path ($fodyWeaversPath))) 9 | { 10 | return 11 | } 12 | 13 | Write-Host "Caching variables for possible update" 14 | $env:FodyLastProjectPath = $project.FullName 15 | $env:FodyLastWeaverName = $addinName 16 | $env:FodyLastXmlContents = [IO.File]::ReadAllText($fodyWeaversPath) 17 | 18 | 19 | $xml = [xml](get-content $fodyWeaversPath) 20 | 21 | $weavers = $xml["Weavers"] 22 | $node = $weavers.SelectSingleNode($addinName) 23 | 24 | if ($node) 25 | { 26 | Write-Host "Removing node from FodyWeavers.xml" 27 | $weavers.RemoveChild($node) 28 | } 29 | 30 | $xml.Save($fodyWeaversPath) 31 | } 32 | 33 | 34 | function UnlockWeaversXml($project) 35 | { 36 | $fodyWeaversProjectItem = $project.ProjectItems.Item("FodyWeavers.xml"); 37 | if ($fodyWeaversProjectItem) 38 | { 39 | $fodyWeaversProjectItem.Open("{7651A701-06E5-11D1-8EBD-00A0C90F26EA}") 40 | $fodyWeaversProjectItem.Save() 41 | $fodyWeaversProjectItem.Document.Close() 42 | } 43 | } 44 | 45 | UnlockWeaversXml($project) 46 | 47 | Update-FodyConfig $package.Id.Replace(".Fody", "") $project -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/3rd-party.txt: -------------------------------------------------------------------------------- 1 | DllExport [ github.com/3F/DllExport ] 2 | - - - - - - - - - - - - - - - - - - - 3 | 4 | # Third-party software components 5 | 6 | ## DllExport project includes: 7 | 8 | ### CoreCLR ILAsm & ILDasm 9 | 10 | * https://github.com/3F/coreclr 11 | 12 | ### Mono.Cecil 13 | 14 | * https://github.com/jbevain/cecil 15 | 16 | ### MvSln 17 | 18 | * https://github.com/3F/MvsSln 19 | 20 | ### Conari 21 | 22 | * https://github.com/3F/Conari 23 | 24 | ### GetNuTool core & hMSBuild logic 25 | 26 | As an main core for new manager. 27 | 28 | * https://github.com/3F/GetNuTool 29 | * https://github.com/3F/hMSBuild 30 | 31 | ### SDK reference assemblies for PowerShell version 5 32 | 33 | For previous Configurator (obsolete today). 34 | * https://github.com/PowerShell/ 35 | 36 | ## Maintaining of this project also includes the following tools: 37 | 38 | * vsSolutionBuildEvent /+ CI.MSBuild [ github.com/3F/vsSolutionBuildEvent ] 39 | * GetNuTool [ github.com/3F/GetNuTool ] 40 | * hMSBuild [ github.com/3F/hMSBuild ] 41 | 42 | -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/DllExport.1.6.1.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/DllExport.1.6.1.nupkg -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/License.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2009-2015 Robert Giesecke 4 | Copyright (c) 2016-2018 Denis Kuzmin :: github.com/3F 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/build/net20/DllExport.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | $(MSBuildThisFileDirectory)..\..\ 6 | $(NuPkgRootPath)tools\net.r_eg.DllExport.Wizard.targets 7 | 8 | 9 | 10 | Info 11 | $(SolutionPath) 12 | $(SolutionDir) 13 | $(NuPkgRootPath) 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/build_info.txt: -------------------------------------------------------------------------------- 1 | 2 | S_NUM: 1.6.1 3 | S_REV: 51910 4 | S_NUM_REV: 1.6.1.51910 5 | S_REL: 6 | bSha1: e6c3d30 7 | bName: master 8 | bRevc: 115 9 | Wizard .NET: v4.0 10 | Configurator .NET: v4.0 11 | Configuration: PublicRelease 12 | Platform: AnyCPU 13 | cfgname: Release 14 | revDeltaBase: 2016/10/12 15 | revDeltaMin: 1000 16 | revDeltaMax: 65534 17 | 18 | :: generated by a vsSolutionBuildEvent v0.12.10.10901 19 | -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/gcache/metalib/System.Runtime.InteropServices/DllExport.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/gcache/metalib/System.Runtime.InteropServices/DllExport.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/gcache/metalib/System.Runtime.InteropServices/DllExport.dll.ddNSi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/gcache/metalib/System.Runtime.InteropServices/DllExport.dll.ddNSi -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/lib/net20/_._: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/lib/net20/_._ -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/Conari.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/Conari.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/Conari.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/Conari.pdb -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/Microsoft.Build.Framework.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/Microsoft.Build.Framework.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/Microsoft.Build.Utilities.v4.0.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/Microsoft.Build.Utilities.v4.0.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/Microsoft.Build.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/Microsoft.Build.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/Microsoft.Management.Infrastructure.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/Microsoft.Management.Infrastructure.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/Mono.Cecil.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/Mono.Cecil.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/MvsSln.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/MvsSln.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/MvsSln.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/MvsSln.pdb -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/NSBin.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/NSBin.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/NSBin.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/NSBin.pdb -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/PeViewer.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/PeViewer.exe -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/PeViewer.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/PeViewer.pdb -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/RGiesecke.DllExport.MSBuild.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/RGiesecke.DllExport.MSBuild.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/RGiesecke.DllExport.MSBuild.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/RGiesecke.DllExport.MSBuild.pdb -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/RGiesecke.DllExport.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/RGiesecke.DllExport.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/RGiesecke.DllExport.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/RGiesecke.DllExport.pdb -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/System.Management.Automation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/System.Management.Automation.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/build.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | $(MSBuildThisFileDirectory)..\..\ 6 | $(NuPkgRootPath)tools\net.r_eg.DllExport.Wizard.targets 7 | 8 | 9 | 10 | Info 11 | $(SolutionPath) 12 | $(SolutionDir) 13 | $(NuPkgRootPath) 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/LICENSE.TXT: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) .NET Foundation and Contributors 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/PATENTS.TXT: -------------------------------------------------------------------------------- 1 | Microsoft Patent Promise for .NET Libraries and Runtime Components 2 | 3 | Microsoft Corporation and its affiliates ("Microsoft") promise not to assert 4 | any .NET Patents against you for making, using, selling, offering for sale, 5 | importing, or distributing Covered Code, as part of either a .NET Runtime or 6 | as part of any application designed to run on a .NET Runtime. 7 | 8 | If you file, maintain, or voluntarily participate in any claim in a lawsuit 9 | alleging direct or contributory patent infringement by any Covered Code, or 10 | inducement of patent infringement by any Covered Code, then your rights under 11 | this promise will automatically terminate. 12 | 13 | This promise is not an assurance that (i) any .NET Patents are valid or 14 | enforceable, or (ii) Covered Code does not infringe patents or other 15 | intellectual property rights of any third party. No rights except those 16 | expressly stated in this promise are granted, waived, or received by 17 | Microsoft, whether by implication, exhaustion, estoppel, or otherwise. 18 | This is a personal promise directly from Microsoft to you, and you agree as a 19 | condition of benefiting from it that no Microsoft rights are received from 20 | suppliers, distributors, or otherwise from any other person in connection with 21 | this promise. 22 | 23 | Definitions: 24 | 25 | "Covered Code" means those Microsoft .NET libraries and runtime components as 26 | made available by Microsoft at https://github.com/dotnet/coreclr, 27 | https://github.com/dotnet/corefx and https://github.com/dotnet/corert. 28 | 29 | ".NET Patents" are those patent claims, both currently owned by Microsoft and 30 | acquired in the future, that are necessarily infringed by Covered Code. .NET 31 | Patents do not include any patent claims that are infringed by any Enabling 32 | Technology, that are infringed only as a consequence of modification of 33 | Covered Code, or that are infringed only by the combination of Covered Code 34 | with third party code. 35 | 36 | ".NET Runtime" means any compliant implementation in software of (a) all of 37 | the required parts of the mandatory provisions of Standard ECMA-335 – Common 38 | Language Infrastructure (CLI); and (b) if implemented, any additional 39 | functionality in Microsoft's .NET Framework, as described in Microsoft's API 40 | documentation on its MSDN website. For example, .NET Runtimes include 41 | Microsoft's .NET Framework and those portions of the Mono Project compliant 42 | with (a) and (b). 43 | 44 | "Enabling Technology" means underlying or enabling technology that may be 45 | used, combined, or distributed in connection with Microsoft's .NET Framework 46 | or other .NET Runtimes, such as hardware, operating systems, and applications 47 | that run on .NET Framework or other .NET Runtimes. -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/README.md: -------------------------------------------------------------------------------- 1 | [.NET Core Runtime (CoreCLR)](https://github.com/3F/coreclr) 2 | =========================== 3 | 4 | This repo contains the .NET Core runtime, called CoreCLR, and the base library, called mscorlib. It includes the garbage collector, JIT compiler, base .NET data types and many low-level classes. 5 | 6 | Build Status 7 | ------------ 8 | 9 | | CI 10 | --------------------| ---------------- 11 | Win.x86-x64.Release | [![Build status](https://ci.appveyor.com/api/projects/status/4gwh8k5wn62tk8iv/branch/master?svg=true)](https://ci.appveyor.com/project/3Fs/coreclr/branch/master) 12 | 13 | 14 | License 15 | ------- 16 | 17 | .NET Core (including the coreclr repo) is licensed under the [MIT license](LICENSE.TXT). 18 | 19 | -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/_Version.txt: -------------------------------------------------------------------------------- 1 | 2 | Architecture | Platform | Config | commit-sha1 | ILD/Asm | coreclr | Path 3 | -------------|----------|---------|------------------------------------------|---------------------------|---------|------------- 4 | x86 | Windows | Release | 05afa4f81fdf671429b54467c64d65cde6b5fadc | [ 4.5.1 ] -> *4.5.22220.0 | *v1.0.4 | \bin\Win.x86\ 5 | x64 | Windows | Release | 05afa4f81fdf671429b54467c64d65cde6b5fadc | [ 4.5.1 ] -> *4.5.22220.0 | *v1.0.4 | \bin\Win.x64\ 6 | 7 | `* - The base of version, i.e. it can be different from official release` 8 | 9 | https://github.com/3F/coreclr 10 | 11 | -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/changelog.txt: -------------------------------------------------------------------------------- 1 | https://github.com/3F/coreclr 2 | - - - - - - - - - - - - - - - - 3 | 4 | # coreclr \ ILAsm 5 | 6 | [v4.5.1] 7 | 8 | * FIXED: Fixed using of cvtres (.res -> obj COFF-format) in mscorpe. 9 | Possible crash: https://github.com/3F/coreclr/issues/2 10 | Related Issue: https://github.com/3F/DllExport/issues/17 11 | 12 | * NEW: Implemented additional searching of the converters of resources: 13 | Environment PATH, local directory, and other additional from user path. 14 | Now it also can be wrapped like ` mytool.cmd -> cvtres.exe %* ` etc. 15 | 16 | * NEW: Added new /CVRES (/CVR) key to ilasm.exe 17 | `/CVRES= Set path to cvtres tool: /CVR=cvtres.exe /CVR=tool\cvtres.cmd /CVR=D:\tool\` 18 | 19 | * NOTE: based on 4.5.22220.0 / coreclr 1.0.4 20 | ^ ^ ^ ^ 21 | | | | |-- VER_FILEVERSIONREVISION 22 | | | |------- VER_FILEVERSIONBUILD 23 | | |---------- VER_FILEVERSIONMINOR 24 | |------------ VER_MAJORVERSION 25 | 26 | 27 | -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/coreclr.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/coreclr/coreclr.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/ilasm.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/coreclr/ilasm.exe -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/ildasm.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/coreclr/ildasm.exe -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/ildasmrc.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/coreclr/ildasmrc.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/mscordaccore.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/coreclr/mscordaccore.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/coreclr/mscordbi.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/coreclr/mscordbi.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/net.r_eg.DllExport.Configurator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/net.r_eg.DllExport.Configurator.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/net.r_eg.DllExport.Configurator.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/net.r_eg.DllExport.Configurator.pdb -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/net.r_eg.DllExport.Wizard.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/net.r_eg.DllExport.Wizard.dll -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/net.r_eg.DllExport.Wizard.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/net.r_eg.DllExport.Wizard.pdb -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/net.r_eg.DllExport.Wizard.targets: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | true 7 | 8 | 9 | 10 | 11 | 12 | .\ 13 | packages\DllExport 14 | tools\raw\lib\net20\DllExport.dll 15 | tools\net.r_eg.DllExport.targets 16 | Restore 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | Default 25 | 26 | 27 | 28 | 29 | 36 | -1 37 | 38 | 39 | 52 | 53 | 54 | true 55 | 56 | 57 | 58 | 59 | 60 | -------------------------------------------------------------------------------- /packages/DllExport.1.6.1/tools/raw/lib/net20/DllExport.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/DllExport.1.6.1/tools/raw/lib/net20/DllExport.dll -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/.signature.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Fody.2.2.1.0/.signature.p7s -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/Content/FodyWeavers.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/Fody.2.2.1.0.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Fody.2.2.1.0/Fody.2.2.1.0.nupkg -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/Fody.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Fody.2.2.1.0/Fody.dll -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/FodyCommon.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Fody.2.2.1.0/FodyCommon.dll -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/FodyIsolated.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Fody.2.2.1.0/FodyIsolated.dll -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/Mono.Cecil.Mdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Fody.2.2.1.0/Mono.Cecil.Mdb.dll -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/Mono.Cecil.Pdb.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Fody.2.2.1.0/Mono.Cecil.Pdb.dll -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/Mono.Cecil.Rocks.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Fody.2.2.1.0/Mono.Cecil.Rocks.dll -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/Mono.Cecil.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Fody.2.2.1.0/Mono.Cecil.dll -------------------------------------------------------------------------------- /packages/Fody.2.2.1.0/Tools/install.ps1: -------------------------------------------------------------------------------- 1 | param($installPath, $toolsPath, $package, $project) 2 | $item = $project.ProjectItems | where-object {$_.Name -eq "FodyWeavers.xml"} 3 | $item.Properties.Item("BuildAction").Value = [int]0 -------------------------------------------------------------------------------- /packages/Unity.5.8.6/.signature.p7s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/.signature.p7s -------------------------------------------------------------------------------- /packages/Unity.5.8.6/Unity.5.8.6.nupkg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/Unity.5.8.6.nupkg -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net40/CommonServiceLocator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net40/CommonServiceLocator.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net40/Unity.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net40/Unity.Abstractions.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net40/Unity.Container.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net40/Unity.Container.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net40/Unity.Interception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net40/Unity.Interception.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net40/Unity.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net40/Unity.ServiceLocation.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net45/CommonServiceLocator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net45/CommonServiceLocator.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net45/Unity.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net45/Unity.Abstractions.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net45/Unity.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net45/Unity.Configuration.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net45/Unity.Container.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net45/Unity.Container.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net45/Unity.Interception.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net45/Unity.Interception.Configuration.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net45/Unity.Interception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net45/Unity.Interception.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net45/Unity.RegistrationByConvention.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net45/Unity.RegistrationByConvention.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net45/Unity.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net45/Unity.ServiceLocation.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net46/CommonServiceLocator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net46/CommonServiceLocator.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net46/Unity.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net46/Unity.Abstractions.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net46/Unity.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net46/Unity.Configuration.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net46/Unity.Container.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net46/Unity.Container.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net46/Unity.Interception.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net46/Unity.Interception.Configuration.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net46/Unity.Interception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net46/Unity.Interception.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net46/Unity.RegistrationByConvention.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net46/Unity.RegistrationByConvention.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net46/Unity.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net46/Unity.ServiceLocation.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net47/CommonServiceLocator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net47/CommonServiceLocator.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net47/Unity.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net47/Unity.Abstractions.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net47/Unity.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net47/Unity.Configuration.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net47/Unity.Container.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net47/Unity.Container.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net47/Unity.Interception.Configuration.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net47/Unity.Interception.Configuration.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net47/Unity.Interception.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net47/Unity.Interception.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net47/Unity.RegistrationByConvention.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net47/Unity.RegistrationByConvention.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/net47/Unity.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/net47/Unity.ServiceLocation.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp1.0/CommonServiceLocator.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v1.0", 4 | "signature": "da39a3ee5e6b4b0d3255bfef95601890afd80709" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v1.0": { 9 | "CommonServiceLocator/2.0.3": { 10 | "runtime": { 11 | "CommonServiceLocator.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "CommonServiceLocator/2.0.3": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp1.0/CommonServiceLocator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netcoreapp1.0/CommonServiceLocator.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp1.0/Unity.Abstractions.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v1.0", 4 | "signature": "da39a3ee5e6b4b0d3255bfef95601890afd80709" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v1.0": { 9 | "Unity.Abstractions/3.3.0": { 10 | "runtime": { 11 | "Unity.Abstractions.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "Unity.Abstractions/3.3.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp1.0/Unity.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netcoreapp1.0/Unity.Abstractions.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp1.0/Unity.Container.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v1.0", 4 | "signature": "da39a3ee5e6b4b0d3255bfef95601890afd80709" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v1.0": { 9 | "Unity.Container/5.8.6": { 10 | "dependencies": { 11 | "Unity.Abstractions": "3.3.0" 12 | }, 13 | "runtime": { 14 | "Unity.Container.dll": {} 15 | } 16 | }, 17 | "Unity.Abstractions/3.3.0": { 18 | "runtime": { 19 | "Unity.Abstractions.dll": {} 20 | } 21 | } 22 | } 23 | }, 24 | "libraries": { 25 | "Unity.Container/5.8.6": { 26 | "type": "project", 27 | "serviceable": false, 28 | "sha512": "" 29 | }, 30 | "Unity.Abstractions/3.3.0": { 31 | "type": "project", 32 | "serviceable": false, 33 | "sha512": "" 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp1.0/Unity.Container.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netcoreapp1.0/Unity.Container.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp1.0/Unity.ServiceLocation.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v1.0", 4 | "signature": "da39a3ee5e6b4b0d3255bfef95601890afd80709" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v1.0": { 9 | "Unity.ServiceLocation/2.1.2": { 10 | "dependencies": { 11 | "CommonServiceLocator": "2.0.3", 12 | "Unity.Abstractions": "3.3.0" 13 | }, 14 | "runtime": { 15 | "Unity.ServiceLocation.dll": {} 16 | } 17 | }, 18 | "CommonServiceLocator/2.0.3": { 19 | "runtime": { 20 | "CommonServiceLocator.dll": {} 21 | } 22 | }, 23 | "Unity.Abstractions/3.3.0": { 24 | "runtime": { 25 | "Unity.Abstractions.dll": {} 26 | } 27 | } 28 | } 29 | }, 30 | "libraries": { 31 | "Unity.ServiceLocation/2.1.2": { 32 | "type": "project", 33 | "serviceable": false, 34 | "sha512": "" 35 | }, 36 | "CommonServiceLocator/2.0.3": { 37 | "type": "project", 38 | "serviceable": false, 39 | "sha512": "" 40 | }, 41 | "Unity.Abstractions/3.3.0": { 42 | "type": "project", 43 | "serviceable": false, 44 | "sha512": "" 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp1.0/Unity.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netcoreapp1.0/Unity.ServiceLocation.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp2.0/Unity.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netcoreapp2.0/Unity.Abstractions.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp2.0/Unity.Container.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v2.0", 4 | "signature": "da39a3ee5e6b4b0d3255bfef95601890afd80709" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v2.0": { 9 | "Unity.Container/5.8.6": { 10 | "dependencies": { 11 | "Unity.Abstractions": "3.3.0" 12 | }, 13 | "runtime": { 14 | "Unity.Container.dll": {} 15 | } 16 | }, 17 | "Unity.Abstractions/3.3.0": { 18 | "runtime": { 19 | "Unity.Abstractions.dll": {} 20 | } 21 | } 22 | } 23 | }, 24 | "libraries": { 25 | "Unity.Container/5.8.6": { 26 | "type": "project", 27 | "serviceable": false, 28 | "sha512": "" 29 | }, 30 | "Unity.Abstractions/3.3.0": { 31 | "type": "project", 32 | "serviceable": false, 33 | "sha512": "" 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netcoreapp2.0/Unity.Container.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netcoreapp2.0/Unity.Container.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard1.0/CommonServiceLocator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netstandard1.0/CommonServiceLocator.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard1.0/Unity.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netstandard1.0/Unity.Abstractions.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard1.0/Unity.Container.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netstandard1.0/Unity.Container.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard1.0/Unity.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netstandard1.0/Unity.ServiceLocation.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard2.0/CommonServiceLocator.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETStandard,Version=v2.0/", 4 | "signature": "2468f8819b4e290b1a8667020137de51bd83af19" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETStandard,Version=v2.0": {}, 9 | ".NETStandard,Version=v2.0/": { 10 | "CommonServiceLocator/2.0.3": { 11 | "dependencies": { 12 | "NETStandard.Library": "2.0.1" 13 | }, 14 | "runtime": { 15 | "CommonServiceLocator.dll": {} 16 | } 17 | }, 18 | "Microsoft.NETCore.Platforms/1.1.0": {}, 19 | "NETStandard.Library/2.0.1": { 20 | "dependencies": { 21 | "Microsoft.NETCore.Platforms": "1.1.0" 22 | } 23 | } 24 | } 25 | }, 26 | "libraries": { 27 | "CommonServiceLocator/2.0.3": { 28 | "type": "project", 29 | "serviceable": false, 30 | "sha512": "" 31 | }, 32 | "Microsoft.NETCore.Platforms/1.1.0": { 33 | "type": "package", 34 | "serviceable": true, 35 | "sha512": "sha512-d15KS6WIdb5TzAEQiNM7KxB5TYb7cgiRk/767t83xYicHpHoqekPHXLWOc6gyh/FDF77dj4oR1/qg2tnPRfM1g==", 36 | "path": "microsoft.netcore.platforms/1.1.0", 37 | "hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" 38 | }, 39 | "NETStandard.Library/2.0.1": { 40 | "type": "package", 41 | "serviceable": true, 42 | "sha512": "sha512-oA6nwv9MhEKYvLpjZ0ggSpb1g4CQViDVQjLUcDWg598jtvJbpfeP2reqwI1GLW2TbxC/Ml7xL6BBR1HmKPXlTg==", 43 | "path": "netstandard.library/2.0.1", 44 | "hashPath": "netstandard.library.2.0.1.nupkg.sha512" 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard2.0/CommonServiceLocator.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netstandard2.0/CommonServiceLocator.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard2.0/Unity.Abstractions.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETStandard,Version=v2.0/", 4 | "signature": "2468f8819b4e290b1a8667020137de51bd83af19" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETStandard,Version=v2.0": {}, 9 | ".NETStandard,Version=v2.0/": { 10 | "Unity.Abstractions/3.3.0": { 11 | "dependencies": { 12 | "NETStandard.Library": "2.0.1" 13 | }, 14 | "runtime": { 15 | "Unity.Abstractions.dll": {} 16 | } 17 | }, 18 | "Microsoft.NETCore.Platforms/1.1.0": {}, 19 | "NETStandard.Library/2.0.1": { 20 | "dependencies": { 21 | "Microsoft.NETCore.Platforms": "1.1.0" 22 | } 23 | } 24 | } 25 | }, 26 | "libraries": { 27 | "Unity.Abstractions/3.3.0": { 28 | "type": "project", 29 | "serviceable": false, 30 | "sha512": "" 31 | }, 32 | "Microsoft.NETCore.Platforms/1.1.0": { 33 | "type": "package", 34 | "serviceable": true, 35 | "sha512": "sha512-d15KS6WIdb5TzAEQiNM7KxB5TYb7cgiRk/767t83xYicHpHoqekPHXLWOc6gyh/FDF77dj4oR1/qg2tnPRfM1g==", 36 | "path": "microsoft.netcore.platforms/1.1.0", 37 | "hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" 38 | }, 39 | "NETStandard.Library/2.0.1": { 40 | "type": "package", 41 | "serviceable": true, 42 | "sha512": "sha512-oA6nwv9MhEKYvLpjZ0ggSpb1g4CQViDVQjLUcDWg598jtvJbpfeP2reqwI1GLW2TbxC/Ml7xL6BBR1HmKPXlTg==", 43 | "path": "netstandard.library/2.0.1", 44 | "hashPath": "netstandard.library.2.0.1.nupkg.sha512" 45 | } 46 | } 47 | } -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard2.0/Unity.Abstractions.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netstandard2.0/Unity.Abstractions.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard2.0/Unity.Container.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETStandard,Version=v2.0/", 4 | "signature": "2468f8819b4e290b1a8667020137de51bd83af19" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETStandard,Version=v2.0": {}, 9 | ".NETStandard,Version=v2.0/": { 10 | "Unity.Container/5.8.6": { 11 | "dependencies": { 12 | "NETStandard.Library": "2.0.1", 13 | "Unity.Abstractions": "3.3.0" 14 | }, 15 | "runtime": { 16 | "Unity.Container.dll": {} 17 | } 18 | }, 19 | "Microsoft.NETCore.Platforms/1.1.0": {}, 20 | "NETStandard.Library/2.0.1": { 21 | "dependencies": { 22 | "Microsoft.NETCore.Platforms": "1.1.0" 23 | } 24 | }, 25 | "Unity.Abstractions/3.3.0": { 26 | "runtime": { 27 | "Unity.Abstractions.dll": {} 28 | } 29 | } 30 | } 31 | }, 32 | "libraries": { 33 | "Unity.Container/5.8.6": { 34 | "type": "project", 35 | "serviceable": false, 36 | "sha512": "" 37 | }, 38 | "Microsoft.NETCore.Platforms/1.1.0": { 39 | "type": "package", 40 | "serviceable": true, 41 | "sha512": "sha512-d15KS6WIdb5TzAEQiNM7KxB5TYb7cgiRk/767t83xYicHpHoqekPHXLWOc6gyh/FDF77dj4oR1/qg2tnPRfM1g==", 42 | "path": "microsoft.netcore.platforms/1.1.0", 43 | "hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" 44 | }, 45 | "NETStandard.Library/2.0.1": { 46 | "type": "package", 47 | "serviceable": true, 48 | "sha512": "sha512-oA6nwv9MhEKYvLpjZ0ggSpb1g4CQViDVQjLUcDWg598jtvJbpfeP2reqwI1GLW2TbxC/Ml7xL6BBR1HmKPXlTg==", 49 | "path": "netstandard.library/2.0.1", 50 | "hashPath": "netstandard.library.2.0.1.nupkg.sha512" 51 | }, 52 | "Unity.Abstractions/3.3.0": { 53 | "type": "project", 54 | "serviceable": false, 55 | "sha512": "" 56 | } 57 | } 58 | } -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard2.0/Unity.Container.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netstandard2.0/Unity.Container.dll -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard2.0/Unity.ServiceLocation.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETStandard,Version=v2.0/", 4 | "signature": "2468f8819b4e290b1a8667020137de51bd83af19" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETStandard,Version=v2.0": {}, 9 | ".NETStandard,Version=v2.0/": { 10 | "Unity.ServiceLocation/2.1.2": { 11 | "dependencies": { 12 | "CommonServiceLocator": "2.0.3", 13 | "NETStandard.Library": "2.0.1", 14 | "Unity.Abstractions": "3.3.0" 15 | }, 16 | "runtime": { 17 | "Unity.ServiceLocation.dll": {} 18 | } 19 | }, 20 | "Microsoft.NETCore.Platforms/1.1.0": {}, 21 | "NETStandard.Library/2.0.1": { 22 | "dependencies": { 23 | "Microsoft.NETCore.Platforms": "1.1.0" 24 | } 25 | }, 26 | "CommonServiceLocator/2.0.3": { 27 | "runtime": { 28 | "CommonServiceLocator.dll": {} 29 | } 30 | }, 31 | "Unity.Abstractions/3.3.0": { 32 | "runtime": { 33 | "Unity.Abstractions.dll": {} 34 | } 35 | } 36 | } 37 | }, 38 | "libraries": { 39 | "Unity.ServiceLocation/2.1.2": { 40 | "type": "project", 41 | "serviceable": false, 42 | "sha512": "" 43 | }, 44 | "Microsoft.NETCore.Platforms/1.1.0": { 45 | "type": "package", 46 | "serviceable": true, 47 | "sha512": "sha512-d15KS6WIdb5TzAEQiNM7KxB5TYb7cgiRk/767t83xYicHpHoqekPHXLWOc6gyh/FDF77dj4oR1/qg2tnPRfM1g==", 48 | "path": "microsoft.netcore.platforms/1.1.0", 49 | "hashPath": "microsoft.netcore.platforms.1.1.0.nupkg.sha512" 50 | }, 51 | "NETStandard.Library/2.0.1": { 52 | "type": "package", 53 | "serviceable": true, 54 | "sha512": "sha512-oA6nwv9MhEKYvLpjZ0ggSpb1g4CQViDVQjLUcDWg598jtvJbpfeP2reqwI1GLW2TbxC/Ml7xL6BBR1HmKPXlTg==", 55 | "path": "netstandard.library/2.0.1", 56 | "hashPath": "netstandard.library.2.0.1.nupkg.sha512" 57 | }, 58 | "CommonServiceLocator/2.0.3": { 59 | "type": "project", 60 | "serviceable": false, 61 | "sha512": "" 62 | }, 63 | "Unity.Abstractions/3.3.0": { 64 | "type": "project", 65 | "serviceable": false, 66 | "sha512": "" 67 | } 68 | } 69 | } -------------------------------------------------------------------------------- /packages/Unity.5.8.6/lib/netstandard2.0/Unity.ServiceLocation.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Jie2GG/Native.Framework/c458a4674dbd1a405f5facd26bd34daa8a652478/packages/Unity.5.8.6/lib/netstandard2.0/Unity.ServiceLocation.dll --------------------------------------------------------------------------------