Exemple #1
0
 private void _RequestWelcomeMessage()
 {
     Task.Factory.StartNew(() => {
         RequestNS.ARequest request  = this._Factory.CreateWelcomeRequest();
         request.OnRequestCompleted += welcomeRequest_OnRequestCompleted;
         request.Execute();
     });
 }
Exemple #2
0
 public void OrderDrink(string drinkId)
 {
     Task.Factory.StartNew(() => {
         RequestNS.ARequest request  = this._Factory.CreateOrderDrinkRequest(drinkId);
         request.OnRequestCompleted += orderRequest_OnRequestCompleted;
         request.Execute();
     });
 }
Exemple #3
0
 public void UpdateOrderStatus(string orderId)
 {
     Task.Factory.StartNew(() => {
         RequestNS.ARequest request  = this._Factory.CreateOrderStatusRequest(orderId);
         request.OnRequestCompleted += orderUpdaterequest_OnRequestCompleted;
         request.Execute();
     });
 }
Exemple #4
0
 private void _RequestDrinks()
 {
     Task.Factory.StartNew(() => {
         RequestNS.ARequest request  = this._Factory.CreateGetDrinkRequest();
         request.OnRequestCompleted += getDrinkRequest_OnRequestCompleted;
         request.Execute();
     });
 }