Пример #1
0
 /// <summary>
 /// Saves current playing channel to local storage.
 /// </summary>
 public void SaveCurrentChannel()
 {
     StorageManager.SaveLastChannel(CurrentChannel);
 }
Пример #2
0
 /// <summary>
 /// Loads last time played channel from local storage.
 /// </summary>
 /// <remarks>
 /// If no saved channel, a default channel will be applied.
 /// </remarks>
 public void LoadLastChannel()
 {
     CurrentChannel = StorageManager.LoadLastChannel();
 }
Пример #3
0
 /// <summary>
 /// Removes saved last time played channel if exists.
 /// </summary>
 public void ClearLastChannel()
 {
     StorageManager.ClearLastChannel();
 }
Пример #4
0
 /// <summary>
 /// Signs out and remove saved user status if exists.
 /// </summary>
 public void Logout()
 {
     _status = null;
     StorageManager.ClearUserStatus();
 }