private bool ContainTrack( IEnumerable <NorthAtlanticTrack> trks, string ident, NatsDirection dir) { return(trks.Any(i => i.Ident == ident && i.Direction == dir)); }
public IndividualNatsMessage( string LastUpdated, string Header, NatsDirection Direction, string Message) { this.LastUpdated = LastUpdated; this.Header = Header; this.Direction = Direction; this.Message = Message; }
public NorthAtlanticTrack( NatsDirection Direction, string Ident, string TimeStart, string TimeEnd, string Remarks, RouteString MainRoute) : base(Ident, TimeStart, TimeEnd, Remarks, MainRoute, EmpRouteStrings, EmpRouteStrings, Constants.CenterAtlantic, Constants.CenterAtlantic) { this.Direction = Direction; }
private static IndividualNatsMessage GetMsg( IEnumerable <IndividualNatsMessage> msgs, NatsDirection dir) { return(msgs.FirstOrDefault(i => i.Direction == dir)); }