cdts/xdts-ios 3/TreeHole/Code/Features/Bottle/Model/BottleDetailInfo.m

45 lines
1.0 KiB
Mathematica
Raw Normal View History

2023-07-27 09:20:00 +08:00
//
// BottleDetailInfo.m
// TreeHole
//
// Created by on 2022/4/29.
//
#import "BottleDetailInfo.h"
#import "BottleTypeInfo.h"
@implementation BottleDetailInfo
- (BOOL)isShellPhotos {
return [_interaction_type isEqualToString:ShellPhotosBottleType];
}
- (BOOL)isExchangePhotos {
return [_interaction_type isEqualToString:ExchangePhotosBottleType];
}
- (BOOL)isExchangeVoice {
return [_interaction_type isEqualToString:ExchangeVoiceBottleType];
}
- (BOOL)isExchangeSecret {
return [_interaction_type isEqualToString:ExchangeSecretBottleType];
}
- (BOOL)isPhotoAttachement {
return [self.content_extra_type isEqualToString:PhotoAttachementType];
}
- (BOOL)isVoiceAttachement {
return [self.content_extra_type isEqualToString:VoiceAttachementType];
}
- (BOOL)isVideoAttachement {
return [self.content_extra_type isEqualToString:VideoAttachemenetType];
}
- (BOOL)hasAttachement {
return [self isPhotoAttachement] || [self isVoiceAttachement] || [self isVideoAttachement];
}
@end