diff options
author | Adam Frisby | 2008-11-08 17:20:54 +0000 |
---|---|---|
committer | Adam Frisby | 2008-11-08 17:20:54 +0000 |
commit | cf0a14bec94322656f57890d49fead85ed31730e (patch) | |
tree | 861596444093bb68567cda8583cd0e94a618c120 /OpenSim/Framework/Client/IClientIM.cs | |
parent | Fix broken build since r7179 (diff) | |
download | opensim-SC-cf0a14bec94322656f57890d49fead85ed31730e.zip opensim-SC-cf0a14bec94322656f57890d49fead85ed31730e.tar.gz opensim-SC-cf0a14bec94322656f57890d49fead85ed31730e.tar.bz2 opensim-SC-cf0a14bec94322656f57890d49fead85ed31730e.tar.xz |
* Added IClientIM to IClientCore interfaces
* Changed SendInstantMessage, dropped fromAgentSession and imSessionID as security precaution, see http://opensimulator.org/wiki/OpenSim_0.6_IClientAPI#Porting_Guide for details on porting.
* Removed unused usings from Framework.*
Diffstat (limited to 'OpenSim/Framework/Client/IClientIM.cs')
-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 | } | ||