Exemplo n.º 1
0
    public static string GetCitiesAgainstCountry(int countryId)
    {
        string url    = "http://alpha.24x7rooms.com/ws/index.php";
        string method = "POST";
        string data   = "action=getcity&country=" + countryId + "&gzip=no";
        SearchAPIController searchAPIController = new SearchAPIController(url, method, data);

        return(searchAPIController.GetResponse());
    }
Exemplo n.º 2
0
    public static string GetNationalityList()
    {
        string url    = "http://alpha.24x7rooms.com/ws/index.php";
        string method = "POST";
        string data   = "action=get_nationalities&gzip=no";
        SearchAPIController searchAPIController = new SearchAPIController(url, method, data);

        return(searchAPIController.GetResponse());
    }
Exemplo n.º 3
0
    public static string getHotelSearchResult(string cityId, string countryId, DateTime checkInDate, DateTime checkOutDate, string roomType, string nationality)
    {
        string url    = "http://alpha.24x7rooms.com/ws/index.php";
        string method = "POST";
        string data   = "action=hotel_search&checkin_date=" + checkInDate + "&checkout_date=" + checkOutDate + "&sel_country=" + countryId + "&sel_city=" + cityId + "&chk_ratings=3.0,4.0,5.0&sel_nationality=" + nationality + "&sel_currency=AED&availableonly=0&number_of_rooms=1&roomDetails=[{%22numberOfAdults%22:2}]&gzip=no&timeout=30&static_data=1&limit_hotel_room_type=";
        SearchAPIController searchAPIController = new SearchAPIController(url, method, data);

        return(searchAPIController.GetResponse());
    }