示例#1
0
		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();
		}
示例#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();
		}