public PredeterminedTextViewModel( IListableDataStore <Contact> contactsDataStore = null, IDataStore <Text> textsDataStore = null) { Title = "Texts"; this.contactDataStore = contactsDataStore ?? new ContactStore(); this.textDataStore = textsDataStore ?? new TextStore(); Task.Run(InitSettings); }
public EmergencyTextViewModel( IListableDataStore <Contact> contactsDataStore = null, IDataStore <Text> textsDataStore = null, IDataStore <bool> sendGPSStore = null) { Title = "Emergency Texts"; this.contactDataStore = contactsDataStore ?? new SOSContactStore(); this.textDataStore = textsDataStore ?? new SOSTextStore(); this.sendGPSStore = sendGPSStore ?? new SendGPSBoolStore(); Task.Run(InitSettings).Wait(); }