All checks were successful
Deploy Promiscuity Auth API / deploy (push) Successful in 48s
Deploy Promiscuity Character API / deploy (push) Successful in 59s
Deploy Promiscuity Inventory API / deploy (push) Successful in 46s
Deploy Promiscuity Locations API / deploy (push) Successful in 1m0s
Deploy Promiscuity Mail API / deploy (push) Successful in 1m9s
k8s smoke test / test (push) Successful in 9s
36 lines
995 B
C#
36 lines
995 B
C#
using MongoDB.Bson;
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
namespace MailApi.Models;
|
|
|
|
public class MailMessage
|
|
{
|
|
[BsonId]
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
public string? Id { get; set; }
|
|
|
|
[BsonElement("senderCharacterId")]
|
|
public string SenderCharacterId { get; set; } = string.Empty;
|
|
|
|
[BsonElement("senderCharacterName")]
|
|
public string SenderCharacterName { get; set; } = string.Empty;
|
|
|
|
[BsonElement("recipientCharacterId")]
|
|
public string RecipientCharacterId { get; set; } = string.Empty;
|
|
|
|
[BsonElement("recipientCharacterName")]
|
|
public string RecipientCharacterName { get; set; } = string.Empty;
|
|
|
|
[BsonElement("subject")]
|
|
public string Subject { get; set; } = string.Empty;
|
|
|
|
[BsonElement("body")]
|
|
public string Body { get; set; } = string.Empty;
|
|
|
|
[BsonElement("createdUtc")]
|
|
public DateTime CreatedUtc { get; set; } = DateTime.UtcNow;
|
|
|
|
[BsonElement("readUtc")]
|
|
public DateTime? ReadUtc { get; set; }
|
|
}
|