public override void LoadFromTGSerializedObject(TGSerializedObject _tgs) { base.LoadFromTGSerializedObject(_tgs); Name = _tgs.GetString("Name"); Description = _tgs.GetString("Description"); }
public override void LoadFromTGSerializedObject(TGSerializedObject _tgs) { base.LoadFromTGSerializedObject(_tgs); Value = _tgs.GetString("Value"); Code = _tgs.GetString("Code"); }
/// <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"); }
public override void LoadFromTGSerializedObject(TGSerializedObject _tgs) { base.LoadFromTGSerializedObject(_tgs); UserGuid = _tgs.GetGuid("UserGuid"); HashedPassword = _tgs.GetString("HashedPassword"); Salt = _tgs.GetString("Salt"); }
public override void LoadFromTGSerializedObject(TGSerializedObject _tg) { base.LoadFromTGSerializedObject(_tg); MockObjectGuid = _tg.GetGuid("MockObjectGuid"); Name = _tg.GetString("Name"); Description = _tg.GetString("Description"); }
public override void LoadFromTGSerializedObject(TGSerializedObject _tg) { base.LoadFromTGSerializedObject(_tg); Name = _tg.GetString("Name"); Identifier = _tg.GetString("Identifier"); SequenceNumber = _tg.GetInt32("SequenceNumber"); }
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 _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")); }
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_"); }
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"); }
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"); }
public override void LoadFromTGSerializedObject(TGSerializedObject _tg) { base.LoadFromTGSerializedObject(_tg); Code = _tg.GetString("Code"); CreationDateTime = _tg.GetDateTime("CreationDateTime"); }
public override void LoadFromTGSerializedObject(TGSerializedObject _tgs) { base.LoadFromTGSerializedObject(_tgs); UserSource = _tgs.GetString("UserSource"); UserType = (UserTypes)_tgs.GetEnum("UserType", typeof(UserTypes), UserTypes.User); }
/// <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"); }
public override void LoadFromTGSerializedObject(TGSerializedObject _tgs) { base.LoadFromTGSerializedObject(_tgs); RelatedObjectGuid = _tgs.GetGuid("RelatedObjectGuid"); RelationshipType = _tgs.GetString("RelationshipType"); Metadata = _tgs.GetMetadata("meta_"); }
/// <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); }
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"); }
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"); }
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"); }
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; })); }
public void LoadFromTGSerializedObject(TGSerializedObject _tg) { if (_tg != null && _tg.TGObjectType == TGObjectType) { this.Clear(); string points = _tg.GetString("GeoPoints"); if (points != null) { ParseOpenGISText(points); } } }
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")); }
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"); }
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; } } }
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); }
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); } }
public override void LoadFromTGSerializedObject(TGSerializedObject _tgs) { base.LoadFromTGSerializedObject(_tgs); ValidationText = _tgs.GetString("ValidationText"); }