Ejemplo n.º 1
0
		public void SetFallbackToken(UserId userId, Guid applicationId)
		{
			this.fallbackToken = null;
			this.FallbackUserId = userId;
			this.FallbackApplicationId = applicationId;

			this.RaisePropertyChanged("FallbackToken");
		}
Ejemplo n.º 2
0
		public TwitterEndpoint(TwitterToken owner, EndpointDefinition definition)
		{
			this.owner = owner;
			this.Definition = definition;
			this.RateLimit = new RateLimit();
		}
Ejemplo n.º 3
0
		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();
		}