//
//  ThingsGroupAddViewController.h
//  kneet
//
//  Created by Jason Lee on 5/14/15.
//  Copyright (c) 2015 ntels. All rights reserved.
//

#import "JDViewController.h"
#import "DeviceModel.h"

@interface ThingsGroupAddViewController : JDViewController


#pragma mark - Properties
@property (strong, nonatomic) GroupsModel *addedGroup;
@property (weak, nonatomic) NSMutableArray<GroupsModel> *groupList;

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

@property (weak, nonatomic) IBOutlet CustomButton *btnSave;
@property (weak, nonatomic) IBOutlet CustomButton *btnCancel;


#pragma mark - Instance Methods
- (IBAction)btnSaveTouched:(id)sender;
- (IBAction)btnCancelTouched:(id)sender;

@end

@class GroupsModel;
@class CustomLabel;
@class CustomImageView;

@interface ThingsGroupHeaderTableViewCell : UITableViewCell

@property (weak, nonatomic) IBOutlet CustomButton *btnHeader;
@property (weak, nonatomic) GroupsModel *group;
@property (assign, nonatomic) NSInteger section;

- (IBAction)btnHeaderTouched:(id)sender;

@end

@interface ThingsGroupTitleTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet CustomLabel *lblGroupTitle;
@property (weak, nonatomic) IBOutlet CustomLabel *lblGroupInfo;

@end

@class CustomCheckBox;
@interface ThingsGroupTableViewCell : UITableViewCell

@property (weak, nonatomic) IBOutlet CustomImageView *imgvIcon;
@property (weak, nonatomic) IBOutlet CustomLabel *lblTitle;
@property (weak, nonatomic) IBOutlet CustomCheckBox *chkSelect;

@end

