public void SetFallbackToken(UserId userId, Guid applicationId) { this.fallbackToken = null; this.FallbackUserId = userId; this.FallbackApplicationId = applicationId; this.RaisePropertyChanged("FallbackToken"); }
public TwitterEndpoint(TwitterToken owner, EndpointDefinition definition) { this.owner = owner; this.Definition = definition; this.RateLimit = new RateLimit(); }
public TokenViewModel(TwitterToken token) { this.Token = token; this.AppName = token.Application.Name; this.CompositeDisposable.Add(new PropertyChangedEventListener(token.Application) { { "Name", (sender, e) => this.AppName = token.Application.Name }, }); this.Endpoints = token.Endpoints.Select(kvp => new EndpointViewModel(kvp.Value)).ToList(); }