Skip to content

Commit

Permalink
add more GraphQL types for Items and AttachmentActionResults
Browse files Browse the repository at this point in the history
  • Loading branch information
boscohyun committed Sep 26, 2024
1 parent 687bdfe commit 9067e8b
Show file tree
Hide file tree
Showing 23 changed files with 264 additions and 4 deletions.
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/AttachmentActionResults/Buy7BuyerResultType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class Buy7BuyerResultType : ObjectType<Buy7BuyerResult>
{
protected override void Configure(IObjectTypeDescriptor<Buy7BuyerResult> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class Buy7SellerResultType : ObjectType<Buy7SellerResult>
{
protected override void Configure(IObjectTypeDescriptor<Buy7SellerResult> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,5 @@ public class CombinationConsumable5ResultType : ObjectType<CombinationConsumable
protected override void Configure(IObjectTypeDescriptor<CombinationConsumable5Result> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
descriptor
.Field(f => f.Gold)
.Type<StringType>()
.Resolve(r => r.Parent<CombinationConsumable5Result>().Gold.ToString());
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class DailyReward2ResultType : ObjectType<DailyReward2Result>
{
protected override void Configure(IObjectTypeDescriptor<DailyReward2Result> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class ItemEnhancement11ResultType : ObjectType<ItemEnhancement11Result>
{
protected override void Configure(IObjectTypeDescriptor<ItemEnhancement11Result> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class ItemEnhancement12ResultType : ObjectType<ItemEnhancement12Result>
{
protected override void Configure(IObjectTypeDescriptor<ItemEnhancement12Result> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class ItemEnhancement13ResultType : ObjectType<ItemEnhancement13Result>
{
protected override void Configure(IObjectTypeDescriptor<ItemEnhancement13Result> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class ItemEnhancement7ResultType : ObjectType<ItemEnhancement7Result>
{
protected override void Configure(IObjectTypeDescriptor<ItemEnhancement7Result> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class ItemEnhancement9ResultType : ObjectType<ItemEnhancement9Result>
{
protected override void Configure(IObjectTypeDescriptor<ItemEnhancement9Result> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class MonsterCollectionResultType : ObjectType<MonsterCollectionResult>
{
protected override void Configure(IObjectTypeDescriptor<MonsterCollectionResult> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class RapidCombination0ResultType : ObjectType<RapidCombination0Result>
{
protected override void Configure(IObjectTypeDescriptor<RapidCombination0Result> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class RapidCombination5ResultType : ObjectType<RapidCombination5Result>
{
protected override void Configure(IObjectTypeDescriptor<RapidCombination5Result> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.AttachmentActionResults;

namespace Lib9c.GraphQL.Types.AttachmentActionResults;

public class SellCancellationResultType : ObjectType<SellCancellationResult>
{
protected override void Configure(IObjectTypeDescriptor<SellCancellationResult> descriptor)
{
descriptor.Implements<AttachmentActionResultInterfaceType>();
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/ArmorType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class ArmorType : ObjectType<Armor>
{
protected override void Configure(IObjectTypeDescriptor<Armor> descriptor)
{
descriptor.Implements<EquipmentInterfaceType>();
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/AuraType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class AuraType : ObjectType<Aura>
{
protected override void Configure(IObjectTypeDescriptor<Aura> descriptor)
{
descriptor.Implements<EquipmentInterfaceType>();
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/BeltType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class BeltType : ObjectType<Belt>
{
protected override void Configure(IObjectTypeDescriptor<Belt> descriptor)
{
descriptor.Implements<EquipmentInterfaceType>();
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/ConsumableType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class ConsumableType : ObjectType<Consumable>
{
protected override void Configure(IObjectTypeDescriptor<Consumable> descriptor)
{
descriptor.Implements<ItemUsableInterfaceType>();
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/CostumeType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class CostumeType : ObjectType<Costume>
{
protected override void Configure(IObjectTypeDescriptor<Costume> descriptor)
{
descriptor.Implements<ItemBaseInterfaceType>();
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/GrimoireType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class GrimoireType : ObjectType<Grimoire>
{
protected override void Configure(IObjectTypeDescriptor<Grimoire> descriptor)
{
descriptor.Implements<EquipmentInterfaceType>();
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/MaterialInterfaceType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class MaterialInterfaceType : InterfaceType<Material>
{
protected override void Configure(IInterfaceTypeDescriptor<Material> descriptor)
{
descriptor.Name("MaterialInterface");
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/MaterialType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class MaterialType : ObjectType<Material>
{
protected override void Configure(IObjectTypeDescriptor<Material> descriptor)
{
descriptor.Implements<ItemBaseInterfaceType>();
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/NecklaceType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class NecklaceType : ObjectType<Necklace>
{
protected override void Configure(IObjectTypeDescriptor<Necklace> descriptor)
{
descriptor.Implements<EquipmentInterfaceType>();
}
}
12 changes: 12 additions & 0 deletions Lib9c.GraphQL/Types/Items/TradableMaterialType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using HotChocolate.Types;
using Lib9c.Models.Items;

namespace Lib9c.GraphQL.Types.Items;

public class TradableMaterialType : ObjectType<TradableMaterial>
{
protected override void Configure(IObjectTypeDescriptor<TradableMaterial> descriptor)
{
descriptor.Implements<MaterialInterfaceType>();
}
}

0 comments on commit 9067e8b

Please sign in to comment.