public async Task <IActionResult> SemiAutoMatchmake([FromBody] SemiAutoMatchmake.Request req) { await MatchingServerInfo.MultiMatchingServersAsync(); var requester = new evomatching.ProtocolModels.Matching.SemiAutoMatchmake(); requester.request = req; var res = await requester.PostAsyncXXX(MatchingServerInfo.AreaUri(req.matchingArea.Value)); return(Ok(res.Payload)); }
public async Task <IActionResult> ForceMatchmake([FromBody] ForceMatchmake.Request req) { await MatchingServerInfo.MultiMatchingServersAsync(); var requester = new evomatching.ProtocolModels.Matching.ForceMatchmake(); requester.request = req; var res = await requester.PostAsyncXXX(MatchingServerInfo.AreaUri(req.matchingArea.Value)); return(Ok(new ForceMatchmake.Response { matchingArea = req.matchingArea.Value, })); }
public async Task <IActionResult> GetEntries([FromBody] GetEntries.Request req) { await MatchingServerInfo.MultiMatchingServersAsync(); var requester = new evomatching.ProtocolModels.Matching.GetEntries(); var res = await requester.PostAsyncXXX(MatchingServerInfo.AreaUri(req.matchingArea.Value)); return(Ok(new GetEntries.Response { entries = res.Payload.entries, battleServers = res.Payload.battleServers, matchingArea = req.matchingArea.Value, })); }