Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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;
            }
        }
Esempio n. 3
0
 private void SoundCloudLogout()
 {
     SoundCloudHelper.Logout();
     _soundCloudSessionStatus = SoundCloudSessionStatus.NotConnected;
     SoundCloudStatusText     = AppResources.AccountDisconnectedStatusText;
 }