Skip to content

Commit

Permalink
Merge pull request #85 from Ombrelin/fix-get-sessions
Browse files Browse the repository at this point in the history
More fixes GetSessions & GetTranscodeSessions
  • Loading branch information
jensenkd committed Sep 29, 2022
2 parents 7557106 + 9816071 commit 929eceb
Show file tree
Hide file tree
Showing 7 changed files with 40 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class TranscodeSession
public bool Complete { get; set; }

[JsonPropertyName("progress")]
public string Progress { get; set; }
public double Progress { get; set; }

[JsonPropertyName("size")]
public int Size { get; set; }
Expand Down
12 changes: 6 additions & 6 deletions Source/Plex.ServerApi/PlexModels/Server/Sessions/Medium.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ public class Medium
public string AspectRatio { get; set; }

[JsonPropertyName("audioChannels")]
public string AudioChannels { get; set; }
public int AudioChannels { get; set; }

[JsonPropertyName("audioCodec")]
public string AudioCodec { get; set; }

[JsonPropertyName("bitrate")]
public string Bitrate { get; set; }
public int Bitrate { get; set; }

[JsonPropertyName("container")]
public string Container { get; set; }

[JsonPropertyName("duration")]
public string Duration { get; set; }
public int Duration { get; set; }

[JsonPropertyName("height")]
public string Height { get; set; }
public int Height { get; set; }

[JsonPropertyName("id")]
public string Id { get; set; }
Expand All @@ -42,7 +42,7 @@ public class Medium
public string VideoResolution { get; set; }

[JsonPropertyName("width")]
public string Width { get; set; }
public int Width { get; set; }

[JsonPropertyName("selected")]
public bool Selected { get; set; }
Expand All @@ -54,7 +54,7 @@ public class Medium
public string AudioProfile { get; set; }

[JsonPropertyName("optimizedForStreaming")]
public string OptimizedForStreaming { get; set; }
public bool OptimizedForStreaming { get; set; }

[JsonPropertyName("protocol")]
public string Protocol { get; set; }
Expand Down
12 changes: 6 additions & 6 deletions Source/Plex.ServerApi/PlexModels/Server/Sessions/Part.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class Part
public string Container { get; set; }

[JsonPropertyName("duration")]
public string Duration { get; set; }
public long Duration { get; set; }

[JsonPropertyName("file")]
public string File { get; set; }
Expand All @@ -21,7 +21,7 @@ public class Part
public string Key { get; set; }

[JsonPropertyName("size")]
public string Size { get; set; }
public int Size { get; set; }

[JsonPropertyName("videoProfile")]
public string VideoProfile { get; set; }
Expand All @@ -39,18 +39,18 @@ public class Part
public string AudioProfile { get; set; }

[JsonPropertyName("bitrate")]
public string Bitrate { get; set; }
public int Bitrate { get; set; }

[JsonPropertyName("height")]
public string Height { get; set; }
public int Height { get; set; }

[JsonPropertyName("optimizedForStreaming")]
public string OptimizedForStreaming { get; set; }
public bool OptimizedForStreaming { get; set; }

[JsonPropertyName("protocol")]
public string Protocol { get; set; }

[JsonPropertyName("width")]
public string Width { get; set; }
public int Width { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class SessionMetadata
public string ContentRating { get; set; }

[JsonPropertyName("duration")]
public string Duration { get; set; }
public long Duration { get; set; }

[JsonPropertyName("grandparentArt")]
public string GrandparentArt { get; set; }
Expand All @@ -49,7 +49,7 @@ public class SessionMetadata
public string Guid { get; set; }

[JsonPropertyName("index")]
public string Index { get; set; }
public int Index { get; set; }

[JsonPropertyName("key")]
public string Key { get; set; }
Expand All @@ -70,7 +70,7 @@ public class SessionMetadata
public string ParentGuid { get; set; }

[JsonPropertyName("parentIndex")]
public string ParentIndex { get; set; }
public int ParentIndex { get; set; }

[JsonPropertyName("parentKey")]
public string ParentKey { get; set; }
Expand Down Expand Up @@ -112,10 +112,10 @@ public class SessionMetadata
public string Type { get; set; }

[JsonPropertyName("updatedAt")]
public string UpdatedAt { get; set; }
public long UpdatedAt { get; set; }

[JsonPropertyName("viewOffset")]
public string ViewOffset { get; set; }
public long ViewOffset { get; set; }

[JsonPropertyName("year")]
public string Year { get; set; }
Expand All @@ -136,7 +136,7 @@ public class SessionMetadata
public string ChapterSource { get; set; }

[JsonPropertyName("lastViewedAt")]
public string LastViewedAt { get; set; }
public long LastViewedAt { get; set; }

[JsonPropertyName("titleSort")]
public string TitleSort { get; set; }
Expand Down
22 changes: 11 additions & 11 deletions Source/Plex.ServerApi/PlexModels/Server/Sessions/Stream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ namespace Plex.ServerApi.PlexModels.Server.Sessions
public class Stream
{
[JsonPropertyName("bitDepth")]
public string BitDepth { get; set; }
public int BitDepth { get; set; }

[JsonPropertyName("bitrate")]
public string Bitrate { get; set; }
public long Bitrate { get; set; }

[JsonPropertyName("chromaLocation")]
public string ChromaLocation { get; set; }
Expand All @@ -20,7 +20,7 @@ public class Stream
public string Codec { get; set; }

[JsonPropertyName("default")]
public string Default { get; set; }
public bool Default { get; set; }

[JsonPropertyName("displayTitle")]
public string DisplayTitle { get; set; }
Expand All @@ -29,19 +29,19 @@ public class Stream
public string ExtendedDisplayTitle { get; set; }

[JsonPropertyName("frameRate")]
public string FrameRate { get; set; }
public float FrameRate { get; set; }

[JsonPropertyName("hasScalingMatrix")]
public string HasScalingMatrix { get; set; }

[JsonPropertyName("height")]
public string Height { get; set; }
public int Height { get; set; }

[JsonPropertyName("id")]
public string Id { get; set; }

[JsonPropertyName("index")]
public string Index { get; set; }
public int Index { get; set; }

[JsonPropertyName("language")]
public string Language { get; set; }
Expand All @@ -62,10 +62,10 @@ public class Stream
public string ScanType { get; set; }

[JsonPropertyName("streamType")]
public string StreamType { get; set; }
public int StreamType { get; set; }

[JsonPropertyName("width")]
public string Width { get; set; }
public int Width { get; set; }

[JsonPropertyName("location")]
public string Location { get; set; }
Expand All @@ -74,13 +74,13 @@ public class Stream
public string AudioChannelLayout { get; set; }

[JsonPropertyName("channels")]
public string Channels { get; set; }
public int Channels { get; set; }

[JsonPropertyName("samplingRate")]
public string SamplingRate { get; set; }
public long SamplingRate { get; set; }

[JsonPropertyName("selected")]
public string Selected { get; set; }
public bool Selected { get; set; }

[JsonPropertyName("decision")]
public string Decision { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ public class TranscodeSession
public bool Complete { get; set; }

[JsonPropertyName("progress")]
public string Progress { get; set; }
public double Progress { get; set; }

[JsonPropertyName("size")]
public int Size { get; set; }

[JsonPropertyName("speed")]
public string Speed { get; set; }
public float Speed { get; set; }

[JsonPropertyName("duration")]
public int Duration { get; set; }
Expand Down Expand Up @@ -65,12 +65,12 @@ public class TranscodeSession
public bool TranscodeHwFullPipeline { get; set; }

[JsonPropertyName("timeStamp")]
public string TimeStamp { get; set; }
public double TimeStamp { get; set; }

[JsonPropertyName("maxOffsetAvailable")]
public string MaxOffsetAvailable { get; set; }
public double MaxOffsetAvailable { get; set; }

[JsonPropertyName("minOffsetAvailable")]
public string MinOffsetAvailable { get; set; }
public double MinOffsetAvailable { get; set; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ public class TranscodeSession
public bool Complete { get; set; }

[JsonPropertyName("progress")]
public string Progress { get; set; }
public double Progress { get; set; }

[JsonPropertyName("size")]
public int Size { get; set; }

[JsonPropertyName("speed")]
public string Speed { get; set; }
public float Speed { get; set; }

[JsonPropertyName("duration")]
public int Duration { get; set; }
Expand Down Expand Up @@ -65,12 +65,12 @@ public class TranscodeSession
public bool TranscodeHwFullPipeline { get; set; }

[JsonPropertyName("timeStamp")]
public string TimeStamp { get; set; }
public double TimeStamp { get; set; }

[JsonPropertyName("maxOffsetAvailable")]
public string MaxOffsetAvailable { get; set; }
public double MaxOffsetAvailable { get; set; }

[JsonPropertyName("minOffsetAvailable")]
public string MinOffsetAvailable { get; set; }
public double MinOffsetAvailable { get; set; }
}
}

0 comments on commit 929eceb

Please sign in to comment.