Source

main / Source / Excel / Excel.BizLogic / Repositories / RepositoryInfo.cs


namespace DataUp.Excel.BizLogic
{
    public class RepositoryModel
    {
        /// <summary>
        /// Gets or sets the name of the repository.
        /// </summary>
        public string RepositoryName { get; set; }

        /// <summary>
        /// Gets or sets the type of the repository.
        /// </summary>
        public string RepositoryType { get; set; }

        /// <summary>
        /// Gets or sets the username of the repository.
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// Gets or sets the password of the repository.
        /// </summary>
        public string UserPassword { get; set; }

        /// <summary>
        /// Gets or sets the value indicating whether the password is required or not for the repository.
        /// </summary>
        public bool IsPasswordRequired { get; set; }

        /// <summary>
        /// Gets or sets the value indicating whether the user agreement is accepted or not.
        /// </summary>
        public bool IsAgreementAccepted { get; set; }

        /// <summary>
        /// Clear values.
        /// </summary>
        public void Clear()
        {
            this.RepositoryName = string.Empty;
            this.UserName = string.Empty;
            this.UserPassword = string.Empty;
        }
    }
}