SRGSSR / srgletterbox-apple

The official SRG SSR media playback experience
https://srgssr.github.io/marketing/letterbox/
MIT License
14 stars 7 forks source link

Feature Request: Adding recursive output for model object #18

Closed vpdn closed 7 years ago

vpdn commented 7 years ago

Would be nice if debugDescription() would be implemented for SRGMedia and SRGMediaURN (recursively) so it's easy to dump the content in the debugger. Makes checking out all available metadata of the playing video much easier.

Issue overview

defagos commented 7 years ago

SRGMedia (and in general all SRGDataProvider classes) inherit from Mantle MTLModel model class and thus can be printed for debugging purposes. Printing an object works recursively.

The SRGMediaURN class (which is not an MTLModel subclass) already implements the -description method, which is called by -debugDescription when not implemented specifically.

Do you need smarter indentation when printing an object? (e.g., the show property of a media is inlined as is with verbatim \n as separator)

defagos commented 7 years ago

Cloned as https://github.com/SRGSSR/srgdataprovider-ios/issues/4 since related to the data provider library. Closed for Letterbox.