forked from BotBuilderCommunity/botbuilder-community-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIFavoritesManager.cs
27 lines (18 loc) · 892 Bytes
/
IFavoritesManager.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.Bot.Builder;
namespace Bot.Builder.Community.Dialogs.Location
{
interface IFavoritesManager
{
Task<bool> MaxCapacityReached(ITurnContext context);
Task<bool> IsFavorite(ITurnContext context, Bing.Location location);
Task<bool> IsFavoriteLocationName(ITurnContext context, string name);
Task<FavoriteLocation> GetFavoriteByIndex(ITurnContext context, int index);
Task<FavoriteLocation> GetFavoriteByName(ITurnContext context, string name);
Task<List<FavoriteLocation>> GetFavorites(ITurnContext context);
Task Add(ITurnContext context, FavoriteLocation value);
Task Delete(ITurnContext context, FavoriteLocation value);
Task Update(ITurnContext context, FavoriteLocation currentValue, FavoriteLocation newValue);
}
}