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

32 lines
746 B
C
Raw Permalink Normal View History

2021-07-16 15:03:23 +08:00
//
// 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