Package com.iplateia.afplib
Class MatchState
-
- All Implemented Interfaces:
-
android.os.Parcelable
@Serializable() public final class MatchState implements Parcelable
Legacy diagnostic match history. Its TTL limits history retention only; activity eligibility belongs to the current continuous run in the activity coordinator. The parcel/JSON shape and duplicate-query helpers are retained for compatibility, not used as a recognition gate.
-
-
Constructor Summary
Constructors Constructor Description MatchState(List<MatchInfo> items, Long ttl)
-
Method Summary
Modifier and Type Method Description final List<MatchInfo>getItems()The list of match information. final LonggetTtl()The time to live for the match state in seconds. final MatchStateadd(MatchInfo material, Long currentTime)final BooleanisDuplicateLast(String name, Integer type, Long currentTime, String marker)Checks if the last match is a duplicate of the given match. final BooleanisDuplcateLast(String name, Integer type)-
-
Method Detail
-
add
final MatchState add(MatchInfo material, Long currentTime)
-
isDuplicateLast
final Boolean isDuplicateLast(String name, Integer type, Long currentTime, String marker)
Checks if the last match is a duplicate of the given match.
- Parameters:
name- The match name to compare with.type- The match type to compare with.- Returns:
True if the last match is a duplicate, false otherwise.
-
isDuplcateLast
@Deprecated(message = "Use isDuplicateLast") final Boolean isDuplcateLast(String name, Integer type)
-
-
-
-