32 lines
782 B
C#
32 lines
782 B
C#
using MessagePack;
|
|
using SVSim.Database.Models;
|
|
|
|
namespace SVSim.EmulatedEntrypoint.Models.Dtos;
|
|
|
|
[MessagePackObject]
|
|
public class UserLeaderSkin
|
|
{
|
|
[Key("leader_skin_id")]
|
|
public int Id { get; set; }
|
|
[Key("leader_skin_name")]
|
|
public string Name { get; set; } = string.Empty;
|
|
[Key("class_id")]
|
|
public int ClassId { get; set; }
|
|
[Key("emote_id")]
|
|
public int EmoteId { get; set; }
|
|
[Key("is_owned")]
|
|
public bool IsOwned { get; set; }
|
|
|
|
public UserLeaderSkin(LeaderSkinEntry leaderSkin, bool isOwned)
|
|
{
|
|
this.Id = leaderSkin.Id;
|
|
this.Name = leaderSkin.Name;
|
|
this.ClassId = leaderSkin.Class.Id;
|
|
this.EmoteId = leaderSkin.EmoteId;
|
|
this.IsOwned = isOwned;
|
|
}
|
|
|
|
public UserLeaderSkin()
|
|
{
|
|
}
|
|
} |