mirror of
https://github.com/LukeHagar/plexcsharp.git
synced 2025-12-06 12:37:46 +00:00
44 lines
1.5 KiB
C#
44 lines
1.5 KiB
C#
|
|
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost when
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
#nullable enable
|
|
namespace PlexAPI
|
|
{
|
|
using PlexAPI.Utils;
|
|
using System;
|
|
|
|
public interface IPlex
|
|
{
|
|
public ITv Tv { get; }
|
|
}
|
|
|
|
public class Plex: IPlex
|
|
{
|
|
public SDKConfig SDKConfiguration { get; private set; }
|
|
private const string _language = "csharp";
|
|
private const string _sdkVersion = "0.2.0";
|
|
private const string _sdkGenVersion = "2.245.1";
|
|
private const string _openapiDocVersion = "0.0.3";
|
|
private const string _userAgent = "speakeasy-sdk/csharp 0.2.0 2.245.1 0.0.3 Plex-API";
|
|
private string _serverUrl = "";
|
|
private ISpeakeasyHttpClient _defaultClient;
|
|
private ISpeakeasyHttpClient _securityClient;
|
|
public ITv Tv { get; private set; }
|
|
|
|
public Plex(ISpeakeasyHttpClient defaultClient, ISpeakeasyHttpClient securityClient, string serverUrl, SDKConfig config)
|
|
{
|
|
_defaultClient = defaultClient;
|
|
_securityClient = securityClient;
|
|
_serverUrl = serverUrl;
|
|
SDKConfiguration = config;
|
|
Tv = new Tv(_defaultClient, _securityClient, _serverUrl, SDKConfiguration);
|
|
}
|
|
|
|
}
|
|
} |