io.github.yawenok.fcm.client.response.FcmMessageResultItem 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.response;
import com.alibaba.fastjson.annotation.JSONCreator;
import com.alibaba.fastjson.annotation.JSONField;
import io.github.yawenok.fcm.client.enums.ErrorCode;
public class FcmMessageResultItem {
private final String messageId;
private final String registrationId;
private final ErrorCode errorCode;
@JSONCreator
public FcmMessageResultItem(@JSONField(name = "message_id") String messageId,
@JSONField(name = "registration_id") String registrationId,
@JSONField(name = "error") ErrorCode errorCode) {
this.messageId = messageId;
this.registrationId = registrationId;
this.errorCode = errorCode;
}
public String getMessageId() {
return messageId;
}
public String getRegistrationId() {
return registrationId;
}
public ErrorCode getErrorCode() {
return errorCode;
}
@Override
public String toString() {
return "FcmMessageResultItem{" +
"messageId='" + messageId + '\'' +
", registrationId='" + registrationId + '\'' +
", errorCode=" + errorCode +
'}';
}
}