Exemplo n.º 1
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            Name        = _tgs.GetString("Name");
            Description = _tgs.GetString("Description");
        }
Exemplo n.º 2
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            Value = _tgs.GetString("Value");
            Code  = _tgs.GetString("Code");
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_tg"></param>
        public override void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            base.LoadFromTGSerializedObject(_tg);

            ShortQuestionText = _tg.GetString("ShortQuestionText");
            LongQuestionText  = _tg.GetString("LongQuestionText");
            IsRequired        = _tg.GetBoolean("IsRequired");
        }
Exemplo n.º 4
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            UserGuid       = _tgs.GetGuid("UserGuid");
            HashedPassword = _tgs.GetString("HashedPassword");
            Salt           = _tgs.GetString("Salt");
        }
Exemplo n.º 5
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            base.LoadFromTGSerializedObject(_tg);

            MockObjectGuid = _tg.GetGuid("MockObjectGuid");
            Name           = _tg.GetString("Name");
            Description    = _tg.GetString("Description");
        }
Exemplo n.º 6
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            base.LoadFromTGSerializedObject(_tg);

            Name           = _tg.GetString("Name");
            Identifier     = _tg.GetString("Identifier");
            SequenceNumber = _tg.GetInt32("SequenceNumber");
        }
Exemplo n.º 7
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");
        }
Exemplo n.º 8
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"));
        }
Exemplo n.º 9
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            Description    = _tgs.GetString("Description");
            FormSubject    = _tgs.GetString("FormSubject");
            IsTemplate     = _tgs.GetBoolean("IsTemplate");
            Name           = _tgs.GetString("Name");
            SuperclassGuid = _tgs.GetNullableGuid("SuperclassGuid");
            TemplateGuid   = _tgs.GetNullableGuid("TemplateGuid");
            Metadata       = _tgs.GetMetadata("meta_");
        }
Exemplo n.º 10
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            Username     = _tgs.GetString("Username");
            EmailAddress = _tgs.GetString("EmailAddress");
            FamilyName   = _tgs.GetString("FamilyName");
            GivenName    = _tgs.GetString("GivenName");
            IsVerified   = _tgs.GetBoolean("IsVerified");
            DisplayName  = _tgs.GetString("DisplayName");
            EulaAccepted = _tgs.GetBoolean("EulaAccepted");
        }
Exemplo n.º 11
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            IsRequired       = _tgs.GetBoolean("IsRequired");
            QuestionType     = _tgs.GetString("QuestionType");
            Text             = _tgs.GetString("Text");
            Description      = _tgs.GetString("Description");
            Format           = _tgs.GetString("Format");
            Answer           = _tgs.GetString("Answer");
            NextQuestion     = _tgs.GetNullableGuid("NextQuestion");
            PreviousQuestion = _tgs.GetNullableGuid("PreviousQuestion");
        }
Exemplo n.º 12
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            base.LoadFromTGSerializedObject(_tg);

            Code             = _tg.GetString("Code");
            CreationDateTime = _tg.GetDateTime("CreationDateTime");
        }
Exemplo n.º 13
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            UserSource = _tgs.GetString("UserSource");
            UserType   = (UserTypes)_tgs.GetEnum("UserType", typeof(UserTypes), UserTypes.User);
        }
Exemplo n.º 14
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_tg"></param>
        public override void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            base.LoadFromTGSerializedObject(_tg);

            MinimumLength = _tg.GetInt32("MinimumLength");
            MaximumLength = _tg.GetInt32("MaximumLength");
            DefaultValue  = _tg.GetString("DefaultValue");
        }
Exemplo n.º 15
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            RelatedObjectGuid = _tgs.GetGuid("RelatedObjectGuid");
            RelationshipType  = _tgs.GetString("RelationshipType");
            Metadata          = _tgs.GetMetadata("meta_");
        }
Exemplo n.º 16
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="_tgs"></param>
        /// <param name="_name"></param>
        /// <returns></returns>
        public static IGeoJson GetGeometry(this TGSerializedObject _tgs, string _name)
        {
            string temp = _tgs.GetString(_name);

            if (temp != null)
            {
                return(GeometryHelper.GetGeometryObject(temp));
            }

            return(null);
        }
Exemplo n.º 17
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            base.LoadFromTGSerializedObject(_tg);

            UserGuid            = _tg.GetGuid("UserGuid");
            DisplayName         = _tg.GetString("DisplayName");
            NewHydrantCount     = _tg.GetInt32("NewHydrantCount");
            NewHydrantPosition  = _tg.GetInt32("NewHydrantPosition");
            ApprovedTagCount    = _tg.GetInt32("ApprovedTagCount");
            ApprovedTagPosition = _tg.GetInt32("ApprovedTagPosition");
        }
Exemplo n.º 18
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            UserGuid          = _tgs.GetGuid("UserGuid");
            RejectedTagCount  = _tgs.GetInt32("RejectedTagCount");
            ApprovedTagCount  = _tgs.GetInt32("ApprovedTagCount");
            PendingTagCount   = _tgs.GetInt32("PendingTagCount");
            UserRanking       = _tgs.GetInt32("UserRanking");
            NewHydrantsTagged = _tgs.GetInt32("NewHydrantsTagged");
            DisplayName       = _tgs.GetString("DisplayName");
        }
Exemplo n.º 19
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");
        }
Exemplo n.º 20
0
        private static string ProcessString(string _item, TGSerializedObject _tgs)
        {
            return(Regex.Replace(_item, TokenRegex, delegate(Match _match) {
                if (_match.Captures.Count > 0)
                {
                    string property = _match.Groups["TGText"].Captures[0].Value;

                    return _tgs.GetString(property);
                }

                return null;
            }));
        }
Exemplo n.º 21
0
        public void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            if (_tg != null &&
                _tg.TGObjectType == TGObjectType)
            {
                this.Clear();

                string points = _tg.GetString("GeoPoints");

                if (points != null)
                {
                    ParseOpenGISText(points);
                }
            }
        }
Exemplo n.º 22
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            From     = _tgs.GetString("From");
            To       = _tgs.GetString("To");
            ReplyTo  = _tgs.GetString("ReplyTo");
            Body     = _tgs.GetString("Body");
            Subject  = _tgs.GetString("Subject");
            BodyType = (EmailBodyType)Enum.Parse(typeof(EmailBodyType), _tgs.GetString("BodyType"));
        }
Exemplo n.º 23
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

            Address1   = _tgs.GetString("Address1");
            Address2   = _tgs.GetString("Address2");
            City       = _tgs.GetString("City");
            State      = _tgs.GetString("State");
            PostalCode = _tgs.GetString("PostalCode");
            Country    = _tgs.GetString("Country");
        }
Exemplo n.º 24
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tg)
        {
            base.LoadFromTGSerializedObject(_tg);

            ActiveUsers = _tg.GetInt32("ActiveUsers");

            string temp = _tg.GetString("Date");

            if (temp != null)
            {
                DateTime tempDate;
                if (DateTime.TryParse(temp, out tempDate))
                {
                    Date = tempDate;
                }
            }
        }
Exemplo n.º 25
0
        public static NameValueCollection GetMetadata(this TGSerializedObject _tgs, string _name)
        {
            NameValueCollection nvc = new NameValueCollection();

            foreach (string key in _tgs.Properties.Keys)
            {
                if (key.StartsWith(_name))
                {
                    string subkey = _name.Substring(_name.Length);
                    string value  = _tgs.GetString(key);

                    nvc.Add(subkey, value);
                }
            }

            return(nvc);
        }
Exemplo n.º 26
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);
            }
        }
Exemplo n.º 27
0
        public override void LoadFromTGSerializedObject(TGSerializedObject _tgs)
        {
            base.LoadFromTGSerializedObject(_tgs);

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