Skip to content
This repository has been archived by the owner on Aug 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #102 from Jie2GG/Test
Browse files Browse the repository at this point in the history
修正类命名
  • Loading branch information
Jie2GG authored Sep 30, 2019
2 parents a2e7e71 + e20be58 commit 6e52cac
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Native.Csharp.Sdk/Cqp/CqApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,8 +449,8 @@ public int GetCsrfToken ()
/// </summary>
/// <param name="qqId">目标QQ</param>
/// <param name="notCache">不使用缓存, 默认为"False",通常忽略本参数,仅在必要时使用</param>
/// <returns>获取成功返回 <see cref="QQ"/>, 失败返回 null</returns>
public QQ GetQQInfo (long qqId, bool notCache = false)
/// <returns>获取成功返回 <see cref="QQInfo"/>, 失败返回 null</returns>
public QQInfo GetQQInfo (long qqId, bool notCache = false)
{
string result = CQP.CQ_getStrangerInfo (_authCode, qqId, notCache).ToString (Encoding.ASCII);
if (string.IsNullOrEmpty (result))
Expand All @@ -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 ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Native.Csharp.Sdk.Cqp.Model
/// <summary>
/// 描述 QQ 的类
/// </summary>
public class QQ
public class QQInfo
{
/// <summary>
/// 获取唯一标识符, 即QQ号码
Expand Down
2 changes: 1 addition & 1 deletion Native.Csharp.Sdk/Native.Csharp.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
<Compile Include="Cqp\Model\GroupFile.cs" />
<Compile Include="Cqp\Model\GroupInfo.cs" />
<Compile Include="Cqp\Model\GroupMemberInfo.cs" />
<Compile Include="Cqp\Model\QQ.cs" />
<Compile Include="Cqp\Model\QQInfo.cs" />
<Compile Include="Cqp\Expand\BinaryReaderExpand.cs" />
<Compile Include="Cqp\Expand\BinaryWriterExpand.cs" />
<Compile Include="Cqp\Expand\SystemExpand.cs" />
Expand Down

0 comments on commit 6e52cac

Please sign in to comment.