hpi-swa-teaching/SpotifyConnect

Refactoring ResultListItem

Opened this issue · 0 comments

As a SWA chair we want to have well structured code in order to better understand it.

  • A ResultListItem shouldn't know anything about the domain of spoc, so do not use the dataPieces directly and remove the kindOf: checks.
  • Define an interface for all information and move the domain specific knowledge to the appropriate location of the specific components (or implement getter interfaces in all DataPiece Subclasses)
  • Remove unnecessary yourself calls when nothing is set to a value or returned