mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 02:17:20 +02:00
Some graphQL API refactor
This commit is contained in:
1 parent
c3550fbddd
commit
87fcdd31b1
8 files changed
+346
-175
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using HotChocolate.Types;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
|
||||
namespace WotBlitzStatisticsPro.GraphQl.ObjectTypes
|
||||
{
|
||||
[ExtendObjectType(Name = "Query")]
|
||||
public class StatisticsResponseType: InterfaceType<IStatisticsResponse>
|
||||
{
|
||||
protected override void Configure(IInterfaceTypeDescriptor<IStatisticsResponse> descriptor)
|
||||
{
|
||||
descriptor.Name("Statistics");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using HotChocolate.Types;
|
||||
using WotBlitzStatisticsPro.Common.Model;
|
||||
|
||||
namespace WotBlitzStatisticsPro.GraphQl.ObjectTypes
|
||||
{
|
||||
[ExtendObjectType(Name = "Query")]
|
||||
public class TankInfoResponseType: ObjectType<TankInfoResponse>
|
||||
{
|
||||
protected override void Configure(IObjectTypeDescriptor<TankInfoResponse> descriptor)
|
||||
{
|
||||
descriptor.Name("TankInfoResponse");
|
||||
descriptor.Implements<StatisticsResponseType>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user