Ejemplo n.º 1
0
        /// <summary>
        /// Async call to Get the Room Catalog Id By RoomId
        /// </summary>
        /// <param name="roomId"></param>
        /// <param name="callToService"></param>
        /// <param name="recipients"></param>
        /// <param name="callback"></param>
        public void GetRoomCatalogIdByRoomId(string roomId, RemoteCallToService callToService, System.Action <string> callback)
        {
            RESTCommand restCommand = new RESTCommand();

            restCommand.Noun = "Rooms";
            restCommand.Verb = "GetRoomCatalogIdByRoomId";
            restCommand.Parameters.Add("roomId", roomId);

            callToService.InvokeServiceAsync(restCommand, callback);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Async call to the PaymentItems service calling through the RESTService
        /// </summary>
        /// <param name="paymentCommand">PaymmentITems command</param>
        /// <param name="callToService">The RESTService handler call</param>
        /// <param name="recipients">The client receipants of the returned message</param>
        /// <param name="callback">Callback action called on service response</param>
        public void PaymentItemCommand(PaymentCommand paymentCommand, RemoteCallToService callToService, System.Action <string> callback)
        {
            RESTCommand restCommand = new RESTCommand();

            restCommand.Noun = "PaymentItemsService";
            restCommand.Verb = "ProcessPaymentItem";

            restCommand.Parameters = paymentCommand.Parameters;

            restCommand.Parameters.Add("noun", paymentCommand.Noun);
            restCommand.Parameters.Add("verb", paymentCommand.Verb);

            callToService.InvokeServiceAsync(restCommand, callback);
        }