2020-11-06 19:23:20 +01:00
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
|
using WotBlitzStatisticsPro.Common.Model;
|
2020-09-22 17:54:35 +02:00
|
|
|
|
|
|
|
|
namespace WotBlitzStatisticsPro.DataAccess.Model.Accounts
|
2020-09-18 16:07:25 +02:00
|
|
|
{
|
|
|
|
|
public class TankInfo
|
|
|
|
|
{
|
2020-11-06 19:23:20 +01:00
|
|
|
public TankInfo()
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public TankInfo(long accountId, long tankId)
|
|
|
|
|
{
|
|
|
|
|
TankInfoId = new TankInfoKey(accountId, tankId);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[BsonId]
|
|
|
|
|
public TankInfoKey TankInfoId { get; set; }
|
|
|
|
|
|
2020-09-22 17:54:35 +02:00
|
|
|
///<summary>
|
|
|
|
|
/// Player account identifier
|
|
|
|
|
///</summary>
|
2020-11-06 19:23:20 +01:00
|
|
|
[BsonIgnore]
|
|
|
|
|
public long AccountId => TankInfoId.AccountId;
|
2020-09-22 17:54:35 +02:00
|
|
|
|
|
|
|
|
///<summary>
|
|
|
|
|
/// Tank identifier
|
|
|
|
|
///</summary>
|
2020-11-06 19:23:20 +01:00
|
|
|
[BsonIgnore]
|
|
|
|
|
public long TankId => TankInfoId.TankId;
|
2020-09-22 17:54:35 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
public int BattleLifeTimeInSeconds { get; set; }
|
|
|
|
|
|
|
|
|
|
///<summary>
|
|
|
|
|
/// Last battle
|
|
|
|
|
///</summary>
|
|
|
|
|
public int LastBattleTime { get; set; }
|
|
|
|
|
|
|
|
|
|
public bool? InGarage { get; set; }
|
|
|
|
|
|
|
|
|
|
private int? InGarageUpdated { get; set; }
|
|
|
|
|
|
|
|
|
|
///<summary>
|
|
|
|
|
/// Mastery:
|
|
|
|
|
///
|
|
|
|
|
/// 0 — None
|
|
|
|
|
/// 1 — Rank 3
|
|
|
|
|
/// 2 — Rank 2
|
|
|
|
|
/// 3 — Rank 1
|
|
|
|
|
/// 4 — Mastery
|
|
|
|
|
///</summary>
|
|
|
|
|
public MarkOfMastery MarkOfMastery { get; set; }
|
2020-09-18 16:07:25 +02:00
|
|
|
}
|
|
|
|
|
}
|