From e20be58478d70e93151169249be6e7b36c6ba759 Mon Sep 17 00:00:00 2001
From: JieGG <947295340@qq.com>
Date: Mon, 30 Sep 2019 16:16:44 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=B1=BB=E5=91=BD=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Native.Csharp.Sdk/Cqp/CqApi.cs | 6 +++---
Native.Csharp.Sdk/Cqp/Model/{QQ.cs => QQInfo.cs} | 2 +-
Native.Csharp.Sdk/Native.Csharp.Sdk.csproj | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
rename Native.Csharp.Sdk/Cqp/Model/{QQ.cs => QQInfo.cs} (96%)
diff --git a/Native.Csharp.Sdk/Cqp/CqApi.cs b/Native.Csharp.Sdk/Cqp/CqApi.cs
index ef0ce2e5..69977606 100644
--- a/Native.Csharp.Sdk/Cqp/CqApi.cs
+++ b/Native.Csharp.Sdk/Cqp/CqApi.cs
@@ -449,8 +449,8 @@ public int GetCsrfToken ()
///
/// 目标QQ
/// 不使用缓存, 默认为"False",通常忽略本参数,仅在必要时使用
- /// 获取成功返回 , 失败返回 null
- public QQ GetQQInfo (long qqId, bool notCache = false)
+ /// 获取成功返回 , 失败返回 null
+ public QQInfo GetQQInfo (long qqId, bool notCache = false)
{
string result = CQP.CQ_getStrangerInfo (_authCode, qqId, notCache).ToString (Encoding.ASCII);
if (string.IsNullOrEmpty (result))
@@ -459,7 +459,7 @@ public QQ GetQQInfo (long qqId, bool notCache = false)
}
using (BinaryReader binary = new BinaryReader (new MemoryStream (Convert.FromBase64String (result))))
{
- QQ qqInfo = new QQ ();
+ QQInfo qqInfo = new QQInfo ();
qqInfo.Id = binary.ReadInt64_Ex ();
qqInfo.Nick = binary.ReadString_Ex (_defaultEncoding);
qqInfo.Sex = (Sex)binary.ReadInt32_Ex ();
diff --git a/Native.Csharp.Sdk/Cqp/Model/QQ.cs b/Native.Csharp.Sdk/Cqp/Model/QQInfo.cs
similarity index 96%
rename from Native.Csharp.Sdk/Cqp/Model/QQ.cs
rename to Native.Csharp.Sdk/Cqp/Model/QQInfo.cs
index bc197ccd..32375968 100644
--- a/Native.Csharp.Sdk/Cqp/Model/QQ.cs
+++ b/Native.Csharp.Sdk/Cqp/Model/QQInfo.cs
@@ -9,7 +9,7 @@ namespace Native.Csharp.Sdk.Cqp.Model
///
/// 描述 QQ 的类
///
- public class QQ
+ public class QQInfo
{
///
/// 获取唯一标识符, 即QQ号码
diff --git a/Native.Csharp.Sdk/Native.Csharp.Sdk.csproj b/Native.Csharp.Sdk/Native.Csharp.Sdk.csproj
index 6adcdca1..0991482f 100644
--- a/Native.Csharp.Sdk/Native.Csharp.Sdk.csproj
+++ b/Native.Csharp.Sdk/Native.Csharp.Sdk.csproj
@@ -106,7 +106,7 @@
-
+