Пример #1
0
        public void Inventory_TaskItemReceived(object sender, TaskItemReceivedEventArgs e)
        {
            Hashtable message = new Hashtable();

            message.Add("MessageType", "TaskItemReceived");
            message.Add("ItemID", e.ItemID);
            message.Add("FolderID", e.FolderID);
            message.Add("CreatorID", e.CreatorID);
            message.Add("AssetID", e.AssetID);
            message.Add("Type", (byte)e.Type);
            enqueue(message);
        }
Пример #2
0
 protected virtual void TaskItemReceived(object o, TaskItemReceivedEventArgs E)
 {
     if (suppressDupUpdates.Contains(E.ItemID) == false)
     {
         suppressDupUpdates.Add(E.ItemID);
         InventoryItem itm = Client.Inventory.FetchItem(E.ItemID, Client.Self.AgentID, 3000);
         if (itm != null)
         {
             jsonInventoryUpdate A = new jsonInventoryUpdate();
             A.itemCreator       = itm.CreatorID.ToString();
             A.itemName          = itm.Name;
             A.itemUUID          = itm.UUID.ToString();
             A.itemInventoryUUID = itm.AssetUUID.ToString();
             A.itemType          = itm.AssetType.ToString().ToLowerInvariant();
             InventoryUpdateEvent(A);
         }
     }
 }
 public override void Inventory_OnTaskItemReceived(object sender, TaskItemReceivedEventArgs e)
 {
     base.Inventory_OnTaskItemReceived(sender, e);
 }