Push changes

This commit is contained in:
Yury
2025-02-24 01:01:48 +02:00
parent 1bfb16539f
commit 44a7554616
126 changed files with 5965 additions and 1265 deletions
@@ -0,0 +1,45 @@
using System.Text.Json.Serialization;
using Prospect.Server.Api.Services.CloudScript;
public class RegionObject
{
[JsonPropertyName("region")]
public string Region { get; set; }
[JsonPropertyName("ping")]
public int Ping { get; set; }
[JsonPropertyName("instanceType")]
public int InstanceType { get; set; }
}
public class RequestUsersPingRequestRequest
{
[JsonPropertyName("pings")]
public RegionObject[] Pings { get; set; }
[JsonPropertyName("countryCode")]
public string CountryCode { get; set; }
}
public class RequestUsersPingRequestResponse
{
// TODO: Unknown structure
}
[CloudScriptFunction("RequestUsersPingRequest")]
public class RequestUsersPingRequestFunction : ICloudScriptFunction<RequestUsersPingRequestRequest, RequestUsersPingRequestResponse>
{
private readonly ILogger<RequestUsersPingRequestFunction> _logger;
public RequestUsersPingRequestFunction(ILogger<RequestUsersPingRequestFunction> logger)
{
_logger = logger;
}
public async Task<RequestUsersPingRequestResponse> ExecuteAsync(RequestUsersPingRequestRequest request)
{
_logger.LogInformation("Processing ping request");
return new RequestUsersPingRequestResponse
{
};
}
}