void AllGetNumbers()
    {
        RequestGetDictionary param = new RequestGetDictionary();

        param.user_id = PlayerPrefs.GetString(NetWorkKey.USER_ID);
        ApiClient.Instance.RequestGetDictionary(param);
    }
示例#2
0
        /// <summary>
        /// 取得している図鑑の情報を取得するリクエスト処理
        /// </summary>
        /// <param name="param"></param>
        public void RequestGetDictionary(RequestGetDictionary param)
        {
            Dictionary <string, string> data = new Dictionary <string, string>();

            data.Add(NetWorkKey.USER_ID, param.user_id);
            data.Add(NetWorkKey.GET_REQUEST, NetWorkKey.DICTIONARY);
            data.Add(NetWorkKey.STATUS, "1");
            StartCoroutine(requester.RequestPost(ip, data));
        }
示例#3
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            RequestLogin param = new RequestLogin();
            param.user_ip = PlayerPrefs.GetString("id");
            ApiClient.Instance.RequestLogin(param);
        }

        if (Input.GetKeyDown(KeyCode.A))
        {
            RequestGetDictionary param = new RequestGetDictionary();
            param.user_id = PlayerPrefs.GetString("id");
            ApiClient.Instance.RequestGetDictionary(param);
        }
        if (Input.GetKeyDown(KeyCode.S))
        {
            RequestGetGachaTicket param = new RequestGetGachaTicket();
            param.user_id = PlayerPrefs.GetString("id");
            ApiClient.Instance.RequestGetGachaTiket(param);
        }
    }