Table of Contents

Class ActivityTitleBuilder

Namespace
CMS.Activities
Assembly
CMS.Activities.dll

Provides methods to create activity title.

public class ActivityTitleBuilder
Inheritance
object
ActivityTitleBuilder
Extension Methods

Methods

CreateTitle(string, string)

Creates title from title data and activityType. Title is read from resources.

public string CreateTitle(string activityType, string titleData = null)

Parameters

activityType string

Activity type

titleData string

Data that should be displayed in title; if null default resource string is used

Returns

string

Returns activity title.

Exceptions

ArgumentNullException

Is thrown if activityType is null or empty

CreateTitleWithUserName(string, VisitorData)

Creates title for given activityType and user information in visitorData. Title is read from resources.

public string CreateTitleWithUserName(string activityType, VisitorData visitorData)

Parameters

activityType string

Activity type

visitorData VisitorData

Visitor data to create title from; if null default resource string is used

Returns

string

Title with included user name.

Exceptions

ArgumentNullException

Is thrown if activityType is null or empty