public virtual void MapToServerObject(Server.Application.PopulationServiceEvent serverObject) { base.MapToServerObject((Server.Application.CoreObject)serverObject); serverObject.PopulationId = populationId; serverObject.ServiceId = serviceId; serverObject.ExclusionServiceId = exclusionServiceId; serverObject.AnchorDate = anchorDate; serverObject.AnchorDateValue = anchorDateValue; serverObject.ScheduleDateValue = scheduleDateValue; serverObject.ScheduleDateQualifier = scheduleDateQualifier; serverObject.Reoccurring = reoccurring; serverObject.Thresholds = new Mercury.Server.Application.PopulationServiceEventThreshold[thresholds.Count]; for (Int32 currentThresholdIndex = 0; currentThresholdIndex < thresholds.Count; currentThresholdIndex++) { serverObject.Thresholds[currentThresholdIndex] = (Server.Application.PopulationServiceEventThreshold)thresholds[currentThresholdIndex].ToServerObject(); } return; }
public PopulationServiceEvent Copy() { Server.Application.PopulationServiceEvent serverObject = (Server.Application.PopulationServiceEvent)ToServerObject(); PopulationServiceEvent copiedObject = new PopulationServiceEvent(application, serverObject); return(copiedObject); }
public override Object ToServerObject() { Server.Application.PopulationServiceEvent serverObject = new Server.Application.PopulationServiceEvent(); MapToServerObject(serverObject); return(serverObject); }