Esempio n. 1
0
 private FeedItemMessageWithFeedInfo GetFeedItemMessageWithFeedInfo(Share.DataContracts.FeedItem f)
 {
     return(new FeedItemMessageWithFeedInfo
     {
         FeedItem = GetFeedItemMessage(f),
         FeedUri = f.FeedUri,
         FeedIconUri = f.FeedIconUri ?? string.Empty,
         FeedName = f.FeedName ?? string.Empty
     });
 }
Esempio n. 2
0
 private FeedItemMessage GetFeedItemMessage(Share.DataContracts.FeedItem f)
 {
     return(new FeedItemMessage
     {
         Id = f.Id,
         Content = f.Content ?? string.Empty,
         IsReaded = f.IsReaded,
         IsStared = f.IsStared,
         PermentLink = f.PermentLink ?? string.Empty,
         PubDate = Google.Protobuf.WellKnownTypes.Timestamp.FromDateTime(f.PubDate.ToUniversalTime()),
         Summary = f.Summary ?? string.Empty,
         Title = f.Title ?? string.Empty,
         TopicPictureUri = f.TopicPictureUri ?? string.Empty
     });
 }