aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Client/IClientIM.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-11-08 17:20:54 +0000
committerAdam Frisby2008-11-08 17:20:54 +0000
commitcf0a14bec94322656f57890d49fead85ed31730e (patch)
tree861596444093bb68567cda8583cd0e94a618c120 /OpenSim/Framework/Client/IClientIM.cs
parentFix broken build since r7179 (diff)
downloadopensim-SC_OLD-cf0a14bec94322656f57890d49fead85ed31730e.zip
opensim-SC_OLD-cf0a14bec94322656f57890d49fead85ed31730e.tar.gz
opensim-SC_OLD-cf0a14bec94322656f57890d49fead85ed31730e.tar.bz2
opensim-SC_OLD-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.cs45
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 @@
1using System;
2using OpenMetaverse;
3
4namespace 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}