Switching project to C# (because why not)
This commit is contained in:
15
OpenSaveCloudClient/Models/Remote/AccessToken.cs
Normal file
15
OpenSaveCloudClient/Models/Remote/AccessToken.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OpenSaveCloudClient.Models.Remote
|
||||
{
|
||||
public class AccessToken
|
||||
{
|
||||
[JsonPropertyName("token")]
|
||||
public string Token { get; set; }
|
||||
}
|
||||
}
|
||||
17
OpenSaveCloudClient/Models/Remote/Credential.cs
Normal file
17
OpenSaveCloudClient/Models/Remote/Credential.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OpenSaveCloudClient.Models.Remote
|
||||
{
|
||||
public class Credential
|
||||
{
|
||||
[JsonPropertyName("username")]
|
||||
public string Username { get; set; }
|
||||
[JsonPropertyName("password")]
|
||||
public string Password { get; set; }
|
||||
}
|
||||
}
|
||||
30
OpenSaveCloudClient/Models/Remote/ServerInformation.cs
Normal file
30
OpenSaveCloudClient/Models/Remote/ServerInformation.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OpenSaveCloudClient.Models.Remote
|
||||
{
|
||||
public class ServerInformation
|
||||
{
|
||||
[JsonPropertyName("allow_register")]
|
||||
public bool AllowRegister { get; set; }
|
||||
|
||||
[JsonPropertyName("version")]
|
||||
public string Version { get; set; }
|
||||
|
||||
[JsonPropertyName("api_version")]
|
||||
public int ApiVersion { get; set; }
|
||||
|
||||
[JsonPropertyName("go_version")]
|
||||
public string GoVersion { get; set; }
|
||||
|
||||
[JsonPropertyName("os_name")]
|
||||
public string OsName { get; set; }
|
||||
|
||||
[JsonPropertyName("os_architecture")]
|
||||
public string OsArchitecture { get; set; }
|
||||
}
|
||||
}
|
||||
17
OpenSaveCloudClient/Models/Remote/TokenValidation.cs
Normal file
17
OpenSaveCloudClient/Models/Remote/TokenValidation.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Text.Json.Serialization;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace OpenSaveCloudClient.Models.Remote
|
||||
{
|
||||
public class TokenValidation
|
||||
{
|
||||
|
||||
[JsonPropertyName("valid")]
|
||||
public bool Valid { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user