using System;

namespace MarcusLaw.OutlookAddin.Core.Models
{
    public sealed class FilingTarget
    {
        public FilingTarget(string parentType, string parentId, string parentName)
        {
            if (string.IsNullOrWhiteSpace(parentType)) throw new ArgumentException("parentType required", nameof(parentType));
            if (string.IsNullOrWhiteSpace(parentId)) throw new ArgumentException("parentId required", nameof(parentId));
            ParentType = parentType;
            ParentId = parentId;
            ParentName = parentName ?? string.Empty;
        }

        public string ParentType { get; }

        public string ParentId { get; }

        public string ParentName { get; }
    }
}
