io.github.yawenok.apns.http2.Notification Maven / Gradle / Ivy
package io.github.yawenok.apns.http2;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.serializer.SerializerFeature;
import io.github.yawenok.apns.http2.enums.notification.DeliveryPriority;
public class Notification {
private Integer priority = DeliveryPriority.IMMEDIATE.getPriority();
private Integer expiration = 0;
private String topic;
private String token;
private String payload;
public Integer getExpiration() {
return expiration;
}
public void setExpiration(final Integer expiration) {
this.expiration = expiration;
}
public Integer getPriority() {
return priority;
}
public void setPriority(final Integer priority) {
this.priority = priority;
}
public String getTopic() {
return topic;
}
public void setTopic(final String topic) {
this.topic = topic;
}
public String getToken() {
return token;
}
public void setToken(final String token) {
this.token = token;
}
public String getPayload() {
return payload;
}
public void setPayload(final String payload) {
this.payload = payload;
}
@Override
public String toString() {
return JSON.toJSONString(this, SerializerFeature.DisableCircularReferenceDetect);
}
}