You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Model
|
|
{
|
|
public class Book
|
|
{
|
|
public string Id { get; set; }
|
|
public string Title { get; set; }
|
|
public List<string> Publishers { get; set; } = new List<string>();
|
|
public DateTime PublishDate { get; set; }
|
|
public string ISBN13 { get; set; }
|
|
public List<string> Series { get; set; } = new List<string>();
|
|
public int NbPages { get; set; }
|
|
public string Format { get; set; }
|
|
public Languages Language { get; set; }
|
|
public List<Contributor> Contributors { get; set; }
|
|
public string ImageSmall => $"https://covers.openlibrary.org/b/isbn/{ISBN13}-S.jpg";
|
|
public string ImageMedium => $"https://covers.openlibrary.org/b/isbn/{ISBN13}-M.jpg";
|
|
public string ImageLarge => $"https://covers.openlibrary.org/b/isbn/{ISBN13}-L.jpg";
|
|
public List<Work> Works { get; set; } = new List<Work>();
|
|
public List<Author> Authors { get; set; } = new List<Author>();
|
|
}
|
|
}
|