RulesViewController.h 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // RulesViewController.h
  3. // kneet
  4. //
  5. // Created by Jason Lee on 3/18/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. #import "JDViewController.h"
  9. @class RuleModel;
  10. @interface RulesViewController : JDViewController
  11. #pragma mark - Properties
  12. @property (weak, nonatomic) IBOutlet UIImageView *imgvHubAlert;
  13. @property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
  14. @property (weak, nonatomic) IBOutlet CustomTableView *tableView;
  15. @property (weak, nonatomic) IBOutlet CustomButton *btnOption;
  16. @property (weak, nonatomic) IBOutlet UIView *editModeView;
  17. @property (weak, nonatomic) IBOutlet CustomButton *btnClose;
  18. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintEditModeRight;
  19. //add hub
  20. @property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
  21. @property (weak, nonatomic) IBOutlet UIImageView *imgvConnectHub;
  22. @property (weak, nonatomic) IBOutlet CustomLabel *lblConnectHub;
  23. @property (weak, nonatomic) IBOutlet CustomLabel *lblSimpleMemberInfo;
  24. @property (weak, nonatomic) IBOutlet CustomLabel *lblLeaveAccount;
  25. #pragma mark - Instance Methods
  26. - (void)prepareViewDidLoad;
  27. //- (void)requestRuleListRecently;
  28. - (void)updateHomeHubStatusToRules;
  29. - (void)updateRule:(RuleModel *)scene;
  30. - (IBAction)btnAddHubTouched:(id)sender;
  31. - (IBAction)btnOptionTouched:(id)sender;
  32. - (IBAction)btnCloseOnEditModeTouched:(id)sender;
  33. @end
  34. @class CustomImageView;
  35. @class CustomLabel;
  36. @class CustomButton;
  37. @class CustomSwitch;
  38. @interface RulesTableViewCell : KNTableViewCell
  39. @property (weak, nonatomic) IBOutlet CustomImageView *imgvStatus;
  40. @property (weak, nonatomic) IBOutlet CustomImageView *imgvTrigger;
  41. @property (weak, nonatomic) IBOutlet CustomLabel *lblRuleName;
  42. @property (weak, nonatomic) IBOutlet CustomButton *btnRulePlay;
  43. @property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
  44. @property (weak, nonatomic) IBOutlet UISwitch *switchRulePlay;
  45. @end
  46. @class CustomLabelButton;
  47. @interface RulesCreateTableViewCell : KNTableViewCell
  48. @property (weak, nonatomic) IBOutlet CustomLabelButton *btnAdd;
  49. @end