Example #1
0
        public TakeResponse GetTakeInfos()
        {
            TakeResponse response = new TakeResponse();

            response.TaseInfos = BaseBLL <TakeBLL> .Instance.ShowTasteInfo();

            return(response);
        }
Example #2
0
        public TakeResponse GetTakeInfos(GetCartRequest request)
        {
            TakeResponse response = new TakeResponse();

            response.TaseInfos = BaseBLL <TakeBLL> .Instance.GetTakeInfos();

            response.State = true;
            return(response);
        }
Example #3
0
    private void Start()
    {
        gaze = (TakeResponse)FindObjectOfType(typeof(TakeResponse));
        cooldownRemaining = cooldown;
        VRGestureRecognizer.Current.NodHandler       += OnNod;
        VRGestureRecognizer.Current.HeadshakeHandler += OnHeadshake;

        isListening = true;
    }
Example #4
0
        public async Task <IActionResult> Post([FromBody] Take take, TakeResponse takeResponse)
        {
            var a = await this.takeDataProvider.TakeUser(take);

            if (a == 1)
            {
                takeResponse.message = "RecordSuccessfullyEntered";
                takeResponse.status  = 1;
            }
            else
            {
                takeResponse.message = "RecordEnteringUnsuccessful";
                takeResponse.status  = 0;
            }
            return(Ok(takeResponse));
        }