Exemple #1
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            AuthorizationToken    = _tgs.GetString("AuthorizationToken");
            AuthorizationDateTime = _tgs.GetDateTime("AuthorizationDateTime");
            ExpirationDateTime    = _tgs.GetDateTime("ExpirationDateTime");
            DeviceType            = _tgs.GetString("DeviceType");
        }
        public override void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            base.LoadFromTGSerializedObject(_tg);

            Code             = _tg.GetString("Code");
            CreationDateTime = _tg.GetDateTime("CreationDateTime");
        }
Exemple #3
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            CannedEmailGuid = _tgs.GetGuid("CannedEmailGuid");
            SentDateTime    = _tgs.GetDateTime("SentDateTime");
        }
Exemple #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_tgs"></param>
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            UserGuid          = _tgs.GetGuid("UserGuid");
            EulaGuid          = _tgs.GetGuid("EulaGuid");
            AgreementDateTime = _tgs.GetDateTime("AgreementDateTime");
        }
Exemple #5
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            OriginalTagUserGuid      = _tgs.GetGuid("OriginalTagUserGuid");
            OriginalTagDateTime      = _tgs.GetDateTime("OriginalTagDateTime");
            Position                 = _tgs.GetGeoPoint("Position");
            CreationDateTime         = _tgs.GetDateTime("CreationDateTime");
            PrimaryImageGuid         = _tgs.GetNullableGuid("PrimaryImageGuid");
            OriginalReviewerUserGuid = _tgs.GetNullableGuid("OriginalReviewerUserGuid");
            LastReviewerUserGuid     = _tgs.GetNullableGuid("LastReviewerUserGuid");

            string temp = _tgs.GetString("Properties");

            if (temp != null)
            {
                Properties = TGSerializedObject.GetTGSerializable <Properties>(temp);
            }
        }
Exemple #6
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            WebLogType        = (LogMessageType)_tgs.GetInt32("WebLogType");
            Message           = _tgs.GetString("Message");
            UserGuid          = _tgs.GetGuid("UserGuid");
            MessageDateTime   = _tgs.GetDateTime("MessageDateTime");
            SourceApplication = _tgs.GetString("SourceApplication");
            MessageDateTime   = new DateTime(_tgs.GetInt64("MessageTicks"));
        }
Exemple #7
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);
        }
Exemple #8
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            UserGuid           = _tgs.GetGuid("UserGuid");
            DeviceDateTime     = _tgs.GetDateTime("DeviceDateTime");
            Position           = _tgs.GetGeoPoint("TagPosition");
            TagType            = _tgs.GetString("TagType");
            ImageGuid          = _tgs.GetNullableGuid("ImageGuid");
            ExternalIdentifier = _tgs.GetString("ExternalIdentifier");
            ExternalSource     = _tgs.GetString("ExternalSource");
            HydrantGuid        = _tgs.GetNullableGuid("HydrantGuid");

            string temp = _tgs.GetString("Properties");

            if (temp != null)
            {
                Properties = TGSerializedObject.GetTGSerializable <Properties>(temp);
            }

            Status = _tgs.GetString("Status");
        }