public void Authenticate(BackendAuth auth) { Authenticate(auth.UserID, auth.Password); }
public static void Reset() { _current = null; FileHelper.DeleteFile(StoragePath); }
public void Save() { _current = this; File.WriteAllText(StoragePath, Json.Serialize(AsJson())); }
public static BackendAuth Load() { var json = (Dictionary<string, object>)Json.Deserialize(File.ReadAllText(StoragePath)); _current = FromJSON(json); return _current; }