Пример #1
0
        private async void load(string url)
        {
            HMS.SP.FieldRatingScaleQuestionAnswer spFieldRatingScaleQuestionAnswer = await SPGet.getFieldRatingScaleQuestionAnswer(spglb.myClient, url);

            this.add_FieldRatingScaleQuestionAnswer(1, spFieldRatingScaleQuestionAnswer);
            this.hide_running();
        }
 public int  add_FieldRatingScaleQuestionAnswer(int pos, int level, HMS.SP.FieldRatingScaleQuestionAnswer spFieldRatingScaleQuestionAnswer)
 {
     if (spFieldRatingScaleQuestionAnswer.__HMSError_ != null && (spFieldRatingScaleQuestionAnswer.__HMSError_.errno != 0 || spFieldRatingScaleQuestionAnswer.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spFieldRatingScaleQuestionAnswer.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spFieldRatingScaleQuestionAnswer.__deferred_);
     pos = this.add__metadata(pos, level, spFieldRatingScaleQuestionAnswer.__metadata_);
     pos = this.add__rest(pos, level, spFieldRatingScaleQuestionAnswer.__rest);
     pos = this.add_lineAt(pos, level, "Answer", HMS.SP.SPUtil.toString(spFieldRatingScaleQuestionAnswer.Answer_));     //Int32;
     pos = this.add_lineAt(pos, level, "Question", HMS.SP.SPUtil.toString(spFieldRatingScaleQuestionAnswer.Question_)); //String;
     return(pos);
 }
 public int add_FieldRatingScaleQuestionAnswer_deferred(int pos, int level, HMS.SP.FieldRatingScaleQuestionAnswer spFieldRatingScaleQuestionAnswer)
 {
     {
         string useUrl = spFieldRatingScaleQuestionAnswer.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "FieldRatingScaleQuestionAnswer", "", knownPages.pageFieldRatingScaleQuestionAnswer, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "FieldRatingScaleQuestionAnswer", "", knownPages.NONE, "");
             pos = this.add_FieldRatingScaleQuestionAnswer(pos, level + 1, spFieldRatingScaleQuestionAnswer);
         }
     }
     return(pos);
 }
 public int add_FieldRatingScaleQuestionAnswer(int level, HMS.SP.FieldRatingScaleQuestionAnswer spFieldRatingScaleQuestionAnswer)
 {
     return(add_FieldRatingScaleQuestionAnswer(-1, level, spFieldRatingScaleQuestionAnswer));
 }