public static SSEInfo Parse(string rawData) { SSEInfo result = new SSEInfo (); try { result = JsonConvert.DeserializeObject<SSEInfo> (rawData); } catch(Exception e) { result.RAW = rawData; Console.WriteLine (e.Message); } return result; }
public static SSEInfo Parse(string rawData) { SSEInfo result = new SSEInfo(); try { result = JsonConvert.DeserializeObject <SSEInfo> (rawData); } catch (Exception e) { result.RAW = rawData; Console.WriteLine(e.Message); } return(result); }
public void SetData(string rawString) { Info = SSEInfo.Parse(rawString); }