Pilz.Net aktualisieren
@@ -62,15 +62,15 @@ result.EnsureOk();
|
|||||||
If the status code is fine and the message is not null, you can use it. It's typed as `T` while `T` is an type that inherits from `ApiMessage` which you can define at `SendRequest<T>()` method.
|
If the status code is fine and the message is not null, you can use it. It's typed as `T` while `T` is an type that inherits from `ApiMessage` which you can define at `SendRequest<T>()` method.
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Example messages</summay>
|
<summary>Example messages</summary>
|
||||||
|
|
||||||
```cs
|
```cs
|
||||||
public class SDxGetRequest(int id)
|
public class SDxGetRequest(int id) : ApiMessage
|
||||||
{
|
{
|
||||||
public int Id { get; } = id;
|
public int Id { get; } = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SDxGetResponse(List<SDx> sdx)
|
public class SDxGetResponse(List<SDx> sdx) : ApiMessage
|
||||||
{
|
{
|
||||||
public List<SDx> SDx { get; } = sdx;
|
public List<SDx> SDx { get; } = sdx;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user