Skip to content

Commit 86c5ddf

Browse files
authored
Merge pull request #88 from Ombrelin/master
New batch of type corrections
2 parents 929eceb + 49fcbc9 commit 86c5ddf

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Source/Plex.ServerApi/PlexModels/Server/Sessions/Part.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class Part
2121
public string Key { get; set; }
2222

2323
[JsonPropertyName("size")]
24-
public int Size { get; set; }
24+
public long Size { get; set; }
2525

2626
[JsonPropertyName("videoProfile")]
2727
public string VideoProfile { get; set; }

Source/Plex.ServerApi/PlexModels/Server/Sessions/SessionMetadata.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public class SessionMetadata
8585
public string ParentTitle { get; set; }
8686

8787
[JsonPropertyName("rating")]
88-
public string Rating { get; set; }
88+
public double Rating { get; set; }
8989

9090
[JsonPropertyName("studio")]
9191
public string Studio { get; set; }
@@ -118,7 +118,7 @@ public class SessionMetadata
118118
public long ViewOffset { get; set; }
119119

120120
[JsonPropertyName("year")]
121-
public string Year { get; set; }
121+
public int Year { get; set; }
122122

123123
[JsonPropertyName("Media")]
124124
public List<Medium> Media { get; set; }

Source/Plex.ServerApi/PlexModels/Server/Sessions/Stream.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class Stream
3232
public float FrameRate { get; set; }
3333

3434
[JsonPropertyName("hasScalingMatrix")]
35-
public string HasScalingMatrix { get; set; }
35+
public bool HasScalingMatrix { get; set; }
3636

3737
[JsonPropertyName("height")]
3838
public int Height { get; set; }
@@ -50,13 +50,13 @@ public class Stream
5050
public string LanguageCode { get; set; }
5151

5252
[JsonPropertyName("level")]
53-
public string Level { get; set; }
53+
public int Level { get; set; }
5454

5555
[JsonPropertyName("profile")]
5656
public string Profile { get; set; }
5757

5858
[JsonPropertyName("refFrames")]
59-
public string RefFrames { get; set; }
59+
public int RefFrames { get; set; }
6060

6161
[JsonPropertyName("scanType")]
6262
public string ScanType { get; set; }

0 commit comments

Comments
 (0)