Beispiel #1
0
 public static int GetUpdatedCount(string ListName, ISpecialTimeLine specialTime, string selectedStatus)
 {
     TimelineManagement.TimeLineType t = SpecialTimeLinesRepository.GetTimelineTypeFromSpecialType(ListName);
     
     string Constraints = null;
     if (specialTime != null) 
     {
         Constraints = specialTime.GetConstraints();
     }
     return LocalStorage.DataBaseUtility.CountItemsNewerThan(t, selectedStatus, Constraints);
 }
 public Library.status[] GetGroupedTimeLine(ISpecialTimeLine t, Yedda.Twitter.PagingMode pagingMode)
 {
     TimeLineType timeLineType = TimeLineType.Friends;
     if(t is SavedSearchTimeLine)
     {
         var savedLine = (SavedSearchTimeLine) t;
         if(!savedLine.autoUpdate)
         {
             return GetRegularSavedSearchTimeLine(savedLine, pagingMode);
         }
         timeLineType = TimeLineType.Searches;
     }
     return LocalStorage.DataBaseUtility.GetList(timeLineType, ClientSettings.MaxTweets, t.GetConstraints()).ToArray();
 }