//
//  RulesAddViewController.h
//  kneet2
//
//  Created by Jason Lee on 11/20/15.
//  Copyright © 2015 ntels. All rights reserved.
//

#import "JDViewController.h"

@class CustomCheckBox;
@class CustomLabel;
@class CustomImageView;
@class CustomButton;
@class CustomTextView;
@class CustomTextField;

@class RuleDetailModel;

@interface RulesAddViewController : JDViewController


#pragma mark - Properties
@property (strong, nonatomic) RuleDetailModel *refRuleDetail;
@property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;

@property (weak, nonatomic) IBOutlet CustomTableView *tableView;

#pragma mark - Instance Methods

- (IBAction)btnConfirmTouched:(id)sender;
- (IBAction)btnCancelTouched:(id)sender;
+ (BOOL)hasDeleteNode:(ItemModel *)deviceItem;
+ (void)modifyAction:(ItemSubModel *)subItem refDevices:(NSMutableArray<ItemModel> *)refDevices tableView:(CustomTableView *)tableView;

@end

@interface RulesAddTitleTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomTextField *txtRuleTitle;

@end

@interface RulesAddHeaderTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
@property (weak, nonatomic) IBOutlet CustomButton *btnAdd;

@end


@interface RulesAddTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon;
@property (weak, nonatomic) IBOutlet CustomLabel *lblItem;
@property (weak, nonatomic) IBOutlet CustomLabel *lblSubItem;
@property (weak, nonatomic) IBOutlet CustomLabel *lblCondition;
@property (weak, nonatomic) IBOutlet CustomButton *btnDelete;
@property (weak, nonatomic) IBOutlet UIView *bottomLine;

@end


@interface RulesAddPushTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomTextView *txvMessage;
@property (weak, nonatomic) IBOutlet CustomButton *btnDelete;

@end

@interface RulesAddConditionHeaderTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomCheckBox *chkConditions;

@end

@interface RulesAddConditionTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet UIView *container;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintContainerHeight;

@end

@interface RulesAddFooterTableViewCell : KNTableViewCell2

@end

