File tree Expand file tree Collapse file tree
Source/Plex.ServerApi/PlexModels/Server/History
Tests/Plex.Library.Test/Tests Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ; }
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments