Ejemplo n.º 1
0
        public async Task FetchActiveCallRequestAsync()
        {
            var service  = new UserService();
            var request  = new BaseModel();
            var responce = await service.FetchCurrentCall(request);

            ActiveCallRequest = responce;
        }
Ejemplo n.º 2
0
        public async Task <FetchCurrentCallResponce> FetchCurrentCall(BaseModel requestModel)
        {
            var responce = new FetchCurrentCallResponce();

            try
            {
                responce = await Post <FetchCurrentCallResponce, BaseModel>(FetchCurrentCallUserAPI, requestModel);
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine(e.Message);
            }

            return(responce);
        }