2020-06-04 12:04:56 +00:00
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
2020-05-28 11:47:02 +00:00
|
|
|
namespace BuecherwurmAPI.Models
|
|
|
|
{
|
2020-06-04 12:04:56 +00:00
|
|
|
public class Magazin : IProduct
|
2020-05-28 11:47:02 +00:00
|
|
|
{
|
2020-06-04 12:04:56 +00:00
|
|
|
public long ProductId {get; set;}
|
2020-05-28 11:47:02 +00:00
|
|
|
public CategoryEnum Category {get; set;}
|
2020-06-04 12:04:56 +00:00
|
|
|
public long LendTime {get; set;}
|
|
|
|
public string Title {get; set;}
|
|
|
|
public long Run {get; set;}
|
|
|
|
public string Audience {get; set;}
|
|
|
|
public string Topic {get; set;}
|
|
|
|
public LendTypeEnum LendType {get; set;}
|
|
|
|
}
|
|
|
|
|
|
|
|
public class MagazinPost : IProductPost
|
|
|
|
{
|
|
|
|
public CategoryEnum Category {get; set;}
|
|
|
|
public long LendTime {get; set;}
|
|
|
|
public string Title {get; set;}
|
2020-05-28 11:47:02 +00:00
|
|
|
public string Run {get; set;}
|
|
|
|
public string Audience {get; set;}
|
|
|
|
public string Topic {get; set;}
|
|
|
|
public LendTypeEnum LendType {get; set;}
|
2020-06-04 12:04:56 +00:00
|
|
|
|
|
|
|
public MagazinPost()
|
|
|
|
{
|
|
|
|
LendType = LendTypeEnum.Physical;
|
|
|
|
LendTime = 2;
|
|
|
|
Category = CategoryEnum.Magazine;
|
|
|
|
}
|
2020-05-28 11:47:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|