﻿using UnityEngine;

namespace AsmodeeDigital.Common.Plugin.Domain.Players
{
    /// <summary>
    /// Test user data
    /// </summary>
    [CreateAssetMenu]
    public class User : ScriptableObject
    {
        /// <summary>
        /// Login of the user
        /// </summary>
        public string Login;

        /// <summary>
        /// Email of the user
        /// </summary>
        public string Email;

        /// <summary>
        /// Password of the user
        /// </summary>
        public string Password;

        /// <summary>
        /// Days of Wonders ID othe User (www_id) for automatic unit test
        /// </summary>
        [Header("Automatic Unit Test")]
        public int DoWID;

        /// <summary>
        /// Is the user waiting an event during a test
        /// Used only for test and development
        /// </summary>
        [HideInInspector()]
        public bool Waiting;

        public User()
        {
        }

        public User(string login, string password)
        {
            this.Login = login;
            this.Password = password;
        }

        public User(string login, string password, int dowID)
        {
            this.Login = login;
            this.Password = password;
            this.DoWID = dowID;
        }

        public User(string login, string password, string email, int dowID)
        {
            this.Login = login;
            this.Password = password;
            this.Email = email;
            this.DoWID = dowID;
        }
    }
}
