Class ExpiredInboxRecordProjection
Record of inbox expiration
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ExpiredInboxRecordProjection")]
public class ExpiredInboxRecordProjection : IEquatable<ExpiredInboxRecordProjection>, IValidatableObject
Constructors
View SourceExpiredInboxRecordProjection()
Initializes a new instance of the ExpiredInboxRecordProjection class.
Declaration
[JsonConstructor]
protected ExpiredInboxRecordProjection()
ExpiredInboxRecordProjection(DateTime, string, Guid, Guid)
Initializes a new instance of the ExpiredInboxRecordProjection class.
Declaration
public ExpiredInboxRecordProjection(DateTime createdAt = default, string emailAddress = null, Guid userId = default, Guid id = default)
Parameters
Type | Name | Description |
---|---|---|
DateTime | createdAt | createdAt (required). |
string | emailAddress | emailAddress (required). |
System.Guid | userId | userId (required). |
System.Guid | id | id (required). |
Properties
View SourceCreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
EmailAddress
Gets or Sets EmailAddress
Declaration
[DataMember(Name = "emailAddress", IsRequired = true, EmitDefaultValue = true)]
public string EmailAddress { get; set; }
Property Value
Type | Description |
---|---|
string |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", IsRequired = true, EmitDefaultValue = true)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
UserId
Gets or Sets UserId
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
View SourceEquals(ExpiredInboxRecordProjection)
Returns true if ExpiredInboxRecordProjection instances are equal
Declaration
public bool Equals(ExpiredInboxRecordProjection input)
Parameters
Type | Name | Description |
---|---|---|
ExpiredInboxRecordProjection | input | Instance of ExpiredInboxRecordProjection 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 |