Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
crobibero committed Feb 25, 2024
1 parent 33d9839 commit 9a3d5b3
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/Jellyfin.Sdk/JellyfinApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,18 @@ namespace Jellyfin.Sdk;
/// </summary>
public class JellyfinApiClient : BaseJellyfinApiClient, IDisposable
{
private readonly JellyfinSdkSettings _jellyfinSdkSettings;
private readonly IRequestAdapter _requestAdapter;

/// <summary>
/// Initializes a new instance of the <see cref="JellyfinApiClient"/> class.
/// </summary>
/// <param name="requestAdapter">The request adapter.</param>
/// <param name="jellyfinSdkSettings">The Jellyfin sdk settings.</param>
public JellyfinApiClient(IRequestAdapter requestAdapter, JellyfinSdkSettings jellyfinSdkSettings)
public JellyfinApiClient(IRequestAdapter requestAdapter)
: base(requestAdapter)
{
_jellyfinSdkSettings = jellyfinSdkSettings;
_requestAdapter = requestAdapter;
}

/// <summary>
/// Update the current api client.
/// </summary>
/// <remarks>
/// Only required if changing the server address.
/// </remarks>
public void Update()
=> RequestAdapter.BaseUrl = _jellyfinSdkSettings.ServerUrl;

/// <inheritdoc />
public void Dispose()
{
Expand Down

0 comments on commit 9a3d5b3

Please sign in to comment.