Exemple #1
0
 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;
 }
Exemple #2
0
 public void TransportationTransactionToggleType()
 {
     if (this.transportationType == TRANSPORTATION_TYPE.PUBLIC)
     {
         this.transportationType = TRANSPORTATION_TYPE.PRIVATE;
     }
     else
     {
         this.transportationType = TRANSPORTATION_TYPE.PUBLIC;
     }
 }