Exemple #1
0
        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;
        }
Exemple #2
0
        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);
        }
Exemple #3
0
 public void SetData(string rawString)
 {
     Info = SSEInfo.Parse(rawString);
 }