using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WctCustomerApiSample.Model
{
    public class AccountInfoLess
    {
        public string accountType { get; set; }    //2017/10/30: 目前可測server的回傳是錯的,暫時先改為string type
        //public AccountType accountType { get; set; }    
        public string email { get; set; }
        public string guid { get; set; }
        public string name { get; set; }
        public UserStatus status { get; set; }
    }

    public class AccountInfo
    {
        public AccountType accountType { get; set; }
        public string activeDirectoryBaseDn { get; set; }
        public string activeDirectoryServer { get; set; }
        public string boss { get; set; }
        public string createDate { get; set; }
        public string email { get; set; }
        public bool exportAbility { get; set; }
        public string guid { get; set; }
        public string inheritanceStatus { get; set; }   //實際是enum,但有可能回傳的json為null
        public string name { get; set; }
        public bool printAbility { get; set; }
        public UserRole role { get; set; }
        public bool secretary { get; set; }
        public UserStatus status { get; set; }
    }

    public enum InheritanceStatus
    {
        INHERITED, INHERITING, FAILED
    }
    public enum UserRole
    {
        NORMAL_USER, READ_ONLY_USER, ADMIN
    }
    public enum UserStatus
    {
        RESIGNED, INACTIVE, ACTIVE, DELETED
    }
}
