Initial commit
This commit is contained in:
18
Radium.DataExporter.Models/Common/Enums/PlatformMask.cs
Normal file
18
Radium.DataExporter.Models/Common/Enums/PlatformMask.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
namespace Radium.DataExporter.Models.Common.Enums;
|
||||
|
||||
[Flags]
|
||||
public enum PlatformMask
|
||||
{
|
||||
None,
|
||||
Steam,
|
||||
Oculus,
|
||||
PlayStation = 4,
|
||||
Xbox = 8,
|
||||
RecNet = 16,
|
||||
IOS = 32,
|
||||
GooglePlay = 64,
|
||||
Standalone = 128,
|
||||
Pico = 256,
|
||||
Switch = 512,
|
||||
All = -1
|
||||
}
|
||||
16
Radium.DataExporter.Models/Common/Enums/PlatformType.cs
Normal file
16
Radium.DataExporter.Models/Common/Enums/PlatformType.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace Radium.DataExporter.Models.Common.Enums;
|
||||
|
||||
public enum PlatformType
|
||||
{
|
||||
All = -1,
|
||||
Steam,
|
||||
Oculus,
|
||||
PlayStation,
|
||||
Xbox,
|
||||
RecNet,
|
||||
IOS,
|
||||
GooglePlay,
|
||||
Standalone,
|
||||
Pico,
|
||||
Switch
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Radium.DataExporter.Models.Common.Requests;
|
||||
|
||||
public class CompleteAuthLinkRequest
|
||||
{
|
||||
public required string Code { get; set; }
|
||||
public required long AccountId { get; set; }
|
||||
public required string SteamId { get; set; }
|
||||
public required string SteamTicket { get; set; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
22
Radium.DataExporter.Models/Common/Results/RecNetError.cs
Normal file
22
Radium.DataExporter.Models/Common/Results/RecNetError.cs
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user