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

org.kohsuke.github.GHRepositoryViewTraffic Maven / Gradle / Ivy

There is a newer version: 2.0.0-alpha-2
Show newest version
package org.kohsuke.github;

import java.util.Collections;
import java.util.List;

// TODO: Auto-generated Javadoc
/**
 * Repository view statistics.
 *
 * @see GHRepository#getViewTraffic() GHRepository#getViewTraffic()
 */
public class GHRepositoryViewTraffic extends GHRepositoryTraffic {
    private List views;

    /**
     * Instantiates a new GH repository view traffic.
     */
    GHRepositoryViewTraffic() {
    }

    /**
     * Instantiates a new GH repository view traffic.
     *
     * @param count
     *            the count
     * @param uniques
     *            the uniques
     * @param views
     *            the views
     */
    GHRepositoryViewTraffic(int count, int uniques, List views) {
        super(count, uniques);
        this.views = views;
    }

    /**
     * Gets views.
     *
     * @return the views
     */
    public List getViews() {
        return Collections.unmodifiableList(views);
    }

    /**
     * Gets the daily info.
     *
     * @return the daily info
     */
    public List getDailyInfo() {
        return getViews();
    }

    /**
     * The type DailyInfo.
     */
    public static class DailyInfo extends GHRepositoryTraffic.DailyInfo {

        /**
         * Instantiates a new daily info.
         */
        DailyInfo() {
        }

        /**
         * Instantiates a new daily info.
         *
         * @param timestamp
         *            the timestamp
         * @param count
         *            the count
         * @param uniques
         *            the uniques
         */
        DailyInfo(String timestamp, int count, int uniques) {
            super(timestamp, count, uniques);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy