public virtual void MapToServerObject(Server.Application.Correspondence serverObject) { base.MapToServerObject((Server.Application.CoreConfigurationObject)serverObject); serverObject.Version = version; serverObject.FormId = formId; serverObject.StoreImage = storeImage; serverObject.Content = new Dictionary <Int32, Server.Application.CorrespondenceContent> (); Int32 contentIndex = 0; foreach (CorrespondenceContent currentContent in content.Values) { contentIndex = contentIndex + 1; Server.Application.CorrespondenceContent correspondenceContent = (Server.Application.CorrespondenceContent)currentContent.ToServerObject(); correspondenceContent.CorrespondenceId = id; correspondenceContent.ContentSequence = contentIndex; serverObject.Content.Add(contentIndex, correspondenceContent); } return; }
protected void BaseConstructor(Application applicationReference, Server.Application.Correspondence serverObject) { base.BaseConstructor(applicationReference, serverObject); version = serverObject.Version; formId = serverObject.FormId; storeImage = serverObject.StoreImage; Int32 contentIndex = 0; foreach (Server.Application.CorrespondenceContent currentServerCorrespondenceContent in serverObject.Content.Values) { contentIndex = contentIndex + 1; CorrespondenceContent correspondenceContent = new CorrespondenceContent(application, currentServerCorrespondenceContent); correspondenceContent.CorrespondenceId = id; correspondenceContent.ContentSequence = contentIndex; content.Add(contentIndex, correspondenceContent); } return; }
public Correspondence Copy() { Server.Application.Correspondence serverCorrespondence = (Server.Application.Correspondence)ToServerObject(); Correspondence copiedCorrespondence = new Correspondence(application, serverCorrespondence); return(copiedCorrespondence); }
public override Object ToServerObject() { Server.Application.Correspondence serverCorrespondence = new Server.Application.Correspondence(); MapToServerObject(serverCorrespondence); return(serverCorrespondence); }
public Correspondence(Application applicationReference, Server.Application.Correspondence serverCorrespondence) { BaseConstructor(applicationReference, serverCorrespondence); return; }