BuecherwurmAPI/Models/Magazin.cs

37 lines
997 B
C#
Raw Normal View History

using System.ComponentModel.DataAnnotations;
2020-05-28 11:47:02 +00:00
namespace BuecherwurmAPI.Models
{
public class Magazin : IProduct
2020-05-28 11:47:02 +00:00
{
public long ProductId {get; set;}
2020-05-28 11:47:02 +00:00
public CategoryEnum Category {get; set;}
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;}
public MagazinPost()
{
LendType = LendTypeEnum.Physical;
LendTime = 2;
Category = CategoryEnum.Magazine;
}
2020-05-28 11:47:02 +00:00
}
}