public OutputContext(OutputResult result, object uploadedData)
        {
            this._result = result;

            switch (result.code)
            {
            case "0":
                this._outputSuper = new OutputAsyncQuery(result.data["requestserialcode"].ToString());
                break;

            case "2007":
                this._outputSuper = new OutputExisted(uploadedData);
                break;

            default:
                this._outputSuper = new OutputDefault(result, uploadedData);
                break;
            }
        }
Exemple #2
0
 public OutputDefault(OutputResult result, object uploadedData)
 {
     this._result = result;
     this._data   = uploadedData;
 }
 public OutputContext(OutputResult result)
     : this(result, null)
 {
 }