// // 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