Push changes

This commit is contained in:
Yury
2025-02-24 01:06:32 +02:00
parent 1bfb16539f
commit 280b87314c
126 changed files with 5935 additions and 1265 deletions
@@ -0,0 +1,34 @@
using System.Text.Json.Serialization;
using Prospect.Server.Api.Services.CloudScript;
// Season 1 request
public class RequestIsPlayerStillOnBattleServerRequest
{
}
public class RequestIsPlayerStillOnBattleServerResponse
{
[JsonPropertyName("isStillOnBattleServer")]
public bool IsStillOnBattleServer { get; set; }
[JsonPropertyName("infoStillOnBattleServer")]
public string InfoStillOnBattleServer { get; set; }
}
[CloudScriptFunction("RequestIsPlayerStillOnBattleServer")]
public class RequestIsPlayerStillOnBattleServerFunction : ICloudScriptFunction<RequestIsPlayerStillOnBattleServerRequest, RequestIsPlayerStillOnBattleServerResponse>
{
private readonly ILogger<RequestIsPlayerStillOnBattleServerFunction> _logger;
public RequestIsPlayerStillOnBattleServerFunction(ILogger<RequestIsPlayerStillOnBattleServerFunction> logger)
{
_logger = logger;
}
public async Task<RequestIsPlayerStillOnBattleServerResponse> ExecuteAsync(RequestIsPlayerStillOnBattleServerRequest request)
{
return new RequestIsPlayerStillOnBattleServerResponse
{
IsStillOnBattleServer = false,
InfoStillOnBattleServer = "",
};
}
}