how to show seating layout in mvc view by using api? plese give me your valuable reponse here is my api
https://api.q-tickets.com/V2.0/GetSeatLayout?showtimeid=632123
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mangesh GPosted Jan 2, 2018, 5:35 AM
using System.Xml.Serialization;
using System.Collections.Generic;
namespace Xml2CSharp
{
[XmlRoot(ElementName="Class")]
public class Class {
[XmlAttribute(AttributeName="cost")]
public string Cost { get; set; }
[XmlAttribute(AttributeName="id")]
public string Id { get; set; }
[XmlAttribute(AttributeName="name")]
public string Name { get; set; }
[XmlAttribute(AttributeName="noOfRows")]
public string NoOfRows { get; set; }
[XmlElement(ElementName="Row")]
public List
}
[XmlRoot(ElementName="Classes")]
public class Classes {
[XmlAttribute(AttributeName="bookingFees")]
public string BookingFees { get; set; }
[XmlElement(ElementName="Class")]
public Class Class { get; set; }
[XmlAttribute(AttributeName="maxBooking")]
public string MaxBooking { get; set; }
[XmlAttribute(AttributeName="url")]
public string Url { get; set; }
}
[XmlRoot(ElementName="response")]
public class Response {
[XmlElement(ElementName="Classes")]
public Classes Classes { get; set; }
[XmlAttribute(AttributeName="status")]
public string Status { get; set; }
}
[XmlRoot(ElementName="Row")]
public class Row {
[XmlAttribute(AttributeName="AllSeats")]
public string AllSeats { get; set; }
[XmlAttribute(AttributeName="availableCount")]
public string AvailableCount { get; set; }
[XmlAttribute(AttributeName="Availableseats")]
public string Availableseats { get; set; }
[XmlAttribute(AttributeName="gangwayCounts")]
public string GangwayCounts { get; set; }
[XmlAttribute(AttributeName="gangwaySeats")]
public string GangwaySeats { get; set; }
[XmlAttribute(AttributeName="isFamily")]
public string IsFamily { get; set; }
[XmlAttribute(AttributeName="isGangway")]
public string IsGangway { get; set; }
[XmlAttribute(AttributeName="isInitialGangway")]
public string IsInitialGangway { get; set; }
[XmlAttribute(AttributeName="isInitialGangwayCount")]
public string IsInitialGangwayCount { get; set; }
[XmlAttribute(AttributeName="letter")]
public string Letter { get; set; }
[XmlAttribute(AttributeName="noOfSeats")]
public string NoOfSeats { get; set; }
}
}