コード例 #1
0
 /// <summary>
 /// Unwrap the data from inside the result and random fields
 /// </summary>
 /// <returns>The JSON object with the data</returns>
 private JArray UnwrapJSONResponse()
 {
     if (!mJSONResponse.GetValue("result").HasValues)
     {
         throw new RandomJSONRPCException("Code: 9999" + ". Message: Request is valid but Response result payload is null");
     }
     // allows later interrogation for signed methods
     ResultObject = (JObject)mJSONResponse.GetValue(RESULT);
     RandomObject = (JObject)ResultObject.GetValue(RANDOM);
     return((JArray)RandomObject.GetValue("data"));
 }