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

#import "JDViewController.h"

@class RuleModel;

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

@interface RulesDetailViewController : JDViewController


#pragma mark - Properties
@property (strong, nonatomic) RuleModel *refRule;

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

#pragma mark - Instance Methods
- (void)requestRuleDetail;

- (IBAction)btnOptionTouched:(id)sender;
- (IBAction)btnCloseTouched:(id)sender;

@end



@interface RulesDetailTitleTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomLabel *lblRuleTitle;

@end

@interface RulesDetailHeaderTableViewCell : KNTableViewCell2

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

@end


@interface RulesDetailTableViewCell : 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 UIView *bottomLine;

@end


@interface RulesDetailPushTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomImageView *imgvPush;
@property (weak, nonatomic) IBOutlet CustomLabel *lblMessage;

@end

@interface RulesDetailConditionHeaderTableViewCell : KNTableViewCell2

@end

@interface RulesDetailConditionTableViewCell : KNTableViewCell2

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

@end

@interface RulesDetailFooterTableViewCell : KNTableViewCell2
@property (weak, nonatomic) IBOutlet UIView *topLine;

@end

@interface RulesDetailExecutionTableViewCell : KNTableViewCell2

@property (weak, nonatomic) IBOutlet CustomButton *btnUseRule;
@property (weak, nonatomic) IBOutlet CustomLabel *lblExecutionDate;
@property (weak, nonatomic) IBOutlet KNView *statusView;
@property (weak, nonatomic) IBOutlet UISwitch *switchRulePlay;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintStatusViewHeight;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *constraintStatusViewBottom;

@end
