io.github.yawenok.fcm.client.response.FcmMessageResultInfo 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 java.util.List;
public class FcmMessageResultInfo {
private final long multicastId;
private final int numberOfSuccess;
private final int numberOfFailure;
private final int numberOfCanonicalIds;
private final List results;
@JSONCreator
public FcmMessageResultInfo(@JSONField(name = "multicast_id") long multicastId,
@JSONField(name = "success") int numberOfSuccess,
@JSONField(name = "failure") int numberOfFailure,
@JSONField(name = "canonical_ids") int numberOfCanonicalIds,
@JSONField(name = "results") List results) {
this.multicastId = multicastId;
this.numberOfSuccess = numberOfSuccess;
this.numberOfFailure = numberOfFailure;
this.numberOfCanonicalIds = numberOfCanonicalIds;
this.results = results;
}
public long getMulticastId() {
return multicastId;
}
public int getNumberOfSuccess() {
return numberOfSuccess;
}
public int getNumberOfFailure() {
return numberOfFailure;
}
public int getNumberOfCanonicalIds() {
return numberOfCanonicalIds;
}
public List getResults() {
return results;
}
@Override
public String toString() {
return "FcmMessageResultInfo{" +
"multicastId=" + multicastId +
", numberOfSuccess=" + numberOfSuccess +
", numberOfFailure=" + numberOfFailure +
", numberOfCanonicalIds=" + numberOfCanonicalIds +
", results=" + results +
'}';
}
}