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

de.bytefish.fcmjava.requests.groups.DeviceGroupMessage Maven / Gradle / Ivy

There is a newer version: 2.5
Show newest version
// 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.groups;

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

import java.util.List;

public abstract class DeviceGroupMessage extends FcmMulticastMessage {

    private final String notificationKeyName;

    public DeviceGroupMessage(FcmMessageOptions options, List registrationIds, String notificationKeyName) {
        super(options, registrationIds);

        this.notificationKeyName = notificationKeyName;
    }

    @Override
    @JsonProperty("notification_key_name")
    public String getPayload() {
        return notificationKeyName;
    }

    @JsonProperty("operation")
    public abstract OperationEnum getOperation();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy