public TransportationTransaction(IWriter writer, int id, double amount, TRANSPORTATION_TYPE transportationType = TRANSPORTATION_TYPE.PUBLIC) { this.id = id; this.amount = amount; this.writer = writer; this.transportationType = transportationType; }
public void TransportationTransactionToggleType() { if (this.transportationType == TRANSPORTATION_TYPE.PUBLIC) { this.transportationType = TRANSPORTATION_TYPE.PRIVATE; } else { this.transportationType = TRANSPORTATION_TYPE.PUBLIC; } }