﻿using System;

namespace RpgRooms
{
    public interface IPost
    {
        string AuthorAlias { get; }
        int AuthorId { get; }
        string AvatarUrl { get; }
        int Id { get; }
        int RoomId { get; }
        string Source { get; }
        string Text { get; }
        DateTimeOffset Timestamp { get; }
        string Type { get; }
    }

    public class Post : IPost
    {
        public string AvatarUrl { get; set; }
        public int Id { get; set; }
        public int RoomId { get; set; }
        public string AuthorAlias { get; set; }
        public int AuthorId { get; set; }
        public string Source { get; set; }
        public string Text { get; set; }
        public DateTimeOffset Timestamp { get; set; }
        public string Type { get; set; }
    }
}