Finish all works!
This commit is contained in:
@@ -134,6 +134,11 @@ typedef NS_ENUM(NSUInteger, RoomSendGiftType) {
|
||||
@property(nonatomic, assign) NSInteger showAvatarType; // 是否需要塞头像,0-否,1-送礼者,2-收礼者,3-左送右收
|
||||
@property(nonatomic, assign) NSInteger notifyFull; // 该礼物动画是否全房间播放
|
||||
|
||||
@property(nonatomic, assign) NSInteger luckyPackageCount; // 用于记录发礼物红包时的数量
|
||||
|
||||
/// 排序
|
||||
@property (nonatomic, assign) NSInteger seqNo;
|
||||
|
||||
@end
|
||||
|
||||
@interface GiftPanelTabModel : PIBaseModel
|
||||
|
@@ -10,6 +10,29 @@
|
||||
|
||||
@implementation GiftInfoModel
|
||||
MJCodingImplementation
|
||||
|
||||
- (BOOL)isEqual:(id)other
|
||||
{
|
||||
if (other == self) {
|
||||
return YES;
|
||||
}
|
||||
|
||||
if (![other isKindOfClass:[GiftInfoModel class]]) {
|
||||
return NO;
|
||||
}
|
||||
|
||||
if ([(GiftInfoModel *)other giftId] == self.giftId) {
|
||||
return YES;
|
||||
} else {
|
||||
return NO;
|
||||
}
|
||||
}
|
||||
|
||||
- (NSUInteger)hash
|
||||
{
|
||||
return [@(self.giftId) hash];
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation GiftPanelTabModel
|
||||
@@ -38,5 +61,4 @@ MJCodingImplementation
|
||||
|
||||
return GiftType_Game;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user