ThingsViewController.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // ThingsViewController.h
  3. // kneet
  4. //
  5. // Created by Jason Lee on 3/10/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. @class DeviceModel;
  10. @class CustomLabel;
  11. @interface ThingsViewController : JDViewController
  12. #pragma mark - Properties
  13. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  14. @property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
  15. @property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
  16. @property (weak, nonatomic) IBOutlet CustomButton *btnAddHub;
  17. #pragma mark - Instance Methods
  18. - (void)prepareViewDidLoad;
  19. - (void)updateHomeHubStatusToDevices;
  20. - (void)updateDevice:(DeviceModel *)device;
  21. - (IBAction)btnAddHubTouched:(id)sender;
  22. @end
  23. @class CustomButton;
  24. @class CustomLabel;
  25. @class CustomImageView;
  26. @class CustomCheckBox;
  27. @interface ThingsCollectionViewCell : UICollectionViewCell
  28. @property (weak, nonatomic) IBOutlet CustomButton *btnDevice;
  29. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceName;
  30. @property (weak, nonatomic) IBOutlet CustomLabel *lblDeviceStatus;
  31. @end
  32. @interface ThingsAddCollectionViewCell : UICollectionViewCell
  33. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  34. @end
  35. @interface ThingsCollectionFooterView : UICollectionReusableView
  36. @property (weak, nonatomic) IBOutlet CustomButton *btnAdd;
  37. @end