Last active
January 3, 2018 12:01
-
-
Save joelmarquez90/3e679523bad5bf44a931197f197c26e5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (BOOL)isEqual:(id)object | |
{ | |
if (self == object) { | |
return YES; | |
} | |
if (![object isKindOfClass:TRTournament.class]) { | |
return NO; | |
} | |
return [self isEqualToTournament:(TRTournament *)object]; | |
} | |
- (BOOL)isEqualToTournament:(TRTournament *)tournament | |
{ | |
return [self.ID isEqualToString:tournament.ID] && | |
[self.name isEqualToString:tournament.name]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment