private async Task DoRefreshMore()
{
//ページ指定をマイナス1に
if (_curTab != null)
{
TabModel tab;
if (!this._statuses.Tabs.TryGetValue(this._curTab.Text, out tab))
return;
switch (_statuses.Tabs[_curTab.Text].TabType)
{
case MyCommon.TabUsageType.Mentions:
await this.GetReplyAsync(loadMore: true);
break;
case MyCommon.TabUsageType.DirectMessage:
await this.GetDirectMessagesAsync(loadMore: true);
break;
case MyCommon.TabUsageType.Favorites:
await this.GetFavoritesAsync(loadMore: true);
break;
case MyCommon.TabUsageType.Profile:
//// TODO
break;
case MyCommon.TabUsageType.PublicSearch:
var searchTab = (PublicSearchTabModel)tab;
if (string.IsNullOrEmpty(searchTab.SearchWords)) return;
await this.GetPublicSearchAsync(searchTab, loadMore: true);
break;
case MyCommon.TabUsageType.UserTimeline:
await this.GetUserTimelineAsync((UserTimelineTabModel)tab, loadMore: true);
break;
case MyCommon.TabUsageType.Lists:
var listTab = (ListTimelineTabModel)tab;
if (listTab.ListInfo == null || listTab.ListInfo.Id == 0) return;
await this.GetListTimelineAsync(listTab, loadMore: true);
break;
default:
await this.GetHomeTimelineAsync(loadMore: true);
break;
}
}
else
{
await this.GetHomeTimelineAsync(loadMore: true);
}
}