Search Results for

    Show / Hide Table of Contents

    Class WebhookResultDto

    Result of a webhook notification

    Inheritance
    object
    WebhookResultDto
    Implements
    IEquatable<WebhookResultDto>
    System.ComponentModel.DataAnnotations.IValidatableObject
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: mailslurp.Model
    Assembly: mailslurp.dll
    Syntax
    [DataContract(Name = "WebhookResultDto")]
    public class WebhookResultDto : IEquatable<WebhookResultDto>, IValidatableObject

    Constructors

    View Source

    WebhookResultDto()

    Initializes a new instance of the WebhookResultDto class.

    Declaration
    [JsonConstructor]
    protected WebhookResultDto()
    View Source

    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 Source

    AttachmentId

    Gets or Sets AttachmentId

    Declaration
    [DataMember(Name = "attachmentId", EmitDefaultValue = true)]
    public Guid? AttachmentId { get; set; }
    Property Value
    Type Description
    System.Guid?
    View Source

    CreatedAt

    Gets or Sets CreatedAt

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

    EmailId

    Gets or Sets EmailId

    Declaration
    [DataMember(Name = "emailId", EmitDefaultValue = true)]
    public Guid? EmailId { get; set; }
    Property Value
    Type Description
    System.Guid?
    View Source

    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
    View Source

    Id

    Gets or Sets Id

    Declaration
    [DataMember(Name = "id", EmitDefaultValue = true)]
    public Guid? Id { get; set; }
    Property Value
    Type Description
    System.Guid?
    View Source

    InboxId

    Gets or Sets InboxId

    Declaration
    [DataMember(Name = "inboxId", EmitDefaultValue = true)]
    public Guid? InboxId { get; set; }
    Property Value
    Type Description
    System.Guid?
    View Source

    MessageId

    Gets or Sets MessageId

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

    PhoneId

    Gets or Sets PhoneId

    Declaration
    [DataMember(Name = "phoneId", EmitDefaultValue = true)]
    public Guid? PhoneId { get; set; }
    Property Value
    Type Description
    System.Guid?
    View Source

    RedriveId

    Gets or Sets RedriveId

    Declaration
    [DataMember(Name = "redriveId", EmitDefaultValue = true)]
    public Guid? RedriveId { get; set; }
    Property Value
    Type Description
    System.Guid?
    View Source

    ResponseBodyExtract

    Gets or Sets ResponseBodyExtract

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

    ResponseStatus

    Gets or Sets ResponseStatus

    Declaration
    [DataMember(Name = "responseStatus", EmitDefaultValue = true)]
    public int? ResponseStatus { get; set; }
    Property Value
    Type Description
    int?
    View Source

    ResponseTimeMillis

    Gets or Sets ResponseTimeMillis

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

    ResultType

    Gets or Sets ResultType

    Declaration
    [DataMember(Name = "resultType", EmitDefaultValue = true)]
    public WebhookResultDto.ResultTypeEnum? ResultType { get; set; }
    Property Value
    Type Description
    WebhookResultDto.ResultTypeEnum?
    View Source

    Seen

    Gets or Sets Seen

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

    SmsId

    Gets or Sets SmsId

    Declaration
    [DataMember(Name = "smsId", EmitDefaultValue = true)]
    public Guid? SmsId { get; set; }
    Property Value
    Type Description
    System.Guid?
    View Source

    UpdatedAt

    Gets or Sets UpdatedAt

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

    UserId

    Gets or Sets UserId

    Declaration
    [DataMember(Name = "userId", IsRequired = true, EmitDefaultValue = true)]
    public Guid UserId { get; set; }
    Property Value
    Type Description
    System.Guid
    View Source

    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
    View Source

    WebhookId

    Gets or Sets WebhookId

    Declaration
    [DataMember(Name = "webhookId", IsRequired = true, EmitDefaultValue = true)]
    public Guid WebhookId { get; set; }
    Property Value
    Type Description
    System.Guid
    View Source

    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 Source

    Equals(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

    View Source

    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
    Object.Equals(Object)
    View Source

    GetHashCode()

    Gets the hash code

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    Hash code

    Overrides
    Object.GetHashCode()
    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()
    View Source

    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

    Implements

    System.IEquatable<T>
    System.ComponentModel.DataAnnotations.IValidatableObject
    • View Source
    In This Article
    Back to top See MailSlurp website for more information.