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

io.github.yawenok.fcm.client.response.FcmMessageResultInfo Maven / Gradle / Ivy

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 +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy