Exemplo n.º 1
0
        /// <summary>
        ///  チャートを取得<br />
        /// </summary>
        ///
        /// <returns>IEnumerator</returns>
        /// <param name="callback">コールバックハンドラ</param>
        /// <param name="request">リクエストパラメータ</param>
        public IEnumerator GetChart(
            Request.GetChartRequest request,
            UnityAction <AsyncResult <Result.GetChartResult> > callback
            )
        {
            var task = new GetChartTask(request, callback);

            return(Gs2WebSocketSession.Execute(task));
        }
        /// <summary>
        ///  チャートを取得<br />
        /// </summary>
        ///
        /// <returns>IEnumerator</returns>
        /// <param name="callback">コールバックハンドラ</param>
        /// <param name="request">リクエストパラメータ</param>
        public IEnumerator GetChart(
            Request.GetChartRequest request,
            UnityAction <AsyncResult <Result.GetChartResult> > callback
            )
        {
            var task = new GetChartTask(request, callback);

            if (_certificateHandler != null)
            {
                task.UnityWebRequest.certificateHandler = _certificateHandler;
            }
            return(Gs2RestSession.Execute(task));
        }