namespace OpenWarehouse.auth.lib.Model.Service;

public class CreateServiceTokenReturnModel
{
    public CreateServiceTokenReturnModel(string? serviceName = null, bool isSucess = false, bool userAlleradyExist = false)
    {
        ServiceName = serviceName;
        IsSuccess = isSucess;
        UserAllereadyExist = userAlleradyExist;
        RoleResults = new List<CreateServiceRoleResult>();
        PrivilageResults = new List<CreateServicePrivilageResult>();
    }
    public string? ServiceName { get; protected set; }
    public string? ServiceUsername { get; set; }
    public bool IsSuccess { get; set; }
    public bool UserAllereadyExist { get; set; }
    public string? ServiceToken { get; set; }
    
    
    public List<CreateServicePrivilageResult> PrivilageResults { get; set; }
    public List<CreateServiceRoleResult> RoleResults { get; set; }
}