Prototype message model in MessageStorage plugin

This commit is contained in:
ChronosX88 2020-11-21 12:23:51 +04:00
parent d125c7a4e2
commit a489ff518e
Signed by: ChronosXYZ
GPG Key ID: 085A69A82C8C511A

View File

@ -1,7 +1,32 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace MessageStorage namespace MessageStorage
{ {
public class Message public class Message
{ {
public ObjectId Id { get; set; }
public string From { get; set; }
public string To { get; set; }
public string RoomId { get; set; }
public string Type { get; set; }
public long Timestamp { get; set; }
public string Content { get; set; }
public Media[] Media { get; set; }
public Reaction[] Reactions { get; set; }
[BsonExtraElements]
public BsonDocument OtherMetadata { get; set; }
}
public class Media
{
public string MimeType;
public string Url;
}
public class Reaction
{
public string ID { get; set; }
} }
} }