All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.bytefish.fcmjava.requests.notification.NotificationMulticastMessage Maven / Gradle / Ivy

// Copyright (c) Philipp Wagner. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

package de.bytefish.fcmjava.requests.notification;

import com.fasterxml.jackson.annotation.JsonProperty;
import de.bytefish.fcmjava.model.options.FcmMessageOptions;
import de.bytefish.fcmjava.requests.FcmMulticastMessage;

import java.util.List;

public class NotificationMulticastMessage extends FcmMulticastMessage {

    private final NotificationPayload notificationPayload;

    public NotificationMulticastMessage(FcmMessageOptions options, List registrationIds, NotificationPayload notificationPayload) {
        super(options, registrationIds);

        this.notificationPayload = notificationPayload;
    }

    @Override
    @JsonProperty("notification")
    public NotificationPayload getPayload() {
        return this.notificationPayload;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy