C# Class Rock.Communication.Medium.Email

Inheritance: MediumComponent
Mostra file Open project: SparkDevNetwork/Rock Class Usage Examples

Public Methods

Method Description
GetControl ( bool useSimpleMode ) : MediumControl

Gets the control.

GetHtmlPreview ( System.ComponentModel.Model communication, Person person ) : string

Gets the HTML preview.

GetMessageDetails ( System.ComponentModel.Model communication ) : string

Gets the read-only message details.

ProcessHtmlBody ( Rock communication, Rock globalAttributes, object>.Dictionary mergeObjects, Person currentPersonOverride = null ) : string

Processes the HTML body.

ProcessTextBody ( Rock communication, Rock globalAttributes, object>.Dictionary mergeObjects, Person currentPersonOverride = null ) : string

Processes the text body.

Send ( System.ComponentModel.Model communication ) : void

Sends the specified communication.

Private Methods

Method Description
AppendAttachmentData ( StringBuilder sb, string value ) : void
AppendMediumData ( System.ComponentModel.Model communication, StringBuilder sb, string key ) : void
AppendMediumData ( StringBuilder sb, string key, string value ) : void

Method Details

GetControl() public method

Gets the control.
public GetControl ( bool useSimpleMode ) : MediumControl
useSimpleMode bool if set to true [use simple mode].
return Rock.Web.UI.Controls.Communication.MediumControl

GetHtmlPreview() public method

Gets the HTML preview.
public GetHtmlPreview ( System.ComponentModel.Model communication, Person person ) : string
communication System.ComponentModel.Model The communication.
person Person The person.
return string

GetMessageDetails() public method

Gets the read-only message details.
public GetMessageDetails ( System.ComponentModel.Model communication ) : string
communication System.ComponentModel.Model The communication.
return string

ProcessHtmlBody() public static method

Processes the HTML body.
public static ProcessHtmlBody ( Rock communication, Rock globalAttributes, object>.Dictionary mergeObjects, Person currentPersonOverride = null ) : string
communication Rock The communication.
globalAttributes Rock The global attributes.
mergeObjects object>.Dictionary The merge objects.
currentPersonOverride Person The current person override.
return string

ProcessTextBody() public static method

Processes the text body.
public static ProcessTextBody ( Rock communication, Rock globalAttributes, object>.Dictionary mergeObjects, Person currentPersonOverride = null ) : string
communication Rock The communication.
globalAttributes Rock The global attributes.
mergeObjects object>.Dictionary The merge objects.
currentPersonOverride Person The current person override.
return string

Send() public method

Sends the specified communication.
public Send ( System.ComponentModel.Model communication ) : void
communication System.ComponentModel.Model The communication.
return void