public void GetCurDateTime(AnsverDespatcher <TimeAnswer> action, BadAnsverDespatcher bad_action) { string url = server_addres + current_time; time_result_action = action; this.bad_action = bad_action; need_send_msg = true; getRequest <TimeAnswer>(url); }
public void GetValue(AnsverDespatcher <ServerAnswer> action, BadAnsverDespatcher bad_action) { string url = server_addres + get_score_address; url = url.Replace("{1}", Helper.DeviceNameHelper.GetDeviceName()); result_action = action; this.bad_action = bad_action; need_send_msg = true; getRequest <ServerAnswer>(url); }
public void GetPrize(AnsverDespatcher <PrizeAnswer> action, BadAnsverDespatcher bad_action) { string url = server_addres + prize; url = url.Replace("{1}", Helper.DeviceNameHelper.GetDeviceName()); prize_result_action = action; this.bad_action = bad_action; need_send_msg = true; getRequest <PrizeAnswer>(url); }