Class ProviderSettings
ProviderSettings
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "ProviderSettings")]
public class ProviderSettings : IValidatableObject
Constructors
View SourceProviderSettings()
Initializes a new instance of the ProviderSettings class.
Declaration
[JsonConstructor]
protected ProviderSettings()
ProviderSettings(MailProviderEnum, string, int, bool, bool, string, int, bool, bool)
Initializes a new instance of the ProviderSettings class.
Declaration
public ProviderSettings(ProviderSettings.MailProviderEnum mailProvider = (ProviderSettings.MailProviderEnum)0, string imapHost = null, int imapPort = 0, bool imapSsl = false, bool imapStartTls = false, string smtpHost = null, int smtpPort = 0, bool smtpSsl = false, bool smtpStartTls = false)
Parameters
Type | Name | Description |
---|---|---|
ProviderSettings.MailProviderEnum | mailProvider | mailProvider (required). |
string | imapHost | imapHost (required). |
int | imapPort | imapPort (required). |
bool | imapSsl | imapSsl (required). |
bool | imapStartTls | imapStartTls. |
string | smtpHost | smtpHost (required). |
int | smtpPort | smtpPort (required). |
bool | smtpSsl | smtpSsl (required). |
bool | smtpStartTls | smtpStartTls. |
Properties
View SourceImapHost
Gets or Sets ImapHost
Declaration
[DataMember(Name = "imapHost", IsRequired = true, EmitDefaultValue = true)]
public string ImapHost { get; set; }
Property Value
Type | Description |
---|---|
string |
ImapPort
Gets or Sets ImapPort
Declaration
[DataMember(Name = "imapPort", IsRequired = true, EmitDefaultValue = true)]
public int ImapPort { get; set; }
Property Value
Type | Description |
---|---|
int |
ImapSsl
Gets or Sets ImapSsl
Declaration
[DataMember(Name = "imapSsl", IsRequired = true, EmitDefaultValue = true)]
public bool ImapSsl { get; set; }
Property Value
Type | Description |
---|---|
bool |
ImapStartTls
Gets or Sets ImapStartTls
Declaration
[DataMember(Name = "imapStartTls", EmitDefaultValue = true)]
public bool ImapStartTls { get; set; }
Property Value
Type | Description |
---|---|
bool |
MailProvider
Gets or Sets MailProvider
Declaration
[DataMember(Name = "mailProvider", IsRequired = true, EmitDefaultValue = true)]
public ProviderSettings.MailProviderEnum MailProvider { get; set; }
Property Value
Type | Description |
---|---|
ProviderSettings.MailProviderEnum |
SmtpHost
Gets or Sets SmtpHost
Declaration
[DataMember(Name = "smtpHost", IsRequired = true, EmitDefaultValue = true)]
public string SmtpHost { get; set; }
Property Value
Type | Description |
---|---|
string |
SmtpPort
Gets or Sets SmtpPort
Declaration
[DataMember(Name = "smtpPort", IsRequired = true, EmitDefaultValue = true)]
public int SmtpPort { get; set; }
Property Value
Type | Description |
---|---|
int |
SmtpSsl
Gets or Sets SmtpSsl
Declaration
[DataMember(Name = "smtpSsl", IsRequired = true, EmitDefaultValue = true)]
public bool SmtpSsl { get; set; }
Property Value
Type | Description |
---|---|
bool |
SmtpStartTls
Gets or Sets SmtpStartTls
Declaration
[DataMember(Name = "smtpStartTls", EmitDefaultValue = true)]
public bool SmtpStartTls { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
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 |