using Modules.User.Domain.Gateways;
using System.Reflection;

namespace Modules.User.Domain.Entities.Account;

public class ClientInfo
{
    public string? UserAgent { get; private set; }
    //public string? DeviceInfo { get; private set; }
    public string? Country { get; private set; }
    public string? Region { get; private set; }

    private ClientInfo() { }

    public ClientInfo(Models.ClientInfo model)
    {
        UserAgent = model.UserAgent;
        Region = model.Region;
        Country = model.Country;
    }

    public static ClientInfo Create(string? userAgent, string? country, string? city) => new()
    {
        UserAgent = userAgent,
        Region = city,
        Country = country,
    };
}