public virtual async Task GetStreamDelete(TweetDelete delete) { RowBase row = null; await Task.Run(() => { foreach (var t in TimeLine) { if (t is TimelineRow) { TimelineRow tr = (t as TimelineRow); if (tr.Tweet.id_str == delete.status.id_str) { row = tr; } } else if (t is DirectMessageRow) { DirectMessageRow tr = (t as DirectMessageRow); if (tr.DirectMessage.id_str == delete.status.id_str) { row = tr; } } } }); await SharedDispatcher.RunAsync(() => { if (row != null) { TimeLine.Remove(row); } }); }
public void Set(TimelineRow row, List <TimelineRow> replyList) { Row = row; ReplyList.Clear(); foreach (var i in replyList) { ReplyList.Add(i); } }
public TweetDetail(TimelineRow row) { Row = row; ReplyList = new ObservableCollection <TimelineRow>(); }