public ImprovedInstantMessage(GridInstantMessage gim)
 {
     AgentID = gim.IsFromGroup ?
               gim.FromGroup.ID :
               gim.FromAgent.ID;
     SessionID     = UUID.Zero;
     FromAgentName = gim.FromAgent.FullName;
     ToAgentID     = gim.ToAgent.ID;
     Dialog        = gim.Dialog;
     FromGroup     = gim.IsFromGroup;
     Message       = gim.Message;
     ID            = (gim.IMSessionID.Equals(UUID.Zero)) ?
                     (gim.FromAgent.ID ^ gim.ToAgent.ID) :
                     gim.IMSessionID;
     IsOffline = gim.IsOffline;
     Position  = gim.Position;
     if (gim.BinaryBucket != null)
     {
         BinaryBucket = gim.BinaryBucket;
     }
     ParentEstateID = (uint)gim.ParentEstateID;
     RegionID       = gim.RegionID;
     Timestamp      = gim.Timestamp ?? new Date();
 }
Exemplo n.º 2
0
 public IMMessageHandlerAttribute(GridInstantMessageDialog dialog)
 {
     Dialog = dialog;
 }