Esempio n. 1
0
 public IGSMAnswerUploadSucceeded(IGSMRequest request, string fileName)
     : base(request, IGSMANSWER_UPLOADED)
 {
     SetParameter(IGANSWER_PICTURENAME, fileName);
 }
Esempio n. 2
0
 public IGSMAnswerDeleted(IGSMRequest request)
     : base(request, IGSMANSWER_DELETED)
 {
     SetParameter(IGANSWER_PICTURENAME, request.GetParameterValue(IGRequest.IGREQUEST_PATH));
 }
Esempio n. 3
0
 public IGSMAnswerActionDone(IGSMRequest request)
     : base(IGSMANSWER_ACTIONDONE, IGSMANSWERSUCCESS_STRING)
 {
     init(request);
 }
Esempio n. 4
0
 public IGSMAnswerActionDone(IGSMRequest request, int code)
     : base(code, IGSMANSWERSUCCESS_STRING)
 {
     init(request);
 }
 private void process(IGSMRequest request)
 {
     IGRequestProcessing.Add(request, this);
     IGAnswer answer = request.CreateAnswer();
     int nRes = IGSMAnswer.IGSMANSWER_ERROR_NONE;
     if (answer != null)
     {
         answer.Init(request.GetGuid(), request.GetTitle());
         if (answer.Execute())
             request.SetResult(answer.GetXml());
         else
             nRes = (int)IGSMAnswer.IGSMANSWER_ERROR_CODE.IGSMANSWER_ERROR_ANSWEREXECUTION;
     }
     if (IGSMAnswer.IsSMError(nRes))
     {
         IGSMAnswerError answerFailure = new IGSMAnswerError(request, (IGSMAnswer.IGSMANSWER_ERROR_CODE)nRes);
         request.SetId(nRes);
         request.SetResult(answerFailure.GetXml());
     }
 }