示例#1
0
        // Fields

        // Results

        // Business constructor
        public DisableToastNotification(
            IEnumerable <EnableToastNotification> enable
            )
        {
            InitializeResults();
            _enable = new PredecessorList <EnableToastNotification>(this, GetRoleEnable(), enable);
        }
示例#2
0
 // 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);
 }
示例#3
0
        // Fields

        // Results

        // Business constructor
        public EnableToastNotification(
            IEnumerable <DisableToastNotification> disable
            )
        {
            InitializeResults();
            _disable = new PredecessorList <DisableToastNotification>(this, RoleDisable, disable);
        }
示例#4
0
        // Fields

        // Results

        // Business constructor
        public Link(
            IEnumerable <Thought> thoughts
            )
        {
            InitializeResults();
            _thoughts = new PredecessorList <Thought>(this, RoleThoughts, thoughts);
        }
示例#5
0
        /// <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;
        }
示例#7
0
        // 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;
        }
示例#8
0
        // 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);
        }
示例#9
0
 // 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);
 }
示例#10
0
 // 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);
 }
示例#11
0
 // 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);
 }
示例#12
0
 // 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);
 }
示例#13
0
 // 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);
 }
示例#14
0
 // 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;
 }
示例#15
0
 // 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);
 }
示例#16
0
 // 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);
 }
示例#18
0
 // Hydration constructor
 private EnableToastNotification(FactMemento memento)
 {
     InitializeResults();
     _disable = new PredecessorList <DisableToastNotification>(this, RoleDisable, memento);
 }
示例#19
0
 // Hydration constructor
 private DisableToastNotification(FactMemento memento)
 {
     InitializeResults();
     _enable = new PredecessorList <EnableToastNotification>(this, GetRoleEnable(), memento, EnableToastNotification.GetUnloadedInstance, EnableToastNotification.GetNullInstance);
 }
示例#20
0
 /// <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);
 }
示例#22
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="ciSession"></param>
 public BuildStage_Pack(CISession ciSession) : base(BuildStageStatic.STAGE_PACK, ciSession)
 {
     PredecessorList.Add(BuildStageStatic.STAGE_GITCOMMIT);
 }
示例#23
0
 // 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);
 }
示例#24
0
 // Hydration constructor
 private Link(FactMemento memento)
 {
     InitializeResults();
     _thoughts = new PredecessorList <Thought>(this, RoleThoughts, memento);
 }
示例#25
0
 // 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;
 }
示例#26
0
 /// <summary>
 /// Constructor
 /// </summary>
 public BuildStage_CalcVersion(CISession ciSession) : base(BuildStageStatic.STAGE_CALCVERSION, ciSession)
 {
     PredecessorList.Add(BuildStageStatic.STAGE_RESTORE);
 }
示例#27
0
 /// <summary>
 /// Constructor
 /// </summary>
 public BuildStage_Angular(CISession ciSession) : base(BuildStageStatic.STAGE_ANGULAR, ciSession)
 {
     PredecessorList.Add(BuildStageStatic.STAGE_CALCVERSION);
 }
示例#28
0
 /// <summary>
 /// Constructor
 /// </summary>
 public BuildStage_Compile(CISession ciSession) : base(BuildStageStatic.STAGE_COMPILE, ciSession)
 {
     PredecessorList.Add(BuildStageStatic.STAGE_CALCVERSION);
 }
示例#29
0
 // 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);
 }
示例#30
0
 // 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);
 }
示例#31
0
 // 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);
 }
示例#32
0
 // 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);
 }
示例#33
0
 // 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;
 }
示例#34
0
 // Hydration constructor
 private DisableToastNotification(FactMemento memento)
 {
     InitializeResults();
     _enable = new PredecessorList<EnableToastNotification>(this, RoleEnable, memento);
 }
示例#35
0
 // 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);
 }
示例#36
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="ciSession"></param>
 public BuildStage_Restore(CISession ciSession) : base(BuildStageStatic.STAGE_RESTORE, ciSession)
 {
     PredecessorList.Add(BuildStageStatic.STAGE_CLEAN);
 }
示例#37
0
 // 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;
 }
示例#38
0
 /// <summary>
 /// Constructor
 /// </summary>
 public BuildStage_GitCommit(CISession ciSession) : base(BuildStageStatic.STAGE_GITCOMMIT, ciSession)
 {
     PredecessorList.Add(BuildStageStatic.STAGE_TEST);
     PredecessorList.Add(BuildStageStatic.STAGE_TYPEWRITER_VER);
 }
示例#39
0
 // 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);
 }
示例#40
0
 // 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);
 }
示例#41
0
 // Fields
 // Results
 // Business constructor
 public DisableToastNotification(
     IEnumerable<EnableToastNotification> enable
     )
 {
     InitializeResults();
     _enable = new PredecessorList<EnableToastNotification>(this, RoleEnable, enable);
 }
示例#42
0
 // 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);
 }
示例#43
0
 // 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);
 }
示例#44
0
 // 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);
 }
示例#45
0
 // 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;
 }
示例#46
0
 // 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;
 }
示例#47
0
 // 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);
 }
示例#48
0
 // 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);
 }
示例#49
0
 // 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);
 }
示例#50
0
 // 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;
 }
示例#51
0
 // Hydration constructor
 private ContactInformation(FactMemento memento)
 {
     InitializeResults();
     _order = new PredecessorObj<Order>(this, RoleOrder, memento);
     _prior = new PredecessorList<ContactInformation>(this, RolePrior, memento);
 }
示例#52
0
 // 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);
 }
示例#53
0
        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);
        }
示例#54
0
 /// <summary>
 /// Adds a predecessor to this object.
 /// </summary>
 /// <param name="predecessorName"></param>
 public void AddPredecessor(string predecessorName)
 {
     PredecessorList.Add(predecessorName);
 }