示例#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();
 }