Last active
June 5, 2020 17:22
-
-
Save thomasforth/ee255bdfe635e8dbca1d0b7bf22690e7 to your computer and use it in GitHub Desktop.
Using the Transport for the North disruptions API in .Net 5 with C#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Net; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using System.Text; | |
using System.Xml; | |
using System.Xml.Serialization; | |
namespace SiriTest | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
string URL = @"http://api.transportforthenorth.com/siri/sx"; | |
// Don't be the person who uses these credentials for something evil. I can't imagine what you'd do, but if you're thinking about it, please don't. | |
// Get your own id and key at https://opendata.transportforthenorth.com/ | |
string appid = @"5ad48234"; | |
string appkey = @"4937c8388da9421c3d35f50146d6db46"; | |
string requestbody = @"<Siri xmlns=""http://www.siri.org.uk/siri"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" version=""2.0"" xsi:schemaLocation=""http://www.siri.org.uk/siri http://www.siri.org.uk/schema/2.0/xsd/siri.xsd"" >"; | |
requestbody += @"<ServiceRequest> <RequestTimestamp>2020-02-18T15:37:06+0000</RequestTimestamp> <RequestorRef>d0ab77fe</RequestorRef> <SituationExchangeRequest version=""2.0""> <RequestTimestamp>2020-06-05T15:51:06+0000</RequestTimestamp> </SituationExchangeRequest> </ServiceRequest> </Siri>"; | |
HttpRequestMessage requestMessage = new HttpRequestMessage(HttpMethod.Post, URL) | |
{ | |
Method = HttpMethod.Post, | |
RequestUri = new System.Uri(URL), | |
Content = new StringContent(requestbody) | |
}; | |
requestMessage.Headers.Add("Accept", "application/xml"); // I'm not sure if I need this. It's good practice generally to tell the server what you want. | |
requestMessage.Headers.Authorization = new AuthenticationHeaderValue("Basic", Convert.ToBase64String(Encoding.ASCII.GetBytes($"{appid}:{appkey}"))); | |
HttpClient client = new HttpClient(); | |
HttpResponseMessage response = client.SendAsync(requestMessage).GetAwaiter().GetResult(); | |
response.EnsureSuccessStatusCode(); | |
string responseString = response.Content.ReadAsStringAsync().GetAwaiter().GetResult(); | |
File.WriteAllText("raw_response.txt", responseString); | |
XmlSerializer serializer = new XmlSerializer(typeof(Siri)); | |
StreamReader reader = new StreamReader(response.Content.ReadAsStreamAsync().GetAwaiter().GetResult()); | |
Siri SiriFeed = (Siri)serializer.Deserialize(reader); | |
} | |
} | |
// NOTE: Generated code may require at least .NET Framework 4.5 or .NET Core/Standard 2.0. | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://www.siri.org.uk/siri", IsNullable = false)] | |
public partial class Siri | |
{ | |
private SiriServiceDelivery serviceDeliveryField; | |
private decimal versionField; | |
/// <remarks/> | |
public SiriServiceDelivery ServiceDelivery | |
{ | |
get | |
{ | |
return this.serviceDeliveryField; | |
} | |
set | |
{ | |
this.serviceDeliveryField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute()] | |
public decimal version | |
{ | |
get | |
{ | |
return this.versionField; | |
} | |
set | |
{ | |
this.versionField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDelivery | |
{ | |
private System.DateTime responseTimestampField; | |
private string producerRefField; | |
private string responseMessageIdentifierField; | |
private SiriServiceDeliverySituationExchangeDelivery situationExchangeDeliveryField; | |
private string srsNameField; | |
/// <remarks/> | |
public System.DateTime ResponseTimestamp | |
{ | |
get | |
{ | |
return this.responseTimestampField; | |
} | |
set | |
{ | |
this.responseTimestampField = value; | |
} | |
} | |
/// <remarks/> | |
public string ProducerRef | |
{ | |
get | |
{ | |
return this.producerRefField; | |
} | |
set | |
{ | |
this.producerRefField = value; | |
} | |
} | |
/// <remarks/> | |
public string ResponseMessageIdentifier | |
{ | |
get | |
{ | |
return this.responseMessageIdentifierField; | |
} | |
set | |
{ | |
this.responseMessageIdentifierField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDelivery SituationExchangeDelivery | |
{ | |
get | |
{ | |
return this.situationExchangeDeliveryField; | |
} | |
set | |
{ | |
this.situationExchangeDeliveryField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute()] | |
public string srsName | |
{ | |
get | |
{ | |
return this.srsNameField; | |
} | |
set | |
{ | |
this.srsNameField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDelivery | |
{ | |
private System.DateTime responseTimestampField; | |
private object subscriberRefField; | |
private object subscriptionRefField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElement[] situationsField; | |
/// <remarks/> | |
public System.DateTime ResponseTimestamp | |
{ | |
get | |
{ | |
return this.responseTimestampField; | |
} | |
set | |
{ | |
this.responseTimestampField = value; | |
} | |
} | |
/// <remarks/> | |
public object SubscriberRef | |
{ | |
get | |
{ | |
return this.subscriberRefField; | |
} | |
set | |
{ | |
this.subscriberRefField = value; | |
} | |
} | |
/// <remarks/> | |
public object SubscriptionRef | |
{ | |
get | |
{ | |
return this.subscriptionRefField; | |
} | |
set | |
{ | |
this.subscriptionRefField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlArrayItemAttribute("PtSituationElement", IsNullable = false)] | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElement[] Situations | |
{ | |
get | |
{ | |
return this.situationsField; | |
} | |
set | |
{ | |
this.situationsField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElement | |
{ | |
private System.DateTime creationTimeField; | |
private string participantRefField; | |
private string situationNumberField; | |
private byte versionField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementSource sourceField; | |
private string progressField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementValidityPeriod[] validityPeriodField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementPublicationWindow publicationWindowField; | |
private string equipmentReasonField; | |
private string miscellaneousReasonField; | |
private bool plannedField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementSummary summaryField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementDescription descriptionField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementInfoLinks infoLinksField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequence[] consequencesField; | |
/// <remarks/> | |
public System.DateTime CreationTime | |
{ | |
get | |
{ | |
return this.creationTimeField; | |
} | |
set | |
{ | |
this.creationTimeField = value; | |
} | |
} | |
/// <remarks/> | |
public string ParticipantRef | |
{ | |
get | |
{ | |
return this.participantRefField; | |
} | |
set | |
{ | |
this.participantRefField = value; | |
} | |
} | |
/// <remarks/> | |
public string SituationNumber | |
{ | |
get | |
{ | |
return this.situationNumberField; | |
} | |
set | |
{ | |
this.situationNumberField = value; | |
} | |
} | |
/// <remarks/> | |
public byte Version | |
{ | |
get | |
{ | |
return this.versionField; | |
} | |
set | |
{ | |
this.versionField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementSource Source | |
{ | |
get | |
{ | |
return this.sourceField; | |
} | |
set | |
{ | |
this.sourceField = value; | |
} | |
} | |
/// <remarks/> | |
public string Progress | |
{ | |
get | |
{ | |
return this.progressField; | |
} | |
set | |
{ | |
this.progressField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute("ValidityPeriod")] | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementValidityPeriod[] ValidityPeriod | |
{ | |
get | |
{ | |
return this.validityPeriodField; | |
} | |
set | |
{ | |
this.validityPeriodField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementPublicationWindow PublicationWindow | |
{ | |
get | |
{ | |
return this.publicationWindowField; | |
} | |
set | |
{ | |
this.publicationWindowField = value; | |
} | |
} | |
/// <remarks/> | |
public string EquipmentReason | |
{ | |
get | |
{ | |
return this.equipmentReasonField; | |
} | |
set | |
{ | |
this.equipmentReasonField = value; | |
} | |
} | |
/// <remarks/> | |
public string MiscellaneousReason | |
{ | |
get | |
{ | |
return this.miscellaneousReasonField; | |
} | |
set | |
{ | |
this.miscellaneousReasonField = value; | |
} | |
} | |
/// <remarks/> | |
public bool Planned | |
{ | |
get | |
{ | |
return this.plannedField; | |
} | |
set | |
{ | |
this.plannedField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementSummary Summary | |
{ | |
get | |
{ | |
return this.summaryField; | |
} | |
set | |
{ | |
this.summaryField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementDescription Description | |
{ | |
get | |
{ | |
return this.descriptionField; | |
} | |
set | |
{ | |
this.descriptionField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementInfoLinks InfoLinks | |
{ | |
get | |
{ | |
return this.infoLinksField; | |
} | |
set | |
{ | |
this.infoLinksField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlArrayItemAttribute("Consequence", IsNullable = false)] | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequence[] Consequences | |
{ | |
get | |
{ | |
return this.consequencesField; | |
} | |
set | |
{ | |
this.consequencesField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementSource | |
{ | |
private string sourceTypeField; | |
private System.DateTime timeOfCommunicationField; | |
/// <remarks/> | |
public string SourceType | |
{ | |
get | |
{ | |
return this.sourceTypeField; | |
} | |
set | |
{ | |
this.sourceTypeField = value; | |
} | |
} | |
/// <remarks/> | |
public System.DateTime TimeOfCommunication | |
{ | |
get | |
{ | |
return this.timeOfCommunicationField; | |
} | |
set | |
{ | |
this.timeOfCommunicationField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementValidityPeriod | |
{ | |
private System.DateTime startTimeField; | |
private System.DateTime endTimeField; | |
private bool endTimeFieldSpecified; | |
/// <remarks/> | |
public System.DateTime StartTime | |
{ | |
get | |
{ | |
return this.startTimeField; | |
} | |
set | |
{ | |
this.startTimeField = value; | |
} | |
} | |
/// <remarks/> | |
public System.DateTime EndTime | |
{ | |
get | |
{ | |
return this.endTimeField; | |
} | |
set | |
{ | |
this.endTimeField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlIgnoreAttribute()] | |
public bool EndTimeSpecified | |
{ | |
get | |
{ | |
return this.endTimeFieldSpecified; | |
} | |
set | |
{ | |
this.endTimeFieldSpecified = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementPublicationWindow | |
{ | |
private System.DateTime startTimeField; | |
private System.DateTime endTimeField; | |
private bool endTimeFieldSpecified; | |
/// <remarks/> | |
public System.DateTime StartTime | |
{ | |
get | |
{ | |
return this.startTimeField; | |
} | |
set | |
{ | |
this.startTimeField = value; | |
} | |
} | |
/// <remarks/> | |
public System.DateTime EndTime | |
{ | |
get | |
{ | |
return this.endTimeField; | |
} | |
set | |
{ | |
this.endTimeField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlIgnoreAttribute()] | |
public bool EndTimeSpecified | |
{ | |
get | |
{ | |
return this.endTimeFieldSpecified; | |
} | |
set | |
{ | |
this.endTimeFieldSpecified = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementSummary | |
{ | |
private bool overriddenField; | |
private string langField; | |
private string valueField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute()] | |
public bool overridden | |
{ | |
get | |
{ | |
return this.overriddenField; | |
} | |
set | |
{ | |
this.overriddenField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://www.w3.org/XML/1998/namespace")] | |
public string lang | |
{ | |
get | |
{ | |
return this.langField; | |
} | |
set | |
{ | |
this.langField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlTextAttribute()] | |
public string Value | |
{ | |
get | |
{ | |
return this.valueField; | |
} | |
set | |
{ | |
this.valueField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementDescription | |
{ | |
private bool overriddenField; | |
private string langField; | |
private string valueField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute()] | |
public bool overridden | |
{ | |
get | |
{ | |
return this.overriddenField; | |
} | |
set | |
{ | |
this.overriddenField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://www.w3.org/XML/1998/namespace")] | |
public string lang | |
{ | |
get | |
{ | |
return this.langField; | |
} | |
set | |
{ | |
this.langField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlTextAttribute()] | |
public string Value | |
{ | |
get | |
{ | |
return this.valueField; | |
} | |
set | |
{ | |
this.valueField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementInfoLinks | |
{ | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementInfoLinksInfoLink infoLinkField; | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementInfoLinksInfoLink InfoLink | |
{ | |
get | |
{ | |
return this.infoLinkField; | |
} | |
set | |
{ | |
this.infoLinkField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementInfoLinksInfoLink | |
{ | |
private string uriField; | |
/// <remarks/> | |
public string Uri | |
{ | |
get | |
{ | |
return this.uriField; | |
} | |
set | |
{ | |
this.uriField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequence | |
{ | |
private string conditionField; | |
private string severityField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffects affectsField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAdvice adviceField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceBlocking blockingField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceDelays delaysField; | |
/// <remarks/> | |
public string Condition | |
{ | |
get | |
{ | |
return this.conditionField; | |
} | |
set | |
{ | |
this.conditionField = value; | |
} | |
} | |
/// <remarks/> | |
public string Severity | |
{ | |
get | |
{ | |
return this.severityField; | |
} | |
set | |
{ | |
this.severityField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffects Affects | |
{ | |
get | |
{ | |
return this.affectsField; | |
} | |
set | |
{ | |
this.affectsField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAdvice Advice | |
{ | |
get | |
{ | |
return this.adviceField; | |
} | |
set | |
{ | |
this.adviceField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceBlocking Blocking | |
{ | |
get | |
{ | |
return this.blockingField; | |
} | |
set | |
{ | |
this.blockingField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceDelays Delays | |
{ | |
get | |
{ | |
return this.delaysField; | |
} | |
set | |
{ | |
this.delaysField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffects | |
{ | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsOperators operatorsField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworks networksField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPoint[] stopPointsField; | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsOperators Operators | |
{ | |
get | |
{ | |
return this.operatorsField; | |
} | |
set | |
{ | |
this.operatorsField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworks Networks | |
{ | |
get | |
{ | |
return this.networksField; | |
} | |
set | |
{ | |
this.networksField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlArrayItemAttribute("AffectedStopPoint", IsNullable = false)] | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPoint[] StopPoints | |
{ | |
get | |
{ | |
return this.stopPointsField; | |
} | |
set | |
{ | |
this.stopPointsField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsOperators | |
{ | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsOperatorsAffectedOperator[] affectedOperatorField; | |
private object allOperatorsField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute("AffectedOperator")] | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsOperatorsAffectedOperator[] AffectedOperator | |
{ | |
get | |
{ | |
return this.affectedOperatorField; | |
} | |
set | |
{ | |
this.affectedOperatorField = value; | |
} | |
} | |
/// <remarks/> | |
public object AllOperators | |
{ | |
get | |
{ | |
return this.allOperatorsField; | |
} | |
set | |
{ | |
this.allOperatorsField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsOperatorsAffectedOperator | |
{ | |
private string operatorRefField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsOperatorsAffectedOperatorOperatorName operatorNameField; | |
/// <remarks/> | |
public string OperatorRef | |
{ | |
get | |
{ | |
return this.operatorRefField; | |
} | |
set | |
{ | |
this.operatorRefField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsOperatorsAffectedOperatorOperatorName OperatorName | |
{ | |
get | |
{ | |
return this.operatorNameField; | |
} | |
set | |
{ | |
this.operatorNameField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsOperatorsAffectedOperatorOperatorName | |
{ | |
private string langField; | |
private string valueField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://www.w3.org/XML/1998/namespace")] | |
public string lang | |
{ | |
get | |
{ | |
return this.langField; | |
} | |
set | |
{ | |
this.langField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlTextAttribute()] | |
public string Value | |
{ | |
get | |
{ | |
return this.valueField; | |
} | |
set | |
{ | |
this.valueField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworks | |
{ | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetwork affectedNetworkField; | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetwork AffectedNetwork | |
{ | |
get | |
{ | |
return this.affectedNetworkField; | |
} | |
set | |
{ | |
this.affectedNetworkField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetwork | |
{ | |
private string networkRefField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkNetworkName networkNameField; | |
private string vehicleModeField; | |
private object allLinesField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLine[] affectedLineField; | |
/// <remarks/> | |
public string NetworkRef | |
{ | |
get | |
{ | |
return this.networkRefField; | |
} | |
set | |
{ | |
this.networkRefField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkNetworkName NetworkName | |
{ | |
get | |
{ | |
return this.networkNameField; | |
} | |
set | |
{ | |
this.networkNameField = value; | |
} | |
} | |
/// <remarks/> | |
public string VehicleMode | |
{ | |
get | |
{ | |
return this.vehicleModeField; | |
} | |
set | |
{ | |
this.vehicleModeField = value; | |
} | |
} | |
/// <remarks/> | |
public object AllLines | |
{ | |
get | |
{ | |
return this.allLinesField; | |
} | |
set | |
{ | |
this.allLinesField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute("AffectedLine")] | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLine[] AffectedLine | |
{ | |
get | |
{ | |
return this.affectedLineField; | |
} | |
set | |
{ | |
this.affectedLineField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkNetworkName | |
{ | |
private string langField; | |
private string valueField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://www.w3.org/XML/1998/namespace")] | |
public string lang | |
{ | |
get | |
{ | |
return this.langField; | |
} | |
set | |
{ | |
this.langField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlTextAttribute()] | |
public string Value | |
{ | |
get | |
{ | |
return this.valueField; | |
} | |
set | |
{ | |
this.valueField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLine | |
{ | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLineAffectedOperator[] affectedOperatorField; | |
private string lineRefField; | |
private string publishedLineNameField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLineDirection directionField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute("AffectedOperator")] | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLineAffectedOperator[] AffectedOperator | |
{ | |
get | |
{ | |
return this.affectedOperatorField; | |
} | |
set | |
{ | |
this.affectedOperatorField = value; | |
} | |
} | |
/// <remarks/> | |
public string LineRef | |
{ | |
get | |
{ | |
return this.lineRefField; | |
} | |
set | |
{ | |
this.lineRefField = value; | |
} | |
} | |
/// <remarks/> | |
public string PublishedLineName | |
{ | |
get | |
{ | |
return this.publishedLineNameField; | |
} | |
set | |
{ | |
this.publishedLineNameField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLineDirection Direction | |
{ | |
get | |
{ | |
return this.directionField; | |
} | |
set | |
{ | |
this.directionField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLineAffectedOperator | |
{ | |
private string operatorRefField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLineAffectedOperatorOperatorName operatorNameField; | |
/// <remarks/> | |
public string OperatorRef | |
{ | |
get | |
{ | |
return this.operatorRefField; | |
} | |
set | |
{ | |
this.operatorRefField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLineAffectedOperatorOperatorName OperatorName | |
{ | |
get | |
{ | |
return this.operatorNameField; | |
} | |
set | |
{ | |
this.operatorNameField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLineAffectedOperatorOperatorName | |
{ | |
private string langField; | |
private string valueField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://www.w3.org/XML/1998/namespace")] | |
public string lang | |
{ | |
get | |
{ | |
return this.langField; | |
} | |
set | |
{ | |
this.langField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlTextAttribute()] | |
public string Value | |
{ | |
get | |
{ | |
return this.valueField; | |
} | |
set | |
{ | |
this.valueField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsNetworksAffectedNetworkAffectedLineDirection | |
{ | |
private string directionRefField; | |
/// <remarks/> | |
public string DirectionRef | |
{ | |
get | |
{ | |
return this.directionRefField; | |
} | |
set | |
{ | |
this.directionRefField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPoint | |
{ | |
private string stopPointRefField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointStopPointName stopPointNameField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointLocation locationField; | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointAffectedModes affectedModesField; | |
/// <remarks/> | |
public string StopPointRef | |
{ | |
get | |
{ | |
return this.stopPointRefField; | |
} | |
set | |
{ | |
this.stopPointRefField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointStopPointName StopPointName | |
{ | |
get | |
{ | |
return this.stopPointNameField; | |
} | |
set | |
{ | |
this.stopPointNameField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointLocation Location | |
{ | |
get | |
{ | |
return this.locationField; | |
} | |
set | |
{ | |
this.locationField = value; | |
} | |
} | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointAffectedModes AffectedModes | |
{ | |
get | |
{ | |
return this.affectedModesField; | |
} | |
set | |
{ | |
this.affectedModesField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointStopPointName | |
{ | |
private string langField; | |
private string valueField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://www.w3.org/XML/1998/namespace")] | |
public string lang | |
{ | |
get | |
{ | |
return this.langField; | |
} | |
set | |
{ | |
this.langField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlTextAttribute()] | |
public string Value | |
{ | |
get | |
{ | |
return this.valueField; | |
} | |
set | |
{ | |
this.valueField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointLocation | |
{ | |
private decimal longitudeField; | |
private decimal latitudeField; | |
private string srsNameField; | |
/// <remarks/> | |
public decimal Longitude | |
{ | |
get | |
{ | |
return this.longitudeField; | |
} | |
set | |
{ | |
this.longitudeField = value; | |
} | |
} | |
/// <remarks/> | |
public decimal Latitude | |
{ | |
get | |
{ | |
return this.latitudeField; | |
} | |
set | |
{ | |
this.latitudeField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute()] | |
public string srsName | |
{ | |
get | |
{ | |
return this.srsNameField; | |
} | |
set | |
{ | |
this.srsNameField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointAffectedModes | |
{ | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointAffectedModesMode modeField; | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointAffectedModesMode Mode | |
{ | |
get | |
{ | |
return this.modeField; | |
} | |
set | |
{ | |
this.modeField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAffectsAffectedStopPointAffectedModesMode | |
{ | |
private string vehicleModeField; | |
/// <remarks/> | |
public string VehicleMode | |
{ | |
get | |
{ | |
return this.vehicleModeField; | |
} | |
set | |
{ | |
this.vehicleModeField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAdvice | |
{ | |
private SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAdviceDetails detailsField; | |
/// <remarks/> | |
public SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAdviceDetails Details | |
{ | |
get | |
{ | |
return this.detailsField; | |
} | |
set | |
{ | |
this.detailsField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceAdviceDetails | |
{ | |
private string langField; | |
private string valueField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlAttributeAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://www.w3.org/XML/1998/namespace")] | |
public string lang | |
{ | |
get | |
{ | |
return this.langField; | |
} | |
set | |
{ | |
this.langField = value; | |
} | |
} | |
/// <remarks/> | |
[System.Xml.Serialization.XmlTextAttribute()] | |
public string Value | |
{ | |
get | |
{ | |
return this.valueField; | |
} | |
set | |
{ | |
this.valueField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceBlocking | |
{ | |
private bool journeyPlannerField; | |
/// <remarks/> | |
public bool JourneyPlanner | |
{ | |
get | |
{ | |
return this.journeyPlannerField; | |
} | |
set | |
{ | |
this.journeyPlannerField = value; | |
} | |
} | |
} | |
/// <remarks/> | |
[System.SerializableAttribute()] | |
[System.ComponentModel.DesignerCategoryAttribute("code")] | |
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://www.siri.org.uk/siri")] | |
public partial class SiriServiceDeliverySituationExchangeDeliveryPtSituationElementConsequenceDelays | |
{ | |
private string delayField; | |
/// <remarks/> | |
[System.Xml.Serialization.XmlElementAttribute(DataType = "duration")] | |
public string Delay | |
{ | |
get | |
{ | |
return this.delayField; | |
} | |
set | |
{ | |
this.delayField = value; | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment