This version is a complete revamp. Please be warned that there will be breaking changes to be made when updating to this version.
🎉 What's Changed
- Added centralized client class:
PasteMystClient
- Added customized exception class:
PasteMystException
- Added documentation for methods and properties (finally)
- Switched to
System.Text.Json
for JSON serialization - When getting current user, it uses its own type:
PasteMystCurrentUser
⚠️ Breaking Changes
- Parsed unix time now uses local time
- Properties that uses arrays now uses
IList<>
orIReadOnlyList<>
- Renamed properties
PasteMystPasty.Code
->PasteMystPasty.Content
PasteMystPastyForm.Code
->PasteMystPastyForm.Content
- Renamed properties to follow API specifications
PasteMystPaste.CreationUnixTime
->PasteMystPaste.CreatedAt
PasteMystPaste.CreationTime
->PasteMystPaste.CreatedAtTime
PasteMystPaste.DeletionUnixTime
->PasteMystPaste.DeletedAt
PasteMystPaste.DeletionTime
->PasteMystPaste.DeletedAtTime
PasteMystPaste.ExpireDuration
->PasteMystPaste.ExpiresIn
- ...
- Removed methods in all classes and moved to
PasteMystClient
Full Changelog: v1.2.3...v2.0.0