Ejemplo n.º 1
0
        public static DataEntities.HasDrivers GetStoresDriverStatus(int storeID)
        {
            string url = $"https://tracker.dominos.com/tracker-presentation-service/status?storeId={storeID}";

            string html = WebRequestor.GetRequest(url);

            return(Newtonsoft.Json.JsonConvert.DeserializeObject <DataEntities.HasDrivers>(html));
        }
Ejemplo n.º 2
0
        public static DataEntities.StoreProfile GetStoreProfile(int storeID)
        {
            string url = $"https://order.dominos.com/power/store/{storeID}/profile";

            string html = WebRequestor.GetRequest(url);

            return(Newtonsoft.Json.JsonConvert.DeserializeObject <DataEntities.StoreProfile>(html));
        }
Ejemplo n.º 3
0
        public static DataEntities.Menu GetStoreMenu(int storeID)
        {
            string url = $"https://order.dominos.com/power/store/{storeID}/menu?structured=true&lang=en";

            string html = WebRequestor.GetRequest(url);

            return(Newtonsoft.Json.JsonConvert.DeserializeObject <DataEntities.Menu>(html));
        }
Ejemplo n.º 4
0
        public static DataEntities.OrderResponse GetPriceOfOrder(DataEntities.OrderRequest order)
        {
            string url = $"https://order.dominos.com/power/price-order";

            string html = WebRequestor.PostRequest(url, Newtonsoft.Json.JsonConvert.SerializeObject(order));

            return(Newtonsoft.Json.JsonConvert.DeserializeObject <DataEntities.OrderResponse>(html));
        }
Ejemplo n.º 5
0
        public static DataEntities.StoreLocator GetNearbyStores(string zipCode, DataEntities.StoreLocator.Type?type)
        {
            string strType = "";

            switch (type)
            {
            case DataEntities.StoreLocator.Type.Delivery:
                strType = "Delivery";
                break;

            case DataEntities.StoreLocator.Type.CarryOut:
                strType = "Carryout";
                break;
            }

            string url = $"https://order.dominos.com/power/store-locator?s={zipCode}&type={strType}";

            string html = WebRequestor.GetRequest(url);

            return(Newtonsoft.Json.JsonConvert.DeserializeObject <DataEntities.StoreLocator>(html));
        }