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

cn.leancloud.LCStatistic Maven / Gradle / Ivy

package cn.leancloud;

public class LCStatistic {
    private String statisticName = null;
    private double statisticValue = 0.0;
    private int version = 0;
    private LCUser user = null;
    private LCObject object = null;
    private String entity = null;

    /**
     * get name
     * @return name
     */
    public String getStatisticName() {
        return statisticName;
    }

    /**
     * get name
     * @return name
     */
    public String getName() {
        return getStatisticName();
    }

    /**
     * set name
     * @param statisticName name
     */
    public void setStatisticName(String statisticName) {
        this.statisticName = statisticName;
    }

    /**
     * get value
     * @return statistic value.
     */
    public double getStatisticValue() {
        return statisticValue;
    }
    /**
     * get value
     * @return statistic value.
     */
    public double getValue() {
        return getStatisticValue();
    }

    /**
     * set value
     * @param statisticValue value
     */
    public void setStatisticValue(double statisticValue) {
        this.statisticValue = statisticValue;
    }

    /**
     * get version
     * @return version number
     */
    public int getVersion() {
        return version;
    }

    /**
     * set version
     * @param version version number
     */
    public void setVersion(int version) {
        this.version = version;
    }

    /**
     * get target user(only valid for leaderboard which member type is _User)
     * @return LCUser instance, for object/entity leaderboard, the result is null.
     */
    public LCUser getUser() {
        return user;
    }

    public void setUser(LCUser user) {
        this.user = user;
    }

    /**
     * get target object(only valid for leaderboard which member type is LCObjct)
     * @return LCObject instance, for user/entity leaderboard, the result is null.
     */
    public LCObject getObject() {
        return object;
    }

    public void setObject(LCObject object) {
        this.object = object;
    }

    /**
     * get target entity id(only valid for leaderboard which member type is _Entity)
     * @return entity objectId, for user/object leaderboard, the result is null.
     */
    public String getEntity() {
        return entity;
    }

    public void setEntity(String entity) {
        this.entity = entity;
    }

    @Override
    public String toString() {
        return "LCStatistic{" +
                "statisticName='" + statisticName + '\'' +
                ", statisticValue=" + statisticValue +
                ", version=" + version +
                ", user=" + user +
                ", object=" + object +
                ", entity='" + entity + '\'' +
                '}';
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy