コード例 #1
0
    public string getAvailableTrips(string sourceId, string DestinationId, string DateOfJourny, int resultSetIndex)
    {
        try
        {
            var obj = new BusesViewModel();

            return obj.GetAvailableTrips(Convert.ToInt32(sourceId), Convert.ToInt32(DestinationId), DateOfJourny, Convert.ToInt16(resultSetIndex), ConsumerKey, ConsumerSecret).ToString();
            // return invokeGetRequest("api/availabletrips?source=" + sourceId + "&destination=" + DestinationId + "&doj=" + DateOfJourny + "&resultSetIndex=" + resultSetIndex + "&");
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
コード例 #2
0
 public DataSet getServiceDetails(string reservation_id, string dateofjourney)
 {
     dateofjourney = dateofjourney.Split('/')[2] + "-" + dateofjourney.Split('/')[1] + "-" + dateofjourney.Split('/')[0];
     BusesViewModel bitla = new BusesViewModel();
     DataSet ds = bitla.GetcallBack(reservation_id, baseUrl, ConsumerKey, ConsumerSecret, dateofjourney);
     return ds;
 }
コード例 #3
0
 public string blockTicket(BlockSeats requestString)
 {
     // return invokePostRequest("api/BlockTicket", requestString);
     var obj = new BusesViewModel();
     return obj.BlockTicket(requestString, ConsumerKey, ConsumerSecret);
 }
コード例 #4
0
 public string bookTicket(BlockSeats tentativeresponsekey)
 {
     // return invokePostRequest("api/BookTicket" , tentativeresponsekey);
     var obj = new BusesViewModel();
     return obj.BookTicket(tentativeresponsekey, ConsumerKey, ConsumerSecret);
 }
コード例 #5
0
 public string getTripDetails(string tripId, string sourceId, string destinationId, string SeatLayoutId, string markUpFare, string journeyDate, string providerName)
 {
     // return invokeGetRequest("api/TripDetails?tripId=" + tripId + "&source=" + sourceId + "&destination=" + destinationId + "&doj=" + journeyDate + "&provider=" + providerName + "&");
     var obj = new BusesViewModel();
     return obj.GetTripDetails(tripId, Convert.ToInt32(sourceId), Convert.ToInt32(destinationId), markUpFare, SeatLayoutId, journeyDate, providerName, ConsumerKey, ConsumerSecret).ToString();
 }