Esempio n. 1
0
 public void Handle(FoundTransportServicesResponse message, AID sender)
 {
     foreach (var transport in message.Tranports)
     {
         Console.WriteLine($"Found Transport: {transport.Description}, {transport.TransportFromCity}.");
     }
 }
 public void Handle(FoundTransportServicesResponse message, AID sender)
 {
     foreach (var transport in message.Tranports)
     {
         PrintInfomation($"Found Transport:" +
                         $"\r\n\tName: {transport.Name}, " +
                         $"\r\n\tDescription: {transport.Description}, " +
                         $"\r\n\tFrom (Country): {transport.TransportFromCountry}, " +
                         $"\r\n\tFrom (City): {transport.TransportFromCity}, " +
                         $"\r\n\tTransport Type: {transport.TransportType}," +
                         $"\r\n\tPrice: {transport.Price}, ");
     }
 }