//
//  HWMContactDefine.h
//  HWMContact
//
//

#ifndef HWMContactDefine_h
#define HWMContactDefine_h


#endif /* HWMContactDefine_h */

NS_ASSUME_NONNULL_BEGIN
@class HWMEnterpriseContact;
@class HWMEnterpriseDepartment;
@class HWMLocalContact;
/// 联系人查询 callback
typedef void (^HWMContactsRequestCallback)(NSError * error, NSArray <HWMEnterpriseContact *> * data, NSUInteger offset, NSUInteger count);
typedef void (^HWMContactRequestCallback)(NSError * _Nullable error, HWMEnterpriseContact * _Nullable contact);
typedef void (^HWMContactListRequestCallback)(NSError *_Nullable error, NSArray<HWMEnterpriseContact *> *_Nullable userInfos);

/// 部门树查询 callback
typedef void (^HWMDepartmentRequestCallback)(NSError * error, HWMEnterpriseDepartment * data);

/// 本地通讯录查询 callback
typedef void (^HWMLocalContactCompleteHandler)( NSArray<HWMLocalContact *> * _Nullable contacts, NSError  * _Nullable error);


NS_ASSUME_NONNULL_END
