public NotificationRequestToMultipleUser(NotificationRequest push)
        {
            NotificationRequestData data = new NotificationRequestData()
            {
                title = push.Title,
                body  = push.Body,
            };

            this.registration_ids = push.To.ToArray();
            this.priority         = "normal";
            this.data             = data;
        }
예제 #2
0
        public NotificationRequestToTopic(NotificationRequest request, string to)
        {
            NotificationRequestData data = new NotificationRequestData()
            {
                title = request.Title,
                body  = request.Body,
            };

            this.to       = to;
            this.priority = "normal";
            this.data     = data;
        }