ifish/Ifish/BMKMap3.3.0/BaiduMapAPI_Utils.framework/Headers/BMKFavPoiManager.h

61 lines
1.5 KiB
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// BMKFavPoiManager.h
// UtilsComponent
//
// Created by wzy on 15/4/9.
// Copyright (c) 2015年 baidu. All rights reserved.
//
#ifndef UtilsComponent_BMKFavPoiManager_h
#define UtilsComponent_BMKFavPoiManager_h
#import "BMKFavPoiInfo.h"
///收藏点管理类
@interface BMKFavPoiManager : NSObject
/**
* 添加一个poi点
* @param favPoiInfo 点信息,in/out输出包含favId和添加时间
* @return -2:收藏夹已满,-1:名称为空0添加失败1添加成功
*/
- (NSInteger)addFavPoi:(BMKFavPoiInfo*) favPoiInfo;
/**
* 获取一个收藏点信息
* @param favId 添加时返回的favId也可通过getAllFavPois获取的信息中BMKFavPoiInfo的属性favId
* @return 收藏点信息,没有返回nil
*/
- (BMKFavPoiInfo*)getFavPoi:(NSString*) favId;
/**
* 获取所有收藏点信息
* @return 点信息数组
*/
- (NSArray*)getAllFavPois;
/**
* 更新一个收藏点
* @param favId 添加时返回的favId也可通过getAllFavPois获取的信息中BMKFavPoiInfo的属性favId
* @param favPoiInfo 点信息,in/out输出包含修改时间
* @return 成功返回YES失败返回NO
*/
- (BOOL)updateFavPoi:(NSString*) favId favPoiInfo:(BMKFavPoiInfo*) favPoiInfo;
/**
* 删除一个收藏点
* @param favId 添加时返回的favId也可通过getAllFavPois获取的信息中BMKFavPoiInfo的属性favId
* @return 成功返回YES失败返回NO
*/
- (BOOL)deleteFavPoi:(NSString*) favId;
/**
* 清空所有收藏点
* @return 成功返回YES失败返回NO
*/
- (BOOL)clearAllFavPois;
@end
#endif