2022-06-19 16:42:35 -05:00
|
|
|
using MongoDB.Bson;
|
|
|
|
|
using MongoDB.Bson.Serialization.Attributes;
|
|
|
|
|
|
|
|
|
|
namespace server.Models
|
|
|
|
|
{
|
|
|
|
|
public class Quote
|
|
|
|
|
{
|
2022-06-21 17:17:32 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// Identifier for the quote.
|
|
|
|
|
/// </summary>
|
2022-06-19 16:42:35 -05:00
|
|
|
[BsonId]
|
|
|
|
|
[BsonRepresentation(BsonType.ObjectId)]
|
|
|
|
|
public string? Id { get; set; }
|
|
|
|
|
|
2022-06-21 17:17:32 -05:00
|
|
|
/// <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; }
|
|
|
|
|
|
2022-06-21 17:17:32 -05:00
|
|
|
/// <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; }
|
|
|
|
|
|
2022-06-21 17:17:32 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// The quote text.
|
|
|
|
|
/// </summary>
|
2022-06-19 16:42:35 -05:00
|
|
|
[BsonElement("text")]
|
|
|
|
|
public string? Text { get; set; }
|
|
|
|
|
|
2022-06-21 17:17:32 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// The source of the quote.
|
|
|
|
|
/// </summary>
|
2022-06-19 16:42:35 -05:00
|
|
|
[BsonElement("source")]
|
|
|
|
|
public string? Source { get; set; }
|
|
|
|
|
|
2022-06-21 17:17:32 -05:00
|
|
|
/// <summary>
|
|
|
|
|
/// The narrator of the quote.
|
|
|
|
|
/// </summary>
|
2022-06-19 16:42:35 -05:00
|
|
|
[BsonElement("narrator")]
|
|
|
|
|
public string? Narrator { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|