Add nullable support
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
using System.Net.Mime;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Prospect.Server.Api.Models.Client;
|
||||
using Prospect.Server.Api.Models.Multiplayer;
|
||||
using Prospect.Server.Api.Models.Multiplayer.Data;
|
||||
using Prospect.Server.Api.Services.Auth.Entity;
|
||||
using Prospect.Server.Api.Services.Auth.User;
|
||||
|
||||
namespace Prospect.Server.Api.Controllers;
|
||||
|
||||
[Route("MultiplayerServer")]
|
||||
[ApiController]
|
||||
[Authorize(AuthenticationSchemes = EntityAuthenticationOptions.DefaultScheme)]
|
||||
public class MultiplayerController : Controller
|
||||
{
|
||||
private readonly ILogger<MultiplayerController> _logger;
|
||||
|
||||
public MultiplayerController(ILogger<MultiplayerController> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
[HttpPost("ListQosServersForTitle")]
|
||||
[Produces(MediaTypeNames.Application.Json)]
|
||||
[Authorize(AuthenticationSchemes = UserAuthenticationOptions.DefaultScheme)]
|
||||
public IActionResult ListQosServersForTitle(FListQosServersForTitleRequest request)
|
||||
{
|
||||
return Ok(new ClientResponse<object>
|
||||
{
|
||||
Code = 200,
|
||||
Status = "OK",
|
||||
Data = new FListQosServersForTitleResponse
|
||||
{
|
||||
PageSize = 1,
|
||||
QosServers = new List<FQosServer>
|
||||
{
|
||||
new FQosServer
|
||||
{
|
||||
Region = "NorthEurope",
|
||||
ServerUrl = "127.0.0.1"
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user