// Generated by json_to_model

@import Foundation;

#import "JDJSONModel.h"
#import "ItemModel.h"


@protocol RuleModel;

@interface RuleModel : JDJSONModel

@property (copy, nonatomic) NSString *homegrpRuleId;
@property (copy, nonatomic) NSString *ruleId;
@property (copy, nonatomic) NSString *ruleName;
@property (copy, nonatomic) NSString *useYn;
@property (copy, nonatomic) NSString *predRuleId;
@property (copy, nonatomic) NSString *createDatetime;
@property (copy, nonatomic) NSString *imageFileName;
@property (copy, nonatomic) NSString *nickname;
@property (copy, nonatomic) NSString *latestExecutionDatetime;

@property (weak, nonatomic) NSString *triggerItemSubTypeCode;

@end


@interface RuleListModel : JDJSONModel
@property (copy, nonatomic) NSString *activeCount;
@property (copy, nonatomic) NSString *inactiveCount;
@property (copy, nonatomic) NSMutableArray<RuleModel> *rules;

@end



@interface PredefinedRuleDetailModel : JDJSONModel

@property (copy, nonatomic) NSArray<ItemModel> *triggers;
@property (copy, nonatomic) NSArray<ItemModel> *actions;
@property (copy, nonatomic) NSArray<ItemModel> *conditions;

@end


@interface RuleDetailModel : RuleModel

@property (copy, nonatomic) NSArray<ItemModel> *triggers;
@property (copy, nonatomic) NSArray<ItemModel> *actions;
@property (copy, nonatomic) NSArray<ItemModel> *conditions;

@end

@protocol RulePushMemberModel;

@interface RulePushMemberModel : JDJSONModel

@property (copy, nonatomic) NSString *memberId;
@property (copy, nonatomic) NSString *nickname;
@property (copy, nonatomic) NSString *targetEmail;

@end


@interface RulePushMemberListModel : JDJSONModel

@property (copy, nonatomic) NSArray<RulePushMemberModel> *list;

@end
