Class CalendarDate
Represents exceptions for the service IDs defined in the calendar. If a CalendarDate exists for ALL dates of service, they may be use instead of Calendar.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class CalendarDate : GTFSEntity, IComparable
Properties
Date
Gets or sets a particular date when service availability is different than the norm. You can use the exception_type field to indicate whether service is available on the specified date.
Declaration
public DateTime Date { get; set; }
Property Value
System.DateTime
|
ExceptionType
Gets or sets the exception type that indicates whether service is available on the date specified in the date field.
Declaration
public ExceptionType ExceptionType { get; set; }
Property Value
ExceptionType
|
ServiceId
Gets or sets an ID that uniquely identifies a set of dates when a service exception is available for one or more routes. Each (service_id, date) pair can only appear once in calendar_dates.txt. If the a service_id value appears in both the calendar.txt and calendar_dates.txt files, the information in calendar_dates.txt modifies the service information specified in calendar.txt. This field is referenced by the trips.txt file.
Declaration
public string ServiceId { get; set; }
Property Value
System.String
|
Methods
CompareTo(Object)
Compares this CalendarDate to the given object.
Declaration
public int CompareTo(object obj)
Parameters
System.Object
obj
|
Returns
System.Int32
|
Implements
Equals(Object)
Returns true if the given object contains the same data.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
|
Returns
System.Boolean
|
Overrides
GetHashCode()
Serves as a hash function.
Declaration
public override int GetHashCode()
Returns
System.Int32
|
Overrides
ToString()
Returns a description of this trip.
Declaration
public override string ToString()
Returns
System.String
|