mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 10:15:33 +08:00
* 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.*
This commit is contained in:
45
OpenSim/Framework/Client/IClientIM.cs
Normal file
45
OpenSim/Framework/Client/IClientIM.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
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,
|
||||
bool fromGroup, byte[] binaryBucket);
|
||||
event ImprovedInstantMessage OnInstantMessage;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user