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"); }
public override void LoadFromTGSerializedObject(TGSerializedObject _tgs) { base.LoadFromTGSerializedObject(_tgs); CannedEmailGuid = _tgs.GetGuid("CannedEmailGuid"); SentDateTime = _tgs.GetDateTime("SentDateTime"); }
/// <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"); }
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); 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 void UTCDateTimeTest() { TGSerializedObject tg = new TGSerializedObject(); DateTime now = DateTime.UtcNow; tg.Add("UtcDateValue", now); DateTime retrievedValue = tg.GetDateTime("UtcDateValue"); Assert.AreEqual(now, retrievedValue); }
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"); }