- Methode ähnlich zu Angular's Subscribe für verbesserte asynchrone Verarbeitung implementiert. - Modelle erstellt und Methoden für den GetSystemDetails-Endpunkt hinzugefügt.
20 lines
496 B
C#
20 lines
496 B
C#
using System.Net;
|
|
|
|
namespace WindreamHub.Legacy.Client.Models
|
|
{
|
|
public class SimplifiedResponse<TData, TError>
|
|
{
|
|
public SimplifiedResponse(bool ok, HttpStatusCode status, TData data, TError error)
|
|
{
|
|
Ok = ok;
|
|
Status = status;
|
|
Data = data;
|
|
Error = error;
|
|
}
|
|
|
|
public bool Ok { get; }
|
|
public HttpStatusCode Status { get; }
|
|
public TData Data { get; }
|
|
public TError Error { get; }
|
|
}
|
|
} |