Пример #1
0
 public OrderProcessing(OrderClass Order)
 {
     senderId   = Order.getSenderId();
     receiverId = Order.getReceiverId();
     numOfRooms = Order.getAmount();
     cardNo     = Order.getCardNo();
 }
Пример #2
0
 public Encoder(OrderClass Order)
 {
     try
     {
         encodedString = Convert.ToString(Order.getSenderId()) + "/" + Convert.ToString(Order.getCardNo()) + "/" + Convert.ToString(Order.getReceiverId())
                         + "/" + Convert.ToString(Order.getAmount());
     }
     catch (Exception e)
     {
         Console.WriteLine("Exception while Encoding " + e.Message.ToString() + "\n");
     }
 }