SubredditTraffic class

Contains Subreddit traffic information for a specific time slice. uniques is the number of unique visitors during the period, pageviews is the total number of page views during the period, and subscriptions is the total number of new subscriptions during the period. subscriptions is only non-zero for time slices the length of one day. All time slices are in UTC time and can be found in periodStart, with valid slices being either one hour, one day, or one month.

Constructors

SubredditTraffic(List<int> rawTraffic, {bool isDay = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
pageviews int
final
periodStart DateTime
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptions int
final
uniques int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parseTrafficResponse(Map response) Map<String, List<SubredditTraffic>>
Build a map of List<SubredditTraffic> given raw traffic response from the Reddit API.