You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit introduces comprehensive XML comments to improve codebase clarity and maintainability. Detailed descriptions were added for all methods and properties across `ISubDBClient`, `IResponse`, `IRequest`, and `ISubDBApi` interfaces, outlining their purpose, parameters, and return values. These changes enhance API usability and developer understanding.
Copy file name to clipboardExpand all lines: src/Http/ISubDBApi.cs
+28
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,39 @@
3
3
4
4
namespaceSubDBSharp
5
5
{
6
+
/// <summary>
7
+
/// Interface for interacting with the SubDB API to perform operations related to subtitle management.
8
+
/// </summary>
6
9
publicinterfaceISubDBApi
7
10
{
11
+
/// <summary>
12
+
/// Downloads a subtitle file based on the provided video hash and language preferences.
13
+
/// </summary>
14
+
/// <param name="hash">A unique hash representing the video file, generated using a specific hash function.</param>
15
+
/// <param name="languages">A list of language codes indicating the preferred languages for the subtitle. The first matching language is returned.</param>
16
+
/// <returns>A Task representing the asynchronous operation, containing the server's response to the subtitle download request.</returns>
/// Retrieves the list of all available subtitle languages currently supported in the SubDB database.
25
+
/// </summary>
26
+
/// <returns>A task that represents the asynchronous operation. The task result contains the server response,
27
+
/// including the list of available language codes.</returns>
9
28
Task<Response>GetAvailableLanguagesAsync();
29
+
30
+
/// <summary>
31
+
/// Searches for subtitles for a given video file based on its hash.
32
+
/// Optionally, retrieves additional information about the subtitle versions available.
33
+
/// </summary>
34
+
/// <param name="hash">The hash of the video file used to uniquely identify the video.</param>
35
+
/// <param name="getVersions">A boolean indicating whether to return information about the number of subtitle versions per language available in the database.</param>
36
+
/// <returns>A task that represents the asynchronous operation. The task result contains the server response, including available subtitles and their metadata if found.</returns>
0 commit comments