Exemple #1
0
 public bool HasContactDefaults()
 {
     return(Raw.ContainsKey(CONTACT_FNAME) ||
            Raw.ContainsKey(CONTACT_LNAME) ||
            Raw.ContainsKey(CONTACT_EMAIL) ||
            Raw.ContainsKey(CONTACT_COMPANY) ||
            Raw.ContainsKey(CONTACT_PHONE));
 }
Exemple #2
0
 protected string GetValue(string key)
 {
     if (Raw.ContainsKey(key))
     {
         return(Raw[key]);
     }
     else
     {
         return(null);
     }
 }
Exemple #3
0
 /// <summary>
 /// Shorthand method for ContainsKey call
 /// </summary>
 /// <param name="id">Id of data object</param>
 /// <returns>Data object</returns>
 public bool Has(int id)
 {
     return(Raw?.ContainsKey(id) ?? false);
 }