fcs-utils/StringOptions.cs

76 lines
3 KiB
C#
Raw Normal View History

2020-10-19 11:22:06 +02:00
// ***********************************************************************
2022-02-24 11:57:37 +01:00
// Assembly : FCS.Lib.Utility
2020-10-19 11:22:06 +02:00
// Author : FH
// Created : 2020-09-09
//
// Last Modified By : FH
2022-05-12 15:22:05 +02:00
// Last Modified On : 03-14-2022
2020-10-19 11:22:06 +02:00
// ***********************************************************************
2022-02-04 08:39:06 +01:00
// <copyright file="StringOptions.cs" company="FCS">
2022-02-24 10:11:45 +01:00
// Copyright (C) 2022 FCS Frede's Computer Services.
// This program is free software: you can redistribute it and/or modify
2022-05-12 15:22:05 +02:00
// it under the terms of the GNU Affero General Public License as
2022-02-24 10:11:45 +01:00
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
2022-01-01 16:54:13 +01:00
//
2022-02-24 10:11:45 +01:00
// 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
2022-05-12 15:22:05 +02:00
// GNU Affero General Public License for more details.
2022-01-01 16:54:13 +01:00
//
2022-05-12 15:22:05 +02:00
// 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]
2022-02-24 10:11:45 +01:00
// </copyright>
// <summary></summary>
2020-10-19 11:22:06 +02:00
// ***********************************************************************
2021-11-06 11:16:18 +01:00
2022-02-24 11:40:38 +01:00
namespace FCS.Lib.Utility
2020-10-19 11:22:06 +02:00
{
/// <summary>
2022-02-04 08:39:06 +01:00
/// Class StringOptions.
2020-10-19 11:22:06 +02:00
/// </summary>
public class StringOptions
{
/// <summary>
2022-11-16 11:34:12 +01:00
/// Gets or sets the required length of a string
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>
2022-11-16 11:34:12 +01:00
/// Gets or sets a value indicating whether to [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>
2022-11-16 11:34:12 +01:00
/// Gets or sets a value indicating whether to [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>
2022-11-16 11:34:12 +01:00
/// Gets or sets a value indicating whether to [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>
2022-11-16 11:34:12 +01:00
/// Gets or sets a value indicating whether to [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>
2022-11-16 11:34:12 +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>
2022-11-16 11:34:12 +01:00
/// Gets or sets a value indicating whether to [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; }
}
}