io.github.yawenok.fcm.client.request.FcmUnicastMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fcm-client Show documentation
Show all versions of fcm-client Show documentation
FCM client for java!Based on HttpAsyncClient.
The newest version!
package io.github.yawenok.fcm.client.request;
import com.alibaba.fastjson.annotation.JSONField;
import io.github.yawenok.fcm.client.options.FcmMessageOptions;
public class FcmUnicastMessage extends FcmMessage {
private final String to;
public FcmUnicastMessage(final FcmMessageOptions options, final String to, final Object data, final Object notification) {
super(options, data, notification);
if (to == null) {
throw new IllegalArgumentException("to is null!");
}
this.to = to;
}
@JSONField(name = "to")
public String getTo() {
return to;
}
}