Class HomeCardToday.Lines

java.lang.Object
com.aurelienpierre.sioul.HomeCardToday.Lines
Enclosing class:
HomeCardToday

static final class HomeCardToday.Lines extends Object
What the full card says now, and when that changes next: the pure part.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) String
     
    (package private) final List<HomeCardToday.Cell>
    The days after today, seven at most.
    (package private) final List<HomeCardToday.Cell>
     
    (package private) long
    When to draw again (Unix ms); never: Long.MAX_VALUE.
    (package private) HomeCardToday.Cell
    The weather now; none: no weather part.
    (package private) final String[]
    Where a tap on each line leads (HomeCardOpener's address); "" opens Sioul as its icon does.
    (package private) final List<HomeCardToday.Cell>
     
    (package private) final String[]
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static void
    add(List<HomeCardToday.Cell> cells, JSONArray slots, int most)
     
    private void
    age(JSONObject card, long now)
    "at 14:05" once the card is a quarter of an hour old.
    private void
    calls(JSONArray all, JSONArray listed)
    The calls declined the frame lists, in the Porch's words.
    private void
    code(JSONArray codes, long now)
    The newest code still valid; the next to expire, the next drawing.
    private void
    doses(JSONArray doses, long now)
    The doses due now, in one line: each as Rust said it while it is known not marked elsewhere, then with "check before taking it".
    (package private) static HomeCardToday.Lines
    of(JSONObject card, long now)
    The lines for `now`: today's, then the frame's (the Porch's, Now's).
    private void
    overlap(JSONArray overlaps, long now)
    Two events at once, on their day until both are over.
    private void
    reminders(JSONArray all, JSONArray shown, long now)
    The reminders the frame shows, each from its time while it makes sense; the same words once.
    private boolean
    said(int first, int count, String line)
    Whether one of the first `count` lines from `first` says `line` already.
    private void
    soon(long at, long now)
     
    private void
    today(JSONObject today, long now)
    The date, then the weather: the hour under way's, and the days after today.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • Method Details

    • soon

      private void soon(long at, long now)
    • of

      static HomeCardToday.Lines of(JSONObject card, long now)
      The lines for `now`: today's, then the frame's (the Porch's, Now's). A card an older Sioul wrote (version 2) has no today and no reminders: its other lines show; none at all, Java's own words.
    • today

      private void today(JSONObject today, long now)
      The date, then the weather: the hour under way's, and the days after today.
    • add

      private static void add(List<HomeCardToday.Cell> cells, JSONArray slots, int most)
    • code

      private void code(JSONArray codes, long now)
      The newest code still valid; the next to expire, the next drawing.
    • doses

      private void doses(JSONArray doses, long now)
      The doses due now, in one line: each as Rust said it while it is known not marked elsewhere, then with "check before taking it". Never more.
    • reminders

      private void reminders(JSONArray all, JSONArray shown, long now)
      The reminders the frame shows, each from its time while it makes sense; the same words once.
    • said

      private boolean said(int first, int count, String line)
      Whether one of the first `count` lines from `first` says `line` already.
    • calls

      private void calls(JSONArray all, JSONArray listed)
      The calls declined the frame lists, in the Porch's words.
    • overlap

      private void overlap(JSONArray overlaps, long now)
      Two events at once, on their day until both are over.
    • age

      private void age(JSONObject card, long now)
      "at 14:05" once the card is a quarter of an hour old.