add quest stuff

This commit is contained in:
Cj
2025-01-07 06:28:25 -05:00
parent b7ec4eb715
commit 7c415f088e
5 changed files with 79 additions and 0 deletions
@@ -0,0 +1,15 @@
using System.Text.Json.Serialization;
namespace Core.Models.Eft.Quests;
public class AcceptQuestRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "QuestAccept";
[JsonPropertyName("qid")]
public string QuestId { get; set; }
[JsonPropertyName("type")]
public string Type { get; set; }
}
@@ -0,0 +1,16 @@
using System.Text.Json.Serialization;
namespace Core.Models.Eft.Quests;
public class CompleteQuestRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; }
/** Quest Id */
[JsonPropertyName("qid")]
public string QuestId { get; set; }
[JsonPropertyName("removeExcessItems")]
public bool RemoveExcessItems { get; set; }
}
@@ -0,0 +1,27 @@
using System.Text.Json.Serialization;
namespace Core.Models.Eft.Quests;
public class HandoverQuestRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "QuestHandover";
[JsonPropertyName("qid")]
public string QuestId { get; set; }
[JsonPropertyName("conditionId")]
public string ConditionId { get; set; }
[JsonPropertyName("items")]
public List<HandoverItem> Items { get; set; }
}
public class HandoverItem
{
[JsonPropertyName("id")]
public string Id { get; set; }
[JsonPropertyName("count")]
public int Count { get; set; }
}
@@ -0,0 +1,9 @@
using System.Text.Json.Serialization;
namespace Core.Models.Eft.Quests;
public class ListQuestsRequestData
{
[JsonPropertyName("completed")]
public bool Completed { get; set; }
}
@@ -0,0 +1,12 @@
using System.Text.Json.Serialization;
namespace Core.Models.Eft.Quests;
public class RepeatableQuestChangeRequest
{
[JsonPropertyName("Action")]
public string Action { get; set; } = "RepeatableQuestChange";
[JsonPropertyName("qid")]
public string QuestId { get; set; }
}