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