Beispiel #1
0
        public QueryConnectionsResult(ResultHeader header, String queryUri, Location from, Location via, Location to,
                                      IQueryConnectionsContext context, List <Connection> connections,
                                      List <Location> ambiguousFrom,
                                      List <Location> ambiguousVia,
                                      List <Location> ambiguousTo, Status status)
        {
            Header      = header;
            Status      = status;
            QueryUri    = queryUri;
            From        = from;
            Via         = via;
            To          = to;
            Context     = context;
            Connections = connections;

            AmbiguousFrom = ambiguousFrom;
            AmbiguousVia  = ambiguousVia;
            AmbiguousTo   = ambiguousTo;
        }
Beispiel #2
0
 public QueryDeparturesResult(ResultHeader header) : this(header, Status.OK)
 {
 }
Beispiel #3
0
 public QueryDeparturesResult(ResultHeader header, Status status)
 {
     StationDepartures = new List <StationDepartures>();
     Header            = header;
     Status            = status;
 }
Beispiel #4
0
 public QueryConnectionsResult(ResultHeader header, Status status)
     : this(header, null, null, null, null, null, null, null, null, null, status)
 {
 }
Beispiel #5
0
 public QueryConnectionsResult(ResultHeader header, List <Location> ambiguousFrom, List <Location> ambiguousVia,
                               List <Location> ambiguousTo)
     : this(
         header, null, null, null, null, null, null, ambiguousFrom, ambiguousVia, ambiguousTo, Status.AMBIGUOUS)
 {
 }
Beispiel #6
0
 public QueryConnectionsResult(ResultHeader header, String queryUri, Location from, Location via, Location to,
                               IQueryConnectionsContext context, List <Connection> connections)
     : this(header, queryUri, from, via, to, context, connections, null, null, null, Status.OK)
 {
 }
Beispiel #7
0
 public NearbyStationsResult(ResultHeader header, Status status, List <Location> stations)
 {
     Header   = header;
     Status   = status;
     Stations = stations;
 }
Beispiel #8
0
 public NearbyStationsResult(ResultHeader header, Status status)
     : this(header, status, null)
 {
 }
Beispiel #9
0
 public NearbyStationsResult(ResultHeader header, List <Location> stations)
     : this(header, Status.OK, stations)
 {
 }