Method | Description | |
---|---|---|
CreateMail ( MailType mailType, int malevichId, string reviewer, string reviewee, string webserver, string webRoot, string verdict, string details, string CL ) : string |
Given parameters, formats the email. Not all parameters are used in all templates - pass only what you need, null everything else. This is an overload used if the caller knows what type (text or HTML) template is used, and
|
|
CreateMail ( MailType mailType, int malevichId, string reviewer, string reviewee, string webserver, string webRoot, string verdict, string details, string CL, bool &isHtml ) : string |
Given parameters, formats the email. Not all parameters are used in all templates - pass only what you need, null everything else.
|
|
CreateMailSubject ( MailType mailType, string CL, string reviewee, string details, string verdict ) : string |
Given parameters, formats the email subject. Not all parameters are used in all templates - pass only what you need, null everything else.
|
|
IsTemplateHtml ( MailType mailType ) : bool |
Returns whether the template is HTML or not.
|
|
MailTemplates ( ILog logger ) : System |
Initalizes an instance of MailTemplates class.
|
Method | Description | |
---|---|---|
GetSubjectTemplate ( MailType mailType ) : string |
Retrieves the template for the mail subject.
|
|
GetTemplate ( MailType mailType, bool &isHtml ) : string |
Retrieves the template for the mail.
|
|
PrepSubjectTemplate ( string template ) : string |
Converts the subject template name to arguments that string formatting understands. Currently: {CL} => {0} {Reviewee} => {1} {Details} => {2} {Verdict} => {3} Not every item must be present in the review template.
|
|
PrepTemplate ( string template ) : string |
Converts the template name to arguments that string formatting understands. Currently: {MalevichId} => {0} {Reviewer} => {1} {Reviewee} => {2} {Webserver} => {3} {WebRoot} => {4} {Verdict} => {5} {Details} => {6} {CL} => {7} Not every item must be present in the review template.
|
public CreateMail ( MailType mailType, int malevichId, string reviewer, string reviewee, string webserver, string webRoot, string verdict, string details, string CL ) : string | ||
mailType | MailType | Which template to use. |
malevichId | int | CID of the review. |
reviewer | string | User name for the reviewer. |
reviewee | string | User name for the reviewee. |
webserver | string | The name of the web server where Malevich web site is hosted. |
webRoot | string | The application name on the server. |
verdict | string | The verdict. |
details | string | The details. Assumed to be HTML encoded if the template is HTML. |
CL | string | The change list. |
return | string |
public CreateMail ( MailType mailType, int malevichId, string reviewer, string reviewee, string webserver, string webRoot, string verdict, string details, string CL, bool &isHtml ) : string | ||
mailType | MailType | Which template to use. |
malevichId | int | CID of the review. |
reviewer | string | User name for the reviewer. |
reviewee | string | User name for the reviewee. |
webserver | string | The name of the web server where Malevich web site is hosted. |
webRoot | string | The application name on the server. |
verdict | string | The verdict. |
details | string | The details. Assumed to be text that would be HTML encoded if necessary. |
CL | string | The change list. |
isHtml | bool | Output: whether the body is HTML. |
return | string |
public CreateMailSubject ( MailType mailType, string CL, string reviewee, string details, string verdict ) : string | ||
mailType | MailType | Which template to use. |
CL | string | CL of the review. |
reviewee | string | User name for the reviewee. |
details | string | The details. |
verdict | string | The verdict. |
return | string |
public IsTemplateHtml ( MailType mailType ) : bool | ||
mailType | MailType | Which template to use. |
return | bool |
public MailTemplates ( ILog logger ) : System | ||
logger | ILog | The logger. |
return | System |