//
//  TriggerSelectPopupView.h
//  kneet2
//
//  Created by Jason Lee on 11/23/15.
//  Copyright (c) 2015 ntels. All rights reserved.
//

@import UIKit;
#import "CustomAlertView.h"
#import "JDViewController.h"

@class CustomButton;
@class CustomLabel;
@class CustomLabelButton;

@interface TriggerSelectPopupView : CustomAlertView

@property (weak, nonatomic) NSMutableArray<ItemModel> *refTriggers;
@property (weak, nonatomic) NSMutableArray<ItemModel> *refDevices;
@property (weak, nonatomic) NSMutableArray<ItemModel> *refConditions;

@property (weak, nonatomic, readonly) NSArray<ItemModel> *selectedItems;

@property (strong, nonatomic) NSString *typeCode;

//properties
@property (weak, nonatomic) IBOutlet CustomLabelButton *lblTimer;
@property (weak, nonatomic) IBOutlet CustomLabelButton *lblDaylight;
@property (weak, nonatomic) IBOutlet CustomLabelButton *lblHeat;
@property (weak, nonatomic) IBOutlet CustomLabelButton *lblDevice;

//methods
- (id)initFromNib;

- (IBAction)btnTimerTouched:(id)sender;
- (IBAction)btnDaylightTouched:(id)sender;
- (IBAction)btnHeatTouched:(id)sender;
- (IBAction)btnDeviceTouched:(id)sender;


@end
