Files
criminalmindsapi/server/Models/Quote.cs
T

46 lines
1.1 KiB
C#
Raw Normal View History

2022-06-19 16:42:35 -05:00
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace server.Models
{
public class Quote
{
/// <summary>
/// Identifier for the quote.
/// </summary>
2022-06-19 16:42:35 -05:00
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
/// <summary>
/// The season number during which the quote was said.
/// </summary>
2022-06-19 16:42:35 -05:00
[BsonElement("season")]
public int? Season { get; set; }
/// <summary>
/// The episode number during which the quote was said.
/// </summary>
2022-06-19 16:42:35 -05:00
[BsonElement("episode")]
public int Episode { get; set; }
/// <summary>
/// The quote text.
/// </summary>
2022-06-19 16:42:35 -05:00
[BsonElement("text")]
public string? Text { get; set; }
/// <summary>
/// The source of the quote.
/// </summary>
2022-06-19 16:42:35 -05:00
[BsonElement("source")]
public string? Source { get; set; }
/// <summary>
/// The narrator of the quote.
/// </summary>
2022-06-19 16:42:35 -05:00
[BsonElement("narrator")]
public string? Narrator { get; set; }
}
}