forked from tompaana/bot-message-routing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IRoutingDataStore.cs
80 lines (67 loc) · 3.45 KB
/
IRoutingDataStore.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using Microsoft.Bot.Schema;
using System.Collections.Generic;
using Underscore.Bot.MessageRouting.Models;
namespace Underscore.Bot.MessageRouting.DataStore
{
public interface IRoutingDataStore
{
/// <returns>The users as a readonly list.</returns>
IList<ConversationReference> GetUsers();
/// <returns>The bot instances as a readonly list.</returns>
IList<ConversationReference> GetBotInstances();
/// <summary>
/// Adds the given conversation reference instance to the collection.
/// </summary>
/// <param name="conversationReferenceToAdd">The new conversation reference instance to add.</param>
/// <returns>True, if successful. False otherwise.</returns>
bool AddConversationReference(ConversationReference conversationReferenceToAdd);
/// <summary>
/// Removes the given conversation reference from the collection.
/// </summary>
/// <param name="conversationReferenceToRemove">The conversation reference to remove.</param>
/// <returns>True, if successful. False otherwise.</returns>
bool RemoveConversationReference(ConversationReference conversationReferenceToRemove);
/// <returns>The aggregation channels as a readonly list.</returns>
IList<ConversationReference> GetAggregationChannels();
/// <summary>
/// Adds the given aggregation channel to the collection.
/// </summary>
/// <param name="aggregationChannelToAdd">The aggregation channel to add.</param>
/// <returns>True, if successful. False otherwise.</returns>
bool AddAggregationChannel(ConversationReference aggregationChannelToAdd);
/// <summary>
/// Removes the given aggregation channel from the collection.
/// </summary>
/// <param name="aggregationChannelToRemove">The aggregation channel to remove.</param>
/// <returns>True, if successful. False otherwise.</returns>
bool RemoveAggregationChannel(ConversationReference aggregationChannelToRemove);
/// <returns>The connection requests as a readonly list.</returns>
IList<ConnectionRequest> GetConnectionRequests();
/// <summary>
/// Adds the given connection request.
/// </summary>
/// <param name="connectionRequest">The connection request to add.</param>
/// <returns>True, if successful. False otherwise.</returns>
bool AddConnectionRequest(ConnectionRequest connectionRequest);
/// <summary>
/// Removes the given connection request.
/// </summary>
/// <param name="connectionRequest">The connection request to remove.</param>
/// <returns>True, if successful. False otherwise.</returns>
bool RemoveConnectionRequest(ConnectionRequest connectionRequest);
/// <returns>The connections.</returns>
IList<Connection> GetConnections();
/// <summary>
/// Adds the given connection.
/// </summary>
/// <param name="connection">The connection to add.</param>
/// <returns>True, if successful. False otherwise.</returns>
bool AddConnection(Connection connectionToAdd);
/// <summary>
/// Removes the given connection.
/// </summary>
/// <param name="connection">The connection to remove.</param>
/// <returns>True, if successful. False otherwise.</returns>
bool RemoveConnection(Connection connectionToRemove);
}
}