-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
95 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace OpenShock.SDK.CSharp.Errors; | ||
|
||
public struct ShockerNotFoundOrNoAccess(Guid value) | ||
{ | ||
public Guid Value { get; } = value; | ||
} | ||
|
||
public struct ShockerPaused(Guid value) | ||
{ | ||
public Guid Value { get; } = value; | ||
} | ||
|
||
public struct ShockerNoPermission(Guid value) | ||
{ | ||
public Guid Value { get; } = value; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System.ComponentModel.DataAnnotations; | ||
|
||
namespace OpenShock.SDK.CSharp.Models; | ||
|
||
// ReSharper disable once ClassNeverInstantiated.Global | ||
public class Control | ||
{ | ||
public required Guid Id { get; set; } | ||
[EnumDataType(typeof(ControlType))] | ||
public required ControlType Type { get; set; } | ||
[Range(0, 100)] | ||
public required byte Intensity { get; set; } | ||
[Range(300, 30000)] | ||
public required ushort Duration { get; set; } | ||
public bool Exclusive { get; set; } = false; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace OpenShock.SDK.CSharp.Models; | ||
|
||
public sealed class ControlRequest | ||
{ | ||
public required IEnumerable<Control> Shocks { get; set; } | ||
public required string? CustomName { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
using System.Net; | ||
|
||
namespace OpenShock.SDK.CSharp.Problems; | ||
|
||
public sealed class ShockerControlProblem : ProblemDetails | ||
{ | ||
public Guid ShockerId { get; set; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters