コード例 #1
0
ファイル: FormRecord.cs プロジェクト: OpenFormGraph/Server
        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_");
        }
コード例 #2
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");
        }
コード例 #3
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);
            }
        }
コード例 #4
0
ファイル: Tag.cs プロジェクト: hydrantwiki/hwMobileAPI
        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");
        }