Show / Hide Table of Contents

Interface IStopTimeCollection

Abstract representation of a collection of StopTimes.

Inherited Members
System.Collections.Generic.IEnumerable<GTFS.Entities.StopTime>.GetEnumerator()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public interface IStopTimeCollection : IEnumerable<StopTime>, IEnumerable

Properties

Count

Returns the number of entities.

Declaration
int Count { get; }
Property Value
System.Int32

Item[Int32]

Gets the entity at the given index.

Declaration
StopTime this[int idx] { get; set; }
Parameters
System.Int32 idx

Property Value
StopTime

Methods

Add(StopTime)

Adds an entity.

Declaration
void Add(StopTime entity)
Parameters
StopTime entity

AddRange(IEnumerable<StopTime>)

Adds a range of entities.

Declaration
void AddRange(IEnumerable<StopTime> entities)
Parameters
System.Collections.Generic.IEnumerable<StopTime> entities

Get()

Gets all stop times.

Declaration
IEnumerable<StopTime> Get()
Returns
System.Collections.Generic.IEnumerable<StopTime>

GetForStop(String)

Gets all stop times for the given stop.

Declaration
IEnumerable<StopTime> GetForStop(string stopId)
Parameters
System.String stopId

Returns
System.Collections.Generic.IEnumerable<StopTime>

GetForTrip(String)

Gets all stop times for the given trip.

Declaration
IEnumerable<StopTime> GetForTrip(string tripId)
Parameters
System.String tripId

Returns
System.Collections.Generic.IEnumerable<StopTime>

GetForTrips(IEnumerable<String>)

Gets all stop times for the given trips.

Declaration
IEnumerable<StopTime> GetForTrips(IEnumerable<string> tripIds)
Parameters
System.Collections.Generic.IEnumerable<System.String> tripIds

Returns
System.Collections.Generic.IEnumerable<StopTime>

RemoveAll()

Removes all stop times in the database

Declaration
void RemoveAll()

RemoveForStop(String)

Removes all stop times for the given stop.

Declaration
int RemoveForStop(string stopId)
Parameters
System.String stopId

Returns
System.Int32

RemoveForTrip(String)

Removes all stop times for the given trip.

Declaration
int RemoveForTrip(string tripId)
Parameters
System.String tripId

Returns
System.Int32

RemoveForTrips(IEnumerable<String>)

Removes all stop times for the given trips.

Declaration
void RemoveForTrips(IEnumerable<string> tripIds)
Parameters
System.Collections.Generic.IEnumerable<System.String> tripIds

RemoveRange(IEnumerable<StopTime>)

Removes a range of entities

Declaration
void RemoveRange(IEnumerable<StopTime> entities)
Parameters
System.Collections.Generic.IEnumerable<StopTime> entities

Update(String, String, StopTime)

Updates an entity based on the non-unique pair of stop and trip id (sequence needed to make it unique)

Declaration
bool Update(string stopId, string tripId, StopTime newEntity)
Parameters
System.String stopId

System.String tripId

StopTime newEntity

Returns
System.Boolean

Update(String, String, UInt32, StopTime)

Updates an entity based on the non-unique pair of stop and trip id (sequence needed to make it unique)

Declaration
bool Update(string stopId, string tripId, uint stopSequence, StopTime newEntity)
Parameters
System.String stopId

System.String tripId

System.UInt32 stopSequence

StopTime newEntity

Returns
System.Boolean

Back to top Built by Itinero, MIT licensed.