C# Класс Rock.Communication.Medium.Sms

Наследование: MediumComponent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

ProcessResponse ( string toPhone, string fromPhone, string message, string &errorMessage ) : void

Process inbound messages that are sent to a SMS number.

Send ( System.ComponentModel.Model communication ) : void

Sends the specified communication.

Приватные методы

Метод Описание
AppendMediumData ( System.ComponentModel.Model communication, StringBuilder sb, string key ) : void
AppendMediumData ( StringBuilder sb, string key, string value ) : void
CreateCommunication ( int fromPersonAliasId, string fromPersonName, int toPersonAliasId, string message, string transportPhone, string responseCode, Rock rockContext ) : void

Creates a new communication.

GenerateResponseCode ( Rock rockContext ) : string

Creates a recipient token to help track conversations.

Описание методов

GetControl() публичный Метод

Gets the control.
public GetControl ( bool useSimpleMode ) : MediumControl
useSimpleMode bool if set to true [use simple mode].
Результат Rock.Web.UI.Controls.Communication.MediumControl

GetHtmlPreview() публичный Метод

Gets the HTML preview.
public GetHtmlPreview ( System.ComponentModel.Model communication, Person person ) : string
communication System.ComponentModel.Model The communication.
person Person The person.
Результат string

GetMessageDetails() публичный Метод

Gets the read-only message details.
public GetMessageDetails ( System.ComponentModel.Model communication ) : string
communication System.ComponentModel.Model The communication.
Результат string

ProcessResponse() публичный Метод

Process inbound messages that are sent to a SMS number.
public ProcessResponse ( string toPhone, string fromPhone, string message, string &errorMessage ) : void
toPhone string The phone number a message is sent to.
fromPhone string The phone number a message is sent from.
message string The message that was sent.
errorMessage string The error message.
Результат void

Send() публичный Метод

Sends the specified communication.
public Send ( System.ComponentModel.Model communication ) : void
communication System.ComponentModel.Model The communication.
Результат void