private async void SoundCloudLogin() { try { _soundCloudSessionStatus = await SoundCloudHelper.LoginAsync(); switch (_soundCloudSessionStatus) { case SoundCloudSessionStatus.Connected: SoundCloudStatusText = AppResources.AccountConnectedStatusText; break; case SoundCloudSessionStatus.NotConnected: SoundCloudStatusText = AppResources.AccountDisconnectedStatusText; break; case SoundCloudSessionStatus.Unknown: SoundCloudStatusText = AppResources.AccountUnknownStatusText; break; } } catch { SkyDriveStatusText = AppResources.AccountErrorStatusText; } }
private async void GetSoundCloudSessionStatus() { try { IsSoundCloudButtonEnabled = false; _soundCloudSessionStatus = await SoundCloudHelper.GetSessionStatusAsync(); switch (_soundCloudSessionStatus) { case SoundCloudSessionStatus.Connected: SoundCloudStatusText = AppResources.AccountConnectedStatusText; break; case SoundCloudSessionStatus.NotConnected: SoundCloudStatusText = AppResources.AccountDisconnectedStatusText; break; case SoundCloudSessionStatus.Unknown: SoundCloudStatusText = AppResources.AccountUnknownStatusText; break; } } catch { SoundCloudStatusText = AppResources.AccountErrorStatusText; } finally { IsSoundCloudButtonEnabled = true; } }
private void SoundCloudLogout() { SoundCloudHelper.Logout(); _soundCloudSessionStatus = SoundCloudSessionStatus.NotConnected; SoundCloudStatusText = AppResources.AccountDisconnectedStatusText; }