Esempio n. 1
0
        public static FeedItem GenerateSingleItem(bool isCurrent)
        {
            FeedUser owningUser = _defaultUsers[_random.Next(_defaultUsers.Count())];
            DateTime postedDate = GenerateProbableDate(isCurrent);
            bool didLike = _random.Next(1) == 1 ? true : false;
            string lorumText = GenerateLorum(_random.Next(1, _maxSentenceCount));
            List<FeedItemComment> comments = GenerateComments(isCurrent);

            FeedItem feedItem = new ObjectModel.FeedItem(
                id: _defaultData.Count,
                user: owningUser,
                posted: postedDate,
                text: lorumText,
                comments: comments,
                didLike: didLike);

            return feedItem;
        }
Esempio n. 2
0
 public VisualFeedItem(FeedItem feedItem)
 {
     _feedItem = feedItem;
 }
Esempio n. 3
0
 public void ReturnItem(FeedItem item)
 {
     // TODO: Real caching implementation. THIS IS A HACK
     //_currentPosition--;
 }