Initial commit

This commit is contained in:
2026-05-25 17:21:51 -07:00
commit eb27d44cbf
26 changed files with 1003 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
using System.Text.Json.Serialization;
namespace Radium.DataExporter.Models.Common.Results;
public class CompleteAuthLinkResult
{
[JsonPropertyName(name: "jobId")] public Guid JobId { get; set; }
[JsonPropertyName(name: "recNetUserId")] public long RecNetUserId { get; set; }
[JsonPropertyName(name: "resumedExistingJob")] public bool ResumedExistingJob { get; set; }
}

View File

@@ -0,0 +1,9 @@
namespace Radium.DataExporter.Models.Common.Results;
public class CreateJobSessionResponse
{
public CompleteAuthLinkResult? Result { get; init; }
public RecNetError? Error { get; init; }
public bool IsSuccess => Result != null;
}

View File

@@ -0,0 +1,22 @@
using System.Net;
using System.Text.Json.Serialization;
namespace Radium.DataExporter.Models.Common.Results;
public class RecNetError
{
[JsonPropertyName("type")]
public Uri? Type { get; init; }
[JsonPropertyName("title")]
public string Title { get; init; } = string.Empty;
[JsonPropertyName("status")]
public HttpStatusCode Status { get; init; }
[JsonPropertyName("detail")]
public string Detail { get; init; } = string.Empty;
[JsonPropertyName("traceId")]
public string TraceId { get; init; } = string.Empty;
}