Skip to content

Commit

Permalink
Fix ALL Namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
reitowo committed Dec 21, 2023
1 parent c4c2985 commit fafe1cb
Show file tree
Hide file tree
Showing 221 changed files with 454 additions and 956 deletions.
14 changes: 6 additions & 8 deletions Api/AnnounceApi.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Threading.Tasks;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Models;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
using MyBot.Models;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public AnnounceApi GetAnnounceApi() {
Expand Down
5 changes: 2 additions & 3 deletions Api/ApiFactory.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Collections.Generic;
using QQChannelFramework.Api.Base;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
namespace MyBot.Api;

/// <summary>
/// Api加工厂
Expand Down
9 changes: 4 additions & 5 deletions Api/AudioControlApi.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Models.AudioModels;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
using MyBot.Api.Types;
using MyBot.Models.AudioModels;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public AudioControlApi GetAudioControlApi() {
Expand Down
19 changes: 9 additions & 10 deletions Api/Base/ApiBase.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Exceptions;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Linq;
using System.Net.Http;
using System.Net.Http.Headers;
using System.Text;
using System.Threading.Tasks;
using QQChannelFramework.Tools;

namespace QQChannelFramework.Api.Base;
using MyBot.Api.Types;
using MyBot.Datas;
using MyBot.Exceptions;
using MyBot.Tools;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace MyBot.Api.Base;

public class ApiBase {
private const string ReleaseUrl = "https://api.sgroup.qq.com";
Expand All @@ -29,7 +28,7 @@ public class ApiBase {

static ApiBase() {
Client = new HttpClient(new SocketsHttpHandler() {
PooledConnectionLifetime = TimeSpan.FromMinutes(30)
PooledConnectionLifetime = TimeSpan.FromMinutes(120)
});
Client.Timeout = TimeSpan.FromSeconds(10);
}
Expand Down
4 changes: 1 addition & 3 deletions Api/Base/IRawApiInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Collections.Generic;

namespace QQChannelFramework.Api.Base;
namespace MyBot.Api.Base;

/// <summary>
/// 源Api信息
Expand Down
2 changes: 1 addition & 1 deletion Api/Base/ProcessedApiInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace QQChannelFramework.Api.Base;
namespace MyBot.Api.Base;

/// <summary>
/// 已加工的Api信息
Expand Down
16 changes: 7 additions & 9 deletions Api/ChannelApi.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using ChannelModels.Types;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
using MyBot.Datas;
using MyBot.Models;
using MyBot.Models.Types;
using Newtonsoft.Json.Linq;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Datas;
using QQChannelFramework.Models;
using QQChannelFramework.Models.Types;

namespace QQChannelFramework.Api;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public ChannelApi GetChannelApi() {
Expand Down
14 changes: 6 additions & 8 deletions Api/ChannelPermissionApi.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Threading.Tasks;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Models;

namespace QQChannelFramework.Api
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
using MyBot.Models;
namespace MyBot.Api
{
sealed partial class QQChannelApi
{
Expand Down
15 changes: 6 additions & 9 deletions Api/ChannelRoleApi.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
using MyBot.Models;
using MyBot.Models.ParamModels;
using Newtonsoft.Json.Linq;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Models;
using QQChannelFramework.Models.ParamModels;
using QQChannelFramework.Models.RawObject;

namespace QQChannelFramework.Api;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public ChannelRoleApi GetChannelRoleApi() {
Expand Down
15 changes: 4 additions & 11 deletions Api/ChatMessageApi.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
using System.Collections.Generic;
using System.IO;
using System.Net.Http;
using System.Text;
using System.Net.Http;
using System.Threading.Tasks;
using Newtonsoft.Json;
using MyBot.Api.Base;
using MyBot.Models.MessageModels;
using Newtonsoft.Json.Linq;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Models.MessageModels;

namespace QQChannelFramework.Api;
namespace MyBot.Api;

public enum ChatMessageType {
Text = 0,
Expand Down
14 changes: 6 additions & 8 deletions Api/DirectMessageApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
using MyBot.Models;
using MyBot.Models.MessageModels;
using Newtonsoft.Json.Linq;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Models;
using QQChannelFramework.Models.MessageModels;

namespace QQChannelFramework.Api;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public DirectMessageApi GetDirectMessageApi() {
Expand Down
12 changes: 6 additions & 6 deletions Api/ForumApi.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Models.Forum;
using QQChannelFramework.Tools;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
using MyBot.Api.Types;
using MyBot.Models.Forum;
using MyBot.Models.Forum.Contents;
using MyBot.Tools;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public ForumApi GetForumApi() {
Expand Down
10 changes: 4 additions & 6 deletions Api/GuildApi.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using ChannelModels;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Models;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Models;
namespace MyBot.Api;

sealed partial class QQChannelApi
{
Expand Down
15 changes: 5 additions & 10 deletions Api/GuildPermissionApi.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
using Newtonsoft.Json.Linq;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Models.ChannelPermissionModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Generic;
using System.Threading.Tasks;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Models.ChannelPermissionModels;
namespace MyBot.Api;

sealed partial class QQChannelApi
{
Expand Down
18 changes: 8 additions & 10 deletions Api/MemberApi.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
using System;
using System.Threading.Tasks;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Models;
using QQChannelFramework.Api.Raws;
using System.Collections.Generic;
using QQChannelFramework.Api.Types;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
using MyBot.Datas;
using MyBot.Models;
using Newtonsoft.Json.Linq;
using QQChannelFramework.Datas;

namespace QQChannelFramework.Api;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public MemberApi GetMemberApi() {
Expand Down
12 changes: 5 additions & 7 deletions Api/MessageApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
using MyBot.Models.MessageModels;
using Newtonsoft.Json.Linq;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Models.MessageModels;

namespace QQChannelFramework.Api;
namespace MyBot.Api;

public enum MessagesPagerType {
Around,
Expand Down
9 changes: 4 additions & 5 deletions Api/MessageSettingApi.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public MessageSettingApi GetMessageSettingApi() {
Expand Down
14 changes: 5 additions & 9 deletions Api/MuteApi.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;
using System;
using System.Collections.Generic;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public MuteApi GetMuteApi() {
Expand Down
13 changes: 5 additions & 8 deletions Api/PinsApi.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Raws;
using QQChannelFramework.Api.Types;
using QQChannelFramework.Models.MessageModels;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
using MyBot.Api.Raws;
using MyBot.Api.Types;
using MyBot.Models.MessageModels;
namespace MyBot.Api;

sealed partial class QQChannelApi {
public PinsApi GetPinsApi() {
Expand Down
8 changes: 4 additions & 4 deletions Api/QQChannelApi.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using QQChannelFramework.Api.Base;
using QQChannelFramework.Api.Types;

namespace QQChannelFramework.Api;
using MyBot.Api.Base;
using MyBot.Api.Types;
using MyBot.Datas;
namespace MyBot.Api;

/// <summary>
/// QQ频道机器人OpenApi
Expand Down
5 changes: 2 additions & 3 deletions Api/Raws/RawAddMemberToRoleApi.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using QQChannelFramework.Api.Types;

namespace QQChannelFramework.Api.Raws;
using MyBot.Api.Types;
namespace MyBot.Api.Raws;

/// <summary>
/// 源Api信息 - 增加频道身份组成员
Expand Down
5 changes: 2 additions & 3 deletions Api/Raws/RawAddReactionApi.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using QQChannelFramework.Api.Types;

namespace QQChannelFramework.Api.Raws;
using MyBot.Api.Types;
namespace MyBot.Api.Raws;

/// <summary>
/// 发表表情表态
Expand Down
5 changes: 2 additions & 3 deletions Api/Raws/RawAudioControlApi.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using QQChannelFramework.Api.Types;

namespace QQChannelFramework.Api.Raws;
using MyBot.Api.Types;
namespace MyBot.Api.Raws;

/// <summary>
/// 源Api信息 - 音频控制
Expand Down
Loading

0 comments on commit fafe1cb

Please sign in to comment.