DeserializeJsonString() static private method

static private DeserializeJsonString ( string jsonData ) : object>.IDictionary
jsonData string
return object>.IDictionary
 private SettingsWrapper()
 {
     if (string.IsNullOrEmpty(Settings.Default.ApplicationSettings))
     {
         data = new Dictionary <string, object>();
         Save();
     }
     else
     {
         data = ParseClient.DeserializeJsonString(Settings.Default.ApplicationSettings);
     }
 }
Ejemplo n.º 2
0
 internal SettingsWrapper(string fileName)
 {
     this.fileName = fileName;
     if (!isolatedStore.FileExists(fileName))
     {
         data = new Dictionary <string, object>();
         Save();
     }
     else
     {
         data = ParseClient.DeserializeJsonString(ReadFile()) ?? new Dictionary <string, object>();
     }
 }
Ejemplo n.º 3
0
        internal static IDictionary <string, object> PushJson(string uri)
        {
            var queryTokens = uri.Substring(uri.LastIndexOf('?') + 1).Split('&');

            foreach (var token in queryTokens)
            {
                if (token.StartsWith("pushJson="))
                {
                    var rawValue = token.Substring("pushJson=".Length);
                    var decoded  = HttpUtility.UrlDecode(rawValue);
                    return(ParseClient.DeserializeJsonString(decoded));
                }
            }
            return(new Dictionary <string, object>());
        }
// Obj-C type -> .NET type is impossible to do flawlessly (especially
// on NSNumber). We can't transform NSDictionary into string because of this reason.
#if !IOS
        internal ParsePushNotificationEventArgs(string stringPayload)
        {
            StringPayload = stringPayload;

            Payload = ParseClient.DeserializeJsonString(stringPayload);
        }