Class WebhookResultDto
Result of a webhook notification
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "WebhookResultDto")]
public class WebhookResultDto : IEquatable<WebhookResultDto>, IValidatableObject
Constructors
View SourceWebhookResultDto()
Initializes a new instance of the WebhookResultDto class.
Declaration
[JsonConstructor]
protected WebhookResultDto()
WebhookResultDto(Guid?, Guid, Guid, string, string, Guid?, HttpMethodEnum, WebhookEventEnum, int?, long, string, ResultTypeEnum?, DateTime, DateTime, bool, Guid?, Guid?, Guid?, Guid?, Guid?)
Initializes a new instance of the WebhookResultDto class.
Declaration
public WebhookResultDto(Guid? id = null, Guid userId = default, Guid webhookId = default, string webhookUrl = null, string messageId = null, Guid? redriveId = null, WebhookResultDto.HttpMethodEnum httpMethod = (WebhookResultDto.HttpMethodEnum)0, WebhookResultDto.WebhookEventEnum webhookEvent = (WebhookResultDto.WebhookEventEnum)0, int? responseStatus = null, long responseTimeMillis = 0, string responseBodyExtract = null, WebhookResultDto.ResultTypeEnum? resultType = null, DateTime createdAt = default, DateTime updatedAt = default, bool seen = false, Guid? inboxId = null, Guid? emailId = null, Guid? attachmentId = null, Guid? phoneId = null, Guid? smsId = null)
Parameters
Type | Name | Description |
---|---|---|
System.Guid? | id | id. |
System.Guid | userId | userId (required). |
System.Guid | webhookId | webhookId (required). |
string | webhookUrl | webhookUrl (required). |
string | messageId | messageId (required). |
System.Guid? | redriveId | redriveId. |
WebhookResultDto.HttpMethodEnum | httpMethod | httpMethod (required). |
WebhookResultDto.WebhookEventEnum | webhookEvent | webhookEvent (required). |
int? | responseStatus | responseStatus. |
long | responseTimeMillis | responseTimeMillis (required). |
string | responseBodyExtract | responseBodyExtract. |
WebhookResultDto.ResultTypeEnum? | resultType | resultType. |
DateTime | createdAt | createdAt (required). |
DateTime | updatedAt | updatedAt (required). |
bool | seen | seen (required). |
System.Guid? | inboxId | inboxId. |
System.Guid? | emailId | emailId. |
System.Guid? | attachmentId | attachmentId. |
System.Guid? | phoneId | phoneId. |
System.Guid? | smsId | smsId. |
Properties
View SourceAttachmentId
Gets or Sets AttachmentId
Declaration
[DataMember(Name = "attachmentId", EmitDefaultValue = true)]
public Guid? AttachmentId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
EmailId
Gets or Sets EmailId
Declaration
[DataMember(Name = "emailId", EmitDefaultValue = true)]
public Guid? EmailId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
HttpMethod
Gets or Sets HttpMethod
Declaration
[DataMember(Name = "httpMethod", IsRequired = true, EmitDefaultValue = true)]
public WebhookResultDto.HttpMethodEnum HttpMethod { get; set; }
Property Value
Type | Description |
---|---|
WebhookResultDto.HttpMethodEnum |
Id
Gets or Sets Id
Declaration
[DataMember(Name = "id", EmitDefaultValue = true)]
public Guid? Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
InboxId
Gets or Sets InboxId
Declaration
[DataMember(Name = "inboxId", EmitDefaultValue = true)]
public Guid? InboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
MessageId
Gets or Sets MessageId
Declaration
[DataMember(Name = "messageId", IsRequired = true, EmitDefaultValue = true)]
public string MessageId { get; set; }
Property Value
Type | Description |
---|---|
string |
PhoneId
Gets or Sets PhoneId
Declaration
[DataMember(Name = "phoneId", EmitDefaultValue = true)]
public Guid? PhoneId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
RedriveId
Gets or Sets RedriveId
Declaration
[DataMember(Name = "redriveId", EmitDefaultValue = true)]
public Guid? RedriveId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
ResponseBodyExtract
Gets or Sets ResponseBodyExtract
Declaration
[DataMember(Name = "responseBodyExtract", EmitDefaultValue = true)]
public string ResponseBodyExtract { get; set; }
Property Value
Type | Description |
---|---|
string |
ResponseStatus
Gets or Sets ResponseStatus
Declaration
[DataMember(Name = "responseStatus", EmitDefaultValue = true)]
public int? ResponseStatus { get; set; }
Property Value
Type | Description |
---|---|
int? |
ResponseTimeMillis
Gets or Sets ResponseTimeMillis
Declaration
[DataMember(Name = "responseTimeMillis", IsRequired = true, EmitDefaultValue = true)]
public long ResponseTimeMillis { get; set; }
Property Value
Type | Description |
---|---|
long |
ResultType
Gets or Sets ResultType
Declaration
[DataMember(Name = "resultType", EmitDefaultValue = true)]
public WebhookResultDto.ResultTypeEnum? ResultType { get; set; }
Property Value
Type | Description |
---|---|
WebhookResultDto.ResultTypeEnum? |
Seen
Gets or Sets Seen
Declaration
[DataMember(Name = "seen", IsRequired = true, EmitDefaultValue = true)]
public bool Seen { get; set; }
Property Value
Type | Description |
---|---|
bool |
SmsId
Gets or Sets SmsId
Declaration
[DataMember(Name = "smsId", EmitDefaultValue = true)]
public Guid? SmsId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
[DataMember(Name = "updatedAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime UpdatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
UserId
Gets or Sets UserId
Declaration
[DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
public Guid UserId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
WebhookEvent
Gets or Sets WebhookEvent
Declaration
[DataMember(Name = "webhookEvent", IsRequired = true, EmitDefaultValue = true)]
public WebhookResultDto.WebhookEventEnum WebhookEvent { get; set; }
Property Value
Type | Description |
---|---|
WebhookResultDto.WebhookEventEnum |
WebhookId
Gets or Sets WebhookId
Declaration
[DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)]
public Guid WebhookId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
WebhookUrl
Gets or Sets WebhookUrl
Declaration
[DataMember(Name = "webhookUrl", IsRequired = true, EmitDefaultValue = true)]
public string WebhookUrl { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceEquals(WebhookResultDto)
Returns true if WebhookResultDto instances are equal
Declaration
public bool Equals(WebhookResultDto input)
Parameters
Type | Name | Description |
---|---|---|
WebhookResultDto | input | Instance of WebhookResultDto 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 |