public LoginController(IEventAggregator eventAggregator, IRegionManager regionManager, ILoginView view, ILinqApi api, ICredentialsStore store, IAsyncManager manager) { eventAggregator.GetEvent<InitialViewActivatedEvent>().Subscribe( DoLogin); this.region = regionManager.Regions[RegionNames.DialogRegion]; this.eventAggregator = eventAggregator; this.view = view; this.api = api; this.store = store; this.manager = manager; this.region.Add(this.view); this.username = store.Username; this.password = store.Password; this.view.DataContext = this; this.provideCredentialsCommand = new DelegateCommand<object>(this.ProvideCredentials, o => !(String.IsNullOrEmpty(this.Username) || String.IsNullOrEmpty(this.Password))); }
public Twitter(ILinqApi linqApi) { FriendsTimeLine = new TwitterQueryable<Status>(new TwitterQueryProvider(() => new TimelineQuery(linqApi.FriendsTimeLine))); MentionsTimeLine = new TwitterQueryable<Status>( new TwitterQueryProvider( () => new TimelineQuery(linqApi.MentionsTimeLine))); Users = new TwitterQueryable<IUser>( new TwitterQueryProvider(() => new TimelineQuery(linqApi.FriendsTimeLine))); }
public TwitterQuery( ILinqApi linqApi) { this._linqApi = linqApi; }