iOS AILinkBleSDK - 蓝牙SDK
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ELDemoDeviceModel.m 1.4KB

1234567891011121314151617181920212223242526272829303132333435
  1. //
  2. // ELDemoDeviceModel.m
  3. // AILinkBleSDK_Example
  4. //
  5. // Created by LarryZhang on 2023/2/4.
  6. // Copyright © 2023 zhengzida. All rights reserved.
  7. //
  8. #import "ELDemoDeviceModel.h"
  9. @implementation ELDemoDeviceModel
  10. + (instancetype)modelWithIndex:(NSString *)index imageName:(NSString *)imageName title:(NSString *)title subtitle:(NSString *)subtitle entryVCName:(NSString *)entryVCName {
  11. return [self modelWithIndex:index imageName:imageName title:title subtitle:subtitle entryVCName:entryVCName cids:@[] newType:NO];
  12. }
  13. + (instancetype)modelWithIndex:(NSString *)index imageName:(NSString *)imageName title:(NSString *)title subtitle:(NSString *)subtitle entryVCName:(NSString *)entryVCName cids:(NSArray<NSNumber *> *)cids {
  14. return [self modelWithIndex:index imageName:imageName title:title subtitle:subtitle entryVCName:entryVCName cids:cids newType:YES];
  15. }
  16. + (instancetype)modelWithIndex:(NSString *)index imageName:(NSString *)imageName title:(NSString *)title subtitle:(NSString *)subtitle entryVCName:(NSString *)entryVCName cids:(NSArray<NSNumber *> *)cids newType:(BOOL)newType {
  17. ELDemoDeviceModel *model = [[ELDemoDeviceModel alloc] init];
  18. model.index = index;
  19. model.imageName = imageName;
  20. model.titleText = title;
  21. model.subtitleText = subtitle;
  22. model.entryVCName = entryVCName;
  23. model.cids = cids;
  24. model.newType = newType;
  25. return model;
  26. }
  27. @end