Пример #1
0
        // Constructor containing the employee ID and tip amount to be sent
        PostTipRequest(string ID, double amt)
        {
            Url = "https://dijkstras-steakhouse-restapi.herokuapp.com/tips";

            TipObject t = new TipObject();

            t.employee_id = ID;
            t.tip_amount  = amt;

            Body = t;
        }
Пример #2
0
        private void SetupTip()
        {
            var tipGrabber = TipObject.GetComponent <ScrewdriverTip>();

            if (tipGrabber == null)
            {
                var screwGrabber = TipObject.AddComponent <ScrewdriverTip>();



                tipGrabber = screwGrabber;
            }
            this._tip = tipGrabber;
        }