Ejemplo n.º 1
0
 private void unmarshalJSON(byte[] bytes)
 {
     rawjson = bytes;
     MemoryStream stream = new MemoryStream(bytes);
     DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(responseData));
     response = jsonSerializer.ReadObject(stream) as responseData;
     if (response != null && response.Status != "ok")
     {
         throw new ArgumentException(response.Msg);
     }
     setColumns();
 }
Ejemplo n.º 2
0
 private void reset()
 {
     err = string.Empty;
     response = new responseData();
     columns.Clear();
     rawjson = null;
     this.record = -1;
 }