Class Calendar
Represents dates for service IDs using a weekly schedule. Specify when service starts and ends, as well as days of the week where service is available.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class Calendar : GTFSEntity, IComparable
Properties
EndDate
Gets or sets the end date for the service. This date is included in the service interval.
Declaration
public DateTime EndDate { get; set; }
Property Value
System.DateTime
|
Friday
Contains a binary value that indicates whether the service is valid for all Fridays.
Declaration
public bool Friday { get; set; }
Property Value
System.Boolean
|
Item[DayOfWeek]
Gets or sets the day of week.
Declaration
public bool this[DayOfWeek dayOfWeek] { get; set; }
Parameters
System.DayOfWeek
dayOfWeek
|
Property Value
System.Boolean
|
Mask
Contains a byte that represents the week-mask.
Declaration
public byte Mask { get; set; }
Property Value
System.Byte
|
Monday
Contains a binary value that indicates whether the service is valid for all Mondays.
Declaration
public bool Monday { get; set; }
Property Value
System.Boolean
|
Saturday
Contains a binary value that indicates whether the service is valid for all Saturdays.
Declaration
public bool Saturday { get; set; }
Property Value
System.Boolean
|
ServiceId
Gets or sets an ID that uniquely identifies a set of dates when service is available for one or more routes. Each service_id value can appear at most once in a calendar file. This value is dataset unique. It is referenced by the trips.txt file.
Declaration
public string ServiceId { get; set; }
Property Value
System.String
|
StartDate
Gets or sets the start date for the service.
Declaration
public DateTime StartDate { get; set; }
Property Value
System.DateTime
|
Sunday
Contains a binary value that indicates whether the service is valid for all Sundays.
Declaration
public bool Sunday { get; set; }
Property Value
System.Boolean
|
Thursday
Contains a binary value that indicates whether the service is valid for all Thursdays.
Declaration
public bool Thursday { get; set; }
Property Value
System.Boolean
|
Tuesday
Contains a binary value that indicates whether the service is valid for all Tuesdays.
Declaration
public bool Tuesday { get; set; }
Property Value
System.Boolean
|
Wednesday
Contains a binary value that indicates whether the service is valid for all Wednesdays.
Declaration
public bool Wednesday { get; set; }
Property Value
System.Boolean
|
Methods
CompareTo(Object)
Compares this Calendar 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
|