vassago/Models/Message.cs

32 lines
830 B
C#
Raw Normal View History

2023-06-01 00:03:23 -04:00
namespace vassago.Models;
using System;
2023-06-01 00:03:23 -04:00
using System.Collections.Generic;
2023-06-05 14:55:48 -04:00
using System.ComponentModel.DataAnnotations.Schema;
using System.Reflection;
2023-06-01 00:03:23 -04:00
using System.Threading.Tasks;
using Discord.WebSocket;
2023-06-01 00:03:23 -04:00
public class Message
{
2023-06-05 14:55:48 -04:00
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
2023-06-01 00:03:23 -04:00
public Guid Id { get; set; }
public string Protocol { get; set; }
public string ExternalId { get; set; }
2023-06-01 00:03:23 -04:00
public string Content { get; set; }
public bool MentionsMe { get; set; }
public DateTimeOffset Timestamp { get; set; }
public bool ActedOn { get; set; }
2023-06-05 14:55:48 -04:00
public List<Attachment> Attachments { get; set; }
2023-06-19 12:56:40 -04:00
public Account Author { get; set; }
2023-06-01 00:03:23 -04:00
public Channel Channel { get; set; }
2023-06-05 14:55:48 -04:00
2023-06-19 12:56:40 -04:00
2023-06-05 14:55:48 -04:00
[NonSerialized]
public Func<string, Task> Reply;
[NonSerialized]
public Func<string, Task> React;
2023-06-01 00:03:23 -04:00
}