YMMyEarningsWithdrawalAmountCellViewModel.m 902 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // YMMyEarningsWithdrawalAmountCellViewModel.m
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/2/29.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "YMMyEarningsWithdrawalAmountCellViewModel.h"
  9. #import "YMMyEarningsModel.h"
  10. @interface YMMyEarningsWithdrawalAmountCellViewModel ()
  11. /// 提现金额
  12. @property (nonatomic, assign, readwrite) NSInteger withdrawalAmount;
  13. /// 提现金币要求
  14. @property (nonatomic, assign, readwrite) NSInteger withdrawalPointsRequirement;
  15. @end
  16. @implementation YMMyEarningsWithdrawalAmountCellViewModel
  17. - (void)ym_initialize{
  18. [super ym_initialize];
  19. if ([self.params[ParamsModel] isKindOfClass:[YMMyEarningsWithdrawalAmountModel class]]) {
  20. YMMyEarningsWithdrawalAmountModel *model = self.params[ParamsModel];
  21. self.withdrawalAmount = model.money;
  22. self.withdrawalPointsRequirement = model.fee;
  23. }
  24. }
  25. @end