internal ContentSnippet(vw_carrot_ContentSnippet c)
{
if (c != null) {
SiteData site = SiteData.GetSiteFromCache(c.SiteID);
this.Root_ContentSnippetID = c.Root_ContentSnippetID;
this.SiteID = c.SiteID;
this.ContentSnippetID = c.ContentSnippetID;
this.ContentSnippetName = c.ContentSnippetName;
this.ContentSnippetSlug = c.ContentSnippetSlug;
this.ContentSnippetActive = c.ContentSnippetActive;
this.IsLatestVersion = c.IsLatestVersion;
this.ContentBody = c.ContentBody;
this.CreateUserId = c.CreateUserId;
this.CreateDate = site.ConvertUTCToSiteTime(c.CreateDate);
this.EditUserId = c.EditUserId;
this.EditDate = site.ConvertUTCToSiteTime(c.EditDate);
this.GoLiveDate = site.ConvertUTCToSiteTime(c.GoLiveDate);
this.RetireDate = site.ConvertUTCToSiteTime(c.RetireDate);
this.Heartbeat_UserId = c.Heartbeat_UserId;
this.EditHeartbeat = c.EditHeartbeat;
this.VersionCount = c.VersionCount;
}
}