Files
SPT-Server-Build/Core/Models/Eft/Game/GameConfigResponse.cs
T
CWX 5e7b4e3538 more progress (#45)
* ignore nulls in json

* Implement ProfileActivityService

* add temp beta release

* implement customizationController

* comment out logging

* implement gameStart
2025-01-12 20:41:00 +00:00

77 lines
1.9 KiB
C#

using System.Text.Json.Serialization;
namespace Core.Models.Eft.Game;
public class GameConfigResponse
{
[JsonPropertyName("aid")]
public double? Aid { get; set; }
[JsonPropertyName("lang")]
public string? Language { get; set; }
[JsonPropertyName("languages")]
public Dictionary<string, string>? Languages { get; set; }
[JsonPropertyName("ndaFree")]
public bool? IsNdaFree { get; set; }
[JsonPropertyName("taxonomy")]
public int? Taxonomy { get; set; }
[JsonPropertyName("activeProfileId")]
public string? ActiveProfileId { get; set; }
[JsonPropertyName("backend")]
public Backend? Backend { get; set; }
[JsonPropertyName("useProtobuf")]
public bool? UseProtobuf { get; set; }
[JsonPropertyName("utc_time")]
public long? UtcTime { get; set; }
/** Total in game time */
[JsonPropertyName("totalInGame")]
public double? TotalInGame { get; set; }
[JsonPropertyName("reportAvailable")]
public bool? IsReportAvailable { get; set; }
[JsonPropertyName("twitchEventMember")]
public bool? IsTwitchEventMember { get; set; }
[JsonPropertyName("sessionMode")]
public string? SessionMode { get; set; }
[JsonPropertyName("purchasedGames")]
public PurchasedGames? PurchasedGames { get; set; }
}
public class PurchasedGames
{
[JsonPropertyName("eft")]
public bool? IsEftPurchased { get; set; }
[JsonPropertyName("arena")]
public bool? IsArenaPurchased { get; set; }
}
public class Backend
{
[JsonPropertyName("Lobby")]
public string? Lobby { get; set; }
[JsonPropertyName("Trading")]
public string? Trading { get; set; }
[JsonPropertyName("Messaging")]
public string? Messaging { get; set; }
[JsonPropertyName("Main")]
public string? Main { get; set; }
[JsonPropertyName("RagFair")]
public string? RagFair { get; set; }
}