예제 #1
0
        public async Task <int> GetRewardLevel(string email)
        {
            var rest = await ServiceRestClient.ExecuteGetTaskAsync("reward_level/?email=" + email).ConfigureAwait(false);

            System.Diagnostics.Debug.WriteLine("resultrest" + rest);
            var obj = JObject.Parse(rest.Content);

            System.Diagnostics.Debug.WriteLine("objreward" + obj);
            var result = (string)obj["reward_level"];

            System.Diagnostics.Debug.WriteLine("Resultreward" + result);
            if (result != null)
            {
                return(int.Parse(result));
            }
            return(1);
        }