* 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:
Adam Frisby
2008-11-08 17:20:54 +00:00
parent 07cfa1e70b
commit cf0a14bec9
33 changed files with 111 additions and 116 deletions

View 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;
}
}