// Fields // Results // Business constructor public DisableToastNotification( IEnumerable <EnableToastNotification> enable ) { InitializeResults(); _enable = new PredecessorList <EnableToastNotification>(this, GetRoleEnable(), enable); }
// Hydration constructor private CloudCentralThought(FactMemento memento) { InitializeResults(); _cloud = new PredecessorObj <Cloud>(this, RoleCloud, memento); _prior = new PredecessorList <CloudCentralThought>(this, RolePrior, memento); _value = new PredecessorObj <Thought>(this, RoleValue, memento); }
// Fields // Results // Business constructor public EnableToastNotification( IEnumerable <DisableToastNotification> disable ) { InitializeResults(); _disable = new PredecessorList <DisableToastNotification>(this, RoleDisable, disable); }
// Fields // Results // Business constructor public Link( IEnumerable <Thought> thoughts ) { InitializeResults(); _thoughts = new PredecessorList <Thought>(this, RoleThoughts, thoughts); }
/// <summary> /// Constructor /// </summary> public BuildStage_Publish(CISession ciSession) : base(BuildStageStatic.STAGE_PUBLISH, ciSession) { // TODO Need to figure out what to do here... It could be PUBLISH OR PUBLISH TEST or do we do a post processing Execution plan...? PredecessorList.Add(BuildStageStatic.STAGE_PACK); PredecessorList.Add(BuildStageStatic.STAGE_ANGULAR); }
// Results // Business constructor public Individual__name( Individual individual , IEnumerable <Individual__name> prior , string value ) { InitializeResults(); _individual = new PredecessorObj <Individual>(this, GetRoleIndividual(), individual); _prior = new PredecessorList <Individual__name>(this, GetRolePrior(), prior); _value = value; }
// Results // Business constructor public ThoughtText( Thought thought , IEnumerable <ThoughtText> prior , string value ) { InitializeResults(); _thought = new PredecessorObj <Thought>(this, RoleThought, thought); _prior = new PredecessorList <ThoughtText>(this, RolePrior, prior); _value = value; }
// Fields // Results // Business constructor public CloudCentralThought( Cloud cloud , IEnumerable <CloudCentralThought> prior , Thought value ) { InitializeResults(); _cloud = new PredecessorObj <Cloud>(this, RoleCloud, cloud); _prior = new PredecessorList <CloudCentralThought>(this, RolePrior, prior); _value = new PredecessorObj <Thought>(this, RoleValue, value); }
// Hydration constructor private Speaker__bio(FactMemento memento) { InitializeResults(); _speaker = new PredecessorObj<Speaker>(this, GetRoleSpeaker(), memento, Speaker.GetUnloadedInstance, Speaker.GetNullInstance); _prior = new PredecessorList<Speaker__bio>(this, GetRolePrior(), memento, Speaker__bio.GetUnloadedInstance, Speaker__bio.GetNullInstance); _value = new PredecessorList<DocumentSegment>(this, GetRoleValue(), memento, DocumentSegment.GetUnloadedInstance, DocumentSegment.GetNullInstance); }
// Hydration constructor private Session__name(FactMemento memento) { InitializeResults(); _session = new PredecessorObj<Session>(this, GetRoleSession(), memento, Session.GetUnloadedInstance, Session.GetNullInstance); _prior = new PredecessorList<Session__name>(this, GetRolePrior(), memento, Session__name.GetUnloadedInstance, Session__name.GetNullInstance); }
// Hydration constructor private Session__level(FactMemento memento) { InitializeResults(); _session = new PredecessorObj<Session>(this, GetRoleSession(), memento, Session.GetUnloadedInstance, Session.GetNullInstance); _prior = new PredecessorList<Session__level>(this, GetRolePrior(), memento, Session__level.GetUnloadedInstance, Session__level.GetNullInstance); _value = new PredecessorObj<Level>(this, GetRoleValue(), memento, Level.GetUnloadedInstance, Level.GetNullInstance); }
// Hydration constructor private Session__description(FactMemento memento) { InitializeResults(); _session = new PredecessorObj<Session>(this, GetRoleSession(), memento, Session.GetUnloadedInstance, Session.GetNullInstance); _prior = new PredecessorList<Session__description>(this, GetRolePrior(), memento, Session__description.GetUnloadedInstance, Session__description.GetNullInstance); _value = new PredecessorList<DocumentSegment>(this, GetRoleValue(), memento, DocumentSegment.GetUnloadedInstance, DocumentSegment.GetNullInstance); }
// Fields // Results // Business constructor public SessionPlace( Session session ,Place place ,IEnumerable<SessionPlace> prior ) { InitializeResults(); _session = new PredecessorObj<Session>(this, GetRoleSession(), session); _place = new PredecessorObj<Place>(this, GetRolePlace(), place); _prior = new PredecessorList<SessionPlace>(this, GetRolePrior(), prior); }
// Business constructor public CakeDetail( Order order ,CakeSize size ,CakeFlavor cakeFlavor ,FrostingFlavor frostingFlavor ,FrostingColor mainColor ,FrostingColor decorationColor ,IEnumerable<CakeDetail> prior ,string message ,string cakeInstructions ) { InitializeResults(); _order = new PredecessorObj<Order>(this, RoleOrder, order); _size = new PredecessorObj<CakeSize>(this, RoleSize, size); _cakeFlavor = new PredecessorObj<CakeFlavor>(this, RoleCakeFlavor, cakeFlavor); _frostingFlavor = new PredecessorObj<FrostingFlavor>(this, RoleFrostingFlavor, frostingFlavor); _mainColor = new PredecessorObj<FrostingColor>(this, RoleMainColor, mainColor); _decorationColor = new PredecessorObj<FrostingColor>(this, RoleDecorationColor, decorationColor); _prior = new PredecessorList<CakeDetail>(this, RolePrior, prior); _message = message; _cakeInstructions = cakeInstructions; }
// Business constructor public Commitment( Pull pull ,IEnumerable<CakeDetail> cakeDetail ,IEnumerable<Commitment> prior ) { InitializeResults(); _pull = new PredecessorObj<Pull>(this, RolePull, pull); _cakeDetail = new PredecessorList<CakeDetail>(this, RoleCakeDetail, cakeDetail); _prior = new PredecessorList<Commitment>(this, RolePrior, prior); }
// Hydration constructor private ThoughtText(FactMemento memento) { InitializeResults(); _thought = new PredecessorObj <Thought>(this, RoleThought, memento); _prior = new PredecessorList <ThoughtText>(this, RolePrior, memento); }
/// <summary> /// Constructor /// </summary> public BuildStage_TypeWriterVersioning(CISession ciSession) : base(BuildStageStatic.STAGE_TYPEWRITER_VER, ciSession) { PredecessorList.Add(BuildStageStatic.STAGE_TEST); }
// Hydration constructor private EnableToastNotification(FactMemento memento) { InitializeResults(); _disable = new PredecessorList <DisableToastNotification>(this, RoleDisable, memento); }
// Hydration constructor private DisableToastNotification(FactMemento memento) { InitializeResults(); _enable = new PredecessorList <EnableToastNotification>(this, GetRoleEnable(), memento, EnableToastNotification.GetUnloadedInstance, EnableToastNotification.GetNullInstance); }
/// <summary> /// Constructor /// </summary> public BuildStage_Test(CISession ciSession) : base(BuildStageStatic.STAGE_TEST, ciSession) { PredecessorList.Add(BuildStageStatic.STAGE_COMPILE); }
/// <summary> /// Constructor /// </summary> public BuildStage_TypeWriterPublish(CISession ciSession) : base(BuildStageStatic.STAGE_TYPEWRITER_PUBLISH, ciSession) { PredecessorList.Add(BuildStageStatic.STAGE_PUBLISH); }
/// <summary> /// Constructor /// </summary> /// <param name="ciSession"></param> public BuildStage_Pack(CISession ciSession) : base(BuildStageStatic.STAGE_PACK, ciSession) { PredecessorList.Add(BuildStageStatic.STAGE_GITCOMMIT); }
// Hydration constructor private DeliveryDetail(FactMemento memento) { InitializeResults(); _order = new PredecessorObj<Order>(this, RoleOrder, memento); _city = new PredecessorObj<City>(this, RoleCity, memento); _prior = new PredecessorList<DeliveryDetail>(this, RolePrior, memento); }
// Hydration constructor private Link(FactMemento memento) { InitializeResults(); _thoughts = new PredecessorList <Thought>(this, RoleThoughts, memento); }
// Business constructor public ContactInformation( Order order ,IEnumerable<ContactInformation> prior ,string name ,string phoneNumber ) { InitializeResults(); _order = new PredecessorObj<Order>(this, RoleOrder, order); _prior = new PredecessorList<ContactInformation>(this, RolePrior, prior); _name = name; _phoneNumber = phoneNumber; }
/// <summary> /// Constructor /// </summary> public BuildStage_CalcVersion(CISession ciSession) : base(BuildStageStatic.STAGE_CALCVERSION, ciSession) { PredecessorList.Add(BuildStageStatic.STAGE_RESTORE); }
/// <summary> /// Constructor /// </summary> public BuildStage_Angular(CISession ciSession) : base(BuildStageStatic.STAGE_ANGULAR, ciSession) { PredecessorList.Add(BuildStageStatic.STAGE_CALCVERSION); }
/// <summary> /// Constructor /// </summary> public BuildStage_Compile(CISession ciSession) : base(BuildStageStatic.STAGE_COMPILE, ciSession) { PredecessorList.Add(BuildStageStatic.STAGE_CALCVERSION); }
// Fields // Results // Business constructor public Session__description( Session session ,IEnumerable<Session__description> prior ,IEnumerable<DocumentSegment> value ) { InitializeResults(); _session = new PredecessorObj<Session>(this, GetRoleSession(), session); _prior = new PredecessorList<Session__description>(this, GetRolePrior(), prior); _value = new PredecessorList<DocumentSegment>(this, GetRoleValue(), value); }
// Hydration constructor private Speaker__imageUrl(FactMemento memento) { InitializeResults(); _speaker = new PredecessorObj<Speaker>(this, GetRoleSpeaker(), memento, Speaker.GetUnloadedInstance, Speaker.GetNullInstance); _prior = new PredecessorList<Speaker__imageUrl>(this, GetRolePrior(), memento, Speaker__imageUrl.GetUnloadedInstance, Speaker__imageUrl.GetNullInstance); }
// Fields // Results // Business constructor public Session__level( Session session ,IEnumerable<Session__level> prior ,Level value ) { InitializeResults(); _session = new PredecessorObj<Session>(this, GetRoleSession(), session); _prior = new PredecessorList<Session__level>(this, GetRolePrior(), prior); _value = new PredecessorObj<Level>(this, GetRoleValue(), value); }
// Hydration constructor private Survey(FactMemento memento) { InitializeResults(); _ratingQuestions = new PredecessorList<RatingQuestion>(this, GetRoleRatingQuestions(), memento, RatingQuestion.GetUnloadedInstance, RatingQuestion.GetNullInstance); _essayQuestions = new PredecessorList<EssayQuestion>(this, GetRoleEssayQuestions(), memento, EssayQuestion.GetUnloadedInstance, EssayQuestion.GetNullInstance); }
// Results // Business constructor public Session__name( Session session ,IEnumerable<Session__name> prior ,string value ) { InitializeResults(); _session = new PredecessorObj<Session>(this, GetRoleSession(), session); _prior = new PredecessorList<Session__name>(this, GetRolePrior(), prior); _value = value; }
// Hydration constructor private DisableToastNotification(FactMemento memento) { InitializeResults(); _enable = new PredecessorList<EnableToastNotification>(this, RoleEnable, memento); }
// Fields // Results // Business constructor public Speaker__bio( Speaker speaker ,IEnumerable<Speaker__bio> prior ,IEnumerable<DocumentSegment> value ) { InitializeResults(); _speaker = new PredecessorObj<Speaker>(this, GetRoleSpeaker(), speaker); _prior = new PredecessorList<Speaker__bio>(this, GetRolePrior(), prior); _value = new PredecessorList<DocumentSegment>(this, GetRoleValue(), value); }
/// <summary> /// Constructor /// </summary> /// <param name="ciSession"></param> public BuildStage_Restore(CISession ciSession) : base(BuildStageStatic.STAGE_RESTORE, ciSession) { PredecessorList.Add(BuildStageStatic.STAGE_CLEAN); }
// Results // Business constructor public Speaker__imageUrl( Speaker speaker ,IEnumerable<Speaker__imageUrl> prior ,string value ) { InitializeResults(); _speaker = new PredecessorObj<Speaker>(this, GetRoleSpeaker(), speaker); _prior = new PredecessorList<Speaker__imageUrl>(this, GetRolePrior(), prior); _value = value; }
/// <summary> /// Constructor /// </summary> public BuildStage_GitCommit(CISession ciSession) : base(BuildStageStatic.STAGE_GITCOMMIT, ciSession) { PredecessorList.Add(BuildStageStatic.STAGE_TEST); PredecessorList.Add(BuildStageStatic.STAGE_TYPEWRITER_VER); }
// Fields // Results // Business constructor public Survey( IEnumerable<RatingQuestion> ratingQuestions ,IEnumerable<EssayQuestion> essayQuestions ) { InitializeResults(); _ratingQuestions = new PredecessorList<RatingQuestion>(this, GetRoleRatingQuestions(), ratingQuestions); _essayQuestions = new PredecessorList<EssayQuestion>(this, GetRoleEssayQuestions(), essayQuestions); }
// Hydration constructor private Individual__name(FactMemento memento) { InitializeResults(); _individual = new PredecessorObj <Individual>(this, GetRoleIndividual(), memento, Individual.GetUnloadedInstance, Individual.GetNullInstance); _prior = new PredecessorList <Individual__name>(this, GetRolePrior(), memento, Individual__name.GetUnloadedInstance, Individual__name.GetNullInstance); }
// Fields // Results // Business constructor public DisableToastNotification( IEnumerable<EnableToastNotification> enable ) { InitializeResults(); _enable = new PredecessorList<EnableToastNotification>(this, RoleEnable, enable); }
// Hydration constructor private Room__roomNumber(FactMemento memento) { InitializeResults(); _room = new PredecessorObj<Room>(this, GetRoleRoom(), memento, Room.GetUnloadedInstance, Room.GetNullInstance); _prior = new PredecessorList<Room__roomNumber>(this, GetRolePrior(), memento, Room__roomNumber.GetUnloadedInstance, Room__roomNumber.GetNullInstance); }
// Fields // Results // Business constructor public SessionEvaluationCompleted( ConferenceSessionSurvey sessionSurvey ,SessionEvaluation sessionEvaluation ,IEnumerable<SessionEvaluationRatingAnswer> ratingAnswers ,IEnumerable<SessionEvaluationEssayAnswer> essayAnswers ) { InitializeResults(); _sessionSurvey = new PredecessorObj<ConferenceSessionSurvey>(this, GetRoleSessionSurvey(), sessionSurvey); _sessionEvaluation = new PredecessorObj<SessionEvaluation>(this, GetRoleSessionEvaluation(), sessionEvaluation); _ratingAnswers = new PredecessorList<SessionEvaluationRatingAnswer>(this, GetRoleRatingAnswers(), ratingAnswers); _essayAnswers = new PredecessorList<SessionEvaluationEssayAnswer>(this, GetRoleEssayAnswers(), essayAnswers); }
// Hydration constructor private SessionEvaluationCompleted(FactMemento memento) { InitializeResults(); _sessionSurvey = new PredecessorObj<ConferenceSessionSurvey>(this, GetRoleSessionSurvey(), memento, ConferenceSessionSurvey.GetUnloadedInstance, ConferenceSessionSurvey.GetNullInstance); _sessionEvaluation = new PredecessorObj<SessionEvaluation>(this, GetRoleSessionEvaluation(), memento, SessionEvaluation.GetUnloadedInstance, SessionEvaluation.GetNullInstance); _ratingAnswers = new PredecessorList<SessionEvaluationRatingAnswer>(this, GetRoleRatingAnswers(), memento, SessionEvaluationRatingAnswer.GetUnloadedInstance, SessionEvaluationRatingAnswer.GetNullInstance); _essayAnswers = new PredecessorList<SessionEvaluationEssayAnswer>(this, GetRoleEssayAnswers(), memento, SessionEvaluationEssayAnswer.GetUnloadedInstance, SessionEvaluationEssayAnswer.GetNullInstance); }
// Business constructor public DeliveryDetail( Order order ,City city ,IEnumerable<DeliveryDetail> prior ,string streetAddress ,DateTime expectedDeliveryDate ,string deliveryInstructions ) { InitializeResults(); _order = new PredecessorObj<Order>(this, RoleOrder, order); _city = new PredecessorObj<City>(this, RoleCity, city); _prior = new PredecessorList<DeliveryDetail>(this, RolePrior, prior); _streetAddress = streetAddress; _expectedDeliveryDate = expectedDeliveryDate; _deliveryInstructions = deliveryInstructions; }
// Results // Business constructor public SessionEvaluationEssayAnswer( SessionEvaluationEssay essay ,IEnumerable<SessionEvaluationEssayAnswer> prior ,string value ) { InitializeResults(); _essay = new PredecessorObj<SessionEvaluationEssay>(this, GetRoleEssay(), essay); _prior = new PredecessorList<SessionEvaluationEssayAnswer>(this, GetRolePrior(), prior); _value = value; }
// Hydration constructor private CakeDetail(FactMemento memento) { InitializeResults(); _order = new PredecessorObj<Order>(this, RoleOrder, memento); _size = new PredecessorObj<CakeSize>(this, RoleSize, memento); _cakeFlavor = new PredecessorObj<CakeFlavor>(this, RoleCakeFlavor, memento); _frostingFlavor = new PredecessorObj<FrostingFlavor>(this, RoleFrostingFlavor, memento); _mainColor = new PredecessorObj<FrostingColor>(this, RoleMainColor, memento); _decorationColor = new PredecessorObj<FrostingColor>(this, RoleDecorationColor, memento); _prior = new PredecessorList<CakeDetail>(this, RolePrior, memento); }
// Hydration constructor private SessionEvaluationEssayAnswer(FactMemento memento) { InitializeResults(); _essay = new PredecessorObj<SessionEvaluationEssay>(this, GetRoleEssay(), memento, SessionEvaluationEssay.GetUnloadedInstance, SessionEvaluationEssay.GetNullInstance); _prior = new PredecessorList<SessionEvaluationEssayAnswer>(this, GetRolePrior(), memento, SessionEvaluationEssayAnswer.GetUnloadedInstance, SessionEvaluationEssayAnswer.GetNullInstance); }
// Hydration constructor private Commitment(FactMemento memento) { InitializeResults(); _pull = new PredecessorObj<Pull>(this, RolePull, memento); _cakeDetail = new PredecessorList<CakeDetail>(this, RoleCakeDetail, memento); _prior = new PredecessorList<Commitment>(this, RolePrior, memento); }
// Results // Business constructor public SessionEvaluationRatingAnswer( SessionEvaluationRating rating ,IEnumerable<SessionEvaluationRatingAnswer> prior ,int value ) { InitializeResults(); _rating = new PredecessorObj<SessionEvaluationRating>(this, GetRoleRating(), rating); _prior = new PredecessorList<SessionEvaluationRatingAnswer>(this, GetRolePrior(), prior); _value = value; }
// Hydration constructor private ContactInformation(FactMemento memento) { InitializeResults(); _order = new PredecessorObj<Order>(this, RoleOrder, memento); _prior = new PredecessorList<ContactInformation>(this, RolePrior, memento); }
// Hydration constructor private SessionEvaluationRatingAnswer(FactMemento memento) { InitializeResults(); _rating = new PredecessorObj<SessionEvaluationRating>(this, GetRoleRating(), memento, SessionEvaluationRating.GetUnloadedInstance, SessionEvaluationRating.GetNullInstance); _prior = new PredecessorList<SessionEvaluationRatingAnswer>(this, GetRolePrior(), memento, SessionEvaluationRatingAnswer.GetUnloadedInstance, SessionEvaluationRatingAnswer.GetNullInstance); }
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer) { ObjectValue objectValue; if (reader.TokenType == JsonToken.StartObject) { ObjectValueAttributeSuperset superset = new ObjectValueAttributeSuperset(); serializer.Populate(reader, superset); ObjectValueType parsedObjectType; if (!Enum.TryParse(superset.objectType, true, out parsedObjectType)) { // If a new object type is introduced to the Smartsheet API that this version of the SDK doesn't support, // return null instead of throwing an exception. return(null); } switch (parsedObjectType) { case ObjectValueType.DURATION: objectValue = new Duration(superset.negative, superset.elapsed, superset.weeks, superset.days, superset.hours, superset.minutes, superset.seconds, superset.milliseconds); break; case ObjectValueType.PREDECESSOR_LIST: objectValue = new PredecessorList(superset.predecessors); break; case ObjectValueType.CONTACT: ContactObjectValue contactObjectValue = new ContactObjectValue(); contactObjectValue.Name = superset.name; contactObjectValue.Email = superset.email; contactObjectValue.Id = superset.id; contactObjectValue.RefIndex = superset.refIndex; contactObjectValue.ImageId = superset.imageId; objectValue = contactObjectValue; break; case ObjectValueType.DATE: case ObjectValueType.DATETIME: case ObjectValueType.ABSTRACT_DATETIME: objectValue = new DateObjectValue(parsedObjectType, superset.value); break; case ObjectValueType.MULTI_CONTACT: objectValue = new MultiContactObjectValue(superset.values); break; default: objectValue = null; break; } } else { if (reader.TokenType == JsonToken.Boolean) { objectValue = new BooleanObjectValue((bool)reader.Value); } else if (reader.TokenType == JsonToken.Integer) { objectValue = new NumberObjectValue(Convert.ToDouble(reader.Value)); } else if (reader.TokenType == JsonToken.Float) { objectValue = new NumberObjectValue((double)reader.Value); } else { objectValue = new StringObjectValue((string)reader.Value); } } return(objectValue); }
/// <summary> /// Adds a predecessor to this object. /// </summary> /// <param name="predecessorName"></param> public void AddPredecessor(string predecessorName) { PredecessorList.Add(predecessorName); }