YMMessagesViewModel.m 848 B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // YMMessagesViewModel.m
  3. // MSYOUPAI
  4. //
  5. // Created by YoMi on 2024/3/2.
  6. // Copyright © 2024 MS. All rights reserved.
  7. //
  8. #import "YMMessagesViewModel.h"
  9. @interface YMMessagesViewModel ()
  10. /// 聊天记录VM
  11. @property (nonatomic, strong, readwrite) YMChatRecordViewModel *chatRecordVM;
  12. /// 通话记录VM
  13. @property (nonatomic, strong, readwrite) YMCallRecordViewModel *callRecordVM;
  14. @end
  15. @implementation YMMessagesViewModel
  16. - (void)ym_initialize{
  17. [super ym_initialize];
  18. }
  19. - (YMChatRecordViewModel *)chatRecordVM{
  20. if (!_chatRecordVM) {
  21. _chatRecordVM = [[YMChatRecordViewModel alloc]initWithParams:@{}];
  22. }
  23. return _chatRecordVM;
  24. }
  25. - (YMCallRecordViewModel *)callRecordVM{
  26. if (!_callRecordVM) {
  27. _callRecordVM = [[YMCallRecordViewModel alloc]initWithParams:@{}];
  28. }
  29. return _callRecordVM;
  30. }
  31. @end