Пример #1
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("Date", Date.ToString("yyyy-MM-dd"));
            tgs.Add("ActiveUsers", ActiveUsers);

            return(tgs);
        }
Пример #2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject bcn = base.GetTGSerializedObject();

            bcn.Add("HydrantGuid", HydrantGuid);
            bcn.Add("ImageGuid", ImageGuid);

            return(bcn);
        }
Пример #3
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("CannedEmailGuid", CannedEmailGuid);
            tgs.Add("SentDateTime", SentDateTime);

            return(tgs);
        }
Пример #4
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("Value", Value);
            tgs.Add("Code", Code);

            return(tgs);
        }
Пример #5
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tso = base.GetTGSerializedObject();

            tso.Add("Code", Code);
            tso.Add("CreationDateTime", CreationDateTime);

            return(tso);
        }
Пример #6
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject obj = base.GetTGSerializedObject();

            obj.Add("UserSource", UserSource);
            obj.Add("UserType", UserType);

            return(obj);
        }
Пример #7
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("Name", Name);
            tgs.Add("Description", Description);

            return(tgs);
        }
Пример #8
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("ValidationText", ValidationText);
            tgs.Add("EmailAddress", EmailAddress);

            return(tgs);
        }
Пример #9
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tg = base.GetTGSerializedObject();

            tg.Add("Name", Name);
            tg.Add("Identifier", Identifier);
            tg.Add("SequenceNumber", SequenceNumber);

            return(tg);
        }
Пример #10
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("RelatedObjectGuid", RelatedObjectGuid);
            tgs.Add("RelationshipType", RelationshipType);
            tgs.AddMetadata("meta_", Metadata);

            return(tgs);
        }
Пример #11
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("UserGuid", UserGuid);
            tgs.Add("HashedPassword", HashedPassword);
            tgs.Add("Salt", Salt);

            return(tgs);
        }
Пример #12
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tg = base.GetTGSerializedObject();

            tg.Add("ShortQuestionText", ShortQuestionText);
            tg.Add("LongQuestionText", LongQuestionText);
            tg.Add("IsRequired", IsRequired);

            return(tg);
        }
Пример #13
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("UserGuid", UserGuid);
            tgs.Add("EulaGuid", EulaGuid);
            tgs.Add("AgreementDateTime", AgreementDateTime);

            return(tgs);
        }
Пример #14
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tg = base.GetTGSerializedObject();

            tg.Add("MinimumValue", MinimumValue);
            tg.Add("MaximumValue", MaximumValue);
            tg.Add("DefaultValue", DefaultValue);

            return(tg);
        }
Пример #15
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("AuthorizationToken", AuthorizationToken);
            tgs.Add("AuthorizationDateTime", AuthorizationDateTime);
            tgs.Add("ExpirationDateTime", ExpirationDateTime);
            tgs.Add("DeviceType", DeviceType);

            return(tgs);
        }
Пример #16
0
        public TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tg = new TGSerializedObject
            {
                TGObjectType = TGObjectType
            };

            tg.Add("X", X);
            tg.Add("Y", Y);

            return(tg);
        }
Пример #17
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tg = base.GetTGSerializedObject();

            tg.Add("Value", Value);
            return(tg);
        }
Пример #18
0
        public TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject obj = new TGSerializedObject
            {
                TGObjectType = ReflectionHelper.GetTypeName(GetType())
            };

            obj.Add("TopLeft", TopLeft);
            obj.Add("TopRight", TopRight);
            obj.Add("BottomRight", BottomRight);
            obj.Add("BottomLeft", BottomLeft);

            CalculatePoints();

            return(obj);
        }
Пример #19
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject obj = base.GetTGSerializedObject();

            obj.Add("UserGuid", UserGuid);
            obj.Add("DeviceDateTime", DeviceDateTime);
            obj.Add("TagPosition", Position);
            obj.Add("TagType", TagType);
            obj.Add("ImageGuid", ImageGuid);
            obj.Add("ExternalIdentifier", ExternalIdentifier);
            obj.Add("ExternalSource", ExternalSource);
            obj.Add("Properties", Properties.ToString());
            obj.Add("HydrantGuid", HydrantGuid);
            obj.Add("Status", Status);

            return(obj);
        }
Пример #20
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tso = base.GetTGSerializedObject();

            tso.Add("Usernames", Usernames);

            return(tso);
        }
Пример #21
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("Text", Text);

            return(tgs);
        }
Пример #22
0
        public TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tg = new TGSerializedObject
            {
                TGObjectType = TGObjectType
            };

            tg.Add("GeoPoints", GetOpenGISText());

            return(tg);
        }
Пример #23
0
        public void UTCDateTimeTest()
        {
            TGSerializedObject tg = new TGSerializedObject();

            DateTime now = DateTime.UtcNow;

            tg.Add("UtcDateValue", now);

            DateTime retrievedValue = tg.GetDateTime("UtcDateValue");

            Assert.AreEqual(now, retrievedValue);
        }
Пример #24
0
        public static void AddMetadata(this TGSerializedObject _tgs,
                                       string _name, NameValueCollection _metadata)
        {
            if (_metadata != null)
            {
                foreach (string key in _metadata.AllKeys)
                {
                    string value = _metadata.Get(key);

                    _tgs.Add(_name + key, value);
                }
            }
        }
Пример #25
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("IsRequired", IsRequired);
            tgs.Add("QuestionType", QuestionType);
            tgs.Add("Text", Text);
            tgs.Add("Description", Description);
            tgs.Add("Format", Format);
            tgs.Add("Answer", Answer);
            tgs.Add("NextQuestion", NextQuestion);
            tgs.Add("PreviousQuestion", PreviousQuestion);

            return(tgs);
        }
Пример #26
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject obj = base.GetTGSerializedObject();

            obj.Add("Position", Position);
            obj.Add("PrimaryImageGuid", PrimaryImageGuid);
            obj.Add("OriginalTagUserGuid", OriginalTagUserGuid);
            obj.Add("OriginalTagDateTime", OriginalTagDateTime);
            obj.Add("CreationDateTime", CreationDateTime);
            obj.Add("OriginalReviewerUserGuid", OriginalReviewerUserGuid);
            obj.Add("LastReviewerUserGuid", LastReviewerUserGuid);
            obj.Add("Properties", Properties.ToString());

            return(obj);
        }
Пример #27
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject obj = base.GetTGSerializedObject();

            obj.Add("Username", Username);
            obj.Add("EmailAddress", EmailAddress);
            obj.Add("FamilyName", FamilyName);
            obj.Add("GivenName", GivenName);
            obj.Add("IsVerified", IsVerified);
            obj.Add("DisplayName", DisplayName);
            obj.Add("EulaAccepted", EulaAccepted);

            return(obj);
        }
Пример #28
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("UserGuid", UserGuid);
            tgs.Add("RejectedTagCount", RejectedTagCount);
            tgs.Add("ApprovedTagCount", ApprovedTagCount);
            tgs.Add("PendingTagCount", PendingTagCount);
            tgs.Add("UserRanking", UserRanking);
            tgs.Add("NewHydrantsTagged", NewHydrantsTagged);
            tgs.Add("DisplayName", DisplayName);

            return(tgs);
        }
Пример #29
0
        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject tgs = base.GetTGSerializedObject();

            tgs.Add("WebLogType", (Int32)WebLogType);
            tgs.Add("Message", Message);
            tgs.Add("UserGuid", UserGuid);
            tgs.Add("MessageDateTime", MessageDateTime);
            tgs.Add("SourceApplication", SourceApplication);
            tgs.Add("MessageTicks", MessageDateTime.Ticks);

            return(tgs);
        }
Пример #30
0
        public override TGSerializedObject GetTGSerializedObject()
        {
            TGSerializedObject obj = base.GetTGSerializedObject();

            obj.Add("Address1", Address1);
            obj.Add("Address2", Address2);
            obj.Add("City", City);
            obj.Add("State", State);
            obj.Add("PostalCode", PostalCode);
            obj.Add("Country", Country);

            return(obj);
        }