Esempio n. 1
0
 public PhotosToDownload(Post tumblrPost)
 {
     IndexInfo = new PostIndexInfo {
         BlogName = tumblrPost.Blog_name, PostId = tumblrPost.Id.ToString(), PostDate = tumblrPost.Date
     };
     ReblogKey  = string.IsNullOrEmpty(tumblrPost.Reblog_key) ? null : tumblrPost.Reblog_key;
     SourceBlog = string.IsNullOrEmpty(tumblrPost.Source_title) ? null : tumblrPost.Source_title;
     PostType   = tumblrPost.Type.ToString();
     Body       = tumblrPost.Body;
     Title      = tumblrPost.Title;
 }
Esempio n. 2
0
 public PhotosToDownload(PostEntity postEntity)
 {
     IndexInfo = new PostIndexInfo {
         BlogName = postEntity.PartitionKey, PostId = postEntity.RowKey, PostDate = postEntity.Date
     };
     ReblogKey  = string.IsNullOrEmpty(postEntity.ReblogKey) ? null : postEntity.ReblogKey;
     SourceBlog = string.IsNullOrEmpty(postEntity.SourceTitle) ? null : postEntity.SourceTitle;
     PostType   = postEntity.Type;
     Body       = postEntity.Body;
     Title      = postEntity.Title;
 }
Esempio n. 3
0
 public VideosToDownload(Post tumblrPost)
 {
     VideoType = tumblrPost.Video_type;
     Duration  = tumblrPost.Duration.HasValue ? tumblrPost.Duration.Value : 0;
     IndexInfo = new PostIndexInfo {
         BlogName = tumblrPost.Blog_name, PostId = tumblrPost.Id.ToString(), PostDate = tumblrPost.Date
     };
     ReblogKey  = string.IsNullOrEmpty(tumblrPost.Reblog_key) ? null : tumblrPost.Reblog_key;
     SourceBlog = string.IsNullOrEmpty(tumblrPost.Source_title) ? null : tumblrPost.Source_title;
     PostType   = tumblrPost.Type.ToString();
     Body       = tumblrPost.Body;
     Title      = tumblrPost.Title;
 }