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

de.bytefish.fcmjava.requests.FcmMulticastMessage 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;

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

import java.util.List;

@JsonInclude(JsonInclude.Include.NON_NULL)
public abstract class FcmMulticastMessage extends FcmMessage {

    private final List registrationIds;

    public FcmMulticastMessage(FcmMessageOptions options, List registrationIds) {
        super(options);

        if(registrationIds == null) {
            throw new IllegalArgumentException("registrationIds");
        }

        this.registrationIds = registrationIds;
    }

    @JsonProperty("registration_ids")
    public List getRegistrationIds() {
        return registrationIds;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy