XYPersonalCenterListModel.m 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // XYPersonalCenterListModel.m
  3. // Starbuds
  4. //
  5. // Created by 翟玉磊 on 2019/12/21.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. //
  8. #import "XYPersonalCenterListModel.h"
  9. @implementation XYPersonalCenterListModel
  10. - (instancetype)init {
  11. if (self = [super init]) {
  12. _iconName = @"";
  13. _title = @"";
  14. _content = @"";
  15. _pushControllerName = @"";
  16. _isShowMoreImage = YES;
  17. _borderType = 0;
  18. }
  19. return self;
  20. }
  21. + (XYPersonalCenterListModel *)createListModelWithIconName:(NSString *)iconName title:(NSString *)title content:(NSString *)content isShowMoreImage:(BOOL)isShowMoreImage pushControllerName:(NSString *)pushControllerName borderType:(UIRectCorner)borderType {
  22. XYPersonalCenterListModel *model = [XYPersonalCenterListModel new];
  23. model.iconName = iconName;
  24. model.title = title;
  25. model.content = content;
  26. model.isShowMoreImage = isShowMoreImage;
  27. model.pushControllerName = pushControllerName;
  28. model.borderType = borderType;
  29. return model;
  30. }
  31. @end