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

main.java.com.zerobounce.ZBActivityDataResponse Maven / Gradle / Ivy

package com.zerobounce;

import com.google.gson.annotations.SerializedName;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.Objects;

/**
 * The model used for the GET /activity request.
 */
public class ZBActivityDataResponse {

    @NotNull
    private Boolean found = false;

    @SerializedName("active_in_days")
    @Nullable
    private Integer activeInDays = null;

    public @NotNull Boolean getFound() {
        return found;
    }

    public void setFound(@NotNull Boolean found) {
        this.found = found;
    }

    public @Nullable Integer getActiveInDays() {
        return activeInDays;
    }

    public void setActiveInDays(@Nullable Integer activeInDays) {
        this.activeInDays = activeInDays;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ZBActivityDataResponse that = (ZBActivityDataResponse) o;
        return Objects.equals(found, that.found) && Objects.equals(activeInDays, that.activeInDays);
    }

    @Override
    public int hashCode() {
        return Objects.hash(found, activeInDays);
    }

    @Override
    public String toString() {
        return "ZBActivityData{" +
                "found=" + found +
                ", activeInDays='" + activeInDays + '\'' +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy