// // YMMyEarningsWithdrawalAmountCellViewModel.m // MSYOUPAI // // Created by YoMi on 2024/2/29. // Copyright © 2024 MS. All rights reserved. // #import "YMMyEarningsWithdrawalAmountCellViewModel.h" #import "YMMyEarningsModel.h" @interface YMMyEarningsWithdrawalAmountCellViewModel () /// 提现金额 @property (nonatomic, assign, readwrite) NSInteger withdrawalAmount; /// 提现金币要求 @property (nonatomic, assign, readwrite) NSInteger withdrawalPointsRequirement; @end @implementation YMMyEarningsWithdrawalAmountCellViewModel - (void)ym_initialize{ [super ym_initialize]; if ([self.params[ParamsModel] isKindOfClass:[YMMyEarningsWithdrawalAmountModel class]]) { YMMyEarningsWithdrawalAmountModel *model = self.params[ParamsModel]; self.withdrawalAmount = model.money; self.withdrawalPointsRequirement = model.fee; } } @end