示例#1
0
        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);
                }
            });
        }
示例#2
0
 public void Set(TimelineRow row, List <TimelineRow> replyList)
 {
     Row = row;
     ReplyList.Clear();
     foreach (var i in replyList)
     {
         ReplyList.Add(i);
     }
 }
示例#3
0
 public TweetDetail(TimelineRow row)
 {
     Row       = row;
     ReplyList = new ObservableCollection <TimelineRow>();
 }