Пример #1
0
 public Book Map(MarvelSharp.Model.Comic source)
 {
     return(new Book
     {
         ImageUrl = source.GetImageUrl(),
         ReadUrl = source.GetReaderUrl(),
         SourceItemID = source.Id,
         Creators = source.GetCreators(),
         OnSaleDate = source.GetOnSaleDate(),
         Title = source.Title,
         Number = source.IssueNumber
     });
 }
Пример #2
0
 public BookUpdate MapToUpdate(MarvelSharp.Model.Comic source)
 {
     return(new BookUpdate
     {
         ImageUrl = source.GetImageUrl().Secure(),
         ReadUrl = source.GetReaderUrl().Secure(),
         SourceItemID = source.Id,
         Creators = source.GetCreators(),
         OnSaleDate = source.GetOnSaleDate(),
         Title = source.Title,
         Number = source.IssueNumber,
         BookTypeName = "Issues"
     });
 }