Beispiel #1
0
    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);
    }
Beispiel #2
0
    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);
    }
Beispiel #3
0
    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);
    }