FSPlaylistItem.m 504 B

12345678910111213141516171819202122232425
  1. /*
  2. * This file is part of the FreeStreamer project,
  3. * (C)Copyright 2011-2018 Matias Muhonen <mmu@iki.fi> 穆马帝
  4. * See the file ''LICENSE'' for using the code.
  5. *
  6. * https://github.com/muhku/FreeStreamer
  7. */
  8. #import "FSPlaylistItem.h"
  9. @implementation FSPlaylistItem
  10. - (BOOL)isEqual:(id)anObject
  11. {
  12. FSPlaylistItem *otherObject = anObject;
  13. if ([otherObject.title isEqual:self.title] &&
  14. [otherObject.url isEqual:self.url]) {
  15. return YES;
  16. }
  17. return NO;
  18. }
  19. @end