41 lines
897 B
C#
41 lines
897 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace StudentHouseDashboard.Models
|
|
{
|
|
public class Announcement : GenericMessage, IVotable
|
|
{
|
|
public Announcement(User author, string description, string title, DateTime publishDate, bool isImportant, bool isSticky) : base(author, description, title, publishDate)
|
|
{
|
|
IsImportant = isImportant;
|
|
IsSticky = isSticky;
|
|
}
|
|
|
|
public List<Comment> Comments
|
|
{
|
|
get;set;
|
|
}
|
|
|
|
public bool IsImportant
|
|
{
|
|
get;set;
|
|
}
|
|
|
|
public bool IsSticky
|
|
{
|
|
get; set;
|
|
}
|
|
|
|
public void DownVote()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public void UpVote()
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
}
|
|
} |