Class ActivityTitleBuilder
- Namespace
- CMS.Activities
- Assembly
- CMS.Activities.dll
Provides methods to create activity title.
public class ActivityTitleBuilder
- Inheritance
-
objectActivityTitleBuilder
- 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
stringActivity type
titleData
stringData 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
stringActivity type
visitorData
VisitorDataVisitor 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