Skip to content

Commit 44db9c3

Browse files
Kevin JensenKevin Jensen
authored andcommitted
added totalSize to history container
1 parent 386cb4f commit 44db9c3

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

Source/Plex.ServerApi/PlexModels/Server/History/HistoryMediaContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ namespace Plex.ServerApi.PlexModels.Server.History
55

66
public class HistoryMediaContainer
77
{
8-
[JsonPropertyName("size")]
98
public int Size { get; set; }
9+
public int TotalSize { get; set; }
1010

1111
[JsonPropertyName("Metadata")]
1212
public List<HistoryMetadata> HistoryMetadata { get; set; }

Tests/Plex.Library.Test/Tests/ServerTest.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,19 @@ public async void Test_GetServerInfo()
3333
Assert.True(server.Size > 0);
3434
}
3535

36+
[Fact]
37+
public async void Test_GetPlayHistory()
38+
{
39+
var server = await this.plexServerClient.GetPlexServerInfo(this.config.AuthenticationKey,
40+
this.config.Host);
41+
42+
var history = await this.plexServerClient.GetPlayHistory(this.config.AuthenticationKey,
43+
this.config.Host);
44+
45+
46+
Assert.NotNull(server);
47+
Assert.True(server.Size > 0);
48+
}
49+
3650
}
3751
}

0 commit comments

Comments
 (0)