diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Client/IClientIM.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/OpenSim/Framework/Client/IClientIM.cs b/OpenSim/Framework/Client/IClientIM.cs new file mode 100644 index 0000000..a3498c2 --- /dev/null +++ b/OpenSim/Framework/Client/IClientIM.cs | |||
@@ -0,0 +1,45 @@ | |||
1 | using System; | ||
2 | using OpenMetaverse; | ||
3 | |||
4 | namespace OpenSim.Framework.Client | ||
5 | { | ||
6 | public class ClientInstantMessageArgs : EventArgs | ||
7 | { | ||
8 | public IClientCore client; | ||
9 | public string message; | ||
10 | public DateTime time; | ||
11 | public ClientInstantMessageSender sender; | ||
12 | } | ||
13 | |||
14 | public class ClientInstantMessageSender | ||
15 | { | ||
16 | public UUID ID; | ||
17 | public bool online; | ||
18 | public string name; | ||
19 | public Vector3 position; | ||
20 | public UUID regionID; | ||
21 | } | ||
22 | |||
23 | public delegate void ClientInstantMessage(Object sender, ClientInstantMessageArgs e); | ||
24 | |||
25 | public class ClientInstantMessageParms | ||
26 | { | ||
27 | public ClientInstantMessageSender senderInfo; | ||
28 | } | ||
29 | |||
30 | // Porting Guide from old IM | ||
31 | // SendIM(...) | ||
32 | // Loses FromAgentSession - this should be added by implementers manually. | ||
33 | // | ||
34 | |||
35 | public interface IClientIM | ||
36 | { | ||
37 | void SendInstantMessage(UUID fromAgent, string message, UUID toAgent, | ||
38 | string fromName, byte dialog, uint timeStamp); | ||
39 | |||
40 | void SendInstantMessage(UUID fromAgent, string message, UUID toAgent, | ||
41 | string fromName, byte dialog, uint timeStamp, | ||
42 | bool fromGroup, byte[] binaryBucket); | ||
43 | event ImprovedInstantMessage OnInstantMessage; | ||
44 | } | ||
45 | } | ||