//--------------------------------------------------------------------------------- /// <summary> /// Create a new stack level /// </summary> //--------------------------------------------------------------------------------- public void NewStackLevel(StackInfo stackInfo) { DoRpcCall(() => { var requestParams = new StackedRequestParams(stackInfo, null); var result = _server.InvokeWithParameterObjectAsync <StackInfoRequestResponse>("createNewStackLevel", requestParams).Result; }); }
//--------------------------------------------------------------------------------- /// <summary> /// Translated vesion of GotoStack /// </summary> //--------------------------------------------------------------------------------- public void GoToStack(StackInfo stack, StackLevel stackLevel) { DoRpcCall(() => { var requestParams = new StackedRequestParams(stack, stackLevel); var result = _server.InvokeWithParameterObjectAsync <StackInfoRequestResponse>(StringConstants.GoToStackLevel, requestParams).Result; }); }
//--------------------------------------------------------------------------------- /// <summary> /// Fill in the details of a level /// </summary> //--------------------------------------------------------------------------------- public StackLevel GetLevelDetails(StackInfo stack, StackLevel level) { return(DoRpcCall(() => { var requestParams = new StackedRequestParams(stack, level); var result = _server.InvokeWithParameterObjectAsync <GetLevelDetailsResponse>(StringConstants.GetLevelDetails, requestParams).Result; return result.StackLevel; })); }