More types

This commit is contained in:
Cj
2025-01-07 06:52:03 -05:00
parent 4325d472dc
commit 3f4e529c23
5 changed files with 119 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
using System.Text.Json.Serialization;
using Core.Models.Eft.Common.Request;
namespace Core.Models.Eft.Notes;
public class NoteActionData : BaseInteractionRequestData
{
[JsonPropertyName("Action")]
public string Action { get; set; }
[JsonPropertyName("index")]
public int Index { get; set; }
[JsonPropertyName("note")]
public Note Note { get; set; }
}
public class Note
{
[JsonPropertyName("Time")]
public int Time { get; set; }
[JsonPropertyName("Text")]
public string Text { get; set; }
}
+21
View File
@@ -0,0 +1,21 @@
using System.Text.Json.Serialization;
namespace Core.Models.Eft.Notifier;
public class NotifierChannel
{
[JsonPropertyName("server")]
public string Server { get; set; }
[JsonPropertyName("channel_id")]
public string ChannelId { get; set; }
[JsonPropertyName("url")]
public string Url { get; set; }
[JsonPropertyName("notifierServer")]
public string NotifierServer { get; set; }
[JsonPropertyName("ws")]
public string WebSocket { get; set; }
}
@@ -0,0 +1,9 @@
using System.Text.Json.Serialization;
namespace Core.Models.Eft.Notifier;
public class SelectProfileResponse
{
[JsonPropertyName("status")]
public string Status { get; set; }
}
@@ -0,0 +1,55 @@
using System.Text.Json.Serialization;
using Core.Models.Eft.Common.Tables;
namespace Core.Models.Eft.Player;
public class PlayerIncrementSkillLevelRequestData
{
[JsonPropertyName("_id")]
public string Id { get; set; }
[JsonPropertyName("experience")]
public int Experience { get; set; }
[JsonPropertyName("quests")]
public List<object> Quests { get; set; }
[JsonPropertyName("ragFairOffers")]
public List<object> RagFairOffers { get; set; }
[JsonPropertyName("builds")]
public List<object> Builds { get; set; }
[JsonPropertyName("items")]
public Items Items { get; set; }
[JsonPropertyName("production")]
public Production Production { get; set; }
[JsonPropertyName("skills")]
public Skills Skills { get; set; }
[JsonPropertyName("traderRelations")]
public TraderRelations TraderRelations { get; set; }
}
// TODO: These are all lists of objects.
public class Items
{
[JsonPropertyName("new")]
public List<object> NewItems { get; set; }
[JsonPropertyName("change")]
public List<object> ChangedItems { get; set; }
[JsonPropertyName("del")]
public List<object> DeletedItems { get; set; }
}
public class Production
{
}
public class TraderRelations
{
}
@@ -0,0 +1,9 @@
using System.Text.Json.Serialization;
namespace Core.Models.Eft.Prestige;
public class GetPrestigeResponse
{
[JsonPropertyName("elements")]
public List<Common.Tables.Prestige> Elements { get; set; }
}