Exemplo n.º 1
0
 public Edition()
 {
     Overview = string.Empty;
     Images   = new List <MediaCover.MediaCover>();
     Links    = new List <Links>();
     Ratings  = new Ratings();
 }
Exemplo n.º 2
0
 public Book()
 {
     Links      = new List <Links>();
     Genres     = new List <string>();
     Ratings    = new Ratings();
     Author     = new Author();
     AddOptions = new AddBookOptions();
 }
Exemplo n.º 3
0
 public AuthorMetadata()
 {
     Images  = new List <MediaCover.MediaCover>();
     Genres  = new List <string>();
     Links   = new List <Links>();
     Aliases = new List <string>();
     Ratings = new Ratings();
 }
Exemplo n.º 4
0
 public override void UseMetadataFrom(AuthorMetadata other)
 {
     ForeignAuthorId = other.ForeignAuthorId;
     TitleSlug       = other.TitleSlug;
     Name            = other.Name;
     Aliases         = other.Aliases;
     Overview        = other.Overview.IsNullOrWhiteSpace() ? Overview : other.Overview;
     Disambiguation  = other.Disambiguation;
     Gender          = other.Gender;
     Hometown        = other.Hometown;
     Born            = other.Born;
     Died            = other.Died;
     Status          = other.Status;
     Images          = other.Images.Any() ? other.Images : Images;
     Links           = other.Links;
     Genres          = other.Genres;
     Ratings         = other.Ratings.Votes > 0 ? other.Ratings : Ratings;
 }