示例#1
0
 private static BlogPost BuildBlogPostFromRow(GoogleSheetRow r)
 {
     return(new BlogPost()
     {
         Title = r.Item(0),
         Mission = r.Item(3),
         TargetPublicationDate = r.ItemAsDate(4)
     });
 }
示例#2
0
 private BlogPost MakePostFromGoogleSheetRow(GoogleSheetRow row)
 {
     return(new BlogPost()
     {
         Blog = new Blog()
         {
             CompanyName = row.Item(0)
         },
         Title = row.Item(1),
         Mission = row.Item(4),
         Author = new Author()
         {
             FirstName = row.Item(5)
         },
         DraftDate = row.ItemAsDate(6),
         TargetFinalizeDate = row.ItemAsDate(7),
         TargetPublicationDate = row.ItemAsDate(8),
         Keyword = row.Item(9),
         IsApproved = row.ItemAsBool(17),
         IsDoublePost = row.ItemAsBool(18)
     });
 }