Example #1
0
        public async Task <Response> RegisterDevice(WSDevice WSDevice)
        {
            Response response = new Response();

            if (XPlatform.IsThereInternet)
            {
                response = await WSMethods.Post(Constants.Url_Devices, WSDevice);

                return(response);
            }
            else
            {
                response.Result = Result.NETWORK_UNAVAILABLE;
            }
            return(response);
        }
        public async Task <Response> FormaxGetUserInfo(string Email)
        {
            Response response = new Response();

            if (XPlatform.IsThereInternet)
            {
                response = await WSMethods.Post(string.Format(Constants.Url_Formax_GetUserInfo, Email), null);

                return(response);
            }
            else
            {
                response.Result = Result.NETWORK_UNAVAILABLE;
            }
            return(response);
        }