RatingHistoryInfo class
This class generate useful info from the raw rating points provided by the Lichess API.
Since this is not something that is not something that differs from implementations, it is included in this core library.
Constructors
-
RatingHistoryInfo(List<
List< points)int> > -
const
Properties
-
entries
→ List<
RatingHistoryEntry> -
Alias for parseRawPointsAsRatingHistoryEntries.
no setter
-
entriesByDateAscending
→ List<
RatingHistoryEntry> -
Alias for parseRawPointsAsRatingHistoryEntries.
no setter
-
entriesByDateDescending
→ List<
RatingHistoryEntry> -
Alias for parseRawPointsAsRatingHistoryEntries.
no setter
-
entriesByRatingAscending
→ List<
RatingHistoryEntry> -
Alias for parseRawPointsAsRatingHistoryEntries.
no setter
-
entriesByRatingDescending
→ List<
RatingHistoryEntry> -
Alias for parseRawPointsAsRatingHistoryEntries.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- highest → RatingHistoryEntry
-
Return the entry with the highest rating.
no setter
- highestRating → int
-
Return the highest rating present in this history.
no setter
- isEmpty → bool
-
no setter
- isValid → bool
-
Whether or not the points are following the pattern defined by the Lichess API.
no setter
- lowest → RatingHistoryEntry
-
Return the entry with the lowest rating.
no setter
- lowestRating → int
-
Return the lowest rating present in this history.
no setter
- newest → RatingHistoryEntry
-
Return the most recent entry present in this history.
no setter
- newestDate → DateTime
-
Return the most recent DateTime present in this history.
no setter
- oldest → RatingHistoryEntry
-
Return the oldest entry present in this history.
no setter
- oldestDate → DateTime
-
Return the oldest DateTime present in this history.
no setter
-
points
→ List<
List< int> > -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseRawPointsAsRatingHistoryEntries(
) → List< RatingHistoryEntry> - The RatingHistory of user consists in a array of points that per se is already a List that represents the user rating at a point in the time.
-
sortedBy(
{RatingHistorySortField field = RatingHistorySortField.date, SortDirection direction = SortDirection.descending}) → List< RatingHistoryEntry> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited