CatStatus class
What the cat cam's /healthz says: its name, whether and when a cat was in view, and its visits.
Constructors
Properties
- clip → DateTime?
-
The arrival
/arrival.mp4shows; a clip is encoded a few seconds after its arrival.final -
clips
→ List<
DateTime> -
Every arrival whose clip
/arrival.mp4?t=still serves, newest first.final - hashCode → int
-
The hash code for this object.
no setterinherited
- hasLatestClip → bool
-
The clip is of the newest visit, not one before it still waiting to be replaced.
no setter
- inView → bool
-
final
- lastSeen → DateTime?
-
final
- name → String
-
final
-
recent
→ List<
CatVisit> -
The latest visits, newest first.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visits → int
-
Arrivals so far; each one replaces
/arrival.jpg.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromHealthz(
String body) → CatStatus? -
nullfor anything but a cat cam's/healthzanswer, so other hosts show nothing.