-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathOLBookshelvesData.cs
28 lines (27 loc) · 994 Bytes
/
OLBookshelvesData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
using Newtonsoft.Json;
using CodeGeneration_Attributes;
namespace OpenLibraryNET.Data
{
/// <summary>
/// Holds data about a <see cref="OLWorkData"/>'s bookshelves.
/// </summary>
[CollectionValueEquality]
public sealed partial record OLBookshelvesData : OLContainer
{
/// <summary>
/// The amount of accounts that marked the corresponding work as "Want to read".
/// </summary>
[JsonProperty("want_to_read")]
public int WantToRead { get; init; } = -1;
/// <summary>
/// The amount of accounts that marked the corresponding work as "Currently reading".
/// </summary>
[JsonProperty("currently_reading")]
public int CurrentlyReading { get; init; } = -1;
/// <summary>
/// The amount of accounts that marked the corresponding work as "Already read".
/// </summary>
[JsonProperty("already_read")]
public int AlreadyRead { get; init; } = -1;
}
}