Playtomic.PlayerLevels.SendSaveLoadRequest C# (CSharp) Method

SendSaveLoadRequest() private static method

private static SendSaveLoadRequest ( string section, string action, Hashtable postdata, PResponse>.Action callback ) : void
section string
action string
postdata System.Collections.Hashtable
callback PResponse>.Action
return void
        private static void SendSaveLoadRequest(string section, string action, Hashtable postdata, Action<PlayerLevel, PResponse> callback)
        {
            PRequest.GetResponse (section, action, postdata, response => {
                var level = response.success
                        ? new PlayerLevel((Hashtable) response.json["level"])
                        : null;
                callback(level, response);
            });
        }