TMDbLib usage tips and patterns
masterWhen using TMDbLib, keep the following patterns in mind:
- Asynchronous API: All library methods are
asyncand must be awaited. - Naming Convention: Methods are named predictably based on the resource, e.g.,
GetMovieAsync,GetPersonAsync. - Flag-based Enums: Most method enums use the
[Flags]attribute, allowing you to combine multiple options using the bitwise OR operator (|). - Lazy Data Loading: TMDb returns minimal data by default. Properties like
CreditsorVideoswill benullunless you explicitly request them via method enums (e.g.,MovieMethods.Credits).