Skip to content

Commit

Permalink
chore: rename MaaToolKit to MaaToolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
moomiji committed Jan 2, 2024
1 parent 6904bc1 commit e810d0e
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Like this [SampleResource](./src/MaaFramework.Binding.UnitTests/SampleResource)
```CSharp
using MaaFramework.Binding;

var devices = new MaaToolKit().Find();
var devices = new MaaToolkit().Find();
if (devices.Length < 1)
{
throw new InvalidOperationException();
Expand Down
6 changes: 3 additions & 3 deletions src/MaaFramework.Binding.Grpc/MaaToolKitGrpc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace MaaFramework.Binding;
/// <summary>
/// A wrapper class providing a reference implementation for <see cref="MaaFramework.Binding.Interop.Grpc.Config"/> and <see cref="MaaFramework.Binding.Interop.Grpc.Device"/>.
/// </summary>
public class MaaToolKitGrpc : MaaGrpcChannel, IMaaToolkit
public class MaaToolkitGrpc : MaaGrpcChannel, IMaaToolkit
{
private ConfigClient _configClient = default!;
private DeviceClient _deviceClient = default!;
Expand All @@ -23,10 +23,10 @@ protected override void OnChannelChanged(GrpcChannel channel)
}

/// <summary>
/// Creates a <see cref="MaaToolKitGrpc"/> instance.
/// Creates a <see cref="MaaToolkitGrpc"/> instance.
/// </summary>
/// <param name="channel">The channel to use to make remote calls.</param>
public MaaToolKitGrpc(GrpcChannel channel)
public MaaToolkitGrpc(GrpcChannel channel)
: base(channel)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace MaaFramework.Binding.Interop.Native;
/// <summary>
/// The base P/Invoke methods for MaaToolKit, use this class to call all the native methods.
/// If you do not known what you are doing, do not use this class. In most situations, you
/// should use <see cref="Binding.MaaToolKit"/> instead.
/// should use <see cref="Binding.MaaToolkit"/> instead.
/// </summary>
public static partial class MaaToolKit
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace MaaFramework.Binding.Interop.Native;
/// <summary>
/// The base P/Invoke methods for MaaToolKit, use this class to call all the native methods.
/// If you do not known what you are doing, do not use this class. In most situations, you
/// should use <see cref="Binding.MaaToolKit"/> instead.
/// should use <see cref="Binding.MaaToolkit"/> instead.
/// </summary>
public static partial class MaaToolKit
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace MaaFramework.Binding.Interop.Native;
/// <summary>
/// The base P/Invoke methods for MaaToolKit, use this class to call all the native methods.
/// If you do not known what you are doing, do not use this class. In most situations, you
/// should use <see cref="Binding.MaaToolKit"/> instead.
/// should use <see cref="Binding.MaaToolkit"/> instead.
/// </summary>
public static partial class MaaToolKit
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace MaaFramework.Binding.Interop.Native;
/// <summary>
/// The base P/Invoke methods for MaaToolKit, use this class to call all the native methods.
/// If you do not known what you are doing, do not use this class. In most situations, you
/// should use <see cref="Binding.MaaToolKit"/> instead.
/// should use <see cref="Binding.MaaToolkit"/> instead.
/// </summary>
public static partial class MaaToolKit
{
Expand Down
2 changes: 1 addition & 1 deletion src/MaaFramework.Binding.Native/MaaToolKit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace MaaFramework.Binding;
/// <summary>
/// A wrapper class providing a reference implementation for <see cref="MaaFramework.Binding.Interop.Native.MaaToolKit"/>.
/// </summary>
public class MaaToolKit : IMaaToolkit
public class MaaToolkit : IMaaToolkit
{
#region MaaToolKitConfig

Expand Down
2 changes: 1 addition & 1 deletion src/MaaFramework.Binding.UnitTests/Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static Common()

private static void InitializeInfo(TestContext testContext)
{
var devices = new MaaToolKit().Find();
var devices = new MaaToolkit().Find();

// 请修改 TestParam.runsettings,并在测试资源管理器——设置——配置运行设置
// 选择解决方案范围内的 runsettings 文件:src\Common\TestParam.runsettings
Expand Down
6 changes: 3 additions & 3 deletions src/MaaFramework.Binding.UnitTests/Test_IMaaToolkit.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace MaaFramework.Binding.UnitTests;

/// <summary>
/// Test <see cref="IMaaToolkit"/> and <see cref="MaaToolKit"/> and <see cref="MaaToolKitGrpc"/>.
/// Test <see cref="IMaaToolkit"/> and <see cref="MaaToolkit"/> and <see cref="MaaToolkitGrpc"/>.
/// </summary>
[TestClass]
public class Test_IMaaToolkit
Expand All @@ -14,8 +14,8 @@ public class Test_IMaaToolkit

public static Dictionary<MaaTypes, object> NewData => new()
{
{ MaaTypes.Native, new MaaToolKit() },
{ MaaTypes.Grpc, new MaaToolKitGrpc(Common.GrpcChannel) },
{ MaaTypes.Native, new MaaToolkit() },
{ MaaTypes.Grpc, new MaaToolkitGrpc(Common.GrpcChannel) },
};
public static Dictionary<MaaTypes, object> Data { get; private set; } = default!;

Expand Down

0 comments on commit e810d0e

Please sign in to comment.