public string AsCsv()
 {
     return(PickupLongtitude.ToString()
            .ConcatCsv(PickupLatitude.ToString())
            .ConcatCsv(DropoffLongtitude.ToString())
            .ConcatCsv(DropoffLatitude.ToString())
            .ConcatCsv(NumOfPassangers.ToString())
            .ConcatCsv(PickupTime.ToString("F").Replace(',', ' '))
            .ConcatCsv(DropoffTime.ToString("F").Replace(',', ' '))
            .ConcatCsv(PaymentType.AsString())
            .ConcatCsv(TaxiVendor.AsString())
            .ConcatCsv(TripDistance.ToString())
            .ConcatCsv(TripTime.ToString())
            .ConcatCsv(Tip.ToString())
            .ConcatCsv(FareAmount.ToString())
            .ConcatCsv(TotalPayment.ToString()));
 }
Example #2
0
 public string GetLine()
 {
     return(String.Join(", ", PickupTime.ToString("HH:mm:ss"), LooterName, Quantity, ItemName, BodyName) + "\n");
 }