本文整理汇总了C#中StarryEyes.Anomaly.TwitterApi.DataModels.TwitterUser类的典型用法代码示例。如果您正苦于以下问题:C# TwitterUser类的具体用法?C# TwitterUser怎么用?C# TwitterUser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TwitterUser类属于StarryEyes.Anomaly.TwitterApi.DataModels命名空间,在下文中一共展示了TwitterUser类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
}
}
开发者ID:Kei-Nanigashi,项目名称:StarryEyes,代码行数:7,代码来源:NotificationProxyWrapper.cs
示例2: NotifyUnblocked
public void NotifyUnblocked(TwitterUser source, TwitterUser target)
{
if (!_proxy.NotifyUnblocked(source, target) && this.Next != null)
{
this.Next.NotifyUnblocked(source, target);
}
}
开发者ID:Kei-Nanigashi,项目名称:StarryEyes,代码行数:7,代码来源:NotificationProxyWrapper.cs
示例3: NotifyUnfavorited
public void NotifyUnfavorited(TwitterUser source, TwitterStatus status)
{
if (!_proxy.NotifyUnfavorited(source, status) && this.Next != null)
{
this.Next.NotifyUnfavorited(source, status);
}
}
开发者ID:Kei-Nanigashi,项目名称:StarryEyes,代码行数:7,代码来源:NotificationProxyWrapper.cs
示例4: NotifyUnblocked
public void NotifyUnblocked(TwitterUser source, TwitterUser target)
{
if (Next != null)
{
Next.NotifyUnblocked(source, target);
}
}
开发者ID:R4ndZ-Alice,项目名称:StarryEyes,代码行数:7,代码来源:NotificationProxy.cs
示例5: NotifyRetweeted
public void NotifyRetweeted(TwitterUser source, TwitterStatus status)
{
if (Next != null)
{
Next.NotifyRetweeted(source, status);
}
}
开发者ID:R4ndZ-Alice,项目名称:StarryEyes,代码行数:7,代码来源:NotificationProxy.cs
示例6: NotifyFavorited
public void NotifyFavorited(TwitterUser source, TwitterStatus status)
{
if (!_proxy.NotifyFavorited(source, status))
{
Next?.NotifyFavorited(source, status);
}
}
开发者ID:karno,项目名称:StarryEyes,代码行数:7,代码来源:NotificationProxyWrapper.cs
示例7: NotifyRetweeted
public void NotifyRetweeted(TwitterUser source, TwitterStatus status)
{
if (_proxy.NotifyRetweeted(source, status) && this.Next != null)
{
this.Next.NotifyRetweeted(source, status);
}
}
开发者ID:upsilon,项目名称:StarryEyes,代码行数:7,代码来源:NotificationProxyWrapper.cs
示例8: NotifyUnmuted
public void NotifyUnmuted(TwitterUser source, TwitterUser target)
{
if (!_proxy.NotifyUnmuted(source, target))
{
Next?.NotifyUnmuted(source, target);
}
}
开发者ID:karno,项目名称:StarryEyes,代码行数:7,代码来源:NotificationProxyWrapper.cs
示例9: NotifyFollowed
public void NotifyFollowed(TwitterUser source, TwitterUser target)
{
if (_proxy.NotifyFollowed(source, target) && this.Next != null)
{
this.Next.NotifyFollowed(source, target);
}
}
开发者ID:upsilon,项目名称:StarryEyes,代码行数:7,代码来源:NotificationProxyWrapper.cs
示例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));
}
}
开发者ID:karno,项目名称:StarryEyes,代码行数:8,代码来源:NotificationSink.cs
示例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))));
}
开发者ID:kb10uy,项目名称:StarryEyes,代码行数:9,代码来源:UserViewModel.cs
示例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));
}
开发者ID:hosiminn,项目名称:StarryEyes,代码行数:11,代码来源:RelationControlViewModel.cs
示例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)));
}
开发者ID:upsilon,项目名称:StarryEyes,代码行数:14,代码来源:BackstageAccountModel.cs
示例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)));
}
开发者ID:R4ndZ-Alice,项目名称:StarryEyes,代码行数:16,代码来源:BackstageAccountModel.cs
示例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);
}
开发者ID:Kei-Nanigashi,项目名称:StarryEyes,代码行数:16,代码来源:TwitterList.cs
示例16: 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(
BackstageResources.GetAccountInfoFailedFormat.SafeFormat(
"@" + _account.UnreliableScreenName),
ex)));
}
开发者ID:Mojopon,项目名称:StarryEyes,代码行数:16,代码来源:BackstageAccountModel.cs
示例17: BackstageAccountModel
public BackstageAccountModel(TwitterAccount account)
{
this._account = account;
this.UpdateConnectionState();
Task.Run(async () =>
{
try
{
_user = await StoreHelper.GetUserAsync(this._account.Id);
this.RaiseTwitterUserChanged();
}
catch (Exception ex)
{
BackstageModel.RegisterEvent(new OperationFailedEvent(
BackstageResources.GetAccountInfoFailedFormat.SafeFormat("@" + _account.UnreliableScreenName),
ex));
}
});
}
开发者ID:Kei-Nanigashi,项目名称:StarryEyes,代码行数:19,代码来源:BackstageAccountModel.cs
示例18: UnknownEvent
public UnknownEvent(TwitterUser source, string evstr)
: base(source, source)
{
_evstr = evstr;
}
开发者ID:Kei-Nanigashi,项目名称:StarryEyes,代码行数:5,代码来源:UnknownEvent.cs
示例19: AddRetweetedUser
public async void AddRetweetedUser(TwitterUser user)
{
if (Status.RetweetedOriginal != null)
{
var status = await Get(Status.RetweetedOriginal).ConfigureAwait(false);
status.AddRetweetedUser(user);
}
else
{
var added = false;
lock (_retweetedsLock)
{
if (!_retweetedUsersDic.ContainsKey(user.Id))
{
_retweetedUsersDic.Add(user.Id, user);
Status.RetweetedUsers = Status.RetweetedUsers.Guard()
.Append(user.Id)
.Distinct()
.ToArray();
added = true;
}
}
if (added)
{
_retweetedUsers.Add(user);
#pragma warning disable 4014
StatusProxy.AddRetweeter(Status.Id, user.Id);
StatusBroadcaster.Republish(this);
#pragma warning restore 4014
}
}
}
开发者ID:karno,项目名称:StarryEyes,代码行数:32,代码来源:StatusModel.cs
示例20: NotifyUserUpdated
public void NotifyUserUpdated(TwitterUser source)
{
// do nothing, currently.
}
开发者ID:karno,项目名称:StarryEyes,代码行数:4,代码来源:NotificationSink.cs
注:本文中的StarryEyes.Anomaly.TwitterApi.DataModels.TwitterUser类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论