// // XPExchangeDiamondsView.h // YuMi // // Created by YuMi on 2022/11/17. // #import #import "XPIncomeRecordView.h" #import "XPExchangeDiamondsModel.h" NS_ASSUME_NONNULL_BEGIN @protocol XPExchangeDiamondsViewDelegate -(void)confirmExchangeDiamondsWithDiamond:(NSString *)diamond gold:(NSString *)gold currency:(NSString *)currency; @end typedef void(^ExchangeDiamondsItemViewHandle)(NSString *goldNum,NSString *diamondNum); @interface XPExchangeDiamondsView : UIView @property (nonatomic,weak) id delegate; @property (nonatomic,strong) XPExchangeDiamondsModel *model; @end /*******************************************************华丽分割线***************************************************************/ @interface XPExchangeDiamondsItemView : UIView @property (nonatomic,copy) ExchangeDiamondsItemViewHandle inputCounthandle; @property (nonatomic,copy) NSString *text; @property (nonatomic,strong) XPExchangeDiamondsModel *model; @property (nonatomic,copy) NSString *count; -(instancetype)initWithFrame:(CGRect)frame type:(IncomeRecordViewType)type; -(void)resignResponder; @end NS_ASSUME_NONNULL_END