BBASMMapPOISearchResultProtocol.h 1.21 KB
//
//  BBASMMapPOISearchResultProtocol.h
//  BBAMNP
//
//  Created by baidu on 2019/5/29.
//  Copyright © 2019 Baidu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BBASMAdapterBaseImplement.h"

@protocol BBASMMapPOIDataProtocol;

/**
 * @brief POI检索结果接口
 */
@protocol BBASMMapPOISearchResultProtocol <NSObject>
/**
 关于以下4个字段的解释:
 假如检索请求中 pageSize=10 且 pageIndex=2,即开发者期望检索结果每页10条,取第2页的结果。
 如果符合条件的检索结果总数为25条,检索结果总页数就是3,当前页结果个数为5,当前页的索引为3;
 如果符合条件的检索结果总数为8条,此时没有符合条件的检索结果。本对象为nil
 */
/// 符合条件的检索结果总个数
@property (nonatomic, assign) NSInteger totalPOINum;
/// 符合条件的检索结果总页数
@property (nonatomic, assign) NSInteger totalPageNum;
/// 当前页的结果个数
@property (nonatomic, assign) NSInteger curPOINum;
/// 当前页的页数索引
@property (nonatomic, assign) NSInteger curPageIndex;
/// POI列表,成员是BBASMMapPOIDataProtocol
@property (nonatomic, copy) NSArray<id<BBASMMapPOIDataProtocol>> *poiInfoList;
@end