Example #1
0
        /// <summary>
        /// Gets the operation response.
        /// </summary>
        /// <param name="errorCode">
        /// The error code.
        /// </param>
        /// <param name="debugMessage">
        /// The debug message.
        /// </param>
        /// <returns>
        /// A new operation response.
        /// </returns>
        public OperationResponse GetOperationResponse(short errorCode, string debugMessage)
        {
            var responseObject = new SubscribeItemResponse {
                ItemId = this.ItemId, ItemType = this.ItemType
            };

            return(new OperationResponse(this.OperationRequest.OperationCode, responseObject)
            {
                ReturnCode = errorCode, DebugMessage = debugMessage
            });
        }
 /// <summary>
 /// Gets the operation response.
 /// </summary>
 /// <param name="errorCode">
 /// The error code.
 /// </param>
 /// <param name="debugMessage">
 /// The debug message.
 /// </param>
 /// <returns>
 /// A new operation response.
 /// </returns>
 public OperationResponse GetOperationResponse(short errorCode, string debugMessage)
 {
     var responseObject = new SubscribeItemResponse { ItemId = this.ItemId, ItemType = this.ItemType };
     return new OperationResponse(this.OperationRequest.OperationCode, responseObject) { ReturnCode = errorCode, DebugMessage = debugMessage };
 }