de.bytefish.fcmjava.requests.groups.RemoveDeviceGroupMessage 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.groups;
import com.fasterxml.jackson.annotation.JsonProperty;
import de.bytefish.fcmjava.model.options.FcmMessageOptions;
import de.bytefish.fcmjava.model.enums.OperationEnum;
import java.util.List;
public class RemoveDeviceGroupMessage extends DeviceGroupMessage{
private final String notificationKey;
public RemoveDeviceGroupMessage(FcmMessageOptions options, List registrationIds, String notificationKeyName, String notificationKey) {
super(options, registrationIds, notificationKeyName);
this.notificationKey = notificationKey;
}
@Override
public OperationEnum getOperation() {
return OperationEnum.Remove;
}
@JsonProperty("notification_key")
public String getNotificationKey() {
return this.notificationKey;
}
}