本文整理汇总了C#中StarryEyes.Anomaly.TwitterApi.DataModels.TwitterUser类的典型用法代码示例。如果您正苦于以下问题:C# TwitterUser类的具体用法?C# TwitterUser怎么用?C# TwitterUser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TwitterUser类属于StarryEyes.Anomaly.TwitterApi.DataModels命名空间,在下文中一共展示了TwitterUser类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NotifyRetweeted
public void NotifyRetweeted(TwitterUser source, TwitterStatus original, TwitterStatus retweet)
{
if (!_proxy.NotifyRetweeted(source, original, retweet) && this.Next != null)
{
this.Next.NotifyRetweeted(source, original, retweet);
}
}
示例2: NotifyUnblocked
public void NotifyUnblocked(TwitterUser source, TwitterUser target)
{
if (!_proxy.NotifyUnblocked(source, target) && this.Next != null)
{
this.Next.NotifyUnblocked(source, target);
}
}
示例3: NotifyUnfavorited
public void NotifyUnfavorited(TwitterUser source, TwitterStatus status)
{
if (!_proxy.NotifyUnfavorited(source, status) && this.Next != null)
{
this.Next.NotifyUnfavorited(source, status);
}
}
示例4: NotifyUnblocked
public void NotifyUnblocked(TwitterUser source, TwitterUser target)
{
if (Next != null)
{
Next.NotifyUnblocked(source, target);
}
}
示例5: NotifyRetweeted
public void NotifyRetweeted(TwitterUser source, TwitterStatus status)
{
if (Next != null)
{
Next.NotifyRetweeted(source, status);
}
}
示例6: NotifyFavorited
public void NotifyFavorited(TwitterUser source, TwitterStatus status)
{
if (!_proxy.NotifyFavorited(source, status))
{
Next?.NotifyFavorited(source, status);
}
}
示例7: NotifyRetweeted
public void NotifyRetweeted(TwitterUser source, TwitterStatus status)
{
if (_proxy.NotifyRetweeted(source, status) && this.Next != null)
{
this.Next.NotifyRetweeted(source, status);
}
}
示例8: NotifyUnmuted
public void NotifyUnmuted(TwitterUser source, TwitterUser target)
{
if (!_proxy.NotifyUnmuted(source, target))
{
Next?.NotifyUnmuted(source, target);
}
}
示例9: NotifyFollowed
public void NotifyFollowed(TwitterUser source, TwitterUser target)
{
if (_proxy.NotifyFollowed(source, target) && this.Next != null)
{
this.Next.NotifyFollowed(source, target);
}
}
示例10: NotifyRetweeted
public void NotifyRetweeted(TwitterUser source, TwitterStatus original, TwitterStatus retweet)
{
if (Setting.Accounts.Contains(source.Id) ||
Setting.Accounts.Contains(original.User.Id))
{
BackstageModel.RegisterEvent(new RetweetedEvent(source, original));
}
}
示例11: UserViewModel
public UserViewModel(TwitterUser user)
{
this.Model = UserModel.Get(user);
this.CompositeDisposable.Add(new CompositeDisposable(
new EventListener<Action<TimelineIconResolution>>(
h => Setting.IconResolution.ValueChanged += h,
h => Setting.IconResolution.ValueChanged -= h,
_ => this.RaisePropertyChanged(() => ProfileImageUriOptimized))));
}
示例12: RelationControlViewModel
public RelationControlViewModel(UserInfoViewModel parent, TwitterAccount source, TwitterUser target)
{
this._parent = parent;
this._source = source;
this._target = target;
var rds = source.RelationData;
this.IsFollowing = rds.IsFollowing(target.Id);
this.IsFollowedBack = rds.IsFollowedBy(target.Id);
this.IsBlocking = rds.IsBlocking(target.Id);
Task.Run(() => this.GetFriendship(rds));
}
示例13: BackstageAccountModel
public BackstageAccountModel(TwitterAccount account)
{
this._account = account;
this.UpdateConnectionState();
StoreHelper.GetUser(this._account.Id)
.Subscribe(
u =>
{
_user = u;
this.RaiseTwitterUserChanged();
},
ex => BackstageModel.RegisterEvent(
new OperationFailedEvent("アカウント情報を取得できません(@" + _account.UnreliableScreenName + ")", ex)));
}
示例14: BackstageAccountModel
public BackstageAccountModel(TwitterAccount account)
{
this._account = account;
this.UpdateConnectionState();
StoreHelper.GetUser(this._account.Id)
.Subscribe(
u =>
{
_user = u;
this.OnTwitterUserChanged();
},
ex => BackstageModel.RegisterEvent(
new OperationFailedEvent("Could not receive user account: " +
this._account.UnreliableScreenName +
" - " + ex.Message)));
}
示例15: TwitterList
public TwitterList(dynamic json)
{
Id = Int64.Parse(json.id_str);
User = new TwitterUser(json.user);
Name = json.name;
FullName = json.full_name;
Uri = new Uri(TwitterListUriPrefix + json.uri);
Slug = json.slug;
ListMode = String.Equals(json.mode, "public", StringComparison.InvariantCultureIgnoreCase)
? ListMode.Public
: ListMode.Private;
Description = json.description;
MemberCount = (long)json.member_count;
SubscriberCount = (long)json.subscriber_count;
CreatedAt = ((string)json.created_at).ParseDateTime(ParsingExtension.TwitterDateTimeFormat);
}