/// <summary> /// 累積値を取得<br /> /// </summary> /// /// <returns>IEnumerator</returns> /// <param name="callback">コールバックハンドラ</param> /// <param name="request">リクエストパラメータ</param> public IEnumerator GetCumulative( Request.GetCumulativeRequest request, UnityAction <AsyncResult <Result.GetCumulativeResult> > callback ) { var task = new GetCumulativeTask(request, callback); return(Gs2WebSocketSession.Execute(task)); }
/// <summary> /// 累積値を取得<br /> /// </summary> /// /// <returns>IEnumerator</returns> /// <param name="callback">コールバックハンドラ</param> /// <param name="request">リクエストパラメータ</param> public IEnumerator GetCumulative( Request.GetCumulativeRequest request, UnityAction <AsyncResult <Result.GetCumulativeResult> > callback ) { var task = new GetCumulativeTask(request, callback); if (_certificateHandler != null) { task.UnityWebRequest.certificateHandler = _certificateHandler; } return(Gs2RestSession.Execute(task)); }
public GetCumulativeTask(Request.GetCumulativeRequest request, UnityAction <AsyncResult <Result.GetCumulativeResult> > userCallback) : base(userCallback) { _request = request; }