2020-12-27 12:39:25 +01:00
|
|
|
using System;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
2020-07-19 13:04:31 +02:00
|
|
|
using WotBlitzStatisticsPro.Common.Model;
|
|
|
|
|
|
|
|
|
|
namespace WotBlitzStatisticsPro.DataAccess.Model.Accounts
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Account information
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class AccountInfo
|
|
|
|
|
{
|
|
|
|
|
///<summary>
|
|
|
|
|
/// Player account identifier
|
|
|
|
|
///</summary>
|
|
|
|
|
[BsonId]
|
|
|
|
|
public long AccountId { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Player region
|
|
|
|
|
/// </summary>
|
|
|
|
|
public RealmType Realm { get; set; }
|
|
|
|
|
|
|
|
|
|
///<summary>
|
|
|
|
|
/// Account creation date
|
|
|
|
|
///</summary>
|
|
|
|
|
public int CreatedAt { get; set; }
|
|
|
|
|
|
|
|
|
|
///<summary>
|
|
|
|
|
/// Last battle time
|
|
|
|
|
///</summary>
|
|
|
|
|
public int LastBattleTime { get; set; }
|
|
|
|
|
|
|
|
|
|
///<summary>
|
|
|
|
|
/// Player's nick
|
|
|
|
|
///</summary>
|
2020-12-27 12:39:25 +01:00
|
|
|
[Required]
|
|
|
|
|
public string Nickname { get; set; } = string.Empty;
|
2020-07-19 13:04:31 +02:00
|
|
|
|
|
|
|
|
///<summary>
|
|
|
|
|
/// Player information update date
|
|
|
|
|
///</summary>
|
|
|
|
|
public int? UpdatedAt { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|