Class WaitForSingleSmsOptions
WaitForSingleSmsOptions
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "WaitForSingleSmsOptions")]
public class WaitForSingleSmsOptions : IEquatable<WaitForSingleSmsOptions>, IValidatableObject
Constructors
View SourceWaitForSingleSmsOptions()
Initializes a new instance of the WaitForSingleSmsOptions class.
Declaration
[JsonConstructor]
protected WaitForSingleSmsOptions()
WaitForSingleSmsOptions(Guid, long, bool, DateTime, DateTime, SortDirectionEnum?, long)
Initializes a new instance of the WaitForSingleSmsOptions class.
Declaration
public WaitForSingleSmsOptions(Guid phoneNumberId = default, long timeout = 0, bool unreadOnly = false, DateTime before = default, DateTime since = default, WaitForSingleSmsOptions.SortDirectionEnum? sortDirection = null, long delay = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | phoneNumberId | phoneNumberId (required). |
long | timeout | timeout (required). |
bool | unreadOnly | unreadOnly. |
DateTime | before | before. |
DateTime | since | since. |
WaitForSingleSmsOptions.SortDirectionEnum? | sortDirection | sortDirection. |
long | delay | delay. |
Properties
View SourceBefore
Gets or Sets Before
Declaration
[DataMember(Name = "before", EmitDefaultValue = false)]
public DateTime Before { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Delay
Gets or Sets Delay
Declaration
[DataMember(Name = "delay", EmitDefaultValue = false)]
public long Delay { get; set; }
Property Value
Type | Description |
---|---|
long |
PhoneNumberId
Gets or Sets PhoneNumberId
Declaration
[DataMember(Name = "phoneNumberId", IsRequired = true, EmitDefaultValue = true)]
public Guid PhoneNumberId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Since
Gets or Sets Since
Declaration
[DataMember(Name = "since", EmitDefaultValue = false)]
public DateTime Since { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
SortDirection
Gets or Sets SortDirection
Declaration
[DataMember(Name = "sortDirection", EmitDefaultValue = false)]
public WaitForSingleSmsOptions.SortDirectionEnum? SortDirection { get; set; }
Property Value
Type | Description |
---|---|
WaitForSingleSmsOptions.SortDirectionEnum? |
Timeout
Gets or Sets Timeout
Declaration
[DataMember(Name = "timeout", IsRequired = true, EmitDefaultValue = true)]
public long Timeout { get; set; }
Property Value
Type | Description |
---|---|
long |
UnreadOnly
Gets or Sets UnreadOnly
Declaration
[DataMember(Name = "unreadOnly", EmitDefaultValue = true)]
public bool UnreadOnly { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
View SourceEquals(WaitForSingleSmsOptions)
Returns true if WaitForSingleSmsOptions instances are equal
Declaration
public bool Equals(WaitForSingleSmsOptions input)
Parameters
Type | Name | Description |
---|---|---|
WaitForSingleSmsOptions | input | Instance of WaitForSingleSmsOptions to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Equals(object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
object | input | Object to be compared |
Returns
Type | Description |
---|---|
bool | Boolean |
Overrides
View SourceGetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Hash code |
Overrides
View SourceToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
string | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | String presentation of the object |
Overrides
Validate(ValidationContext)
To validate all properties of the instance
Declaration
public IEnumerable<ValidationResult> Validate(ValidationContext validationContext)
Parameters
Type | Name | Description |
---|---|---|
ValidationContext | validationContext | Validation context |
Returns
Type | Description |
---|---|
IEnumerable<ValidationResult> | Validation Result |