using MS.Entities.AccountingService_Models;
using System;
using System.Collections.Generic;
using System.Text;

namespace MS.Models
{
    public class FuelItemTagDto
    {
        public static string SmartFuelIcCardSystemName = "SmartFuelIcCardSystem";
        public static string SmartFuelIcCardTagName = "SmartFuelIcCard";

        /// <summary>
        /// Like SmartFuelIcCard, SmartFuelOnlineCard, NFC...
        /// </summary>
        public string TagSystemName { get; set; }

        /// <summary>
        /// Like IcCard, NfcTag...
        /// </summary>
        public string TagType { get; set; }

        /// <summary>
        /// If TagType is IcCard, then this is the card number.
        /// </summary>
        public string TagId { get; set; }

        /// <summary>
        /// A tag must linked to a system user(ServiceIdentityUser) which can be fully retrieved from
        ///     AuthService.
        /// </summary>
        public UserInfos TagLinkedServiceIdentityUser { get; set; }

        /// <summary>
        /// any other extra info.
        /// </summary>
        public string Detail { get; set; }
    }
    public class UserInfos
    {
        public Guid Id { get; set; }
        public string UserName { get; set; }
        public string Alias { get; set; }
        public List<LiteBusinessUnitInfo> RestrictedInBusinessUnits { get; set; }
    }
    public class LiteBusinessUnitInfo
    {
        public Guid Id;
        public string Name;
    }
}
