mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-02-12 14:41:37 +00:00
Extracted shortcut request/response records to separate files
This commit is contained in:
parent
b2882e0d93
commit
b20273fe49
@ -0,0 +1,3 @@
|
|||||||
|
namespace AIStudio.Tools.Rust;
|
||||||
|
|
||||||
|
public sealed record RegisterShortcutRequest(Shortcut Id, string Shortcut);
|
||||||
3
app/MindWork AI Studio/Tools/Rust/ShortcutResponse.cs
Normal file
3
app/MindWork AI Studio/Tools/Rust/ShortcutResponse.cs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
namespace AIStudio.Tools.Rust;
|
||||||
|
|
||||||
|
public sealed record ShortcutResponse(bool Success, string ErrorMessage);
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
namespace AIStudio.Tools.Rust;
|
||||||
|
|
||||||
|
public sealed record ShortcutValidationResponse(bool IsValid, string ErrorMessage, bool HasConflict, string ConflictDescription);
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
namespace AIStudio.Tools.Rust;
|
||||||
|
|
||||||
|
public sealed record ValidateShortcutRequest(string Shortcut);
|
||||||
@ -137,14 +137,6 @@ public sealed partial class RustService
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private sealed record RegisterShortcutRequest(Shortcut ShortcutId, string Shortcut);
|
|
||||||
|
|
||||||
private sealed record ShortcutResponse(bool Success, string ErrorMessage);
|
|
||||||
|
|
||||||
private sealed record ValidateShortcutRequest(string Shortcut);
|
|
||||||
|
|
||||||
private sealed record ShortcutValidationResponse(bool IsValid, string ErrorMessage, bool HasConflict, string ConflictDescription);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user