// // TimePickerPopupView.h // kneet2 // // Created by Jason Lee on 11/24/15. // Copyright (c) 2015 ntels. All rights reserved. // @import UIKit; #import "CustomAlertView.h" #import "JDViewController.h" @class CustomCheckBox; @interface CustomTimePicker : UIDatePicker { BOOL _changed; } @end @interface TimePickerPopupView : CustomAlertView @property (weak, nonatomic) ItemModel *timeTrigger; @property (weak, nonatomic) NSMutableArray *refConditions; //properties @property (weak, nonatomic) IBOutlet CustomTimePicker *timePicker; @property (strong, nonatomic) IBOutletCollection(CustomCheckBox) NSArray *chkDays; //methods - (id)initFromNib; + (NSString *)daysOfWeek:(NSArray *)chkDays; + (NSString *)daysOfWeekValue:(NSArray *)chkDays; + (BOOL)validateCondition:(NSArray *)chkDays; + (void)setDaysCondition:(NSMutableArray *)conditions chkDays:(NSArray *)chkDays; + (void)setRefConditions:(NSMutableArray *)refConditions chkDays:(NSArray *)chkDays; @end