YMBindWithdrawalAccountViewModel.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // YMBindWithdrawalAccountViewModel.h
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/3/5.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "MSYOUPAIViewModel.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. /** 绑定提现账号类型 */
  11. typedef NS_ENUM(NSUInteger, YMBindWithdrawalAccountType) {
  12. /** 添加*/
  13. YMBindWithdrawalAccountTypeAdd = 0,
  14. /** 编辑*/
  15. YMBindWithdrawalAccountTypeEdit,
  16. };
  17. typedef void(^BindWithdrawalAccountBlock)(void);
  18. @interface YMBindWithdrawalAccountViewModel : MSYOUPAIViewModel
  19. @property (nonatomic, copy) BindWithdrawalAccountBlock bindWithdrawalAccountBlock;
  20. /// 打开账号类型弹窗
  21. - (void)openAccountTypeAlert;
  22. /// 提交绑定提现账号
  23. - (void)submitBindWithdrawalAccount;
  24. /// 提现账号持有人
  25. @property (nonatomic, copy) NSString *withdrawalAccountHolder;
  26. /// 提现账号
  27. @property (nonatomic, copy) NSString *withdrawalAccount;
  28. /// 绑定提现账号类型
  29. @property (nonatomic, assign, readonly) YMBindWithdrawalAccountType bindWithdrawalAccountType;
  30. /// 保存按钮有效性
  31. @property (nonatomic, strong, readonly) RACSignal *validSaveSignal;
  32. /// 账号类型名称
  33. @property (nonatomic, strong, readonly) NSString *accountTypeName;
  34. /// 账号持有人占位符
  35. @property (nonatomic, strong, readonly) NSAttributedString *accountHolderPlaceholder;
  36. /// 账号占位符
  37. @property (nonatomic, strong, readonly) NSAttributedString *accountPlaceholder;
  38. /// 绑定账号温馨提示
  39. @property (nonatomic, strong, readonly) NSAttributedString *bindWithdrawalAccountWarmTips;
  40. @end
  41. NS_ASSUME_NONNULL_END