Class ReplyToAliasEmailOptions
Options for replying to an alias email using the alias inbox
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ReplyToAliasEmailOptions")]
public class ReplyToAliasEmailOptions : IEquatable<ReplyToAliasEmailOptions>, IValidatableObject
Constructors
View SourceReplyToAliasEmailOptions()
Initializes a new instance of the ReplyToAliasEmailOptions class.
Declaration
[JsonConstructor]
protected ReplyToAliasEmailOptions()
ReplyToAliasEmailOptions(string, bool, string, List<string>, Dictionary<string, object>, Guid?, SendStrategyEnum?, Dictionary<string, string>, bool?, bool)
Initializes a new instance of the ReplyToAliasEmailOptions class.
Declaration
public ReplyToAliasEmailOptions(string body = null, bool isHTML = false, string charset = null, List<string> attachments = null, Dictionary<string, object> templateVariables = null, Guid? template = null, ReplyToAliasEmailOptions.SendStrategyEnum? sendStrategy = null, Dictionary<string, string> customHeaders = null, bool? useInboxName = null, bool html = false)
Parameters
Type | Name | Description |
---|---|---|
string | body | Body of the reply email you want to send (required). |
bool | isHTML | Is the reply HTML (required). |
string | charset | The charset that your message should be sent with. Optional. Default is UTF-8. |
System.Collections.Generic.List<T><string> | attachments | List of uploaded attachments to send with the reply. Optional.. |
Dictionary<string, object> | templateVariables | Template variables if using a template. |
System.Guid? | template | Template ID to use instead of body. Will use template variable map to fill defined variable slots.. |
ReplyToAliasEmailOptions.SendStrategyEnum? | sendStrategy | How an email should be sent based on its recipients. |
Dictionary<string, string> | customHeaders | Optional custom headers. |
bool? | useInboxName | Optionally use inbox name as display name for sender email address. |
bool | html | html. |
Properties
View SourceAttachments
List of uploaded attachments to send with the reply. Optional.
Declaration
[DataMember(Name = "attachments", EmitDefaultValue = true)]
public List<string> Attachments { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<T><string> | List of uploaded attachments to send with the reply. Optional. |
Body
Body of the reply email you want to send
Declaration
[DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)]
public string Body { get; set; }
Property Value
Type | Description |
---|---|
string | Body of the reply email you want to send |
Charset
The charset that your message should be sent with. Optional. Default is UTF-8
Declaration
[DataMember(Name = "charset", EmitDefaultValue = true)]
public string Charset { get; set; }
Property Value
Type | Description |
---|---|
string | The charset that your message should be sent with. Optional. Default is UTF-8 |
CustomHeaders
Optional custom headers
Declaration
[DataMember(Name = "customHeaders", EmitDefaultValue = true)]
public Dictionary<string, string> CustomHeaders { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Optional custom headers |
Html
Gets or Sets Html
Declaration
[DataMember(Name = "html", EmitDefaultValue = true)]
public bool Html { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsHTML
Is the reply HTML
Declaration
[DataMember(Name = "isHTML", IsRequired = true, EmitDefaultValue = true)]
public bool IsHTML { get; set; }
Property Value
Type | Description |
---|---|
bool | Is the reply HTML |
SendStrategy
How an email should be sent based on its recipients
Declaration
[DataMember(Name = "sendStrategy", EmitDefaultValue = true)]
public ReplyToAliasEmailOptions.SendStrategyEnum? SendStrategy { get; set; }
Property Value
Type | Description |
---|---|
ReplyToAliasEmailOptions.SendStrategyEnum? | How an email should be sent based on its recipients |
Template
Template ID to use instead of body. Will use template variable map to fill defined variable slots.
Declaration
[DataMember(Name = "template", EmitDefaultValue = true)]
public Guid? Template { get; set; }
Property Value
Type | Description |
---|---|
System.Guid? | Template ID to use instead of body. Will use template variable map to fill defined variable slots. |
TemplateVariables
Template variables if using a template
Declaration
[DataMember(Name = "templateVariables", EmitDefaultValue = true)]
public Dictionary<string, object> TemplateVariables { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, object> | Template variables if using a template |
UseInboxName
Optionally use inbox name as display name for sender email address
Declaration
[DataMember(Name = "useInboxName", EmitDefaultValue = true)]
public bool? UseInboxName { get; set; }
Property Value
Type | Description |
---|---|
bool? | Optionally use inbox name as display name for sender email address |
Methods
View SourceEquals(ReplyToAliasEmailOptions)
Returns true if ReplyToAliasEmailOptions instances are equal
Declaration
public bool Equals(ReplyToAliasEmailOptions input)
Parameters
Type | Name | Description |
---|---|---|
ReplyToAliasEmailOptions | input | Instance of ReplyToAliasEmailOptions 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 |