//
//  RulesViewController.h
//  kneet
//
//  Created by Jason Lee on 3/18/15.
//  Copyright (c) 2015 ntels. All rights reserved.
//

#import "JDViewController.h"
@class RuleModel;

@interface RulesViewController : JDViewController


#pragma mark - Properties
@property (weak, nonatomic) IBOutlet UIImageView *imgvHubAlert;
@property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;

@property (weak, nonatomic) IBOutlet CustomTableView *tableView;
@property (weak, nonatomic) IBOutlet CustomButton *btnOption;
@property (weak, nonatomic) IBOutlet UIView *editModeView;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintEditModeRight;

//add hub
@property (weak, nonatomic) IBOutlet UIView *addHubContainerView;
@property (weak, nonatomic) IBOutlet UIImageView *imgvConnectHub;
@property (weak, nonatomic) IBOutlet CustomLabel *lblConnectHub;
@property (weak, nonatomic) IBOutlet CustomLabel *lblSimpleMemberInfo;
@property (weak, nonatomic) IBOutlet CustomLabel *lblLeaveAccount;

#pragma mark - Instance Methods
- (void)prepareViewDidLoad;
//- (void)requestRuleListRecently;

- (void)updateHomeHubStatusToRules;
- (void)updateRule:(RuleModel *)scene;

- (IBAction)btnAddHubTouched:(id)sender;
- (IBAction)btnOptionTouched:(id)sender;
- (IBAction)btnCloseOnEditModeTouched:(id)sender;

@end

@class CustomImageView;
@class CustomLabel;
@class CustomButton;

@interface RulesTableViewCell : KNTableViewCell

@property (weak, nonatomic) IBOutlet CustomImageView *imgvStatus;
@property (weak, nonatomic) IBOutlet CustomImageView *imgvTrigger;
@property (weak, nonatomic) IBOutlet CustomLabel *lblRuleName;
@property (weak, nonatomic) IBOutlet CustomButton *btnRulePlay;
@property (weak, nonatomic) IBOutlet CustomButton *btnDelete;

@end

@class CustomLabelButton;
@interface RulesCreateTableViewCell : KNTableViewCell

@property (weak, nonatomic) IBOutlet CustomLabelButton *btnAdd;

@end

