Skip to content

Commit

Permalink
refactor: convert info abstract record to record
Browse files Browse the repository at this point in the history
  • Loading branch information
moomiji committed Sep 24, 2024
1 parent 7adf486 commit b9872e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/MaaFramework.Binding/Infos/AdbDeviceInfo.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
namespace MaaFramework.Binding;

/// <summary>
/// An abstract record providing properties of adb device information.
/// A record providing properties of adb device information.
/// </summary>
/// <param name="Name">Gets the name of a device.</param>
/// <param name="AdbPath">Gets the path of an adb that a device connected to.</param>
/// <param name="AdbSerial">Gets the adb serial of a device.</param>
/// <param name="ScreencapMethods">Gets the <see cref="AdbScreencapMethods"/> of a device.</param>
/// <param name="InputMethods">Gets the <see cref="AdbInputMethods"/> of a device.</param>
/// <param name="Config">Gets the config of a device.</param>
public abstract record AdbDeviceInfo(
public record AdbDeviceInfo(
string Name,
string AdbPath,
string AdbSerial,
Expand Down
4 changes: 2 additions & 2 deletions src/MaaFramework.Binding/Infos/DesktopWindowInfo.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
namespace MaaFramework.Binding;

/// <summary>
/// An abstract record providing properties of window information.
/// A record providing properties of window information.
/// </summary>
/// <param name="Handle">Gets the handle to a window.</param>
/// <param name="Name">Gets the window name.</param>
/// <param name="ClassName">Gets the window class name.</param>
public abstract record DesktopWindowInfo(
public record DesktopWindowInfo(
nint Handle,
string Name,
string ClassName
Expand Down

0 comments on commit b9872e0

Please sign in to comment.