Class InboxReplierDto
Inbox replier. Will automatically reply to inbound emails that match given field for an inbox.
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "InboxReplierDto")]
public class InboxReplierDto : IEquatable<InboxReplierDto>, IValidatableObject
Constructors
View SourceInboxReplierDto()
Initializes a new instance of the InboxReplierDto class.
Declaration
[JsonConstructor]
protected InboxReplierDto()
InboxReplierDto(Guid, Guid, string, FieldEnum, string, string, string, string, string, bool, Guid?, Dictionary<string, object>, bool, DateTime)
Initializes a new instance of the InboxReplierDto class.
Declaration
public InboxReplierDto(Guid id = default, Guid inboxId = default, string name = null, InboxReplierDto.FieldEnum field = (InboxReplierDto.FieldEnum)0, string match = null, string replyTo = null, string subject = null, string from = null, string charset = null, bool isHTML = false, Guid? templateId = null, Dictionary<string, object> templateVariables = null, bool ignoreReplyTo = false, DateTime createdAt = default)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | id (required). |
System.Guid | inboxId | inboxId (required). |
string | name | name. |
InboxReplierDto.FieldEnum | field | field (required). |
string | match | match (required). |
string | replyTo | replyTo. |
string | subject | subject. |
string | from | from. |
string | charset | charset. |
bool | isHTML | isHTML (required). |
System.Guid? | templateId | templateId. |
Dictionary<string, object> | templateVariables | templateVariables. |
bool | ignoreReplyTo | ignoreReplyTo (required). |
DateTime | createdAt | createdAt (required). |
Properties
View SourceCharset
Gets or Sets Charset
Declaration
[DataMember(Name = "charset", EmitDefaultValue = true)]
public string Charset { get; set; }
Property Value
Type | Description |
---|---|
string |
CreatedAt
Gets or Sets CreatedAt
Declaration
[DataMember(Name = "createdAt", IsRequired = true, EmitDefaultValue = true)]
public DateTime CreatedAt { get; set; }
Property Value
Type | Description |
---|---|
DateTime |
Field
Gets or Sets Field
Declaration
[DataMember(Name = "field", IsRequired = true, EmitDefaultValue = true)]
public InboxReplierDto.FieldEnum Field { get; set; }
Property Value
Type | Description |
---|---|
InboxReplierDto.FieldEnum |
From
Gets or Sets From
Declaration
[DataMember(Name = "from", EmitDefaultValue = true)]
public string From { 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 |
IgnoreReplyTo
Gets or Sets IgnoreReplyTo
Declaration
[DataMember(Name = "ignoreReplyTo", IsRequired = true, EmitDefaultValue = true)]
public bool IgnoreReplyTo { get; set; }
Property Value
Type | Description |
---|---|
bool |
InboxId
Gets or Sets InboxId
Declaration
[DataMember(Name = "inboxId", IsRequired = true, EmitDefaultValue = true)]
public Guid InboxId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
IsHTML
Gets or Sets IsHTML
Declaration
[DataMember(Name = "isHTML", IsRequired = true, EmitDefaultValue = true)]
public bool IsHTML { get; set; }
Property Value
Type | Description |
---|---|
bool |
Match
Gets or Sets Match
Declaration
[DataMember(Name = "match", IsRequired = true, EmitDefaultValue = true)]
public string Match { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Gets or Sets Name
Declaration
[DataMember(Name = "name", EmitDefaultValue = true)]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ReplyTo
Gets or Sets ReplyTo
Declaration
[DataMember(Name = "replyTo", EmitDefaultValue = true)]
public string ReplyTo { get; set; }
Property Value
Type | Description |
---|---|
string |
Subject
Gets or Sets Subject
Declaration
[DataMember(Name = "subject", EmitDefaultValue = true)]
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
string |
TemplateId
Gets or Sets TemplateId
Declaration
[DataMember(Name = "templateId", EmitDefaultValue = true)]
public Guid? TemplateId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? |
TemplateVariables
Gets or Sets TemplateVariables
Declaration
[DataMember(Name = "templateVariables", EmitDefaultValue = true)]
public Dictionary<string, object> TemplateVariables { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> |
Methods
View SourceEquals(InboxReplierDto)
Returns true if InboxReplierDto instances are equal
Declaration
public bool Equals(InboxReplierDto input)
Parameters
Type | Name | Description |
---|---|---|
InboxReplierDto | input | Instance of InboxReplierDto 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 |