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

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

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

    private final String to;

    public FcmUnicastMessage(FcmMessageOptions options, String to) {
        super(options);

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

        this.to = to;
    }

    @JsonProperty("to")
    public String getTo() {
        return to;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy