File tree Expand file tree Collapse file tree
src/main/java/org/kohsuke/github Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import java .util .Date ;
44import java .util .List ;
55
6- public abstract class GHRepositoryTrafficInfo {
6+ public abstract class GHRepositoryTrafficInfo implements TrafficInfo {
77 private int count ;
88 private int uniques ;
99
@@ -25,7 +25,7 @@ public int getUniques() {
2525
2626 public abstract List <? extends DayInfo > getDailyInfo ();
2727
28- public static abstract class DayInfo {
28+ public static abstract class DayInfo implements TrafficInfo {
2929 private Date timestamp ;
3030 private int count ;
3131 private int uniques ;
Original file line number Diff line number Diff line change 1+ package org .kohsuke .github ;
2+
3+ /**
4+ * @author Kohsuke Kawaguchi
5+ */
6+ public interface TrafficInfo {
7+ /**
8+ * Total count of hits.
9+ */
10+ int getCount ();
11+
12+ /**
13+ * Unique visitors.
14+ */
15+ int getUniques ();
16+ }
You can’t perform that action at this time.
0 commit comments