WFCUMessageModel.m 631 B

12345678910111213141516171819202122232425262728
  1. //
  2. // MessageModel.m
  3. // WFChat UIKit
  4. //
  5. // Created by WF Chat on 2017/9/1.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import "WFCUMessageModel.h"
  9. @implementation WFCUMessageModel
  10. + (instancetype)modelOf:(WFCCMessage *)message showName:(BOOL)showName showTime:(BOOL)showTime {
  11. WFCUMessageModel *model = [[WFCUMessageModel alloc] init];
  12. model.message = message;
  13. model.showNameLabel = showName;
  14. model.showTimeLabel = showTime;
  15. return model;
  16. }
  17. - (instancetype)init {
  18. self = [super init];
  19. if (self) {
  20. self.deliveryRate = -1;
  21. self.readRate = -1;
  22. }
  23. return self;
  24. }
  25. @end