Search Results for

    Show / Hide Table of Contents

    Class PhoneNumberValidationDto

    PhoneNumberValidationDto

    Inheritance
    object
    PhoneNumberValidationDto
    Implements
    IValidatableObject
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "PhoneNumberValidationDto")]
    public class PhoneNumberValidationDto : IValidatableObject

    Constructors

    View Source

    PhoneNumberValidationDto()

    Initializes a new instance of the PhoneNumberValidationDto class.

    Declaration
    [JsonConstructor]
    protected PhoneNumberValidationDto()
    View Source

    PhoneNumberValidationDto(string, string, string, bool, List<string>)

    Initializes a new instance of the PhoneNumberValidationDto class.

    Declaration
    public PhoneNumberValidationDto(string countryCode = null, string countryPrefix = null, string phoneNumber = null, bool isValid = false, List<string> validationErrors = null)
    Parameters
    Type Name Description
    string countryCode

    countryCode.

    string countryPrefix

    countryPrefix.

    string phoneNumber

    phoneNumber (required).

    bool isValid

    isValid (required).

    List<string> validationErrors

    validationErrors.

    Properties

    View Source

    CountryCode

    Gets or Sets CountryCode

    Declaration
    [DataMember(Name = "countryCode", EmitDefaultValue = false)]
    public string CountryCode { get; set; }
    Property Value
    Type Description
    string
    View Source

    CountryPrefix

    Gets or Sets CountryPrefix

    Declaration
    [DataMember(Name = "countryPrefix", EmitDefaultValue = false)]
    public string CountryPrefix { get; set; }
    Property Value
    Type Description
    string
    View Source

    IsValid

    Gets or Sets IsValid

    Declaration
    [DataMember(Name = "isValid", IsRequired = true, EmitDefaultValue = true)]
    public bool IsValid { get; set; }
    Property Value
    Type Description
    bool
    View Source

    PhoneNumber

    Gets or Sets PhoneNumber

    Declaration
    [DataMember(Name = "phoneNumber", IsRequired = true, EmitDefaultValue = true)]
    public string PhoneNumber { get; set; }
    Property Value
    Type Description
    string
    View Source

    ValidationErrors

    Gets or Sets ValidationErrors

    Declaration
    [DataMember(Name = "validationErrors", EmitDefaultValue = false)]
    public List<string> ValidationErrors { get; set; }
    Property Value
    Type Description
    List<string>

    Methods

    View Source

    ToJson()

    Returns the JSON string presentation of the object

    Declaration
    public virtual string ToJson()
    Returns
    Type Description
    string

    JSON string presentation of the object

    View Source

    ToString()

    Returns the string presentation of the object

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    String presentation of the object

    Overrides
    object.ToString()

    Implements

    IValidatableObject
    • View Source
    In this article
    Back to top See MailSlurp website for more information.