1 19 20 package com.lutris.airsent.spec.delivery; 21 22 import com.lutris.airsent.spec.AirSentException; 23 import com.lutris.airsent.spec.customer.Customer; 24 import com.lutris.airsent.spec.messenger.Messenger; 25 import com.lutris.airsent.spec.address.Address; 26 27 28 31 public interface Delivery { 32 33 36 public static final int MAX_DESC = 1000; 37 38 41 public static final int MAX_SIZE = 64; 42 43 49 public String getHandle() 50 throws AirSentException; 51 52 58 public Address getPickUp() 59 throws AirSentException; 60 61 67 public Address getDropOff() 68 throws AirSentException; 69 70 76 public Customer getCustomer() 77 throws AirSentException; 78 79 85 public Messenger getMessenger() 86 throws AirSentException; 87 88 94 public void setMessenger(Messenger messenger) 95 throws AirSentException; 96 97 103 public boolean isFragile() 104 throws AirSentException; 105 106 112 public void setIsFragile(boolean fragile) 113 throws AirSentException; 114 115 121 public boolean isUrgent() 122 throws AirSentException; 123 124 130 public void setIsUrgent(boolean urgent) 131 throws AirSentException; 132 133 139 public String getSize() 140 throws AirSentException; 141 142 148 public void setSize(String size) 149 throws AirSentException; 150 151 157 public String getDescription() 158 throws AirSentException; 159 160 167 public void setDescription(String description) 168 throws AirSentException; 169 170 175 public void save() 176 throws AirSentException; 177 178 183 public void delete() 184 throws AirSentException; 185 186 192 public boolean isPickedUp() 193 throws AirSentException; 194 195 201 public boolean isDroppedOff() 202 throws AirSentException; 203 204 209 public void pickUp() 210 throws AirSentException; 211 212 218 public String getPickedUpTime() 219 throws AirSentException; 220 221 226 public void dropOff() 227 throws AirSentException; 228 229 235 public String getDroppedOffTime() 236 throws AirSentException; 237 238 241 public int getInvoice() 242 throws AirSentException; 243 244 247 public void setInvoice(int size) 248 throws AirSentException; 249 } 250 251 | Popular Tags |