Releases: bvdcode/Blink.NET
Releases · bvdcode/Blink.NET
Release 1.0.5
Release 1.0.4
Make BlinkClientException public and add documentation The `BlinkClientException` class was updated to enhance its usability and clarity. Key changes include: - Changed class accessibility from `internal` to `public`. - Added XML documentation for the class, including summaries and remarks. - Documented all constructors with XML comments. - Added comments to clarify the purpose of each constructor.
Release 1.0.3
Increase retry count and improve video format handling Updated the `tryCount` default value in `GetVideoBytesAsync` from 3 to 5 to allow more retry attempts. Modified the `contentType` check to support all video formats by matching `"video/"` instead of only `"video/mp4"`. Adjusted the sequence of `PostAsync` and `Task.Delay` calls for better operation flow.
Release 1.0.2
Add OnTokenRefreshed event to IBlinkClient and BlinkClient for refres…
Release 1.0.1
Update package icon The binary file `package-icon.png` was updated. Specific changes are not visible in the diff, but this likely involves replacing or modifying the image.
Release 1.0.0
Refactor Blink client for improved auth and logging - Added Serilog for structured logging in `Program.cs`. - Removed `secrets.json` and `Secrets` class for better security. - Refactored `BlinkClient` authentication: - Introduced `TryLoginAsync`, `TryVerifyPinAsync`, and `TryLoginWithRefreshTokenAsync`. - Added `RefreshToken` property for token reuse. - Improved `HttpClient` management with `GetHttpClientAsync`. - Simplified `LoginResult` class and added `ValidUntil` property. - Introduced `TierInfo` class for tier-related API data. - Moved video-related methods to `BlinkClient.VideoMethods.cs`. - Updated `IBlinkClient` interface to reflect new methods. - Removed legacy methods like `AuthorizeAsync` and `VerifyPinAsync`. - Enhanced error handling, logging, and code organization.
Release 0.1.18
Improve error handling in BlinkClient for non-MP4 videos Enhance error reporting by attempting to read the response content when the `contentType` is not `"video/mp4"`. If the response content cannot be read, include the exception message in the error details. This provides more context in the `BlinkClientException` for debugging issues.
Release 0.1.17
Update to .NET 9.0 and enhance video retrieval methods - Target framework updated to .NET 9.0 in `Blink.ConsoleTest.csproj`. - Replaced `GetVideosAsync` with `GetVideosFromSingleModuleAsync` in `Program.cs`. - Changed authentication key from "username" to "email" in `secrets.json`. - Updated `System.Net.Http.Json` and `System.Text.Json` packages to version 9.0.8 in `Blink.csproj`. - Enhanced XML documentation for `UniqueId` and `AuthorizeAsync` methods in `BlinkClient.cs`. - Renamed `GetVideoAsync` to `GetVideoBytesAsync` with updated documentation. - Introduced `GetVideosFromModuleAsync` requiring a `SyncModule` parameter. - Added new method `GetVideosFromSingleModuleAsync` with exception handling for multiple modules. - Improved documentation across various methods for better clarity and usability.
Release 0.1.16
Enhance error handling for video deletion in BlinkClient Added error handling to check the result of the video deletion POST request. If the deletion fails, a detailed `BlinkClientException` is thrown with the video ID, failure reason, and error content. Introduced a delay before the POST request to manage timing or rate limits.
Release 0.1.15
Improve error handling in login process Enhance the error handling in `BlinkClient.cs` by checking for response content before throwing exceptions. If content is present, read and include the error message in the exception, providing more detailed feedback with the HTTP status code and reason phrase to aid in debugging and improve user experience.