Class Calls.Table

java.lang.Object
com.aurelienpierre.sioul.Calls.Table
Enclosing class:
Calls

static final class Calls.Table extends Object
The table as Rust wrote it (crates/sioul-core/src/calls.rs, `Table`).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final Set<String>
    Numbers that always ring: emergency numbers and callbacks; `people`, from an older table only (the do-not-disturb list's).
    (package private) long
     
    (package private) Calls.Press
    Expecting a call, version 2.
    (package private) final List<Calls.Frame>
     
    (package private) long
     
    (package private) final Map<String,String>
    Number keys → who: "safe", "neutral", "restricted", "blocked"; the people Always through, "always-" and their own state ("always-safe").
    (package private) final Map<String,String>
    A person's own row by each number it covers ("own-0"), read before their list's (decision 16).
    (package private) final Set<String>
     
    (package private) String
    Who a number in this phone's contacts is when the table does not know it.
    (package private) final List<String[]>
    The lists' prefixes ("+3346571") and who they make a number, the longest first.
    (package private) Calls.Region
     
    (package private) long
     
    (package private) Calls.Screening
    The call screening, version 2; null in a table of version 1.
    (package private) Calls.Press
    "Let every call through", version 1.
    (package private) final Set<String>
    Country codes whose numbers drop a written trunk "0" ("+33 06…").
    (package private) int
    Its shape: 1 or 2.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) String
    Who a prefix on your lists makes this number; null when none fits.
    (package private) Calls.Frame
    frameAt(long now)
    The frame `now` falls in; none before the first or past the last.
    (package private) static Calls.Table
    of(JSONObject json)
     
    private static void
    strings(JSONArray array, Set<String> into)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait