mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-07 12:37:45 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8563e8fef2 | ||
|
|
1f5d4ff03a | ||
|
|
d970db3b6f |
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,3 +1,5 @@
|
|||||||
|
.env
|
||||||
|
.env.local
|
||||||
.DS_Store
|
.DS_Store
|
||||||
**/.speakeasy/temp/
|
**/.speakeasy/temp/
|
||||||
**/.speakeasy/logs/
|
**/.speakeasy/logs/
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
lockVersion: 2.0.0
|
lockVersion: 2.0.0
|
||||||
id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9
|
id: 5a8dbcbc-e0ee-41f0-9d84-b8b50567d1e9
|
||||||
management:
|
management:
|
||||||
docChecksum: 77bdddd188d0778dc73b7f7906e1677c
|
docChecksum: addaf2dfdac23cef2e234b64492b9c90
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.557.0
|
speakeasyVersion: 1.615.2
|
||||||
generationVersion: 2.623.0
|
generationVersion: 2.698.4
|
||||||
releaseVersion: 0.15.1
|
releaseVersion: 0.17.0
|
||||||
configChecksum: 0d77f3a7a510b4818fc2819df5d3ceae
|
configChecksum: 7f0dd0408cb0f26d25de26ed646400b6
|
||||||
repoURL: https://github.com/LukeHagar/plexcsharp.git
|
repoURL: https://github.com/LukeHagar/plexcsharp.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
published: true
|
published: true
|
||||||
@@ -14,12 +14,12 @@ features:
|
|||||||
csharp:
|
csharp:
|
||||||
additionalDependencies: 0.1.0
|
additionalDependencies: 0.1.0
|
||||||
constsAndDefaults: 0.0.1
|
constsAndDefaults: 0.0.1
|
||||||
core: 3.11.0
|
core: 3.12.2
|
||||||
deprecations: 2.81.2
|
deprecations: 2.81.2
|
||||||
enums: 2.82.0
|
enums: 2.82.0
|
||||||
errors: 0.2.1
|
errors: 1.0.0
|
||||||
flattening: 2.81.3
|
flattening: 2.81.3
|
||||||
globalSecurity: 2.83.7
|
globalSecurity: 2.83.8
|
||||||
globalSecurityCallbacks: 0.1.0
|
globalSecurityCallbacks: 0.1.0
|
||||||
globalSecurityFlattening: 0.1.0
|
globalSecurityFlattening: 0.1.0
|
||||||
globalServerURLs: 2.82.4
|
globalServerURLs: 2.82.4
|
||||||
@@ -28,6 +28,7 @@ features:
|
|||||||
methodServerURLs: 2.82.1
|
methodServerURLs: 2.82.1
|
||||||
nameOverrides: 2.81.2
|
nameOverrides: 2.81.2
|
||||||
nullables: 0.1.1
|
nullables: 0.1.1
|
||||||
|
openEnums: 0.1.1
|
||||||
responseFormat: 0.0.4
|
responseFormat: 0.0.4
|
||||||
sdkHooks: 0.2.0
|
sdkHooks: 0.2.0
|
||||||
unions: 0.2.2
|
unions: 0.2.2
|
||||||
@@ -316,10 +317,12 @@ generatedFiles:
|
|||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/PerformVoiceSearchErrors.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/PerformVoiceSearchErrors.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/PerformVoiceSearchSearchErrors.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/PerformVoiceSearchSearchErrors.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/PerformVoiceSearchUnauthorized.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/PerformVoiceSearchUnauthorized.cs
|
||||||
|
- LukeHagar/PlexAPI/SDK/Models/Errors/PlexAPIError.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/PostUsersSignInDataAuthenticationErrors.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/PostUsersSignInDataAuthenticationErrors.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/PostUsersSignInDataBadRequest.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/PostUsersSignInDataBadRequest.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/PostUsersSignInDataErrors.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/PostUsersSignInDataErrors.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/PostUsersSignInDataUnauthorized.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/PostUsersSignInDataUnauthorized.cs
|
||||||
|
- LukeHagar/PlexAPI/SDK/Models/Errors/ResponseValidationException.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/SDKException.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/SDKException.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/StartAllTasksBadRequest.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/StartAllTasksBadRequest.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Models/Errors/StartAllTasksButlerErrors.cs
|
- LukeHagar/PlexAPI/SDK/Models/Errors/StartAllTasksButlerErrors.cs
|
||||||
@@ -973,6 +976,7 @@ generatedFiles:
|
|||||||
- LukeHagar/PlexAPI/SDK/Utils/FlexibleObjectDeserializer.cs
|
- LukeHagar/PlexAPI/SDK/Utils/FlexibleObjectDeserializer.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Utils/HeaderSerializer.cs
|
- LukeHagar/PlexAPI/SDK/Utils/HeaderSerializer.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Utils/IsoDateTimeSerializer.cs
|
- LukeHagar/PlexAPI/SDK/Utils/IsoDateTimeSerializer.cs
|
||||||
|
- LukeHagar/PlexAPI/SDK/Utils/OpenEnumConverter.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Utils/RequestBodySerializer.cs
|
- LukeHagar/PlexAPI/SDK/Utils/RequestBodySerializer.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Utils/ResponseBodyDeserializer.cs
|
- LukeHagar/PlexAPI/SDK/Utils/ResponseBodyDeserializer.cs
|
||||||
- LukeHagar/PlexAPI/SDK/Utils/Retries/BackoffStrategy.cs
|
- LukeHagar/PlexAPI/SDK/Utils/Retries/BackoffStrategy.cs
|
||||||
@@ -2039,6 +2043,17 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-update-play-progress:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
key: "<key>"
|
||||||
|
time: 90000
|
||||||
|
state: "played"
|
||||||
|
responses:
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
get-banner-image:
|
get-banner-image:
|
||||||
speakeasy-default-get-banner-image:
|
speakeasy-default-get-banner-image:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2096,6 +2111,24 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-get-timeline:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
ratingKey: 23409
|
||||||
|
key: "/library/metadata/23409"
|
||||||
|
state: "playing"
|
||||||
|
hasMDE: 1
|
||||||
|
time: 2000
|
||||||
|
duration: 10000
|
||||||
|
context: "home:hub.continueWatching"
|
||||||
|
playQueueItemID: 1
|
||||||
|
playBackTime: 2000
|
||||||
|
row: 1
|
||||||
|
responses:
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
startUniversalTranscode:
|
startUniversalTranscode:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2121,6 +2154,30 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-start-universal-transcode:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
hasMDE: 1
|
||||||
|
path: "/library/metadata/23409"
|
||||||
|
mediaIndex: 0
|
||||||
|
partIndex: 0
|
||||||
|
protocol: "hls"
|
||||||
|
fastSeek: 0
|
||||||
|
directPlay: 0
|
||||||
|
directStream: 0
|
||||||
|
subtitleSize: 100
|
||||||
|
subtites: "burn"
|
||||||
|
audioBoost: 100
|
||||||
|
location: "lan"
|
||||||
|
mediaBufferSize: 102400
|
||||||
|
session: "zvcage8b7rkioqcm8f4uns4c"
|
||||||
|
addDebugOverlay: 0
|
||||||
|
autoAdjustQuality: 0
|
||||||
|
responses:
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
getServerActivities:
|
getServerActivities:
|
||||||
speakeasy-default-get-server-activities:
|
speakeasy-default-get-server-activities:
|
||||||
responses:
|
responses:
|
||||||
@@ -2140,6 +2197,15 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-cancel-server-activities:
|
||||||
|
parameters:
|
||||||
|
path:
|
||||||
|
activityUUID: "25b71ed5-0f9d-461c-baa7-d404e9e10d3e"
|
||||||
|
responses:
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
getButlerTasks:
|
getButlerTasks:
|
||||||
speakeasy-default-get-butler-tasks:
|
speakeasy-default-get-butler-tasks:
|
||||||
responses:
|
responses:
|
||||||
@@ -2235,6 +2301,21 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-get-server-resources:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
includeHttps: 1
|
||||||
|
includeRelay: 1
|
||||||
|
includeIPv6: 1
|
||||||
|
header:
|
||||||
|
X-Plex-Client-Identifier: "3381b62b-9ab7-4e37-827b-203e9809eb58"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: [{"name": "<value>", "product": "Ergonomic Plastic Hat", "productVersion": "<value>", "platform": "<value>", "platformVersion": "<value>", "device": "Mobile", "clientIdentifier": "<value>", "createdAt": "2019-06-24T11:38:02Z", "lastSeenAt": "2019-06-24T11:38:02Z", "provides": "<value>", "ownerId": null, "sourceTitle": "<value>", "publicAddress": "<value>", "accessToken": "<value>", "owned": true, "home": false, "synced": false, "relay": true, "presence": false, "httpsRequired": true, "publicAddressMatches": false, "dnsRebindingProtection": true, "natLoopbackSupported": false, "connections": [{"protocol": "http", "address": "5746 Mount Street", "port": 441996, "uri": "https://wide-kick.name/", "local": false, "relay": true, "IPv6": true}]}]
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
getPin:
|
getPin:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2251,6 +2332,21 @@ examples:
|
|||||||
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
|
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
|
||||||
"400":
|
"400":
|
||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
speakeasy-default-get-pin:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
strong: false
|
||||||
|
header:
|
||||||
|
X-Plex-Client-Identifier: "3381b62b-9ab7-4e37-827b-203e9809eb58"
|
||||||
|
X-Plex-Product: "Plex for Roku"
|
||||||
|
X-Plex-Device: "Roku 3"
|
||||||
|
X-Plex-Version: "2.4.1"
|
||||||
|
X-Plex-Platform: "Roku"
|
||||||
|
responses:
|
||||||
|
"201":
|
||||||
|
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
getTokenByPinId:
|
getTokenByPinId:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2265,6 +2361,23 @@ examples:
|
|||||||
responses:
|
responses:
|
||||||
"404":
|
"404":
|
||||||
application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]}
|
application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]}
|
||||||
|
speakeasy-default-get-token-by-pin-id:
|
||||||
|
parameters:
|
||||||
|
path:
|
||||||
|
pinID: 232248
|
||||||
|
header:
|
||||||
|
X-Plex-Client-Identifier: "3381b62b-9ab7-4e37-827b-203e9809eb58"
|
||||||
|
X-Plex-Product: "Plex for Roku"
|
||||||
|
X-Plex-Device: "Roku 3"
|
||||||
|
X-Plex-Version: "2.4.1"
|
||||||
|
X-Plex-Platform: "Roku"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"id": 308667304, "code": "7RQZ", "product": "0", "trusted": false, "qr": "https://plex.tv/api/v2/pins/qr/7RQZ", "clientIdentifier": "string", "location": {"code": "VI", "continent_code": "NA", "country": "United States Virgin Islands", "city": "Amsterdam", "european_union_member": true, "time_zone": "America/St_Thomas", "postal_code": "802", "in_privacy_restricted_country": true, "in_privacy_restricted_region": true, "subdivisions": "Saint Thomas", "coordinates": "18.3381, -64.8941"}, "expiresIn": 876, "createdAt": "2024-07-16T17:03:05Z", "expiresAt": "2024-07-16T17:18:05Z", "authToken": null, "newRegistration": null}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"404":
|
||||||
|
application/json: {"errors": [{"code": 1020, "message": "Code not found or expired"}]}
|
||||||
getGlobalHubs:
|
getGlobalHubs:
|
||||||
speakeasy-default-get-global-hubs:
|
speakeasy-default-get-global-hubs:
|
||||||
responses:
|
responses:
|
||||||
@@ -2519,6 +2632,22 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-get-search-all-libraries:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
query: "<value>"
|
||||||
|
searchTypes: ["people"]
|
||||||
|
includeCollections: 1
|
||||||
|
includeExternalMedia: 1
|
||||||
|
header:
|
||||||
|
X-Plex-Client-Identifier: "3381b62b-9ab7-4e37-827b-203e9809eb58"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"MediaContainer": {"size": 50, "allowSync": false, "identifier": "com.plexapp.plugins.library", "librarySectionID": 2, "librarySectionTitle": "TV Series", "librarySectionUUID": "e69655a2-ef48-4aba-bb19-0cc34d1e7d36", "mediaTagPrefix": "/system/bundle/media/flags/", "mediaTagVersion": 1734362201, "SearchResult": [{"score": 0.92, "Directory": {"key": "/library/sections/3/all?actor=197429", "librarySectionID": 1, "librarySectionKey": "/library/sections/1", "librarySectionTitle": "Movies", "librarySectionType": 1, "type": "tag", "id": 197429, "filter": "actor=197429", "tag": "Ben Stiller", "tagType": 4, "tagKey": "5d776826999c64001ec2c606", "thumb": "https://metadata-static.plex.tv/5/people/57bd7c7d6c5c9e2881251b30e5603d3d.jpg", "count": 10}, "Metadata": {"ratingKey": "58683", "key": "/library/metadata/58683", "guid": "plex://movie/5d7768ba96b655001fdc0408", "slug": "4-for-texas", "studio": "20th Century Studios", "type": "movie", "title": "Avatar: The Way of Water", "banner": "/library/metadata/58683/banner/1703239236", "titleSort": "Whale", "contentRating": "PG-13", "summary": "Jake Sully lives with his newfound family formed on the extrasolar moon Pandora.\nOnce a familiar threat returns to finish what was previously started, Jake must\nwork with Neytiri and the army of the Na'vi race to protect their home.\n", "rating": 7.6, "audienceRating": 9.2, "year": 2022, "tagline": "Return to Pandora.", "thumb": "/library/metadata/58683/thumb/1703239236", "art": "/library/metadata/58683/art/1703239236", "theme": "/library/metadata/1/theme/1705636920", "index": 1, "leafCount": 14, "viewedLeafCount": 0, "childCount": 1, "seasonCount": 2022, "duration": 11558112, "originallyAvailableAt": "2022-12-14", "addedAt": 1556281940, "updatedAt": 1556281940, "parentYear": 2010, "audienceRatingImage": "rottentomatoes://image.rating.upright", "chapterSource": "media", "primaryExtraKey": "/library/metadata/58684", "originalTitle": "映画 ブラッククローバー 魔法帝の剣", "parentRatingKey": "66", "grandparentRatingKey": "66", "parentGuid": "plex://show/5d9c081b170e24001f2a7be4", "grandparentGuid": "plex://show/5d9c081b170e24001f2a7be4", "grandparentSlug": "alice-in-borderland-2020", "grandparentKey": "/library/metadata/66", "parentKey": "/library/metadata/66", "grandparentTitle": "Caprica", "grandparentThumb": "/library/metadata/66/thumb/1705716261", "grandparentTheme": "/library/metadata/66/theme/1705716261", "grandparentArt": "/library/metadata/66/art/1705716261", "parentTitle": "Caprica", "parentIndex": 1, "parentThumb": "/library/metadata/66/thumb/1705716261", "ratingImage": "rottentomatoes://image.rating.ripe", "viewCount": 1, "viewOffset": 5222500, "skipCount": 1, "subtype": "clip", "lastRatedAt": 1721813113, "createdAtAccuracy": "epoch,local", "createdAtTZOffset": "0", "lastViewedAt": 1682752242, "userRating": 10, "Image": [{"alt": "Episode 1", "type": "background", "url": "/library/metadata/45521/thumb/1644710589"}], "UltraBlurColors": {"topLeft": "11333b", "topRight": "0a232d", "bottomRight": "73958", "bottomLeft": "1f5066"}, "Guid": [{"id": "{\"imdbExample\":{\"summary\":\"IMDB example\",\"value\":\"imdb://tt13015952\"},\"tmdbExample\":{\"summary\":\"TMDB example\",\"value\":\"tmdb://2434012\"},\"tvdbExample\":{\"summary\":\"TVDB example\",\"value\":\"tvdb://7945991\"}}"}], "librarySectionID": 1, "librarySectionTitle": "Movies", "librarySectionKey": "/library/sections/1", "showOrdering": "absolute", "flattenSeasons": "1", "skipChildren": false, "Media": [{"id": 387322, "duration": 9610350, "bitrate": 25512, "width": 3840, "height": 1602, "aspectRatio": 2.35, "audioChannels": 6, "displayOffset": 50, "audioCodec": "aac", "videoCodec": "hevc", "videoResolution": "4k", "container": "mp4", "videoFrameRate": "24p", "videoProfile": "main 10", "hasVoiceActivity": false, "audioProfile": "dts", "has64bitOffsets": false, "Part": [{"accessible": true, "exists": true, "id": 418385, "key": "/library/parts/418385/1735864239/file.mkv", "indexes": "sd", "duration": 9610350, "file": "/mnt/Movies_1/W/Wicked (2024).mkv", "size": 30649952104, "packetLength": 188, "container": "mkv", "videoProfile": "main 10", "audioProfile": "dts", "has64bitOffsets": false, "hasThumbnail": "1"}]}], "Genre": [{"id": 259, "tag": "Crime"}], "Country": [{"id": 259, "tag": "United States of America"}], "Director": [{"id": 126522, "tag": "Danny Boyle", "thumb": "https://metadata-static.plex.tv/8/people/8d65fa96804802e08f2de09fe014408e.jpg"}], "Writer": [{"id": 126522, "tag": "Jamie P. Hanson", "thumb": "https://metadata-static.plex.tv/8/people/8d65fa96804802e08f2de09fe014408e.jpg"}], "Role": [{"id": 126522, "tag": "Teller", "role": "Self - Judge", "thumb": "https://metadata-static.plex.tv/7/people/708568fd018d7aa8b1032dcf867747e8.jpg"}], "Location": [{"path": "/TV Shows/Clarkson's Farm"}]}}]}}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
get-media-meta-data:
|
get-media-meta-data:
|
||||||
speakeasy-default-get-media-meta-data:
|
speakeasy-default-get-media-meta-data:
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2828,6 +2957,23 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-post-users-sign-in-data:
|
||||||
|
parameters:
|
||||||
|
header:
|
||||||
|
X-Plex-Client-Identifier: "3381b62b-9ab7-4e37-827b-203e9809eb58"
|
||||||
|
X-Plex-Product: "Plex for Roku"
|
||||||
|
X-Plex-Device: "Roku 3"
|
||||||
|
X-Plex-Version: "2.4.1"
|
||||||
|
X-Plex-Platform: "Roku"
|
||||||
|
requestBody:
|
||||||
|
application/x-www-form-urlencoded: {"login": "username@email.com", "password": "password123", "rememberMe": false, "verificationCode": "123456"}
|
||||||
|
responses:
|
||||||
|
"201":
|
||||||
|
application/json: {"adsConsent": null, "adsConsentReminderAt": 1556281940, "adsConsentSetAt": 1556281940, "anonymous": false, "authToken": "CxoUzBTSV5hsxjTpFKaf", "backupCodesCreated": false, "confirmed": false, "country": "US", "email": "username@email.com", "emailOnlyAuth": false, "experimentalFeatures": false, "friendlyName": "friendlyUsername", "entitlements": ["[]"], "guest": false, "hasPassword": true, "home": false, "homeAdmin": false, "homeSize": 1, "id": 13692262, "joinedAt": 1556281940, "locale": "ru", "mailingListActive": false, "mailingListStatus": "active", "maxHomeSize": 15, "profile": {"autoSelectAudio": true, "defaultAudioLanguage": "ja", "defaultSubtitleLanguage": "en", "autoSelectSubtitle": 1, "defaultSubtitleAccessibility": 1, "defaultSubtitleForced": 1, "watchedIndicator": 1, "mediaReviewsVisibility": 1}, "protected": false, "rememberExpiresAt": 1556281940, "restricted": false, "scrobbleTypes": "<value>", "services": [], "subscription": {"active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive"}, "subscriptionDescription": "<value>", "subscriptions": [{"active": true, "subscribedAt": "2021-04-12T18:21:12Z", "status": "Inactive"}], "thumb": "https://plex.tv/users/a4f43c1ebfde43a5/avatar?c=8372075101", "title": "UsernameTitle", "twoFactorEnabled": false, "username": "Username", "uuid": "dae343c1f45beb4f", "attributionPartner": null, "pastSubscriptions": [], "trials": []}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
getStatistics:
|
getStatistics:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2840,6 +2986,17 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-get-statistics:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
timespan: 4
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"MediaContainer": {"size": 5497, "Device": [{"id": 208, "name": "Roku Express", "platform": "Roku", "clientIdentifier": "793095d235660625108ef785cc7646e9", "createdAt": 1706470556}], "Account": [{"id": 238960586, "key": "/accounts/238960586", "name": "Diane", "defaultAudioLanguage": "en", "autoSelectAudio": true, "defaultSubtitleLanguage": "en", "subtitleMode": 1, "thumb": "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967"}], "StatisticsMedia": [{"accountID": 1, "deviceID": 13, "timespan": 4, "at": 1707141600, "metadataType": 4, "count": 1, "duration": 1555}]}}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
getResourcesStatistics:
|
getResourcesStatistics:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2852,6 +3009,17 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-get-resources-statistics:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
timespan: 4
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"MediaContainer": {"size": 5497, "StatisticsResources": [{"timespan": 6, "at": 1718384427, "hostCpuUtilization": 1.276, "processCpuUtilization": 0.025, "hostMemoryUtilization": 17.026, "processMemoryUtilization": 0.493}]}}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
getBandwidthStatistics:
|
getBandwidthStatistics:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
@@ -2864,6 +3032,17 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-get-bandwidth-statistics:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
timespan: 4
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"MediaContainer": {"size": 5497, "Device": [{"id": 208, "name": "Roku Express", "platform": "Roku", "clientIdentifier": "793095d235660625108ef785cc7646e9", "createdAt": 1706470556}], "Account": [{"id": 238960586, "key": "/accounts/238960586", "name": "Diane", "defaultAudioLanguage": "en", "autoSelectAudio": true, "defaultSubtitleLanguage": "en", "subtitleMode": 1, "thumb": "https://plex.tv/users/50d83634246da1de/avatar?c=1707110967"}], "StatisticsBandwidth": [{"accountID": 238960586, "deviceID": 208, "timespan": 6, "at": 1718387650, "lan": true, "bytes": 22}]}}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
getSessions:
|
getSessions:
|
||||||
speakeasy-default-get-sessions:
|
speakeasy-default-get-sessions:
|
||||||
responses:
|
responses:
|
||||||
@@ -2956,6 +3135,19 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-get-session-history:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
accountId: 1
|
||||||
|
filter: {}
|
||||||
|
librarySectionID: 12
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/json: {"MediaContainer": {"size": 10855, "Metadata": [{"historyKey": "/status/sessions/history/1", "key": "/library/metadata/32171", "ratingKey": "32171", "librarySectionID": "2", "parentKey": "/library/metadata/32170", "grandparentKey": "/library/metadata/32132", "title": "The Noise That Blue Makes", "grandparentTitle": "Taskmaster", "type": "episode", "thumb": "/library/metadata/32171/thumb/-1", "parentThumb": "/library/metadata/32170/thumb/1654134301", "grandparentThumb": "/library/metadata/32132/thumb/1703933346", "grandparentArt": "/library/metadata/32132/art/1703933346", "index": 1, "parentIndex": 13, "originallyAvailableAt": "2022-04-14T00:00:00Z", "viewedAt": 1654139223, "accountID": 1, "deviceID": 5}]}}
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
getTranscodeSessions:
|
getTranscodeSessions:
|
||||||
speakeasy-default-get-transcode-sessions:
|
speakeasy-default-get-transcode-sessions:
|
||||||
responses:
|
responses:
|
||||||
@@ -2994,6 +3186,15 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-check-for-updates:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
download: 1
|
||||||
|
responses:
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
applyUpdates:
|
applyUpdates:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
@@ -3005,6 +3206,16 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-apply-updates:
|
||||||
|
parameters:
|
||||||
|
query:
|
||||||
|
tonight: 1
|
||||||
|
skip: 1
|
||||||
|
responses:
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
get-users:
|
get-users:
|
||||||
"":
|
"":
|
||||||
parameters:
|
parameters:
|
||||||
@@ -3029,5 +3240,28 @@ examples:
|
|||||||
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
"401":
|
"401":
|
||||||
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
|
speakeasy-default-get-users:
|
||||||
|
parameters:
|
||||||
|
header:
|
||||||
|
X-Plex-Client-Identifier: "3381b62b-9ab7-4e37-827b-203e9809eb58"
|
||||||
|
X-Plex-Product: "Plex for Roku"
|
||||||
|
X-Plex-Device: "Roku 3"
|
||||||
|
X-Plex-Device-Name: "Chrome"
|
||||||
|
X-Plex-Device-Screen-Resolution: "1487x1165,2560x1440"
|
||||||
|
X-Plex-Version: "2.4.1"
|
||||||
|
X-Plex-Platform: "Roku"
|
||||||
|
X-Plex-Features: "external-media,indirect-media,hub-style-list"
|
||||||
|
X-Plex-Model: "4200X"
|
||||||
|
X-Plex-Session-Id: "97e136ef-4ddd-4ff3-89a7-a5820c96c2ca"
|
||||||
|
X-Plex-Language: "en"
|
||||||
|
X-Plex-Platform-Version: "4.3 build 1057"
|
||||||
|
X-Plex-Token: "CV5xoxjTpFKUzBTShsaf"
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
application/xml: "0xfD5052DbD1"
|
||||||
|
"400":
|
||||||
|
application/json: {"errors": [{"code": 1000, "message": "X-Plex-Client-Identifier is missing", "status": 400}]}
|
||||||
|
"401":
|
||||||
|
application/json: {"errors": [{"code": 1001, "message": "User could not be authenticated", "status": 401}]}
|
||||||
examplesVersion: 1.0.2
|
examplesVersion: 1.0.2
|
||||||
generatedTests: {}
|
generatedTests: {}
|
||||||
|
|||||||
@@ -16,8 +16,13 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: true
|
oAuth2ClientCredentialsEnabled: true
|
||||||
oAuth2PasswordEnabled: false
|
oAuth2PasswordEnabled: false
|
||||||
|
hoistGlobalSecurity: true
|
||||||
|
tests:
|
||||||
|
generateTests: true
|
||||||
|
generateNewTests: false
|
||||||
|
skipResponseBodyAssertions: false
|
||||||
csharp:
|
csharp:
|
||||||
version: 0.15.1
|
version: 0.17.0
|
||||||
additionalDependencies: []
|
additionalDependencies: []
|
||||||
author: LukeHagar
|
author: LukeHagar
|
||||||
baseErrorName: PlexAPIError
|
baseErrorName: PlexAPIError
|
||||||
@@ -28,6 +33,7 @@ csharp:
|
|||||||
enableSourceLink: true
|
enableSourceLink: true
|
||||||
flattenGlobalSecurity: true
|
flattenGlobalSecurity: true
|
||||||
flatteningOrder: ""
|
flatteningOrder: ""
|
||||||
|
httpClientPrefix: Speakeasy
|
||||||
imports:
|
imports:
|
||||||
option: openapi
|
option: openapi
|
||||||
paths:
|
paths:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
speakeasyVersion: 1.557.0
|
speakeasyVersion: 1.615.2
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
@@ -16,19 +16,19 @@ sources:
|
|||||||
- main
|
- main
|
||||||
plexapi:
|
plexapi:
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:dafcc1192236829b85bc924e0462432c0eb7318a17c542f46e3dd05a9a6265df
|
sourceRevisionDigest: sha256:5125adfea1b0daea399c6ecf755e32795de6b4131465ae6a1f32ad73b3bc7787
|
||||||
sourceBlobDigest: sha256:bc072115d585e1695cb8393db901a3d36be1dcd57a69bad2b91a1ba7ac3c9c4b
|
sourceBlobDigest: sha256:95cea18b6e5f7d76d35db0aba5bcb59e72cf204451a2b09a99be0e3e9ec1f4c0
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- speakeasy-sdk-regen-1749428820
|
- speakeasy-sdk-regen-1757895932
|
||||||
targets:
|
targets:
|
||||||
plexcsharp:
|
plexcsharp:
|
||||||
source: plexapi
|
source: plexapi
|
||||||
sourceNamespace: plexapi
|
sourceNamespace: plexapi
|
||||||
sourceRevisionDigest: sha256:dafcc1192236829b85bc924e0462432c0eb7318a17c542f46e3dd05a9a6265df
|
sourceRevisionDigest: sha256:5125adfea1b0daea399c6ecf755e32795de6b4131465ae6a1f32ad73b3bc7787
|
||||||
sourceBlobDigest: sha256:bc072115d585e1695cb8393db901a3d36be1dcd57a69bad2b91a1ba7ac3c9c4b
|
sourceBlobDigest: sha256:95cea18b6e5f7d76d35db0aba5bcb59e72cf204451a2b09a99be0e3e9ec1f4c0
|
||||||
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
codeSamplesNamespace: code-samples-csharp-plexcsharp
|
||||||
codeSamplesRevisionDigest: sha256:3e40165c9db5020b3885878073275cf7a8e9cfc5dc3f4a81b48c209581c6a041
|
codeSamplesRevisionDigest: sha256:41c049f80e89195d5537bfbc2aa652942aeb669534f6c7d22e2172361fd708aa
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
speakeasyVersion: latest
|
speakeasyVersion: latest
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.15.1";
|
private const string _sdkVersion = "0.17.0";
|
||||||
private const string _sdkGenVersion = "2.623.0";
|
private const string _sdkGenVersion = "2.698.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
|
|
||||||
public Activities(SDKConfig config)
|
public Activities(SDKConfig config)
|
||||||
@@ -137,7 +137,17 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetServerActivitiesResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
|
GetServerActivitiesResponseBody obj;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
obj = ResponseBodyDeserializer.DeserializeNotNull<GetServerActivitiesResponseBody>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetServerActivitiesResponseBody.", httpResponse, httpResponseBody, ex);
|
||||||
|
}
|
||||||
|
|
||||||
var response = new GetServerActivitiesResponse()
|
var response = new GetServerActivitiesResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -148,40 +158,60 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400)
|
else if(responseStatusCode == 400)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetServerActivitiesBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetServerActivitiesBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetServerActivitiesBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetServerActivitiesBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetServerActivitiesBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetServerActivitiesUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetServerActivitiesUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetServerActivitiesUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetServerActivitiesUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetServerActivitiesUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<CancelServerActivitiesResponse> CancelServerActivitiesAsync(string activityUUID)
|
public async Task<CancelServerActivitiesResponse> CancelServerActivitiesAsync(string activityUUID)
|
||||||
@@ -250,34 +280,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<CancelServerActivitiesBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
CancelServerActivitiesBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<CancelServerActivitiesBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into CancelServerActivitiesBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new CancelServerActivitiesBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<CancelServerActivitiesUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
CancelServerActivitiesUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<CancelServerActivitiesUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into CancelServerActivitiesUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new CancelServerActivitiesUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,8 +95,8 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
};
|
};
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.15.1";
|
private const string _sdkVersion = "0.17.0";
|
||||||
private const string _sdkGenVersion = "2.623.0";
|
private const string _sdkGenVersion = "2.698.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
|
|
||||||
public Authentication(SDKConfig config)
|
public Authentication(SDKConfig config)
|
||||||
@@ -171,34 +171,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetTransientTokenBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetTransientTokenBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetTransientTokenBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetTransientTokenBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetTransientTokenBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetTransientTokenUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetTransientTokenUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetTransientTokenUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetTransientTokenUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetTransientTokenUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetSourceConnectionInformationResponse> GetSourceConnectionInformationAsync(string source)
|
public async Task<GetSourceConnectionInformationResponse> GetSourceConnectionInformationAsync(string source)
|
||||||
@@ -267,34 +287,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetSourceConnectionInformationBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetSourceConnectionInformationBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetSourceConnectionInformationBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetSourceConnectionInformationBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetSourceConnectionInformationBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetSourceConnectionInformationUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetSourceConnectionInformationUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetSourceConnectionInformationUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetSourceConnectionInformationUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetSourceConnectionInformationUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetTokenDetailsResponse> GetTokenDetailsAsync(string? serverUrl = null)
|
public async Task<GetTokenDetailsResponse> GetTokenDetailsAsync(string? serverUrl = null)
|
||||||
@@ -356,7 +396,17 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetTokenDetailsUserPlexAccount>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
|
GetTokenDetailsUserPlexAccount obj;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
obj = ResponseBodyDeserializer.DeserializeNotNull<GetTokenDetailsUserPlexAccount>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetTokenDetailsUserPlexAccount.", httpResponse, httpResponseBody, ex);
|
||||||
|
}
|
||||||
|
|
||||||
var response = new GetTokenDetailsResponse()
|
var response = new GetTokenDetailsResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -367,40 +417,60 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400)
|
else if(responseStatusCode == 400)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetTokenDetailsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetTokenDetailsBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetTokenDetailsBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetTokenDetailsBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetTokenDetailsBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetTokenDetailsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetTokenDetailsUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetTokenDetailsUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetTokenDetailsUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetTokenDetailsUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<PostUsersSignInDataResponse> PostUsersSignInDataAsync(PostUsersSignInDataRequest request, string? serverUrl = null)
|
public async Task<PostUsersSignInDataResponse> PostUsersSignInDataAsync(PostUsersSignInDataRequest request, string? serverUrl = null)
|
||||||
@@ -464,7 +534,17 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSignInDataUserPlexAccount>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
|
PostUsersSignInDataUserPlexAccount obj;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
obj = ResponseBodyDeserializer.DeserializeNotNull<PostUsersSignInDataUserPlexAccount>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into PostUsersSignInDataUserPlexAccount.", httpResponse, httpResponseBody, ex);
|
||||||
|
}
|
||||||
|
|
||||||
var response = new PostUsersSignInDataResponse()
|
var response = new PostUsersSignInDataResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -475,40 +555,60 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400)
|
else if(responseStatusCode == 400)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSignInDataBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
PostUsersSignInDataBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<PostUsersSignInDataBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into PostUsersSignInDataBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new PostUsersSignInDataBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<PostUsersSignInDataUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
PostUsersSignInDataUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<PostUsersSignInDataUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into PostUsersSignInDataUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new PostUsersSignInDataUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -17,7 +17,9 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils.Retries;
|
using LukeHagar.PlexAPI.SDK.Utils.Retries;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Concurrent;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Net.Http.Headers;
|
using System.Net.Http.Headers;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -101,8 +103,8 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.15.1";
|
private const string _sdkVersion = "0.17.0";
|
||||||
private const string _sdkGenVersion = "2.623.0";
|
private const string _sdkGenVersion = "2.698.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
|
|
||||||
public Butler(SDKConfig config)
|
public Butler(SDKConfig config)
|
||||||
@@ -164,7 +166,17 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetButlerTasksResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
|
GetButlerTasksResponseBody obj;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
obj = ResponseBodyDeserializer.DeserializeNotNull<GetButlerTasksResponseBody>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetButlerTasksResponseBody.", httpResponse, httpResponseBody, ex);
|
||||||
|
}
|
||||||
|
|
||||||
var response = new GetButlerTasksResponse()
|
var response = new GetButlerTasksResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -175,40 +187,60 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400)
|
else if(responseStatusCode == 400)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetButlerTasksBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetButlerTasksBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetButlerTasksBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetButlerTasksBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetButlerTasksBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetButlerTasksUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetButlerTasksUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetButlerTasksUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetButlerTasksUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetButlerTasksUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<StartAllTasksResponse> StartAllTasksAsync()
|
public async Task<StartAllTasksResponse> StartAllTasksAsync()
|
||||||
@@ -274,34 +306,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<StartAllTasksBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
StartAllTasksBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<StartAllTasksBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into StartAllTasksBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new StartAllTasksBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<StartAllTasksUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
StartAllTasksUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<StartAllTasksUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into StartAllTasksUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new StartAllTasksUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<StopAllTasksResponse> StopAllTasksAsync()
|
public async Task<StopAllTasksResponse> StopAllTasksAsync()
|
||||||
@@ -367,34 +419,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<StopAllTasksBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
StopAllTasksBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<StopAllTasksBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into StopAllTasksBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new StopAllTasksBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<StopAllTasksUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
StopAllTasksUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<StopAllTasksUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into StopAllTasksUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new StopAllTasksUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<StartTaskResponse> StartTaskAsync(TaskName taskName)
|
public async Task<StartTaskResponse> StartTaskAsync(TaskName taskName)
|
||||||
@@ -463,34 +535,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<StartTaskBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
StartTaskBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<StartTaskBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into StartTaskBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new StartTaskBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<StartTaskUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
StartTaskUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<StartTaskUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into StartTaskUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new StartTaskUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<StopTaskResponse> StopTaskAsync(PathParamTaskName taskName)
|
public async Task<StopTaskResponse> StopTaskAsync(PathParamTaskName taskName)
|
||||||
@@ -559,34 +651,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<StopTaskBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
StopTaskBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<StopTaskBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into StopTaskBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new StopTaskBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<StopTaskUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
StopTaskUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<StopTaskUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into StopTaskUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new StopTaskUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 404 || responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode == 404 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -73,8 +73,8 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.15.1";
|
private const string _sdkVersion = "0.17.0";
|
||||||
private const string _sdkGenVersion = "2.623.0";
|
private const string _sdkGenVersion = "2.698.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
|
|
||||||
public Hubs(SDKConfig config)
|
public Hubs(SDKConfig config)
|
||||||
@@ -140,7 +140,17 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetGlobalHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
|
GetGlobalHubsResponseBody obj;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
obj = ResponseBodyDeserializer.DeserializeNotNull<GetGlobalHubsResponseBody>(httpResponseBody, NullValueHandling.Include);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetGlobalHubsResponseBody.", httpResponse, httpResponseBody, ex);
|
||||||
|
}
|
||||||
|
|
||||||
var response = new GetGlobalHubsResponse()
|
var response = new GetGlobalHubsResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -151,40 +161,60 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400)
|
else if(responseStatusCode == 400)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetGlobalHubsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetGlobalHubsBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetGlobalHubsBadRequestPayload>(httpResponseBody, NullValueHandling.Include);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetGlobalHubsBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetGlobalHubsBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetGlobalHubsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Include);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetGlobalHubsUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetGlobalHubsUnauthorizedPayload>(httpResponseBody, NullValueHandling.Include);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetGlobalHubsUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetGlobalHubsUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetRecentlyAddedResponse> GetRecentlyAddedAsync(GetRecentlyAddedRequest request)
|
public async Task<GetRecentlyAddedResponse> GetRecentlyAddedAsync(GetRecentlyAddedRequest request)
|
||||||
@@ -240,7 +270,17 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetRecentlyAddedResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
|
GetRecentlyAddedResponseBody obj;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
obj = ResponseBodyDeserializer.DeserializeNotNull<GetRecentlyAddedResponseBody>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetRecentlyAddedResponseBody.", httpResponse, httpResponseBody, ex);
|
||||||
|
}
|
||||||
|
|
||||||
var response = new GetRecentlyAddedResponse()
|
var response = new GetRecentlyAddedResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -251,18 +291,18 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400 || responseStatusCode == 401 || responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode == 400 || responseStatusCode == 401 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetLibraryHubsResponse> GetLibraryHubsAsync(double sectionId, double? count = null, QueryParamOnlyTransient? onlyTransient = null)
|
public async Task<GetLibraryHubsResponse> GetLibraryHubsAsync(double sectionId, double? count = null, QueryParamOnlyTransient? onlyTransient = null)
|
||||||
@@ -324,7 +364,17 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetLibraryHubsResponseBody>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
|
GetLibraryHubsResponseBody obj;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
obj = ResponseBodyDeserializer.DeserializeNotNull<GetLibraryHubsResponseBody>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetLibraryHubsResponseBody.", httpResponse, httpResponseBody, ex);
|
||||||
|
}
|
||||||
|
|
||||||
var response = new GetLibraryHubsResponse()
|
var response = new GetLibraryHubsResponse()
|
||||||
{
|
{
|
||||||
StatusCode = responseStatusCode,
|
StatusCode = responseStatusCode,
|
||||||
@@ -335,40 +385,60 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400)
|
else if(responseStatusCode == 400)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetLibraryHubsBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetLibraryHubsBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetLibraryHubsBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetLibraryHubsBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetLibraryHubsBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetLibraryHubsUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetLibraryHubsUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetLibraryHubsUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetLibraryHubsUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetLibraryHubsUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,9 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
using LukeHagar.PlexAPI.SDK.Utils.Retries;
|
using LukeHagar.PlexAPI.SDK.Utils.Retries;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Collections.Concurrent;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.Net.Http.Headers;
|
using System.Net.Http.Headers;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -94,8 +96,8 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.15.1";
|
private const string _sdkVersion = "0.17.0";
|
||||||
private const string _sdkGenVersion = "2.623.0";
|
private const string _sdkGenVersion = "2.698.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
|
|
||||||
public Log(SDKConfig config)
|
public Log(SDKConfig config)
|
||||||
@@ -171,34 +173,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<LogLineBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
LogLineBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<LogLineBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into LogLineBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new LogLineBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<LogLineUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
LogLineUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<LogLineUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into LogLineUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new LogLineUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<LogMultiLineResponse> LogMultiLineAsync(string request)
|
public async Task<LogMultiLineResponse> LogMultiLineAsync(string request)
|
||||||
@@ -270,34 +292,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<LogMultiLineBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
LogMultiLineBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<LogMultiLineBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into LogMultiLineBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new LogMultiLineBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<LogMultiLineUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
LogMultiLineUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<LogMultiLineUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into LogMultiLineUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new LogMultiLineUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<EnablePaperTrailResponse> EnablePaperTrailAsync()
|
public async Task<EnablePaperTrailResponse> EnablePaperTrailAsync()
|
||||||
@@ -363,34 +405,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<EnablePaperTrailBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
EnablePaperTrailBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<EnablePaperTrailBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into EnablePaperTrailBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new EnablePaperTrailBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<EnablePaperTrailUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
EnablePaperTrailUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<EnablePaperTrailUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into EnablePaperTrailUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new EnablePaperTrailUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 403 || responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode == 403 || responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3,7 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsPackable>true</IsPackable>
|
<IsPackable>true</IsPackable>
|
||||||
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
<PackageId>LukeHagar.PlexAPI.SDK</PackageId>
|
||||||
<Version>0.15.1</Version>
|
<Version>0.17.0</Version>
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Authors>LukeHagar</Authors>
|
<Authors>LukeHagar</Authors>
|
||||||
<Copyright>Copyright (c) LukeHagar 2025</Copyright>
|
<Copyright>Copyright (c) LukeHagar 2025</Copyright>
|
||||||
|
|||||||
@@ -90,8 +90,8 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
public SDKConfig SDKConfiguration { get; private set; }
|
public SDKConfig SDKConfiguration { get; private set; }
|
||||||
private const string _language = "csharp";
|
private const string _language = "csharp";
|
||||||
private const string _sdkVersion = "0.15.1";
|
private const string _sdkVersion = "0.17.0";
|
||||||
private const string _sdkGenVersion = "2.623.0";
|
private const string _sdkGenVersion = "2.698.4";
|
||||||
private const string _openapiDocVersion = "0.0.3";
|
private const string _openapiDocVersion = "0.0.3";
|
||||||
|
|
||||||
public Media(SDKConfig config)
|
public Media(SDKConfig config)
|
||||||
@@ -165,34 +165,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<MarkPlayedBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
MarkPlayedBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<MarkPlayedBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into MarkPlayedBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new MarkPlayedBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<MarkPlayedUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
MarkPlayedUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<MarkPlayedUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into MarkPlayedUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new MarkPlayedUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<MarkUnplayedResponse> MarkUnplayedAsync(double key)
|
public async Task<MarkUnplayedResponse> MarkUnplayedAsync(double key)
|
||||||
@@ -261,34 +281,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<MarkUnplayedBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
MarkUnplayedBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<MarkUnplayedBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into MarkUnplayedBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new MarkUnplayedBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<MarkUnplayedUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
MarkUnplayedUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<MarkUnplayedUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into MarkUnplayedUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new MarkUnplayedUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<UpdatePlayProgressResponse> UpdatePlayProgressAsync(string key, double time, string state)
|
public async Task<UpdatePlayProgressResponse> UpdatePlayProgressAsync(string key, double time, string state)
|
||||||
@@ -359,34 +399,54 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<UpdatePlayProgressBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
UpdatePlayProgressBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<UpdatePlayProgressBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into UpdatePlayProgressBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new UpdatePlayProgressBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<UpdatePlayProgressUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
UpdatePlayProgressUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<UpdatePlayProgressUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into UpdatePlayProgressUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new UpdatePlayProgressUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetBannerImageResponse> GetBannerImageAsync(GetBannerImageRequest request)
|
public async Task<GetBannerImageResponse> GetBannerImageAsync(GetBannerImageRequest request)
|
||||||
@@ -453,40 +513,60 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400)
|
else if(responseStatusCode == 400)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetBannerImageBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetBannerImageBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetBannerImageBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetBannerImageBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetBannerImageBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetBannerImageUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetBannerImageUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetBannerImageUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetBannerImageUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetBannerImageUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<GetThumbImageResponse> GetThumbImageAsync(GetThumbImageRequest request)
|
public async Task<GetThumbImageResponse> GetThumbImageAsync(GetThumbImageRequest request)
|
||||||
@@ -553,40 +633,60 @@ namespace LukeHagar.PlexAPI.SDK
|
|||||||
return response;
|
return response;
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 400)
|
else if(responseStatusCode == 400)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetThumbImageBadRequest>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetThumbImageBadRequestPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetThumbImageBadRequestPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetThumbImageBadRequestPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetThumbImageBadRequest(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode == 401)
|
else if(responseStatusCode == 401)
|
||||||
{
|
{
|
||||||
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
if(Utilities.IsContentTypeMatch("application/json", contentType))
|
||||||
{
|
{
|
||||||
var obj = ResponseBodyDeserializer.Deserialize<GetThumbImageUnauthorized>(await httpResponse.Content.ReadAsStringAsync(), NullValueHandling.Ignore);
|
var httpResponseBody = await httpResponse.Content.ReadAsStringAsync();
|
||||||
obj!.RawResponse = httpResponse;
|
GetThumbImageUnauthorizedPayload payload;
|
||||||
throw obj!;
|
try
|
||||||
|
{
|
||||||
|
payload = ResponseBodyDeserializer.DeserializeNotNull<GetThumbImageUnauthorizedPayload>(httpResponseBody, NullValueHandling.Ignore);
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
throw new ResponseValidationException("Failed to deserialize response body into GetThumbImageUnauthorizedPayload.", httpResponse, httpResponseBody, ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown content type received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
payload.RawResponse = httpResponse;
|
||||||
|
throw new GetThumbImageUnauthorized(payload, httpResponse, httpResponseBody);
|
||||||
|
}
|
||||||
|
|
||||||
|
throw new Models.Errors.SDKException("Unknown content type received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
else if(responseStatusCode >= 400 && responseStatusCode < 500)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
else if(responseStatusCode >= 500 && responseStatusCode < 600)
|
||||||
{
|
{
|
||||||
throw new Models.Errors.SDKException("API error occurred", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("API error occurred", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new Models.Errors.SDKException("Unknown status code received", responseStatusCode, await httpResponse.Content.ReadAsStringAsync(), httpResponse);
|
throw new Models.Errors.SDKException("Unknown status code received", httpResponse, await httpResponse.Content.ReadAsStringAsync());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class AddPlaylistContentsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class AddPlaylistContentsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<AddPlaylistContentsErrors>? Errors { get; set; }
|
public List<AddPlaylistContentsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class AddPlaylistContentsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public AddPlaylistContentsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use AddPlaylistContentsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<AddPlaylistContentsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public AddPlaylistContentsBadRequest(
|
||||||
|
AddPlaylistContentsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class AddPlaylistContentsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class AddPlaylistContentsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<AddPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
public List<AddPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class AddPlaylistContentsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public AddPlaylistContentsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use AddPlaylistContentsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<AddPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public AddPlaylistContentsUnauthorized(
|
||||||
|
AddPlaylistContentsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class ApplyUpdatesBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class ApplyUpdatesBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<ApplyUpdatesErrors>? Errors { get; set; }
|
public List<ApplyUpdatesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class ApplyUpdatesBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public ApplyUpdatesBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use ApplyUpdatesBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<ApplyUpdatesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public ApplyUpdatesBadRequest(
|
||||||
|
ApplyUpdatesBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class ApplyUpdatesUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class ApplyUpdatesUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<ApplyUpdatesUpdaterErrors>? Errors { get; set; }
|
public List<ApplyUpdatesUpdaterErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class ApplyUpdatesUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public ApplyUpdatesUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use ApplyUpdatesUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<ApplyUpdatesUpdaterErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public ApplyUpdatesUnauthorized(
|
||||||
|
ApplyUpdatesUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class CancelServerActivitiesBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class CancelServerActivitiesBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<CancelServerActivitiesErrors>? Errors { get; set; }
|
public List<CancelServerActivitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class CancelServerActivitiesBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public CancelServerActivitiesBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CancelServerActivitiesBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<CancelServerActivitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public CancelServerActivitiesBadRequest(
|
||||||
|
CancelServerActivitiesBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class CancelServerActivitiesUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class CancelServerActivitiesUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<CancelServerActivitiesActivitiesErrors>? Errors { get; set; }
|
public List<CancelServerActivitiesActivitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class CancelServerActivitiesUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public CancelServerActivitiesUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CancelServerActivitiesUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<CancelServerActivitiesActivitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public CancelServerActivitiesUnauthorized(
|
||||||
|
CancelServerActivitiesUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class CheckForUpdatesBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class CheckForUpdatesBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<CheckForUpdatesErrors>? Errors { get; set; }
|
public List<CheckForUpdatesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class CheckForUpdatesBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public CheckForUpdatesBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CheckForUpdatesBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<CheckForUpdatesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public CheckForUpdatesBadRequest(
|
||||||
|
CheckForUpdatesBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class CheckForUpdatesUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class CheckForUpdatesUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<CheckForUpdatesUpdaterErrors>? Errors { get; set; }
|
public List<CheckForUpdatesUpdaterErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class CheckForUpdatesUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public CheckForUpdatesUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CheckForUpdatesUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<CheckForUpdatesUpdaterErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public CheckForUpdatesUnauthorized(
|
||||||
|
CheckForUpdatesUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class ClearPlaylistContentsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class ClearPlaylistContentsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<ClearPlaylistContentsErrors>? Errors { get; set; }
|
public List<ClearPlaylistContentsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class ClearPlaylistContentsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public ClearPlaylistContentsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use ClearPlaylistContentsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<ClearPlaylistContentsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public ClearPlaylistContentsBadRequest(
|
||||||
|
ClearPlaylistContentsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class ClearPlaylistContentsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class ClearPlaylistContentsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<ClearPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
public List<ClearPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class ClearPlaylistContentsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public ClearPlaylistContentsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use ClearPlaylistContentsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<ClearPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public ClearPlaylistContentsUnauthorized(
|
||||||
|
ClearPlaylistContentsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class CreatePlaylistBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class CreatePlaylistBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<CreatePlaylistErrors>? Errors { get; set; }
|
public List<CreatePlaylistErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class CreatePlaylistBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public CreatePlaylistBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CreatePlaylistBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<CreatePlaylistErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public CreatePlaylistBadRequest(
|
||||||
|
CreatePlaylistBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class CreatePlaylistUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class CreatePlaylistUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<CreatePlaylistPlaylistsErrors>? Errors { get; set; }
|
public List<CreatePlaylistPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class CreatePlaylistUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public CreatePlaylistUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use CreatePlaylistUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<CreatePlaylistPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public CreatePlaylistUnauthorized(
|
||||||
|
CreatePlaylistUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class DeleteLibraryBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class DeleteLibraryBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<DeleteLibraryErrors>? Errors { get; set; }
|
public List<DeleteLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class DeleteLibraryBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public DeleteLibraryBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use DeleteLibraryBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<DeleteLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public DeleteLibraryBadRequest(
|
||||||
|
DeleteLibraryBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class DeleteLibraryUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class DeleteLibraryUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<DeleteLibraryLibraryErrors>? Errors { get; set; }
|
public List<DeleteLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class DeleteLibraryUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public DeleteLibraryUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use DeleteLibraryUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<DeleteLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public DeleteLibraryUnauthorized(
|
||||||
|
DeleteLibraryUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class DeletePlaylistBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class DeletePlaylistBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<DeletePlaylistErrors>? Errors { get; set; }
|
public List<DeletePlaylistErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class DeletePlaylistBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public DeletePlaylistBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use DeletePlaylistBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<DeletePlaylistErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public DeletePlaylistBadRequest(
|
||||||
|
DeletePlaylistBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class DeletePlaylistUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class DeletePlaylistUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<DeletePlaylistPlaylistsErrors>? Errors { get; set; }
|
public List<DeletePlaylistPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class DeletePlaylistUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public DeletePlaylistUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use DeletePlaylistUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<DeletePlaylistPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public DeletePlaylistUnauthorized(
|
||||||
|
DeletePlaylistUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class EnablePaperTrailBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class EnablePaperTrailBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<EnablePaperTrailErrors>? Errors { get; set; }
|
public List<EnablePaperTrailErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class EnablePaperTrailBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public EnablePaperTrailBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use EnablePaperTrailBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<EnablePaperTrailErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public EnablePaperTrailBadRequest(
|
||||||
|
EnablePaperTrailBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class EnablePaperTrailUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class EnablePaperTrailUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<EnablePaperTrailLogErrors>? Errors { get; set; }
|
public List<EnablePaperTrailLogErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class EnablePaperTrailUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public EnablePaperTrailUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use EnablePaperTrailUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<EnablePaperTrailLogErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public EnablePaperTrailUnauthorized(
|
||||||
|
EnablePaperTrailUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetActorsLibraryBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetActorsLibraryBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetActorsLibraryErrors>? Errors { get; set; }
|
public List<GetActorsLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetActorsLibraryBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetActorsLibraryBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetActorsLibraryBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetActorsLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetActorsLibraryBadRequest(
|
||||||
|
GetActorsLibraryBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetActorsLibraryUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetActorsLibraryUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetActorsLibraryLibraryErrors>? Errors { get; set; }
|
public List<GetActorsLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetActorsLibraryUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetActorsLibraryUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetActorsLibraryUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetActorsLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetActorsLibraryUnauthorized(
|
||||||
|
GetActorsLibraryUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetAllLibrariesBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetAllLibrariesBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetAllLibrariesErrors>? Errors { get; set; }
|
public List<GetAllLibrariesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetAllLibrariesBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetAllLibrariesBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetAllLibrariesBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetAllLibrariesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetAllLibrariesBadRequest(
|
||||||
|
GetAllLibrariesBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetAllLibrariesUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetAllLibrariesUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetAllLibrariesLibraryErrors>? Errors { get; set; }
|
public List<GetAllLibrariesLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetAllLibrariesUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetAllLibrariesUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetAllLibrariesUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetAllLibrariesLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetAllLibrariesUnauthorized(
|
||||||
|
GetAllLibrariesUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetAvailableClientsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetAvailableClientsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetAvailableClientsErrors>? Errors { get; set; }
|
public List<GetAvailableClientsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetAvailableClientsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetAvailableClientsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetAvailableClientsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetAvailableClientsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetAvailableClientsBadRequest(
|
||||||
|
GetAvailableClientsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetAvailableClientsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetAvailableClientsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetAvailableClientsServerErrors>? Errors { get; set; }
|
public List<GetAvailableClientsServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetAvailableClientsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetAvailableClientsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetAvailableClientsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetAvailableClientsServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetAvailableClientsUnauthorized(
|
||||||
|
GetAvailableClientsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetBandwidthStatisticsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetBandwidthStatisticsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetBandwidthStatisticsErrors>? Errors { get; set; }
|
public List<GetBandwidthStatisticsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetBandwidthStatisticsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetBandwidthStatisticsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetBandwidthStatisticsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetBandwidthStatisticsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetBandwidthStatisticsBadRequest(
|
||||||
|
GetBandwidthStatisticsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetBandwidthStatisticsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetBandwidthStatisticsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetBandwidthStatisticsStatisticsErrors>? Errors { get; set; }
|
public List<GetBandwidthStatisticsStatisticsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetBandwidthStatisticsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetBandwidthStatisticsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetBandwidthStatisticsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetBandwidthStatisticsStatisticsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetBandwidthStatisticsUnauthorized(
|
||||||
|
GetBandwidthStatisticsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetBannerImageBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetBannerImageBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetBannerImageErrors>? Errors { get; set; }
|
public List<GetBannerImageErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetBannerImageBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetBannerImageBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetBannerImageBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetBannerImageErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetBannerImageBadRequest(
|
||||||
|
GetBannerImageBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetBannerImageUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetBannerImageUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetBannerImageMediaErrors>? Errors { get; set; }
|
public List<GetBannerImageMediaErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetBannerImageUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetBannerImageUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetBannerImageUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetBannerImageMediaErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetBannerImageUnauthorized(
|
||||||
|
GetBannerImageUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetButlerTasksBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetButlerTasksBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetButlerTasksErrors>? Errors { get; set; }
|
public List<GetButlerTasksErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetButlerTasksBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetButlerTasksBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetButlerTasksBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetButlerTasksErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetButlerTasksBadRequest(
|
||||||
|
GetButlerTasksBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetButlerTasksUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetButlerTasksUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetButlerTasksButlerErrors>? Errors { get; set; }
|
public List<GetButlerTasksButlerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetButlerTasksUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetButlerTasksUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetButlerTasksUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetButlerTasksButlerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetButlerTasksUnauthorized(
|
||||||
|
GetButlerTasksUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetCompanionsDataBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetCompanionsDataBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetCompanionsDataErrors>? Errors { get; set; }
|
public List<GetCompanionsDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetCompanionsDataBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetCompanionsDataBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetCompanionsDataBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetCompanionsDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetCompanionsDataBadRequest(
|
||||||
|
GetCompanionsDataBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetCompanionsDataUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetCompanionsDataUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetCompanionsDataPlexErrors>? Errors { get; set; }
|
public List<GetCompanionsDataPlexErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetCompanionsDataUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetCompanionsDataUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetCompanionsDataUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetCompanionsDataPlexErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetCompanionsDataUnauthorized(
|
||||||
|
GetCompanionsDataUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetCountriesLibraryBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetCountriesLibraryBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetCountriesLibraryErrors>? Errors { get; set; }
|
public List<GetCountriesLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetCountriesLibraryBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetCountriesLibraryBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetCountriesLibraryBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetCountriesLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetCountriesLibraryBadRequest(
|
||||||
|
GetCountriesLibraryBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetCountriesLibraryUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetCountriesLibraryUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetCountriesLibraryLibraryErrors>? Errors { get; set; }
|
public List<GetCountriesLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetCountriesLibraryUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetCountriesLibraryUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetCountriesLibraryUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetCountriesLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetCountriesLibraryUnauthorized(
|
||||||
|
GetCountriesLibraryUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetDevicesBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetDevicesBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetDevicesErrors>? Errors { get; set; }
|
public List<GetDevicesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetDevicesBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetDevicesBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetDevicesBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetDevicesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetDevicesBadRequest(
|
||||||
|
GetDevicesBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetDevicesUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetDevicesUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetDevicesServerErrors>? Errors { get; set; }
|
public List<GetDevicesServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetDevicesUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetDevicesUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetDevicesUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetDevicesServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetDevicesUnauthorized(
|
||||||
|
GetDevicesUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetFileHashBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetFileHashBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetFileHashErrors>? Errors { get; set; }
|
public List<GetFileHashErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetFileHashBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetFileHashBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetFileHashBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetFileHashErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetFileHashBadRequest(
|
||||||
|
GetFileHashBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetFileHashUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetFileHashUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetFileHashLibraryErrors>? Errors { get; set; }
|
public List<GetFileHashLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetFileHashUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetFileHashUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetFileHashUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetFileHashLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetFileHashUnauthorized(
|
||||||
|
GetFileHashUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetGenresLibraryBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetGenresLibraryBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetGenresLibraryErrors>? Errors { get; set; }
|
public List<GetGenresLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGenresLibraryBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetGenresLibraryBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGenresLibraryBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetGenresLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetGenresLibraryBadRequest(
|
||||||
|
GetGenresLibraryBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetGenresLibraryUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetGenresLibraryUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetGenresLibraryLibraryErrors>? Errors { get; set; }
|
public List<GetGenresLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGenresLibraryUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetGenresLibraryUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGenresLibraryUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetGenresLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetGenresLibraryUnauthorized(
|
||||||
|
GetGenresLibraryUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetGeoDataBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetGeoDataBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetGeoDataErrors>? Errors { get; set; }
|
public List<GetGeoDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGeoDataBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetGeoDataBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGeoDataBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetGeoDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetGeoDataBadRequest(
|
||||||
|
GetGeoDataBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetGeoDataUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetGeoDataUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetGeoDataPlexErrors>? Errors { get; set; }
|
public List<GetGeoDataPlexErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGeoDataUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetGeoDataUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGeoDataUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetGeoDataPlexErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetGeoDataUnauthorized(
|
||||||
|
GetGeoDataUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetGlobalHubsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetGlobalHubsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetGlobalHubsErrors>? Errors { get; set; }
|
public List<GetGlobalHubsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGlobalHubsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetGlobalHubsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGlobalHubsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetGlobalHubsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetGlobalHubsBadRequest(
|
||||||
|
GetGlobalHubsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetGlobalHubsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetGlobalHubsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetGlobalHubsHubsErrors>? Errors { get; set; }
|
public List<GetGlobalHubsHubsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetGlobalHubsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetGlobalHubsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetGlobalHubsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetGlobalHubsHubsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetGlobalHubsUnauthorized(
|
||||||
|
GetGlobalHubsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetHomeDataBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetHomeDataBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetHomeDataErrors>? Errors { get; set; }
|
public List<GetHomeDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetHomeDataBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetHomeDataBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetHomeDataBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetHomeDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetHomeDataBadRequest(
|
||||||
|
GetHomeDataBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetHomeDataUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetHomeDataUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetHomeDataPlexErrors>? Errors { get; set; }
|
public List<GetHomeDataPlexErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetHomeDataUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetHomeDataUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetHomeDataUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetHomeDataPlexErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetHomeDataUnauthorized(
|
||||||
|
GetHomeDataUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetLibraryDetailsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetLibraryDetailsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetLibraryDetailsErrors>? Errors { get; set; }
|
public List<GetLibraryDetailsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetLibraryDetailsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetLibraryDetailsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryDetailsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetLibraryDetailsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetLibraryDetailsBadRequest(
|
||||||
|
GetLibraryDetailsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetLibraryDetailsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetLibraryDetailsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetLibraryDetailsLibraryErrors>? Errors { get; set; }
|
public List<GetLibraryDetailsLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetLibraryDetailsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetLibraryDetailsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryDetailsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetLibraryDetailsLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetLibraryDetailsUnauthorized(
|
||||||
|
GetLibraryDetailsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetLibraryHubsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetLibraryHubsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetLibraryHubsErrors>? Errors { get; set; }
|
public List<GetLibraryHubsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetLibraryHubsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetLibraryHubsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryHubsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetLibraryHubsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetLibraryHubsBadRequest(
|
||||||
|
GetLibraryHubsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetLibraryHubsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetLibraryHubsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetLibraryHubsHubsErrors>? Errors { get; set; }
|
public List<GetLibraryHubsHubsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetLibraryHubsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetLibraryHubsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryHubsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetLibraryHubsHubsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetLibraryHubsUnauthorized(
|
||||||
|
GetLibraryHubsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetLibraryItemsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetLibraryItemsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetLibraryItemsErrors>? Errors { get; set; }
|
public List<GetLibraryItemsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetLibraryItemsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetLibraryItemsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryItemsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetLibraryItemsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetLibraryItemsBadRequest(
|
||||||
|
GetLibraryItemsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetLibraryItemsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetLibraryItemsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetLibraryItemsLibraryErrors>? Errors { get; set; }
|
public List<GetLibraryItemsLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetLibraryItemsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetLibraryItemsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibraryItemsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetLibraryItemsLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetLibraryItemsUnauthorized(
|
||||||
|
GetLibraryItemsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetLibrarySectionsAllBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetLibrarySectionsAllBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetLibrarySectionsAllErrors>? Errors { get; set; }
|
public List<GetLibrarySectionsAllErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetLibrarySectionsAllBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetLibrarySectionsAllBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibrarySectionsAllBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetLibrarySectionsAllErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetLibrarySectionsAllBadRequest(
|
||||||
|
GetLibrarySectionsAllBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetLibrarySectionsAllUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetLibrarySectionsAllUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetLibrarySectionsAllLibraryErrors>? Errors { get; set; }
|
public List<GetLibrarySectionsAllLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetLibrarySectionsAllUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetLibrarySectionsAllUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetLibrarySectionsAllUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetLibrarySectionsAllLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetLibrarySectionsAllUnauthorized(
|
||||||
|
GetLibrarySectionsAllUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetMediaMetaDataBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetMediaMetaDataBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMediaMetaDataErrors>? Errors { get; set; }
|
public List<GetMediaMetaDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMediaMetaDataBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetMediaMetaDataBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMediaMetaDataBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetMediaMetaDataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetMediaMetaDataBadRequest(
|
||||||
|
GetMediaMetaDataBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetMediaMetaDataUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetMediaMetaDataUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMediaMetaDataLibraryErrors>? Errors { get; set; }
|
public List<GetMediaMetaDataLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMediaMetaDataUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetMediaMetaDataUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMediaMetaDataUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetMediaMetaDataLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetMediaMetaDataUnauthorized(
|
||||||
|
GetMediaMetaDataUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetMediaProvidersBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetMediaProvidersBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMediaProvidersErrors>? Errors { get; set; }
|
public List<GetMediaProvidersErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMediaProvidersBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetMediaProvidersBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMediaProvidersBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetMediaProvidersErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetMediaProvidersBadRequest(
|
||||||
|
GetMediaProvidersBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetMediaProvidersUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetMediaProvidersUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMediaProvidersServerErrors>? Errors { get; set; }
|
public List<GetMediaProvidersServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMediaProvidersUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetMediaProvidersUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMediaProvidersUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetMediaProvidersServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetMediaProvidersUnauthorized(
|
||||||
|
GetMediaProvidersUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetMetadataChildrenBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetMetadataChildrenBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMetadataChildrenErrors>? Errors { get; set; }
|
public List<GetMetadataChildrenErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMetadataChildrenBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetMetadataChildrenBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMetadataChildrenBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetMetadataChildrenErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetMetadataChildrenBadRequest(
|
||||||
|
GetMetadataChildrenBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetMetadataChildrenUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetMetadataChildrenUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMetadataChildrenLibraryErrors>? Errors { get; set; }
|
public List<GetMetadataChildrenLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMetadataChildrenUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetMetadataChildrenUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMetadataChildrenUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetMetadataChildrenLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetMetadataChildrenUnauthorized(
|
||||||
|
GetMetadataChildrenUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetMyPlexAccountBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetMyPlexAccountBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMyPlexAccountErrors>? Errors { get; set; }
|
public List<GetMyPlexAccountErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMyPlexAccountBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetMyPlexAccountBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMyPlexAccountBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetMyPlexAccountErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetMyPlexAccountBadRequest(
|
||||||
|
GetMyPlexAccountBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetMyPlexAccountUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetMyPlexAccountUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetMyPlexAccountServerErrors>? Errors { get; set; }
|
public List<GetMyPlexAccountServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetMyPlexAccountUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetMyPlexAccountUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetMyPlexAccountUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetMyPlexAccountServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetMyPlexAccountUnauthorized(
|
||||||
|
GetMyPlexAccountUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetPinBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetPinBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetPinErrors>? Errors { get; set; }
|
public List<GetPinErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetPinBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetPinBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPinBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetPinErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetPinBadRequest(
|
||||||
|
GetPinBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetPlaylistBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetPlaylistBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetPlaylistErrors>? Errors { get; set; }
|
public List<GetPlaylistErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetPlaylistBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetPlaylistBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetPlaylistErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetPlaylistBadRequest(
|
||||||
|
GetPlaylistBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetPlaylistContentsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetPlaylistContentsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetPlaylistContentsErrors>? Errors { get; set; }
|
public List<GetPlaylistContentsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetPlaylistContentsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetPlaylistContentsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistContentsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetPlaylistContentsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetPlaylistContentsBadRequest(
|
||||||
|
GetPlaylistContentsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetPlaylistContentsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetPlaylistContentsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
public List<GetPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetPlaylistContentsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetPlaylistContentsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistContentsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetPlaylistContentsPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetPlaylistContentsUnauthorized(
|
||||||
|
GetPlaylistContentsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetPlaylistUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetPlaylistUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetPlaylistPlaylistsErrors>? Errors { get; set; }
|
public List<GetPlaylistPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetPlaylistUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetPlaylistUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetPlaylistPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetPlaylistUnauthorized(
|
||||||
|
GetPlaylistUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetPlaylistsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetPlaylistsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetPlaylistsErrors>? Errors { get; set; }
|
public List<GetPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetPlaylistsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetPlaylistsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetPlaylistsBadRequest(
|
||||||
|
GetPlaylistsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetPlaylistsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetPlaylistsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetPlaylistsPlaylistsErrors>? Errors { get; set; }
|
public List<GetPlaylistsPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetPlaylistsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetPlaylistsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetPlaylistsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetPlaylistsPlaylistsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetPlaylistsUnauthorized(
|
||||||
|
GetPlaylistsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetRecentlyAddedLibraryBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetRecentlyAddedLibraryBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetRecentlyAddedLibraryErrors>? Errors { get; set; }
|
public List<GetRecentlyAddedLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetRecentlyAddedLibraryBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetRecentlyAddedLibraryBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetRecentlyAddedLibraryBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetRecentlyAddedLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetRecentlyAddedLibraryBadRequest(
|
||||||
|
GetRecentlyAddedLibraryBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetRecentlyAddedLibraryUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetRecentlyAddedLibraryUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetRecentlyAddedLibraryLibraryErrors>? Errors { get; set; }
|
public List<GetRecentlyAddedLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetRecentlyAddedLibraryUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetRecentlyAddedLibraryUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetRecentlyAddedLibraryUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetRecentlyAddedLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetRecentlyAddedLibraryUnauthorized(
|
||||||
|
GetRecentlyAddedLibraryUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetRefreshLibraryMetadataBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetRefreshLibraryMetadataBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetRefreshLibraryMetadataErrors>? Errors { get; set; }
|
public List<GetRefreshLibraryMetadataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetRefreshLibraryMetadataBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetRefreshLibraryMetadataBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetRefreshLibraryMetadataBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetRefreshLibraryMetadataErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetRefreshLibraryMetadataBadRequest(
|
||||||
|
GetRefreshLibraryMetadataBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetRefreshLibraryMetadataUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetRefreshLibraryMetadataUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetRefreshLibraryMetadataLibraryErrors>? Errors { get; set; }
|
public List<GetRefreshLibraryMetadataLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetRefreshLibraryMetadataUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetRefreshLibraryMetadataUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetRefreshLibraryMetadataUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetRefreshLibraryMetadataLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetRefreshLibraryMetadataUnauthorized(
|
||||||
|
GetRefreshLibraryMetadataUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetResizedPhotoBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetResizedPhotoBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetResizedPhotoErrors>? Errors { get; set; }
|
public List<GetResizedPhotoErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetResizedPhotoBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetResizedPhotoBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetResizedPhotoBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetResizedPhotoErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetResizedPhotoBadRequest(
|
||||||
|
GetResizedPhotoBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetResizedPhotoUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetResizedPhotoUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetResizedPhotoServerErrors>? Errors { get; set; }
|
public List<GetResizedPhotoServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetResizedPhotoUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetResizedPhotoUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetResizedPhotoUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetResizedPhotoServerErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetResizedPhotoUnauthorized(
|
||||||
|
GetResizedPhotoUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetResourcesStatisticsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetResourcesStatisticsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetResourcesStatisticsErrors>? Errors { get; set; }
|
public List<GetResourcesStatisticsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetResourcesStatisticsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetResourcesStatisticsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetResourcesStatisticsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetResourcesStatisticsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetResourcesStatisticsBadRequest(
|
||||||
|
GetResourcesStatisticsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetResourcesStatisticsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetResourcesStatisticsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetResourcesStatisticsStatisticsErrors>? Errors { get; set; }
|
public List<GetResourcesStatisticsStatisticsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetResourcesStatisticsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetResourcesStatisticsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetResourcesStatisticsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetResourcesStatisticsStatisticsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetResourcesStatisticsUnauthorized(
|
||||||
|
GetResourcesStatisticsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetSearchAllLibrariesBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetSearchAllLibrariesBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetSearchAllLibrariesErrors>? Errors { get; set; }
|
public List<GetSearchAllLibrariesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetSearchAllLibrariesBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetSearchAllLibrariesBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchAllLibrariesBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetSearchAllLibrariesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetSearchAllLibrariesBadRequest(
|
||||||
|
GetSearchAllLibrariesBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetSearchAllLibrariesUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetSearchAllLibrariesUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetSearchAllLibrariesLibraryErrors>? Errors { get; set; }
|
public List<GetSearchAllLibrariesLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetSearchAllLibrariesUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetSearchAllLibrariesUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchAllLibrariesUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetSearchAllLibrariesLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetSearchAllLibrariesUnauthorized(
|
||||||
|
GetSearchAllLibrariesUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetSearchLibraryBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetSearchLibraryBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetSearchLibraryErrors>? Errors { get; set; }
|
public List<GetSearchLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetSearchLibraryBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetSearchLibraryBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchLibraryBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetSearchLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetSearchLibraryBadRequest(
|
||||||
|
GetSearchLibraryBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetSearchLibraryUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetSearchLibraryUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetSearchLibraryLibraryErrors>? Errors { get; set; }
|
public List<GetSearchLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetSearchLibraryUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetSearchLibraryUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchLibraryUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetSearchLibraryLibraryErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetSearchLibraryUnauthorized(
|
||||||
|
GetSearchLibraryUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetSearchResultsBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetSearchResultsBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetSearchResultsErrors>? Errors { get; set; }
|
public List<GetSearchResultsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetSearchResultsBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetSearchResultsBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchResultsBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetSearchResultsErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetSearchResultsBadRequest(
|
||||||
|
GetSearchResultsBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetSearchResultsUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetSearchResultsUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetSearchResultsSearchErrors>? Errors { get; set; }
|
public List<GetSearchResultsSearchErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetSearchResultsUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetSearchResultsUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetSearchResultsUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetSearchResultsSearchErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetSearchResultsUnauthorized(
|
||||||
|
GetSearchResultsUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetServerActivitiesBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetServerActivitiesBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetServerActivitiesErrors>? Errors { get; set; }
|
public List<GetServerActivitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetServerActivitiesBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetServerActivitiesBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerActivitiesBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<GetServerActivitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetServerActivitiesBadRequest(
|
||||||
|
GetServerActivitiesBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetServerActivitiesUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetServerActivitiesUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetServerActivitiesActivitiesErrors>? Errors { get; set; }
|
public List<GetServerActivitiesActivitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetServerActivitiesUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetServerActivitiesUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerActivitiesUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetServerActivitiesActivitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetServerActivitiesUnauthorized(
|
||||||
|
GetServerActivitiesUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetServerCapabilitiesBadRequestPayload
|
||||||
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
|
||||||
/// </summary>
|
|
||||||
public class GetServerCapabilitiesBadRequest : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<Errors>? Errors { get; set; }
|
public List<Errors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Bad Request - A parameter was not specified, or was specified incorrectly.
|
||||||
|
/// </summary>
|
||||||
|
public class GetServerCapabilitiesBadRequest : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetServerCapabilitiesBadRequestPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerCapabilitiesBadRequest.Payload.Errors instead.")]
|
||||||
|
public List<Errors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetServerCapabilitiesBadRequest(
|
||||||
|
GetServerCapabilitiesBadRequestPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -16,12 +16,8 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetServerCapabilitiesUnauthorizedPayload
|
||||||
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
|
||||||
/// </summary>
|
|
||||||
public class GetServerCapabilitiesUnauthorized : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("errors")]
|
[JsonProperty("errors")]
|
||||||
public List<GetServerCapabilitiesErrors>? Errors { get; set; }
|
public List<GetServerCapabilitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
@@ -31,4 +27,32 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Unauthorized - Returned if the X-Plex-Token is missing from the header or query.
|
||||||
|
/// </summary>
|
||||||
|
public class GetServerCapabilitiesUnauthorized : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetServerCapabilitiesUnauthorizedPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerCapabilitiesUnauthorized.Payload.Errors instead.")]
|
||||||
|
public List<GetServerCapabilitiesErrors>? Errors { get; set; }
|
||||||
|
|
||||||
|
public GetServerCapabilitiesUnauthorized(
|
||||||
|
GetServerCapabilitiesUnauthorizedPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base("API error occurred", rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Errors = payload.Errors;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -14,18 +14,13 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
using System;
|
using System;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
|
|
||||||
/// <summary>
|
public class GetServerIdentityRequestTimeoutPayload
|
||||||
/// Request Timeout
|
|
||||||
/// </summary>
|
|
||||||
public class GetServerIdentityRequestTimeout : Exception
|
|
||||||
{
|
{
|
||||||
|
|
||||||
[JsonProperty("code")]
|
[JsonProperty("code")]
|
||||||
public int? Code { get; set; }
|
public int? Code { get; set; }
|
||||||
|
|
||||||
[JsonProperty("message")]
|
[JsonProperty("message")]
|
||||||
private string? _message { get; set; }
|
public string? Message { get; set; }
|
||||||
public override string Message { get {return _message ?? "";} }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raw HTTP response; suitable for custom response parsing
|
/// Raw HTTP response; suitable for custom response parsing
|
||||||
@@ -33,4 +28,47 @@ namespace LukeHagar.PlexAPI.SDK.Models.Errors
|
|||||||
[JsonProperty("-")]
|
[JsonProperty("-")]
|
||||||
public HttpResponseMessage? RawResponse { get; set; }
|
public HttpResponseMessage? RawResponse { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Request Timeout
|
||||||
|
/// </summary>
|
||||||
|
public class GetServerIdentityRequestTimeout : PlexAPIError
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// The original data that was passed to this exception.
|
||||||
|
/// </summary>
|
||||||
|
public GetServerIdentityRequestTimeoutPayload Payload { get; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerIdentityRequestTimeout.Payload.Code instead.")]
|
||||||
|
public int? Code { get; set; }
|
||||||
|
|
||||||
|
[Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible. Use GetServerIdentityRequestTimeout.Payload.Message instead.")]
|
||||||
|
private string? _message { get; set; }
|
||||||
|
|
||||||
|
private static string ErrorMessage(GetServerIdentityRequestTimeoutPayload payload, string body)
|
||||||
|
{
|
||||||
|
string? message = payload.Message;
|
||||||
|
if (!string.IsNullOrEmpty(message))
|
||||||
|
{
|
||||||
|
return message;
|
||||||
|
}
|
||||||
|
|
||||||
|
return "API error occurred";
|
||||||
|
}
|
||||||
|
|
||||||
|
public GetServerIdentityRequestTimeout(
|
||||||
|
GetServerIdentityRequestTimeoutPayload payload,
|
||||||
|
HttpResponseMessage rawResponse,
|
||||||
|
string body
|
||||||
|
): base(ErrorMessage(payload, body), rawResponse, body)
|
||||||
|
{
|
||||||
|
Payload = payload;
|
||||||
|
|
||||||
|
#pragma warning disable CS0618
|
||||||
|
Code = payload.Code;
|
||||||
|
_message = payload.Message;
|
||||||
|
#pragma warning restore CS0618
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user