51 lines
1.6 KiB
C#
51 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Collections.Immutable;
|
|
|
|
namespace dopt.DeltaBarth.DataObjects
|
|
{
|
|
public record class ApiServerError
|
|
{
|
|
public required int status_code { get; init; }
|
|
public required string message { get; init; }
|
|
public string? code { get; init; }
|
|
public string? hints { get; init; }
|
|
public string? type { get; init; }
|
|
public string? title { get; init; }
|
|
public string? traceId { get; init; }
|
|
}
|
|
public record class Status
|
|
{
|
|
public required int code { get; init; }
|
|
public required string description { get; init; }
|
|
public required string message { get; init; }
|
|
public ApiServerError? apiServerError { get; init; }
|
|
|
|
}
|
|
public record class Credentials
|
|
{
|
|
public required string username { get; init; }
|
|
public required string password { get; init; }
|
|
public required string database { get; init; }
|
|
public required string mandant { get; init; }
|
|
}
|
|
public record class UmsatzPrognoseEinzelergebnis
|
|
{
|
|
public required int jahr { get; init; }
|
|
public required int monat { get; init; }
|
|
public required decimal vorhersage { get; init; }
|
|
}
|
|
public record class UmsatzPrognoseErgebnisse
|
|
{
|
|
public required ImmutableArray<UmsatzPrognoseEinzelergebnis> daten { get; init; }
|
|
}
|
|
public record class UmsatzPrognoseAusgabe
|
|
{
|
|
public required UmsatzPrognoseErgebnisse response { get; init; }
|
|
public required Status status { get; init; }
|
|
}
|
|
}
|