/// <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); }
/// <summary> /// Blocking call to Get the Room Catalog Id By RoomId /// </summary> /// <param name="roomId"></param> /// <param name="callToService"></param> /// <returns></returns> public string GetRoomCatalogIdByRoomIdBlocking(string roomId, RemoteCallToService callToService) { RESTCommand restCommand = new RESTCommand(); restCommand.Noun = "Rooms"; restCommand.Verb = "GetRoomCatalogIdByRoomId"; restCommand.Parameters.Add("roomId", roomId); return(callToService.InvokeServiceBlocking(restCommand)); }
/// <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); }
/// <summary> /// PaymentItemManager constuctor /// </summary> /// <param name="serverStateMachine">A pointer to the server state machine</param> /// <param name="sendMessageToReflectorCallback">A pointer to send a message to the reflector</param> public PaymentItemsManager(ServerStateMachine serverStateMachine) : base(serverStateMachine) { mServerStores = new ServerStores(this); mMoneyPaymentNotifyClient = new MoneyPaymentNotifyClient(SendMessageToClient); // Initialize the remoting interface try { mCallToService = new RemoteCallToService(); mCallToService.RemoteConnect(); mCallToService.ActivateTheInterface(); mPaymentItems = new PaymentItemsProcess(); mPaymentItems.ActivateTheInterface(); } catch { mLogger.Warn("Error in activating the payment items interface"); } }