ProfilesImplementation - justinludwig/ringtoggle GitHub Wiki

  1. summary Implementation details for profiles
  2. labels Phase-Implementation
See [issue13].

Schema

Profile

Represents a profile instance (like "Ring Only"). Columns:

  * id
  * label (text)

!ProfileSetting=

Represents an individual profile-instance setting (with a value other than no-change); for example, the "Ring Only" profile would have the following profile-setting rows:

  * id=12 (unq id), profile_id=5 (ring_only id), type=1 (audible_ringer), value=1 (on)
  * id=13, profile_id=5, type=2 (audible_notifications), value=1
  * id=14, profile_id=5, type=3 (vibrating_ringer), value=0 (off)
  * id=15, profile_id=5, type=4 (vibrating_notifications), value=0

Since "Ring Only" doesn't change any other settings (such as ringer-volume or ring-tone), it wouldn't have profile-setting rows for those other settings.

Columns:

  * id
  * profile_id
  * type (integer)
  * value
⚠️ **GitHub.com Fallback** ⚠️