示例#1
0
        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);
        }