Beispiel #1
0
        public Stream UpdateOAuthSetting(OAuthSetting oAuthSettingForm)
        {
            BaseBusinessService <OAuthSetting> businessService = (BaseBusinessService <OAuthSetting>)BusinessFactory.Create(Keywords.UpdateOAuthSetting);
            OperationResult result = businessService.Update(oAuthSettingForm);

            return(result.ToJsonStream());
        }
        public async Task <IUserModel> VerifyCredentialsAsync(OAuthSetting setting)
        {
            var oauth  = setting as CustomOAuthSetting;
            var tokens = Tokens.Create(oauth.ConsumerKey, oauth.ConsumerSecret, oauth.AccessToken, oauth.AccessTokenSecret);
            var user   = await tokens.Account.VerifyCredentialsAsync();

            return(new UserModel(user));
        }
        protected override void OnInitialize()
        {
            base.OnInitialize();

            var @base    = new BaseOAuthSetting();
            var customer = new CustomOAuthSetting();
            var twip     = new TwipOAuthSetting();

            Items = new ObservableCollection <OAuthSetting>();
            Items.Add(@base);
            Items.Add(customer);
            Items.Add(twip);

            SelectedItem = Items[0];
        }
 public Task <IUserModel> VerifyCredentialsAsync(OAuthSetting setting)
 {
     throw new NotImplementedException();
 }