djjd47130 / JD-TMDB

TMDB API Wrapper for Delphi
MIT License
6 stars 0 forks source link

Convert boolean values to enum with default #38

Closed djjd47130 closed 1 day ago

djjd47130 commented 5 days ago

The problem is that when using the TMDB API, and passing a boolean as a parameter, you're forced to choose between "true" or "false". However, there must be a way to not specify either. Therefore, an enum must be implemented in JD.TMDB.Common.pas:

type
  TTMDBBoolean = (bDefault, bFalse, bTrue);
djjd47130 commented 3 days ago

All "Search" related endpoints updated to new type. Still need to update any other places, such as "Discover" parameters.