mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-22 15:50:29 +00:00
46 lines
2.6 KiB
HTML
46 lines
2.6 KiB
HTML
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>GHRepositoryCloneTraffic.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">GitHub API for Java</a> > <a href="index.source.html" class="el_package">org.kohsuke.github</a> > <span class="el_source">GHRepositoryCloneTraffic.java</span></div><h1>GHRepositoryCloneTraffic.java</h1><pre class="source lang-java linenums">package org.kohsuke.github;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* Repository clone statistics.
|
|
*
|
|
* @see GHRepository#getCloneTraffic() GHRepository#getCloneTraffic()
|
|
*/
|
|
public class GHRepositoryCloneTraffic extends GHRepositoryTraffic {
|
|
private List<DailyInfo> clones;
|
|
|
|
<span class="fc" id="L13"> GHRepositoryCloneTraffic() {</span>
|
|
<span class="fc" id="L14"> }</span>
|
|
|
|
GHRepositoryCloneTraffic(Integer count, Integer uniques, List<DailyInfo> clones) {
|
|
<span class="fc" id="L17"> super(count, uniques);</span>
|
|
<span class="fc" id="L18"> this.clones = clones;</span>
|
|
<span class="fc" id="L19"> }</span>
|
|
|
|
/**
|
|
* Gets clones.
|
|
*
|
|
* @return the clones
|
|
*/
|
|
public List<DailyInfo> getClones() {
|
|
<span class="fc" id="L27"> return clones;</span>
|
|
}
|
|
|
|
public List<DailyInfo> getDailyInfo() {
|
|
<span class="fc" id="L31"> return getClones();</span>
|
|
}
|
|
|
|
/**
|
|
* The type DailyInfo.
|
|
*/
|
|
public static class DailyInfo extends GHRepositoryTraffic.DailyInfo {
|
|
<span class="fc" id="L38"> DailyInfo() {</span>
|
|
<span class="fc" id="L39"> }</span>
|
|
|
|
DailyInfo(String timestamp, int count, int uniques) {
|
|
<span class="fc" id="L42"> super(timestamp, count, uniques);</span>
|
|
<span class="fc" id="L43"> }</span>
|
|
}
|
|
}
|
|
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html> |