CampaignEditViewModel Class |
Namespace: CMS.WebAnalytics.Web.UI
public class CampaignEditViewModel
The CampaignEditViewModel type exposes the following members.
Name | Description | |
---|---|---|
CampaignEditViewModel() |
Empty constructor. Needs to be present to enable data binding performed by the Web API.
| |
CampaignEditViewModel(CampaignInfo, DateTime) |
Constructor takes CampaignInfo and creates new instance of CampaignEditViewModel containing all values
required for communication between Web API and javascript modules.
|
Name | Description | |
---|---|---|
CampaignID |
Unique integer identifier of the campaign. Refers to the CampaignID.
| |
CodeName |
Refers to codename of the campaign. This field is required for enabling single object pinning.
| |
Description |
Campaign description used in reports, provides closer details about the campaign. Refers to the CampaignDescription.
| |
DisplayName |
Name of the campaign used in listing and all reports. Refers to the CampaignDisplayName.
| |
SiteName |
Refers to site name campaign is assigned to. This field is required for enabling single object pinning.
| |
Status |
Refers to the current status. Can be one of the CampaignStatusEnum.
| |
UTMCode |
Campaign UTM code. Refers to the CampaignUTMCode.
|
Name | Description | |
---|---|---|
FillCampaignInfo |
Fills given campaign with data obtained from current instance of CampaignEditViewModel.
This method should be used whenever the call from client to the server with filled CampaignEditViewModel was made
and the incoming object values need to be copied to the existing campaign.
|