Updated GetFriends implementation

This commit is contained in:
Chomp
2025-01-14 16:16:57 +00:00
parent b2d7943d9d
commit 34dcd2283e
3 changed files with 34 additions and 12 deletions
+5 -8
View File
@@ -1,4 +1,4 @@
using System.Text.Json.Serialization;
using System.Text.Json.Serialization;
using Core.Models.Eft.Game;
namespace Core.Models.Spt.Config;
@@ -172,15 +172,9 @@ public class ServerFeatures
public class ChatbotFeatures
{
[JsonPropertyName("sptFriendEnabled")]
public bool SptFriendEnabled { get; set; }
[JsonPropertyName("sptFriendGiftsEnabled")]
public bool SptFriendGiftsEnabled { get; set; }
[JsonPropertyName("commandoEnabled")]
public bool CommandoEnabled { get; set; }
[JsonPropertyName("commandoFeatures")]
public CommandoFeatures CommandoFeatures { get; set; }
@@ -189,10 +183,13 @@ public class ChatbotFeatures
[JsonPropertyName("ids")]
public Dictionary<string, string> Ids { get; set; }
[JsonPropertyName("enabledBots")]
public Dictionary<string, bool> EnabledBots { get; set; }
}
public class CommandoFeatures
{
[JsonPropertyName("giveCommandEnabled")]
public bool GiveCommandEnabled { get; set; }
}
}