Exemplo n.º 1
0
        void SendRegistrationToAppServer(string token)
        {
            UserDeviceInfo model = new UserDeviceInfo();

            model.UserID   = Core.Common.GlobalClass.UserID;
            model.DeviceID = token;

            var result = RestSharpCall.Put <JsonResult>(model, "User/SetDeviceID?id=" + model.UserID);

            if (result.Success)
            {
                Log.Debug("RegistrationIntentService", "Success");
                return;
            }
        }