Files
studenthousedashboard/StudentHouseDashboard/Models/GenericMessage.cs
2023-06-09 02:57:45 +02:00

46 lines
944 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
namespace Models
{
public abstract class GenericMessage
{
protected GenericMessage(int id, User author, string description, string title, DateTime publishDate)
{
ID = id;
Author = author;
Description = description;
Title = title;
PublishDate = publishDate;
}
protected GenericMessage()
{
}
public int ID
{
get; set;
}
public User Author
{
get;set;
}
public string Description
{
get;set;
}
[StringLength(255)]
public string Title
{
get;set;
}
public DateTime PublishDate
{
get; set;
}
}
}