internal ResultBase(ResultContainer result) { string error = ResultBase.GetErrorValue(result.ResultDictionary); bool cancelled = ResultBase.GetCancelledValue(result.ResultDictionary); string callbackId = ResultBase.GetCallbackId(result.ResultDictionary); this.Init(result, error, cancelled, callbackId); }
internal ResultBase(string result) { string error = null; bool cancelled = false; string callbackId = null; if (!string.IsNullOrEmpty(result)) { var dictionary = Facebook.MiniJSON.Json.Deserialize(result) as Dictionary <string, object>; if (dictionary != null) { this.ResultDictionary = dictionary; error = ResultBase.GetErrorValue(dictionary); cancelled = ResultBase.GetCancelledValue(dictionary); callbackId = ResultBase.GetCallbackId(dictionary); } } this.Init(result, error, cancelled, callbackId); }