public OrderProcessing(OrderClass Order) { senderId = Order.getSenderId(); receiverId = Order.getReceiverId(); numOfRooms = Order.getAmount(); cardNo = Order.getCardNo(); }
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"); } }