|
1 | 1 | using System;
|
2 | 2 | using JetBrains.Annotations;
|
3 |
| -using NFive.SDK.Client.Events; |
4 | 3 |
|
5 | 4 | namespace NFive.SDK.Client.Communications
|
6 | 5 | {
|
7 | 6 | [PublicAPI]
|
8 | 7 | public interface ICommunicationReceive
|
9 | 8 | {
|
| 9 | + /// <summary> |
| 10 | + /// Registers the specified callback. |
| 11 | + /// </summary> |
| 12 | + /// <param name="callback">The callback.</param> |
10 | 13 | void On(Action<ICommunicationMessage> callback);
|
11 | 14 |
|
| 15 | + /// <summary> |
| 16 | + /// Registers the specified callback. |
| 17 | + /// </summary> |
| 18 | + /// <typeparam name="T">The type of the first callback parameter.</typeparam> |
| 19 | + /// <param name="callback">The callback.</param> |
12 | 20 | void On<T>(Action<ICommunicationMessage, T> callback);
|
13 | 21 |
|
| 22 | + /// <summary> |
| 23 | + /// Registers the specified callback. |
| 24 | + /// </summary> |
| 25 | + /// <typeparam name="T1">The type of the first callback parameter.</typeparam> |
| 26 | + /// <typeparam name="T2">The type of the second callback parameter.</typeparam> |
| 27 | + /// <param name="callback">The callback.</param> |
14 | 28 | void On<T1, T2>(Action<ICommunicationMessage, T1, T2> callback);
|
15 | 29 |
|
| 30 | + /// <summary> |
| 31 | + /// Registers the specified callback. |
| 32 | + /// </summary> |
| 33 | + /// <typeparam name="T1">The type of the first callback parameter.</typeparam> |
| 34 | + /// <typeparam name="T2">The type of the second callback parameter.</typeparam> |
| 35 | + /// <typeparam name="T3">The type of the third callback parameter.</typeparam> |
| 36 | + /// <param name="callback">The callback.</param> |
16 | 37 | void On<T1, T2, T3>(Action<ICommunicationMessage, T1, T2, T3> callback);
|
17 | 38 |
|
| 39 | + /// <summary> |
| 40 | + /// Registers the specified callback. |
| 41 | + /// </summary> |
| 42 | + /// <typeparam name="T1">The type of the first callback parameter.</typeparam> |
| 43 | + /// <typeparam name="T2">The type of the second callback parameter.</typeparam> |
| 44 | + /// <typeparam name="T3">The type of the third callback parameter.</typeparam> |
| 45 | + /// <typeparam name="T4">The type of the fourth callback parameter.</typeparam> |
| 46 | + /// <param name="callback">The callback.</param> |
18 | 47 | void On<T1, T2, T3, T4>(Action<ICommunicationMessage, T1, T2, T3, T4> callback);
|
19 | 48 |
|
| 49 | + /// <summary> |
| 50 | + /// Registers the specified callback. |
| 51 | + /// </summary> |
| 52 | + /// <typeparam name="T1">The type of the first callback parameter.</typeparam> |
| 53 | + /// <typeparam name="T2">The type of the second callback parameter.</typeparam> |
| 54 | + /// <typeparam name="T3">The type of the third callback parameter.</typeparam> |
| 55 | + /// <typeparam name="T4">The type of the fourth callback parameter.</typeparam> |
| 56 | + /// <typeparam name="T5">The type of the fifth callback parameter.</typeparam> |
| 57 | + /// <param name="callback">The callback.</param> |
20 | 58 | void On<T1, T2, T3, T4, T5>(Action<ICommunicationMessage, T1, T2, T3, T4, T5> callback);
|
21 | 59 |
|
| 60 | + /// <summary> |
| 61 | + /// Registers the specified callback. |
| 62 | + /// </summary> |
| 63 | + /// <param name="callback">The callback.</param> |
22 | 64 | void OnRequest(Action<ICommunicationMessage> callback);
|
23 | 65 |
|
| 66 | + /// <summary> |
| 67 | + /// Registers the specified callback. |
| 68 | + /// </summary> |
| 69 | + /// <typeparam name="T">The type of the first callback parameter.</typeparam> |
| 70 | + /// <param name="callback">The callback.</param> |
24 | 71 | void OnRequest<T>(Action<ICommunicationMessage, T> callback);
|
25 | 72 |
|
| 73 | + /// <summary> |
| 74 | + /// Registers the specified callback. |
| 75 | + /// </summary> |
| 76 | + /// <typeparam name="T1">The type of the first callback parameter.</typeparam> |
| 77 | + /// <typeparam name="T2">The type of the second callback parameter.</typeparam> |
| 78 | + /// <param name="callback">The callback.</param> |
26 | 79 | void OnRequest<T1, T2>(Action<ICommunicationMessage, T1, T2> callback);
|
27 | 80 |
|
| 81 | + /// <summary> |
| 82 | + /// Registers the specified callback. |
| 83 | + /// </summary> |
| 84 | + /// <typeparam name="T1">The type of the first callback parameter.</typeparam> |
| 85 | + /// <typeparam name="T2">The type of the second callback parameter.</typeparam> |
| 86 | + /// <typeparam name="T3">The type of the third callback parameter.</typeparam> |
| 87 | + /// <param name="callback">The callback.</param> |
28 | 88 | void OnRequest<T1, T2, T3>(Action<ICommunicationMessage, T1, T2, T3> callback);
|
29 | 89 |
|
| 90 | + /// <summary> |
| 91 | + /// Registers the specified callback. |
| 92 | + /// </summary> |
| 93 | + /// <typeparam name="T1">The type of the first callback parameter.</typeparam> |
| 94 | + /// <typeparam name="T2">The type of the second callback parameter.</typeparam> |
| 95 | + /// <typeparam name="T3">The type of the third callback parameter.</typeparam> |
| 96 | + /// <typeparam name="T4">The type of the fourth callback parameter.</typeparam> |
| 97 | + /// <param name="callback">The callback.</param> |
30 | 98 | void OnRequest<T1, T2, T3, T4>(Action<ICommunicationMessage, T1, T2, T3, T4> callback);
|
31 | 99 |
|
| 100 | + /// <summary> |
| 101 | + /// Registers the specified callback. |
| 102 | + /// </summary> |
| 103 | + /// <typeparam name="T1">The type of the first callback parameter.</typeparam> |
| 104 | + /// <typeparam name="T2">The type of the second callback parameter.</typeparam> |
| 105 | + /// <typeparam name="T3">The type of the third callback parameter.</typeparam> |
| 106 | + /// <typeparam name="T4">The type of the fourth callback parameter.</typeparam> |
| 107 | + /// <typeparam name="T5">The type of the fifth callback parameter.</typeparam> |
| 108 | + /// <param name="callback">The callback.</param> |
32 | 109 | void OnRequest<T1, T2, T3, T4, T5>(Action<ICommunicationMessage, T1, T2, T3, T4, T5> callback);
|
33 | 110 | }
|
34 | 111 | }
|
0 commit comments