public bool SendVoteRequest(VoteRequest request)
        {
            // send request
            request.SendRequestResult = true;

            SendPushNotification(request);

            return(request.SendRequestResult);
        }
        private async void SendPushNotification(VoteRequest request)
        {
            // send message
            string toast = "{\"aps\":{\"alert\":{\"title\" : \"Požadavek na hodnocení výuky\" }}}";

            foreach (string userHandle in request.UserToRequestIds)
            {
                await notifications.SendNotification(new Notification()
                {
                    Content  = toast,
                    Platform = MobilePlatform.apns,
                    Handle   = userHandle
                });
            }
        }