Show / Hide Table of Contents

Class TicketLeg

Inheritance
object
TicketLeg
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Walletobjects.v1.Data
Assembly: Google.Apis.Walletobjects.v1.dll
Syntax
public class TicketLeg : IDirectResponseSchema

Properties

ArrivalDateTime

The date/time of arrival. This is an ISO 8601 extended format date/time, with or without an offset. Time may be specified up to nanosecond precision. Offsets may be specified with seconds precision (even though offset seconds is not part of ISO 8601). For example: 1985-04-12T23:20:50.52Z would be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. 1985-04-12T19:20:50.52-04:00 would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as the above example). If the event were in New York, this would be the equivalent of Eastern Daylight Time (EDT). Remember that offset varies in regions that observe Daylight Saving Time (or Summer Time), depending on the time of the year. 1985-04-12T19:20:50.52 would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no offset information. The portion of the date/time without the offset is considered the "local date/time". This should be the local date/time at the destination station. For example, if the event occurs at the 20th hour of June 5th, 2018 at the destination station, the local date/time portion should be 2018-06-05T20:00:00. If the local date/time at the destination station is 4 hours before UTC, an offset of -04:00 may be appended. Without offset information, some rich features may not be available.

Declaration
[JsonProperty("arrivalDateTime")]
public virtual string ArrivalDateTime { get; set; }
Property Value
Type Description
string

Carriage

The train or ship name/number that the passsenger needs to board.

Declaration
[JsonProperty("carriage")]
public virtual string Carriage { get; set; }
Property Value
Type Description
string

DepartureDateTime

The date/time of departure. This is required if there is no validity time interval set on the transit object. This is an ISO 8601 extended format date/time, with or without an offset. Time may be specified up to nanosecond precision. Offsets may be specified with seconds precision (even though offset seconds is not part of ISO 8601). For example: 1985-04-12T23:20:50.52Z would be 20 minutes and 50.52 seconds after the 23rd hour of April 12th, 1985 in UTC. 1985-04-12T19:20:50.52-04:00 would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985, 4 hours before UTC (same instant in time as the above example). If the event were in New York, this would be the equivalent of Eastern Daylight Time (EDT). Remember that offset varies in regions that observe Daylight Saving Time (or Summer Time), depending on the time of the year. 1985-04-12T19:20:50.52 would be 20 minutes and 50.52 seconds after the 19th hour of April 12th, 1985 with no offset information. The portion of the date/time without the offset is considered the "local date/time". This should be the local date/time at the origin station. For example, if the departure occurs at the 20th hour of June 5th, 2018 at the origin station, the local date/time portion should be 2018-06-05T20:00:00. If the local date/time at the origin station is 4 hours before UTC, an offset of -04:00 may be appended. Without offset information, some rich features may not be available.

Declaration
[JsonProperty("departureDateTime")]
public virtual string DepartureDateTime { get; set; }
Property Value
Type Description
string

DestinationName

The destination name.

Declaration
[JsonProperty("destinationName")]
public virtual LocalizedString DestinationName { get; set; }
Property Value
Type Description
LocalizedString

DestinationStationCode

The destination station code.

Declaration
[JsonProperty("destinationStationCode")]
public virtual string DestinationStationCode { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

FareName

Short description/name of the fare for this leg of travel. Eg "Anytime Single Use".

Declaration
[JsonProperty("fareName")]
public virtual LocalizedString FareName { get; set; }
Property Value
Type Description
LocalizedString

OriginName

The name of the origin station. This is required if desinationName is present or if originStationCode is not present.

Declaration
[JsonProperty("originName")]
public virtual LocalizedString OriginName { get; set; }
Property Value
Type Description
LocalizedString

OriginStationCode

The origin station code. This is required if destinationStationCode is present or if originName is not present.

Declaration
[JsonProperty("originStationCode")]
public virtual string OriginStationCode { get; set; }
Property Value
Type Description
string

Platform

The platform or gate where the passenger can board the carriage.

Declaration
[JsonProperty("platform")]
public virtual string Platform { get; set; }
Property Value
Type Description
string

TicketSeat

The reserved seat for the passenger(s). If more than one seat is to be specified then use the ticketSeats field instead. Both ticketSeat and ticketSeats may not be set.

Declaration
[JsonProperty("ticketSeat")]
public virtual TicketSeat TicketSeat { get; set; }
Property Value
Type Description
TicketSeat

TicketSeats

The reserved seat for the passenger(s). If only one seat is to be specified then use the ticketSeat field instead. Both ticketSeat and ticketSeats may not be set.

Declaration
[JsonProperty("ticketSeats")]
public virtual IList<TicketSeat> TicketSeats { get; set; }
Property Value
Type Description
IList<TicketSeat>

TransitOperatorName

The name of the transit operator that is operating this leg of a trip.

Declaration
[JsonProperty("transitOperatorName")]
public virtual LocalizedString TransitOperatorName { get; set; }
Property Value
Type Description
LocalizedString

TransitTerminusName

Terminus station or destination of the train/bus/etc.

Declaration
[JsonProperty("transitTerminusName")]
public virtual LocalizedString TransitTerminusName { get; set; }
Property Value
Type Description
LocalizedString

Zone

The zone of boarding within the platform.

Declaration
[JsonProperty("zone")]
public virtual string Zone { get; set; }
Property Value
Type Description
string

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX