mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-21 18:37:18 +02:00
46 lines
1.1 KiB
C#
46 lines
1.1 KiB
C#
using System;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
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>
|
|
[Required]
|
|
public string Nickname { get; set; } = string.Empty;
|
|
|
|
///<summary>
|
|
/// Player information update date
|
|
///</summary>
|
|
public int? UpdatedAt { get; set; }
|
|
}
|
|
} |