1 57 58 package shop; 59 60 64 public class SubmitOrderResult implements java.io.Serializable 65 { 66 protected AirMilesContainer fieldAirMilesContainer; 67 protected long fieldOrderConfirmationNumber; 68 public SubmitOrderResult() 69 { 70 super(); 71 } 72 public SubmitOrderResult(AirMilesContainer airMilesContainer, long orderConfirmationNumber) 73 { 74 super(); 75 fieldAirMilesContainer = airMilesContainer ; 76 fieldOrderConfirmationNumber = orderConfirmationNumber ; 77 } 78 public AirMilesContainer getAirMilesContainer() 79 { 80 return fieldAirMilesContainer; 81 } 82 public long getOrderConfirmationNumber() 83 { 84 return fieldOrderConfirmationNumber; 85 } 86 public void setAirMilesContainer(AirMilesContainer newAirMilesContainer) 87 { 88 fieldAirMilesContainer = newAirMilesContainer; 89 } 90 public void setOrderConfirmationNumber(long newOrderConfirmationNumber) 91 { 92 fieldOrderConfirmationNumber = newOrderConfirmationNumber; 93 } 94 public String toString() 95 { 96 return super.toString() + 97 "\norderConfirmationNumber = " + fieldOrderConfirmationNumber + 98 "\nairMilesContainer =\n" + fieldAirMilesContainer ; 99 } 100 } 101 | Popular Tags |