add quest stuff
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user