Esempio n. 1
0
        // Constructor containing the order ID to be sent
        DeactivateCouponRequest(string ID)
        {
            couponID = ID;

            Url = "https://dijkstras-steakhouse-restapi.herokuapp.com/coupons/" + couponID;

            UpdaterObject UO = new UpdaterObject();

            Body = new List <UpdaterObject>();
            Body.Add(UO);
        }
Esempio n. 2
0
        // Constructor containing menu items (order items) that need to be updated
        PutToPreparedRequest(string order_ID, List <MenuItems> toUpdate)
        {
            orderID = order_ID;

            UpdaterObject updaterObject = new UpdaterObject();

            foreach (MenuItems m in toUpdate)
            {
                updaterObject.value.Add(new SerializableOrderItem(orderID, m));
            }

            Body = new List <UpdaterObject>();
            Body.Add(updaterObject);
        }
Esempio n. 3
0
        // Constructor containing menu items (order items) that need to be updated
        UpdateOrderMenuItemsRequest(string ID, IList <OrderItem> toUpdate)
        {
            orderID = ID;

            Url = "https://dijkstras-steakhouse-restapi.herokuapp.com/orders/" + orderID;

            UpdaterObject UO = new UpdaterObject();

            foreach (OrderItem o in toUpdate)
            {
                UO.value.Add(new SerializableOrderItem(o));
            }

            Body = new List <UpdaterObject>();
            Body.Add(UO);
        }