Package com.aurelienpierre.sioul
Class Calls.Screening
java.lang.Object
com.aurelienpierre.sioul.Calls.Screening
- Enclosing class:
Calls
The call screening, as a table of version 2 says it
(crates/sioul-core/src/screening.rs, `TablePart`): what becomes of a
number nobody knows, apart from do-not-disturb and every state.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) String"voicemail", "unknown".In national form ("0162").(package private) longA number called within this long counts as your contacts do (ms); 0: none.(package private) String(package private) String"always", "outside-work".(package private) String(package private) intThe longest prefix of either: how far a number is looked up.(package private) boolean(package private) String"voicemail", "work", "ring".(package private) String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanWhether a national number starts with one of these prefixes.(package private) static Calls.Screeningof(JSONObject json) As a table says it.private static intThe prefixes of an array kept (national form, digits from 0); the longest's length.(package private) booleanrings(boolean hiddenNumber, boolean workHours) Whether a number nobody knows, or a hidden one, rings by the screening alone, work or admin time then or not (screening.rs, `Screening::rings`): off, outside its hours, its rule.private static Stringword(JSONObject json, String key, String otherwise, String... known) A word of the table, when it is one of `known`; else `otherwise`.
-
Field Details
-
on
boolean on -
hours
"always", "outside-work". -
unknown
"voicemail", "work", "ring". -
automated
"voicemail", "unknown". -
impossible
-
unverified
-
calledMs
long calledMsA number called within this long counts as your contacts do (ms); 0: none. -
automatedPrefixes
In national form ("0162"). -
impossiblePrefixes
-
longest
int longestThe longest prefix of either: how far a number is looked up.
-
-
Constructor Details
-
Screening
-
-
Method Details
-
of
As a table says it. A word this Java does not know (a later Sioul's, after a downgrade), or a setting that is not one, never declines a call: whatever cannot be decided rings (review of part 2, 19 October 2026, F9). The screening on only when it says true, at hours it knows; a rule not known rings; a kind of spam not known goes as any number nobody knows. -
word
A word of the table, when it is one of `known`; else `otherwise`. -
prefixes
The prefixes of an array kept (national form, digits from 0); the longest's length. -
among
Whether a national number starts with one of these prefixes. -
rings
Whether a number nobody knows, or a hidden one, rings by the screening alone, work or admin time then or not (screening.rs, `Screening::rings`): off, outside its hours, its rule.
-