Add currently active client mods in ProfileActivityService (#523)
* Add currently active client mods in ProfileActivityService * Add method to fetch active client mods on profile
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using SPTarkov.Server.Core.Models.Spt.Services;
|
||||
using SPTarkov.Server.Core.Models.Utils;
|
||||
|
||||
namespace SPTarkov.Server.Core.Models.Eft.Game;
|
||||
|
||||
public record SendClientModsRequest : IRequestData
|
||||
{
|
||||
[JsonPropertyName("activeClientMods")]
|
||||
public List<ProfileActiveClientMods> ActiveClientMods { get; set; } = [];
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using SPTarkov.Server.Core.Models.Eft.Match;
|
||||
using SPTarkov.Server.Core.Models.Spt.Location;
|
||||
|
||||
@@ -8,6 +9,7 @@ namespace SPTarkov.Server.Core.Models.Spt.Services
|
||||
public long ClientStartedTimestamp { get; set; }
|
||||
public long LastActive { get; set; }
|
||||
public ProfileActivityRaidData? RaidData { get; set; } = null;
|
||||
public IReadOnlyList<ProfileActiveClientMods> ActiveClientMods { get; set; } = [];
|
||||
}
|
||||
|
||||
public class ProfileActivityRaidData
|
||||
@@ -16,4 +18,16 @@ namespace SPTarkov.Server.Core.Models.Spt.Services
|
||||
public RaidChanges? RaidAdjustments { get; set; } = null;
|
||||
public LocationTransit? LocationTransit { get; set; } = null;
|
||||
}
|
||||
|
||||
public record ProfileActiveClientMods
|
||||
{
|
||||
[JsonPropertyName("modName")]
|
||||
public required string Name { get; init; }
|
||||
|
||||
[JsonPropertyName("modGUID")]
|
||||
public required string GUID { get; init; }
|
||||
|
||||
[JsonPropertyName("modVersion")]
|
||||
public required Version Version { get; init; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user