Class EmailSignature
Parsed signature block detected in an email
Implements
Inherited Members
Namespace: mailslurp.Model
Assembly: mailslurp.dll
Syntax
[DataContract(Name = "EmailSignature")]
public class EmailSignature : IValidatableObject
Constructors
View SourceEmailSignature()
Initializes a new instance of the EmailSignature class.
Declaration
[JsonConstructor]
protected EmailSignature()
EmailSignature(string, string, string, string)
Initializes a new instance of the EmailSignature class.
Declaration
public EmailSignature(string body = null, string source = null, string marker = null, string detectionType = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | body | Extracted signature text (required). |
| string | source | Source used for extraction. Examples: RAW_TEXT_PART, RAW_HTML_SELECTOR (required). |
| string | marker | Matched marker or selector that identified the signature. |
| string | detectionType | Detection strategy used. Examples: DELIMITER, MOBILE_FOOTER, VALEDICTION (required). |
Properties
View SourceBody
Extracted signature text
Declaration
[DataMember(Name = "body", IsRequired = true, EmitDefaultValue = true)]
public string Body { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Extracted signature text |
DetectionType
Detection strategy used. Examples: DELIMITER, MOBILE_FOOTER, VALEDICTION
Declaration
[DataMember(Name = "detectionType", IsRequired = true, EmitDefaultValue = true)]
public string DetectionType { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Detection strategy used. Examples: DELIMITER, MOBILE_FOOTER, VALEDICTION |
Marker
Matched marker or selector that identified the signature
Declaration
[DataMember(Name = "marker", EmitDefaultValue = true)]
public string Marker { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Matched marker or selector that identified the signature |
Source
Source used for extraction. Examples: RAW_TEXT_PART, RAW_HTML_SELECTOR
Declaration
[DataMember(Name = "source", IsRequired = true, EmitDefaultValue = true)]
public string Source { get; set; }
Property Value
| Type | Description |
|---|---|
| string | Source used for extraction. Examples: RAW_TEXT_PART, RAW_HTML_SELECTOR |
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 |