From d8697f3fa9b50b7805296e40d4e472e09d56f070 Mon Sep 17 00:00:00 2001 From: Luke Hagar Date: Fri, 8 Dec 2023 20:09:14 -0800 Subject: [PATCH] SDK update generated by liblab --- src/main/java/47/one0/Configuration.java | 2 +- src/main/java/47/one0/http/HubsClient.java | 4 +- src/main/java/47/one0/http/LibraryClient.java | 2 +- src/main/java/47/one0/http/LogClient.java | 2 +- .../java/47/one0/http/PlaylistsClient.java | 6 +- src/main/java/47/one0/http/ServerClient.java | 2 +- src/main/java/47/one0/http/UpdaterClient.java | 4 +- src/main/java/47/one0/models/Download.java | 4 +- src/main/java/47/one0/models/Force.java | 2 +- .../47/one0/models/GetOnDeckResponse.java | 6 +- .../java/47/one0/models/IncludeDetails.java | 2 +- src/main/java/47/one0/models/Level.java | 2 +- src/main/java/47/one0/models/MinSize.java | 2 +- .../java/47/one0/models/OnlyTransient.java | 2 +- src/main/java/47/one0/models/Skip.java | 4 +- src/main/java/47/one0/models/Smart.java | 2 +- src/main/java/47/one0/models/Tonight.java | 4 +- src/main/java/47/one0/models/Upscale.java | 2 +- .../java/47/one0/services/HubsService.java | 8 +-- .../java/47/one0/services/LibraryService.java | 4 +- .../java/47/one0/services/LogService.java | 4 +- .../47/one0/services/PlaylistsService.java | 12 ++-- src/main/java/47/one0/services/README.md | 62 +++++++++---------- .../java/47/one0/services/ServerService.java | 6 +- .../java/47/one0/services/UpdaterService.java | 10 +-- 25 files changed, 80 insertions(+), 80 deletions(-) diff --git a/src/main/java/47/one0/Configuration.java b/src/main/java/47/one0/Configuration.java index 2ea7d10a..5f5db3b4 100644 --- a/src/main/java/47/one0/Configuration.java +++ b/src/main/java/47/one0/Configuration.java @@ -2,7 +2,7 @@ package 47.one0; public class Configuration { - public static final String USER_AGENT = "liblab/0.1.25 PlexSDK/0.0.1 java/1.8"; + public static final String USER_AGENT = "liblab/0.1.28 PlexSDK/0.0.1 java/1.8"; public static final String DEFAULT_API_KEY_HEADER = "X-Plex-Token"; diff --git a/src/main/java/47/one0/http/HubsClient.java b/src/main/java/47/one0/http/HubsClient.java index a3d2d2e4..30903bc9 100644 --- a/src/main/java/47/one0/http/HubsClient.java +++ b/src/main/java/47/one0/http/HubsClient.java @@ -6,8 +6,8 @@ import 47.one0.exceptions.ApiException; public interface HubsClient { - ResponseWithHeaders getGlobalHubs(Float count, Float onlyTransient) throws ApiException; - ResponseWithHeaders getLibraryHubs(Float sectionId, Float count, Float onlyTransient) throws ApiException; + ResponseWithHeaders getGlobalHubs(Float count, Integer onlyTransient) throws ApiException; + ResponseWithHeaders getLibraryHubs(Float sectionId, Float count, Integer onlyTransient) throws ApiException; } \ No newline at end of file diff --git a/src/main/java/47/one0/http/LibraryClient.java b/src/main/java/47/one0/http/LibraryClient.java index 0c89849c..7c4bc963 100644 --- a/src/main/java/47/one0/http/LibraryClient.java +++ b/src/main/java/47/one0/http/LibraryClient.java @@ -9,7 +9,7 @@ public interface LibraryClient { ResponseWithHeaders getFileHash(String url, Float type) throws ApiException; ResponseWithHeaders<47.one0.models.GetRecentlyAddedResponse> getRecentlyAdded() throws ApiException; ResponseWithHeaders getLibraries() throws ApiException; - ResponseWithHeaders getLibrary(Float sectionId, Float includeDetails) throws ApiException; + ResponseWithHeaders getLibrary(Float sectionId, Integer includeDetails) throws ApiException; ResponseWithHeaders deleteLibrary(Float sectionId) throws ApiException; ResponseWithHeaders getLibraryItems(Float sectionId, Float type, String filter) throws ApiException; ResponseWithHeaders refreshLibrary(Float sectionId) throws ApiException; diff --git a/src/main/java/47/one0/http/LogClient.java b/src/main/java/47/one0/http/LogClient.java index 8085c3fb..d6c1ab6a 100644 --- a/src/main/java/47/one0/http/LogClient.java +++ b/src/main/java/47/one0/http/LogClient.java @@ -6,7 +6,7 @@ import 47.one0.exceptions.ApiException; public interface LogClient { - ResponseWithHeaders logLine(Float level, String message, String source) throws ApiException; + ResponseWithHeaders logLine(Integer level, String message, String source) throws ApiException; ResponseWithHeaders logMultiLine() throws ApiException; ResponseWithHeaders enablePaperTrail() throws ApiException; diff --git a/src/main/java/47/one0/http/PlaylistsClient.java b/src/main/java/47/one0/http/PlaylistsClient.java index bb9a65c1..b874bb05 100644 --- a/src/main/java/47/one0/http/PlaylistsClient.java +++ b/src/main/java/47/one0/http/PlaylistsClient.java @@ -6,15 +6,15 @@ import 47.one0.exceptions.ApiException; public interface PlaylistsClient { - ResponseWithHeaders createPlaylist(String title, String type, Float smart, String uri, Float playQueueID) throws ApiException; - ResponseWithHeaders getPlaylists(String playlistType, Float smart) throws ApiException; + ResponseWithHeaders createPlaylist(String title, String type, Integer smart, String uri, Float playQueueID) throws ApiException; + ResponseWithHeaders getPlaylists(String playlistType, Integer smart) throws ApiException; ResponseWithHeaders getPlaylist(Float playlistID) throws ApiException; ResponseWithHeaders updatePlaylist(Float playlistID) throws ApiException; ResponseWithHeaders deletePlaylist(Float playlistID) throws ApiException; ResponseWithHeaders getPlaylistContents(Float playlistID, Float type) throws ApiException; ResponseWithHeaders addPlaylistContents(Float playlistID, String uri, Float playQueueID) throws ApiException; ResponseWithHeaders clearPlaylistContents(Float playlistID) throws ApiException; - ResponseWithHeaders uploadPlaylist(String path, Float force) throws ApiException; + ResponseWithHeaders uploadPlaylist(String path, Integer force) throws ApiException; } \ No newline at end of file diff --git a/src/main/java/47/one0/http/ServerClient.java b/src/main/java/47/one0/http/ServerClient.java index 1c0ed909..f917d6ff 100644 --- a/src/main/java/47/one0/http/ServerClient.java +++ b/src/main/java/47/one0/http/ServerClient.java @@ -12,7 +12,7 @@ public interface ServerClient { ResponseWithHeaders<47.one0.models.GetDevicesResponse> getDevices() throws ApiException; ResponseWithHeaders<47.one0.models.GetServerIdentityResponse> getServerIdentity() throws ApiException; ResponseWithHeaders<47.one0.models.GetMyPlexAccountResponse> getMyPlexAccount() throws ApiException; - ResponseWithHeaders getResizedPhoto(Float width, Float height, Integer opacity, Float blur, Float minSize, Float upscale, String url) throws ApiException; + ResponseWithHeaders getResizedPhoto(Float width, Float height, Integer opacity, Float blur, Integer minSize, Integer upscale, String url) throws ApiException; ResponseWithHeaders<47.one0.models.GetServerListResponse> getServerList() throws ApiException; diff --git a/src/main/java/47/one0/http/UpdaterClient.java b/src/main/java/47/one0/http/UpdaterClient.java index 4c797202..b2a7e08c 100644 --- a/src/main/java/47/one0/http/UpdaterClient.java +++ b/src/main/java/47/one0/http/UpdaterClient.java @@ -7,8 +7,8 @@ import 47.one0.exceptions.ApiException; public interface UpdaterClient { ResponseWithHeaders getUpdateStatus() throws ApiException; - ResponseWithHeaders checkForUpdates(String download) throws ApiException; - ResponseWithHeaders applyUpdates(String tonight, String skip) throws ApiException; + ResponseWithHeaders checkForUpdates(Integer download) throws ApiException; + ResponseWithHeaders applyUpdates(Integer tonight, Integer skip) throws ApiException; } \ No newline at end of file diff --git a/src/main/java/47/one0/models/Download.java b/src/main/java/47/one0/models/Download.java index e383b819..3a2cca04 100644 --- a/src/main/java/47/one0/models/Download.java +++ b/src/main/java/47/one0/models/Download.java @@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor; @RequiredArgsConstructor(access = AccessLevel.PRIVATE) public enum Download { - V1("1"); + V1(1); - public final String label; + public final Integer label; } diff --git a/src/main/java/47/one0/models/Force.java b/src/main/java/47/one0/models/Force.java index b3c59828..4f2ea8d2 100644 --- a/src/main/java/47/one0/models/Force.java +++ b/src/main/java/47/one0/models/Force.java @@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor; public enum Force { V1(1); - public final Float label; + public final Integer label; } diff --git a/src/main/java/47/one0/models/GetOnDeckResponse.java b/src/main/java/47/one0/models/GetOnDeckResponse.java index 6fcd26a1..42dad9eb 100644 --- a/src/main/java/47/one0/models/GetOnDeckResponse.java +++ b/src/main/java/47/one0/models/GetOnDeckResponse.java @@ -144,7 +144,6 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel { .collect(java.util.stream.Collectors.toSet()); } - @com.fasterxml.jackson.annotation.JsonProperty("default_") private java.lang.Boolean _default; @com.fasterxml.jackson.annotation.JsonProperty("bitDepth") private java.lang.Double bitDepth; @com.fasterxml.jackson.annotation.JsonProperty("bitrate") private java.lang.Double bitrate; @com.fasterxml.jackson.annotation.JsonProperty("chromaLocation") private java.lang.String chromaLocation; @@ -153,6 +152,7 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel { @com.fasterxml.jackson.annotation.JsonProperty("codedHeight") private java.lang.Double codedHeight; @com.fasterxml.jackson.annotation.JsonProperty("codedWidth") private java.lang.Double codedWidth; @com.fasterxml.jackson.annotation.JsonProperty("colorRange") private java.lang.String colorRange; + @com.fasterxml.jackson.annotation.JsonProperty("default_") private java.lang.Boolean default_; @com.fasterxml.jackson.annotation.JsonProperty("displayTitle") private java.lang.String displayTitle; @com.fasterxml.jackson.annotation.JsonProperty("extendedDisplayTitle") private java.lang.String extendedDisplayTitle; @com.fasterxml.jackson.annotation.JsonProperty("frameRate") private java.lang.Double frameRate; @@ -216,7 +216,6 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel { } } - @com.fasterxml.jackson.annotation.JsonProperty("default_") private final java.lang.Boolean _default; @com.fasterxml.jackson.annotation.JsonProperty("bitDepth") private final java.lang.Double bitDepth; @com.fasterxml.jackson.annotation.JsonProperty("bitrate") private final java.lang.Double bitrate; @com.fasterxml.jackson.annotation.JsonProperty("chromaLocation") private final java.lang.String chromaLocation; @@ -225,6 +224,7 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel { @com.fasterxml.jackson.annotation.JsonProperty("codedHeight") private final java.lang.Double codedHeight; @com.fasterxml.jackson.annotation.JsonProperty("codedWidth") private final java.lang.Double codedWidth; @com.fasterxml.jackson.annotation.JsonProperty("colorRange") private final java.lang.String colorRange; + @com.fasterxml.jackson.annotation.JsonProperty("default_") private final java.lang.Boolean default_; @com.fasterxml.jackson.annotation.JsonProperty("displayTitle") private final java.lang.String displayTitle; @com.fasterxml.jackson.annotation.JsonProperty("extendedDisplayTitle") private final java.lang.String extendedDisplayTitle; @com.fasterxml.jackson.annotation.JsonProperty("frameRate") private final java.lang.Double frameRate; @@ -243,7 +243,6 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel { Stream(Builder builder) { super(builder); - this._default = builder.get_default(); this.bitDepth = builder.getBitDepth(); this.bitrate = builder.getBitrate(); this.chromaLocation = builder.getChromaLocation(); @@ -252,6 +251,7 @@ public class GetOnDeckResponse extends 47.one0.models.BaseModel { this.codedHeight = builder.getCodedHeight(); this.codedWidth = builder.getCodedWidth(); this.colorRange = builder.getColorRange(); + this.default_ = builder.getDefault_(); this.displayTitle = builder.getDisplayTitle(); this.extendedDisplayTitle = builder.getExtendedDisplayTitle(); this.frameRate = builder.getFrameRate(); diff --git a/src/main/java/47/one0/models/IncludeDetails.java b/src/main/java/47/one0/models/IncludeDetails.java index 3d57bdd1..b51336ae 100644 --- a/src/main/java/47/one0/models/IncludeDetails.java +++ b/src/main/java/47/one0/models/IncludeDetails.java @@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor; public enum IncludeDetails { V1(1); - public final Float label; + public final Integer label; } diff --git a/src/main/java/47/one0/models/Level.java b/src/main/java/47/one0/models/Level.java index 2b5ae513..b9708763 100644 --- a/src/main/java/47/one0/models/Level.java +++ b/src/main/java/47/one0/models/Level.java @@ -10,5 +10,5 @@ public enum Level { V3(3), V4(4); - public final Float label; + public final Integer label; } diff --git a/src/main/java/47/one0/models/MinSize.java b/src/main/java/47/one0/models/MinSize.java index 8fa4739e..880633fe 100644 --- a/src/main/java/47/one0/models/MinSize.java +++ b/src/main/java/47/one0/models/MinSize.java @@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor; public enum MinSize { V1(1); - public final Float label; + public final Integer label; } diff --git a/src/main/java/47/one0/models/OnlyTransient.java b/src/main/java/47/one0/models/OnlyTransient.java index 17aa8545..8efe3c37 100644 --- a/src/main/java/47/one0/models/OnlyTransient.java +++ b/src/main/java/47/one0/models/OnlyTransient.java @@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor; public enum OnlyTransient { V1(1); - public final Float label; + public final Integer label; } diff --git a/src/main/java/47/one0/models/Skip.java b/src/main/java/47/one0/models/Skip.java index b0759c03..ea8f61a1 100644 --- a/src/main/java/47/one0/models/Skip.java +++ b/src/main/java/47/one0/models/Skip.java @@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor; @RequiredArgsConstructor(access = AccessLevel.PRIVATE) public enum Skip { - V1("1"); + V1(1); - public final String label; + public final Integer label; } diff --git a/src/main/java/47/one0/models/Smart.java b/src/main/java/47/one0/models/Smart.java index 72a2b017..f36e2870 100644 --- a/src/main/java/47/one0/models/Smart.java +++ b/src/main/java/47/one0/models/Smart.java @@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor; public enum Smart { V1(1); - public final Float label; + public final Integer label; } diff --git a/src/main/java/47/one0/models/Tonight.java b/src/main/java/47/one0/models/Tonight.java index 8f7766ff..0e6fd15e 100644 --- a/src/main/java/47/one0/models/Tonight.java +++ b/src/main/java/47/one0/models/Tonight.java @@ -5,7 +5,7 @@ import lombok.RequiredArgsConstructor; @RequiredArgsConstructor(access = AccessLevel.PRIVATE) public enum Tonight { - V1("1"); + V1(1); - public final String label; + public final Integer label; } diff --git a/src/main/java/47/one0/models/Upscale.java b/src/main/java/47/one0/models/Upscale.java index bbf79004..b19c4443 100644 --- a/src/main/java/47/one0/models/Upscale.java +++ b/src/main/java/47/one0/models/Upscale.java @@ -7,5 +7,5 @@ import lombok.RequiredArgsConstructor; public enum Upscale { V1(1); - public final Float label; + public final Integer label; } diff --git a/src/main/java/47/one0/services/HubsService.java b/src/main/java/47/one0/services/HubsService.java index a65dbd80..9c85d589 100644 --- a/src/main/java/47/one0/services/HubsService.java +++ b/src/main/java/47/one0/services/HubsService.java @@ -19,9 +19,9 @@ public HubsService(OkHttpClient httpClient, String serverUrl) { super(httpClien /** * @summary Get Global Hubs * @param {Number} [count] - The number of items to return with each hub. - * @param {Number} [onlyTransient] - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + * @param {Integer} [onlyTransient] - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). */ - public ResponseWithHeaders getGlobalHubs(Float count, Float onlyTransient) throws ApiException + public ResponseWithHeaders getGlobalHubs(Float count, Integer onlyTransient) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("hubs") @@ -44,9 +44,9 @@ Response response = this.execute(request); * @summary Get library specific hubs * @param {Number} sectionId - the Id of the library to query * @param {Number} [count] - The number of items to return with each hub. - * @param {Number} [onlyTransient] - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). + * @param {Integer} [onlyTransient] - Only return hubs which are "transient", meaning those which are prone to changing after media playback or addition (e.g. On Deck, or Recently Added). */ - public ResponseWithHeaders getLibraryHubs(Float sectionId, Float count, Float onlyTransient) throws ApiException + public ResponseWithHeaders getLibraryHubs(Float sectionId, Float count, Integer onlyTransient) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("hubs") diff --git a/src/main/java/47/one0/services/LibraryService.java b/src/main/java/47/one0/services/LibraryService.java index dc871f66..501aa8b5 100644 --- a/src/main/java/47/one0/services/LibraryService.java +++ b/src/main/java/47/one0/services/LibraryService.java @@ -81,11 +81,11 @@ Response response = this.execute(request); /** * @summary Get Library Details * @param {Number} sectionId - the Id of the library to query - * @param {Number} [includeDetails] - Whether or not to include details for a section (types, filters, and sorts). + * @param {Integer} [includeDetails] - Whether or not to include details for a section (types, filters, and sorts). Only exists for backwards compatibility, media providers other than the server libraries have it on always. */ - public ResponseWithHeaders getLibrary(Float sectionId, Float includeDetails) throws ApiException + public ResponseWithHeaders getLibrary(Float sectionId, Integer includeDetails) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("library") diff --git a/src/main/java/47/one0/services/LogService.java b/src/main/java/47/one0/services/LogService.java index 5e9e1521..2d16cfaf 100644 --- a/src/main/java/47/one0/services/LogService.java +++ b/src/main/java/47/one0/services/LogService.java @@ -18,7 +18,7 @@ public class LogService extends BaseService implements LogClient { public LogService(OkHttpClient httpClient, String serverUrl) { super(httpClient, serverUrl); } /** * @summary Logging a single line message. - * @param {Number} level - An integer log level to write to the PMS log with. + * @param {Integer} level - An integer log level to write to the PMS log with. 0: Error 1: Warning 2: Info @@ -28,7 +28,7 @@ public LogService(OkHttpClient httpClient, String serverUrl) { super(httpClient * @param {String} message - The text of the message to write to the log. * @param {String} source - a string indicating the source of the message. */ - public ResponseWithHeaders logLine(Float level, String message, String source) throws ApiException + public ResponseWithHeaders logLine(Integer level, String message, String source) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("log") diff --git a/src/main/java/47/one0/services/PlaylistsService.java b/src/main/java/47/one0/services/PlaylistsService.java index 3015888a..4ccf794c 100644 --- a/src/main/java/47/one0/services/PlaylistsService.java +++ b/src/main/java/47/one0/services/PlaylistsService.java @@ -20,11 +20,11 @@ public PlaylistsService(OkHttpClient httpClient, String serverUrl) { super(http * @summary Create a Playlist * @param {String} title - name of the playlist * @param {String} type - type of playlist to create - * @param {Number} smart - whether the playlist is smart or not + * @param {Integer} smart - whether the playlist is smart or not * @param {String} [uri] - the content URI for the playlist * @param {Number} [playQueueID] - the play queue to copy to a playlist */ - public ResponseWithHeaders createPlaylist(String title, String type, Float smart, String uri, Float playQueueID) throws ApiException + public ResponseWithHeaders createPlaylist(String title, String type, Integer smart, String uri, Float playQueueID) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("playlists") @@ -53,9 +53,9 @@ Response response = this.execute(request); /** * @summary Get All Playlists * @param {String} [playlistType] - limit to a type of playlist. - * @param {Number} [smart] - type of playlists to return (default is all). + * @param {Integer} [smart] - type of playlists to return (default is all). */ - public ResponseWithHeaders getPlaylists(String playlistType, Float smart) throws ApiException + public ResponseWithHeaders getPlaylists(String playlistType, Integer smart) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("playlists") @@ -233,11 +233,11 @@ The GUID of each playlist is based on the filename. If the `path` argument is a file, that file will be used to create a new playlist, with the name based on the filename of the file that created it. The GUID of each playlist is based on the filename. - * @param {Number} force - force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. + * @param {Integer} force - force overwriting of duplicate playlists. By default, a playlist file uploaded with the same path will overwrite the existing playlist. The `force` argument is used to disable overwriting. If the `force` argument is set to 0, a new playlist will be created suffixed with the date and time that the duplicate was uploaded. */ - public ResponseWithHeaders uploadPlaylist(String path, Float force) throws ApiException + public ResponseWithHeaders uploadPlaylist(String path, Integer force) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("playlists") diff --git a/src/main/java/47/one0/services/README.md b/src/main/java/47/one0/services/README.md index d67c2303..89362ca7 100644 --- a/src/main/java/47/one0/services/README.md +++ b/src/main/java/47/one0/services/README.md @@ -418,7 +418,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.serverService.getResizedPhoto(853213706, 2, 9, 3, 3, 3, "urlSampleValue"); + Object response = client.serverService.getResizedPhoto(258203268, 4, 3, 2, 9, 4, "urlSampleValue"); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -493,7 +493,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.mediaService.markPlayed(5); + Object response = client.mediaService.markPlayed(6); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -530,7 +530,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.mediaService.markUnplayed(8); + Object response = client.mediaService.markUnplayed(4); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -569,7 +569,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.mediaService.updatePlayProgress("keySampleValue", 1, "stateSampleValue"); + Object response = client.mediaService.updatePlayProgress("keySampleValue", 9, "stateSampleValue"); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -868,7 +868,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.hubsService.getGlobalHubs(4, 4); + Object response = client.hubsService.getGlobalHubs(6, 8); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -907,7 +907,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.hubsService.getLibraryHubs(9, 1, 8); + Object response = client.hubsService.getLibraryHubs(8, 3, 5); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -948,7 +948,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.searchService.performSearch("querySampleValue", 3, 9); + Object response = client.searchService.performSearch("querySampleValue", 2, 4); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -987,7 +987,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.searchService.performVoiceSearch("querySampleValue", 7, 9); + Object response = client.searchService.performVoiceSearch("querySampleValue", 1, 5); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1064,7 +1064,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.libraryService.getFileHash("urlSampleValue", 6); + Object response = client.libraryService.getFileHash("urlSampleValue", 8); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1174,7 +1174,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.libraryService.getLibrary(6, 7); + Object response = client.libraryService.getLibrary(8, 2); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1211,7 +1211,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.libraryService.deleteLibrary(8); + Object response = client.libraryService.deleteLibrary(2); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1250,7 +1250,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.libraryService.getLibraryItems(9, 1, "filterSampleValue"); + Object response = client.libraryService.getLibraryItems(7, 5, "filterSampleValue"); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1287,7 +1287,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.libraryService.refreshLibrary(2); + Object response = client.libraryService.refreshLibrary(1); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1326,7 +1326,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.libraryService.getLatestLibraryItems(5, 3, "filterSampleValue"); + Object response = client.libraryService.getLatestLibraryItems(6, 6, "filterSampleValue"); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1365,7 +1365,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.libraryService.getCommonLibraryItems(1, 8, "filterSampleValue"); + Object response = client.libraryService.getCommonLibraryItems(1, 3, "filterSampleValue"); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1402,7 +1402,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.libraryService.getMetadata(5); + Object response = client.libraryService.getMetadata(4); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1439,7 +1439,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.libraryService.getMetadataChildren(3); + Object response = client.libraryService.getMetadataChildren(8); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1552,7 +1552,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.logService.logLine(9, "messageSampleValue", "sourceSampleValue"); + Object response = client.logService.logLine(7, "messageSampleValue", "sourceSampleValue"); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1631,7 +1631,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.playlistsService.createPlaylist("titleSampleValue", "typeSampleValue", 2, "uriSampleValue", 1); + Object response = client.playlistsService.createPlaylist("titleSampleValue", "typeSampleValue", 1, "uriSampleValue", 2); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1669,7 +1669,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.playlistsService.getPlaylists("playlistTypeSampleValue", 9); + Object response = client.playlistsService.getPlaylists("playlistTypeSampleValue", 4); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1706,7 +1706,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.playlistsService.getPlaylist(4); + Object response = client.playlistsService.getPlaylist(8); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1743,7 +1743,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.playlistsService.deletePlaylist(1); + Object response = client.playlistsService.deletePlaylist(3); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1780,7 +1780,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.playlistsService.updatePlaylist(7); + Object response = client.playlistsService.updatePlaylist(6); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1818,7 +1818,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.playlistsService.getPlaylistContents(3, 1); + Object response = client.playlistsService.getPlaylistContents(2, 7); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1855,7 +1855,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.playlistsService.clearPlaylistContents(8); + Object response = client.playlistsService.clearPlaylistContents(2); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1894,7 +1894,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.playlistsService.addPlaylistContents(6, "uriSampleValue", 4); + Object response = client.playlistsService.addPlaylistContents(1, "uriSampleValue", 3); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -1932,7 +1932,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.playlistsService.uploadPlaylist("pathSampleValue", 5); + Object response = client.playlistsService.uploadPlaylist("pathSampleValue", 2); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -2231,7 +2231,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.updaterService.checkForUpdates(null); + Object response = client.updaterService.checkForUpdates(5); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -2269,7 +2269,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.updaterService.applyUpdates(null, null); + Object response = client.updaterService.applyUpdates(5, 3); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -2323,7 +2323,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.videoService.startUniversalTranscode(4, "pathSampleValue", 3, 7, "protocolSampleValue", 6, 9, 5, 3, "subtitesSampleValue", 5, "locationSampleValue", 4, "sessionSampleValue", 5, 6); + Object response = client.videoService.startUniversalTranscode(9, "pathSampleValue", 6, 5, "protocolSampleValue", 2, 6, 1, 5, "subtitesSampleValue", 6, "locationSampleValue", 5, "sessionSampleValue", 6, 3); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); @@ -2369,7 +2369,7 @@ public class Main { public static void main(String[] args) { PlexSDK client = new PlexSDK(System.getenv("PLEXSDK_API_KEY"), System.getenv("PLEXSDK_API_KEY_HEADER")); try { - Object response = client.videoService.getTimeline(5, "keySampleValue", "stateSampleValue", 8, 4, 2, "contextSampleValue", 2, 3, 9); + Object response = client.videoService.getTimeline(4, "keySampleValue", "stateSampleValue", 9, 4, 8, "contextSampleValue", 3, 7, 8); System.out.println(response); } catch(ApiException e) { e.printStackTrace(); diff --git a/src/main/java/47/one0/services/ServerService.java b/src/main/java/47/one0/services/ServerService.java index 49d0f5ee..6155089e 100644 --- a/src/main/java/47/one0/services/ServerService.java +++ b/src/main/java/47/one0/services/ServerService.java @@ -118,11 +118,11 @@ Response response = this.execute(request); * @param {Number} height - The height for the resized photo * @param {Integer} opacity - The opacity for the resized photo * @param {Number} blur - The width for the resized photo - * @param {Number} minSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. - * @param {Number} upscale - allow images to be resized beyond native dimensions. + * @param {Integer} minSize - images are always scaled proportionally. A value of '1' in minSize will make the smaller native dimension the dimension resized against. + * @param {Integer} upscale - allow images to be resized beyond native dimensions. * @param {String} url - path to image within Plex */ - public ResponseWithHeaders getResizedPhoto(Float width, Float height, Integer opacity, Float blur, Float minSize, Float upscale, String url) throws ApiException + public ResponseWithHeaders getResizedPhoto(Float width, Float height, Integer opacity, Float blur, Integer minSize, Integer upscale, String url) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("photo") diff --git a/src/main/java/47/one0/services/UpdaterService.java b/src/main/java/47/one0/services/UpdaterService.java index 1dfbd713..c492fc0e 100644 --- a/src/main/java/47/one0/services/UpdaterService.java +++ b/src/main/java/47/one0/services/UpdaterService.java @@ -39,9 +39,9 @@ Response response = this.execute(request); } /** * @summary Checking for updates - * @param {Download} [download] - Indicate that you want to start download any updates found. + * @param {Integer} [download] - Indicate that you want to start download any updates found. */ - public ResponseWithHeaders checkForUpdates(String download) throws ApiException + public ResponseWithHeaders checkForUpdates(Integer download) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("updater") @@ -66,10 +66,10 @@ Response response = this.execute(request); } /** * @summary Apply Updates - * @param {Tonight} [tonight] - Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install - * @param {Skip} [skip] - Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. + * @param {Integer} [tonight] - Indicate that you want the update to run during the next Butler execution. Omitting this or setting it to false indicates that the update should install + * @param {Integer} [skip] - Indicate that the latest version should be marked as skipped. The entry for this version will have the `state` set to `skipped`. */ - public ResponseWithHeaders applyUpdates(String tonight, String skip) throws ApiException + public ResponseWithHeaders applyUpdates(Integer tonight, Integer skip) throws ApiException { String url = HttpUrl.builder(this.serverUrl) .addPathParameter("updater")