Class FareAttribute
Represents fare information for a transit organization's routes.
Inherited Members
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class FareAttribute : GTFSEntity
Properties
AgencyId
Required for feeds with multiple agencies defined in the agency.txt file. Each fare attribute must specify an agency_id value to indicate which agency the fare applies to.
Declaration
public string AgencyId { get; set; }
Property Value
System.String
|
CurrencyType
Gets or sets the currency used to pay the fare. Uses the ISO 4217 alphabetical currency codes which can be found at the following URL: http://www.iso.org/iso/home/standards/iso4217.htm.
Declaration
public string CurrencyType { get; set; }
Property Value
System.String
|
FareId
Gets or sets an ID that uniquely identifies a fare class. The fareid is dataset unique.
Declaration
public string FareId { get; set; }
Property Value
System.String
|
PaymentMethod
Gets or sets when the fare must be paid.
Declaration
public PaymentMethodType PaymentMethod { get; set; }
Property Value
PaymentMethodType
|
Price
Gets or sets the fare price, in the unit specified by CurrencyType.
Declaration
public string Price { get; set; }
Property Value
System.String
|
TransferDuration
Gets or sets the length of time in seconds before a transfer expires.
Declaration
public string TransferDuration { get; set; }
Property Value
System.String
|
Transfers
Gets or sets the number of transfers permitted on this fare.
Declaration
public uint ? Transfers { get; set; }
Property Value
System.Nullable<System.UInt32>
|
Methods
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
From(FareAttribute)
Creates a copy of the given fare attribute
Declaration
public static FareAttribute From(FareAttribute other)
Parameters
FareAttribute
other
|
Returns
FareAttribute
|
GetHashCode()
Serves as a hash function.
Declaration
public override int GetHashCode()
Returns
System.Int32
|