You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ASCOM.Common/ASCOM.Common.Alpaca/AlpacaResponses/Response.cs
+1-19Lines changed: 1 addition & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,6 @@
1
1
usingASCOM.Common.Com;
2
2
usingSystem;
3
-
4
-
#if Swashbuckle_Documentation
5
-
usingSwashbuckle.AspNetCore.Annotations;
6
-
usingSystem.ComponentModel.DataAnnotations;
7
-
#endif
3
+
usingSystem.ComponentModel;
8
4
9
5
namespaceASCOM.Common.Alpaca
10
6
{
@@ -21,29 +17,18 @@ public class Response : IResponse
21
17
/// <summary>
22
18
/// Client's transaction ID (0 to 4294967295), as supplied by the client in the command request.
23
19
/// </summary>
24
-
#if Swashbuckle_Documentation
25
-
[SwaggerSchema(Format="uint32")]
26
-
[Range(0,4294967295)]
27
-
#endif
28
20
publicuintClientTransactionID{get;set;}
29
21
30
22
/// <summary>
31
23
/// Server's transaction ID (0 to 4294967295), should be unique for each client transaction so that log messages on the client can be associated with logs on the device.
32
24
/// </summary>
33
-
#if Swashbuckle_Documentation
34
-
[SwaggerSchema(Format="uint32")]
35
-
[Range(0,4294967295)]
36
-
#endif
37
25
publicuintServerTransactionID{get;set;}
38
26
39
27
/// <summary>
40
28
/// Zero for a successful transaction, or a non-zero integer(-2147483648 to 2147483647) if the device encountered an issue.Devices must use ASCOM reserved error
41
29
/// numbers whenever appropriate so that clients can take informed actions. E.g.returning 0x401 (1025) to indicate that an invalid value was received.
42
30
/// </summary>
43
31
/// <seealso cref="AlpacaErrors"/>
44
-
#if Swashbuckle_Documentation
45
-
[Range(-2147483648,2147483647)]
46
-
#endif
47
32
publicAlpacaErrorsErrorNumber{get;set;}
48
33
49
34
/// <summary>
@@ -58,9 +43,6 @@ public class Response : IResponse
58
43
/// Optional field for Windows drivers to return an exception to the client application.
59
44
/// </summary>
60
45
/// <remarks>Populating this automatically sets the ErrorMessage and ErrorNumber fields; COM errors in the range 0x80040400 to 0x8040FFF are translated to equivalent Alpaca error numbers in the range 0x400 to 0xFFF.</remarks>
0 commit comments