This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-iOS/Devkit/Classes/RATreeView/RABatchChangeEntity.h
2021-07-21 19:32:31 +08:00

32 lines
746 B
Objective-C

//
// RABatchChangesEntity.h
// RATreeView
//
// Created by Rafal Augustyniak on 17/11/15.
// Copyright © 2015 Rafal Augustyniak. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger, RABatchChangeType) {
RABatchChangeTypeItemRowInsertion = 0,
RABatchChangeTypeItemRowExpansion,
RABatchChangeTypeItemRowDeletion,
RABatchChangeTypeItemRowCollapse,
RABatchChangeTypeItemMove
};
@interface RABatchChangeEntity : NSObject
@property (nonatomic) RABatchChangeType type;
@property (nonatomic) NSInteger ranking;
@property (nonatomic, copy) void(^updatesBlock)();
+ (instancetype)batchChangeEntityWithBlock:(void(^)())updates type:(RABatchChangeType)type ranking:(NSInteger)ranking;
@end