mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 10:27:18 +02:00
feat: new graphql query
This commit is contained in:
1 parent
8c490edcc6
commit
703e16fc39
4 files changed
+111
No files matched your search
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using HotChocolate.Types;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
using WotBlitzStatisticsPro.Logic;
|
||||
|
||||
namespace WotBlitzStatisticsPro.GraphQl.Query
|
||||
{
|
||||
[ExtendObjectType(Name = "Query")]
|
||||
public class VehiclesQuery
|
||||
{
|
||||
/// <summary>
|
||||
/// Returns a list of all vehicles of one nation
|
||||
/// </summary>
|
||||
/// <param name="nationId">Nation</param>
|
||||
/// <param name="language">Request language</param>
|
||||
/// <returns>A list of vehicles</returns>
|
||||
public async Task<List<VehicleResponse>> GetVehicles(string nationId, RequestLanguage? language)
|
||||
{
|
||||
return new List<VehicleResponse>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user