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 { private readonly ILogger _logger; public RequestIsPlayerStillOnBattleServerFunction(ILogger logger) { _logger = logger; } public async Task ExecuteAsync(RequestIsPlayerStillOnBattleServerRequest request) { return new RequestIsPlayerStillOnBattleServerResponse { IsStillOnBattleServer = false, InfoStillOnBattleServer = "", }; } }