RDSHomeModel.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // RDSHomeModel.h
  3. // Temperature
  4. //
  5. // Created by RD on 2022/12/15.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import "RDSMemberModel.h"
  9. #import "RDSRoomModel.h"
  10. @interface RDSHomeModel : NSObject
  11. @property (nonatomic, strong) NSString *record_id;// home_id
  12. @property (nonatomic, strong) NSString *name;
  13. @property (nonatomic, strong) NSString *province;
  14. @property (nonatomic, strong) NSString *city;
  15. @property (nonatomic, strong) NSString *district;
  16. @property (nonatomic, strong) NSString *address;
  17. @property (nonatomic, strong) NSString *ad_code;
  18. @property (nonatomic, strong) NSString *gateway;
  19. @property (nonatomic, strong) NSString *admin_id;
  20. @property (nonatomic, strong) NSString *admin_name;
  21. @property (nonatomic, strong) NSString *qr_code;
  22. @property (nonatomic, assign) BOOL is_default;
  23. @property (nonatomic, assign) BOOL is_online;
  24. @property (nonatomic, strong) NSMutableArray <RDSMemberModel *> *member;
  25. @property (nonatomic, strong) NSMutableArray <RDSRoomModel *> *room;
  26. + (void)rds_getHomeListIsAdmin:(BOOL)is_admin finished:(void(^)(NSError *error))finished;
  27. + (void)rds_getHomeDetailWithHomeId:(NSString *)homeId finished:(void(^)(RDSHomeModel *home, NSError *error))finished;
  28. @end