fcs-utils/StringOptions.cs

80 lines
3.2 KiB
C#
Raw Normal View History

2020-10-19 11:22:06 +02:00
// ***********************************************************************
// Assembly : FCS.Lib
// Author : FH
// Created : 2020-09-09
//
// Last Modified By : FH
2021-11-06 11:16:18 +01:00
// Last Modified On : 2021-02-24
2020-10-19 11:22:06 +02:00
// ***********************************************************************
2020-10-19 11:45:13 +02:00
// <copyright file="StringOptions.cs" company="Frede Hundewadt">
2021-11-09 10:51:55 +01:00
// Copyright © FCS 2015-2022
2020-10-19 11:22:06 +02:00
// </copyright>
2022-01-01 16:54:13 +01:00
// <summary>
// Part of FCS.Lib - a set of utilities for C# - pieced together from fragments
// Copyright (C) 2021 FCS
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see <https://www.gnu.org/licenses/>.
// </summary>
2020-10-19 11:22:06 +02:00
// ***********************************************************************
2021-11-06 11:16:18 +01:00
2020-10-19 11:22:06 +02:00
namespace FCS.Lib
{
/// <summary>
2021-11-06 11:16:18 +01:00
/// Class StringOptions.
2020-10-19 11:22:06 +02:00
/// </summary>
public class StringOptions
{
/// <summary>
2021-11-06 11:16:18 +01:00
/// Gets or sets the length of the required.
2020-10-19 11:22:06 +02:00
/// </summary>
/// <value>The length of the required.</value>
public int RequiredLength { get; set; }
2021-11-06 11:16:18 +01:00
2020-10-19 11:22:06 +02:00
/// <summary>
2021-11-06 11:16:18 +01:00
/// Gets or sets a value indicating whether [require non letter or digit].
2020-10-19 11:22:06 +02:00
/// </summary>
/// <value><c>true</c> if [require non letter or digit]; otherwise, <c>false</c>.</value>
public bool RequireNonLetterOrDigit { get; set; }
2021-11-06 11:16:18 +01:00
2020-10-19 11:22:06 +02:00
/// <summary>
2021-11-06 11:16:18 +01:00
/// Gets or sets a value indicating whether [require digit].
2020-10-19 11:22:06 +02:00
/// </summary>
/// <value><c>true</c> if [require digit]; otherwise, <c>false</c>.</value>
public bool RequireDigit { get; set; }
2021-11-06 11:16:18 +01:00
2020-10-19 11:22:06 +02:00
/// <summary>
2021-11-06 11:16:18 +01:00
/// Gets or sets a value indicating whether [require lowercase].
2020-10-19 11:22:06 +02:00
/// </summary>
/// <value><c>true</c> if [require lowercase]; otherwise, <c>false</c>.</value>
public bool RequireLowercase { get; set; }
2021-11-06 11:16:18 +01:00
2020-10-19 11:22:06 +02:00
/// <summary>
2021-11-06 11:16:18 +01:00
/// Gets or sets a value indicating whether [require uppercase].
2020-10-19 11:22:06 +02:00
/// </summary>
/// <value><c>true</c> if [require uppercase]; otherwise, <c>false</c>.</value>
public bool RequireUppercase { get; set; }
2021-11-06 11:16:18 +01:00
2020-10-19 11:22:06 +02:00
/// <summary>
2021-11-06 11:16:18 +01:00
/// Gets or sets the required unique chars.
2020-10-19 11:22:06 +02:00
/// </summary>
/// <value>The required unique chars.</value>
public int RequiredUniqueChars { get; set; }
2021-11-06 11:16:18 +01:00
2020-10-19 11:22:06 +02:00
/// <summary>
2021-11-06 11:16:18 +01:00
/// Gets or sets a value indicating whether [require non alphanumeric].
2020-10-19 11:22:06 +02:00
/// </summary>
/// <value><c>true</c> if [require non alphanumeric]; otherwise, <c>false</c>.</value>
public bool RequireNonAlphanumeric { get; set; }
}
}