MTBaseViewModel.m 477 B

1234567891011121314151617181920212223242526
  1. //
  2. // MTBaseViewModel.m
  3. //
  4. // Created by Simon on 2019/3/22.
  5. // Copyright © 2019 Simon. All rights reserved.
  6. //
  7. #import "MTBaseViewModel.h"
  8. @implementation MTBaseViewModel
  9. - (RACSubject *)refreshUISubject {
  10. if (!_refreshUISubject) {
  11. _refreshUISubject = [RACSubject subject];
  12. }
  13. return _refreshUISubject;
  14. }
  15. - (RACSubject *)errorSubject {
  16. if (!_errorSubject) {
  17. _errorSubject = [RACSubject subject];
  18. }
  19. return _errorSubject;
  20. }
  21. @end