aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Client/IClientIM.cs
blob: 1d55d101468aff5c8799aafce74e931a4ac47813 (plain)
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
using System;
using OpenMetaverse;

namespace OpenSim.Framework.Client
{
    public class ClientInstantMessageArgs : EventArgs
    {
        public IClientCore client;
        public string message;
        public DateTime time;
        public ClientInstantMessageSender sender;
    }

    public class ClientInstantMessageSender
    {
        public UUID ID;
        public bool online;
        public string name;
        public Vector3 position;
        public UUID regionID;
    }

    public delegate void ClientInstantMessage(Object sender, ClientInstantMessageArgs e);

    public class ClientInstantMessageParms
    {
        public ClientInstantMessageSender senderInfo;
    }

    // Porting Guide from old IM
    // SendIM(...)
    //      Loses FromAgentSession - this should be added by implementers manually.
    //      

    public interface IClientIM
    {
        void SendInstantMessage(UUID fromAgent, string message, UUID toAgent,
                        string fromName, byte dialog, uint timeStamp);

        void SendInstantMessage(UUID fromAgent, string message, UUID toAgent,
                                string fromName, byte dialog, uint timeStamp,
                                UUID transactionID, bool fromGroup,
                                byte[] binaryBucket);

        event ImprovedInstantMessage OnInstantMessage;
    }
}