/// <summary>
        ///  発生したイベントを取得<br />
        /// </summary>
        ///
        /// <returns>IEnumerator</returns>
        /// <param name="callback">コールバックハンドラ</param>
        /// <param name="request">リクエストパラメータ</param>
        public IEnumerator GetEvent(
            Request.GetEventRequest request,
            UnityAction <AsyncResult <Result.GetEventResult> > callback
            )
        {
            var task = new GetEventTask(request, callback);

            return(Gs2WebSocketSession.Execute(task));
        }
Example #2
0
        /// <summary>
        ///  発生したイベントを取得<br />
        /// </summary>
        ///
        /// <returns>IEnumerator</returns>
        /// <param name="callback">コールバックハンドラ</param>
        /// <param name="request">リクエストパラメータ</param>
        public IEnumerator GetEvent(
            Request.GetEventRequest request,
            UnityAction <AsyncResult <Result.GetEventResult> > callback
            )
        {
            var task = new GetEventTask(request, callback);

            if (_certificateHandler != null)
            {
                task.UnityWebRequest.certificateHandler = _certificateHandler;
            }
            return(Gs2RestSession.Execute(task));
        }
Example #3
0
 public GetEventTask(Request.GetEventRequest request, UnityAction <AsyncResult <Result.GetEventResult> > userCallback) : base(userCallback)
 {
     _request = request;
 }