53 lines
1.2 KiB
C#
53 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Models
|
|
{
|
|
public abstract class GenericMessage
|
|
{
|
|
private User author;
|
|
private string description;
|
|
private string title;
|
|
private DateTime publishDate;
|
|
|
|
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 => author;
|
|
set => author = value;
|
|
}
|
|
public string Description
|
|
{
|
|
get => description;
|
|
set => description = value;
|
|
}
|
|
public string Title
|
|
{
|
|
get => title;
|
|
set => title = value;
|
|
}
|
|
public DateTime PublishDate
|
|
{
|
|
get => publishDate;
|
|
set => publishDate = value;
|
|
}
|
|
}
|
|
} |