public boolean travelAgencyRegisterReservation(Argument ReserveCost, Argument Reserve) { StringTokenizer parser = new StringTokenizer(ReserveCost.getValue().toString(), "|"); String id = parser.nextToken(); int value = Integer.parseInt(parser.nextToken()) + 100; String body = id + "|" + name + "|" + value; client.POST("/reserves", body); Reserve.setValue(id); addMessageTraceQueue("airline", "travelAgency", "response", ReserveCost.getValue()); return true; }
public boolean registerUser(Argument Name, Argument CcNumber) { name = Name.getValue().toString(); String body = Name.getValue() + "|" + CcNumber.getValue(); client.POST("/users", body); return true; }