Example #1
0
 internal void AddInnerResult(BacktraceResult innerResult)
 {
     if (InnerExceptionResult == null)
     {
         InnerExceptionResult = innerResult;
         return;
     }
     InnerExceptionResult.AddInnerResult(innerResult);
 }
Example #2
0
        public static BacktraceResult FromJson(string json)
        {
            var rawResult = JsonUtility.FromJson <BacktraceRawResult>(json);
            var result    = new BacktraceResult()
            {
                response = rawResult.response,
                _rxId    = rawResult._rxid,
                Status   = rawResult.response == "ok" ? BacktraceResultStatus.Ok: BacktraceResultStatus.ServerError
            };

            return(result);
        }