iOS AILinkBleSDK - 蓝牙SDK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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:@[] 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