testade calibre
This commit is contained in:
27
Server/ViewModels/BookVm.cs
Normal file
27
Server/ViewModels/BookVm.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using Bibblan.Models;
|
||||
|
||||
namespace Bibblan.ViewModels
|
||||
{
|
||||
public class BookVm
|
||||
{
|
||||
public long Id { get; set; }
|
||||
public string Title { get; set; }
|
||||
public string Author { get; set; }
|
||||
public long AuthorId { get; set; }
|
||||
public string Comments { get; set; }
|
||||
public string Language { get; set; }
|
||||
public string Path { get; set; }
|
||||
public List<DataVm> Formats { get; set; }
|
||||
public bool HasCover { get; set; }
|
||||
public string SeriesName { get; set; }
|
||||
public double SeriesNumber { get; set; }
|
||||
|
||||
public string TitleAndSeries
|
||||
{
|
||||
get
|
||||
{
|
||||
return Title + (!string.IsNullOrWhiteSpace(SeriesName) ? $" ({SeriesName + (SeriesNumber > 0 ? $" {SeriesNumber:##}" : string.Empty)})" : string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user