diff options
author | Justin Clarke Casey | 2008-02-12 22:41:57 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-02-12 22:41:57 +0000 |
commit | 2018cf312bd51350f1f71a8ff1c710d0085a6358 (patch) | |
tree | 1ebc025710d1a7644f67e1192e42a5277eeb5b43 /OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs | |
parent | * Add missing locking to mysql inventory plugin (diff) | |
download | opensim-SC-2018cf312bd51350f1f71a8ff1c710d0085a6358.zip opensim-SC-2018cf312bd51350f1f71a8ff1c710d0085a6358.tar.gz opensim-SC-2018cf312bd51350f1f71a8ff1c710d0085a6358.tar.bz2 opensim-SC-2018cf312bd51350f1f71a8ff1c710d0085a6358.tar.xz |
Refactor: factor a method out of AgentAssetTransactionsManager
Diffstat (limited to 'OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs b/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs index 70471cc..c9c35d2 100644 --- a/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs +++ b/OpenSim/Framework/Communications/Cache/AgentAssetTransactionsManager.cs | |||
@@ -81,28 +81,17 @@ namespace OpenSim.Framework.Communications.Cache | |||
81 | /// Get the collection of asset transactions for the given user. | 81 | /// Get the collection of asset transactions for the given user. |
82 | /// </summary> | 82 | /// </summary> |
83 | /// <param name="userID"></param> | 83 | /// <param name="userID"></param> |
84 | /// <returns></returns> | 84 | /// <returns>null if this agent does not have an asset transactions collection</returns> |
85 | public AgentAssetTransactions GetUserTransactions(LLUUID userID) | 85 | public AgentAssetTransactions GetUserTransactions(LLUUID userID) |
86 | { | 86 | { |
87 | if (AgentTransactions.ContainsKey(userID)) | 87 | if (AgentTransactions.ContainsKey(userID)) |
88 | { | 88 | { |
89 | return AgentTransactions[userID]; | 89 | return AgentTransactions[userID]; |
90 | } | 90 | } |
91 | |||
91 | return null; | 92 | return null; |
92 | } | 93 | } |
93 | 94 | ||
94 | public void HandleInventoryFromTransaction(IClientAPI remoteClient, LLUUID transactionID, LLUUID folderID, | ||
95 | uint callbackID, string description, string name, sbyte invType, | ||
96 | sbyte type, byte wearableType, uint nextOwnerMask) | ||
97 | { | ||
98 | AgentAssetTransactions transactions = GetUserTransactions(remoteClient.AgentId); | ||
99 | if (transactions != null) | ||
100 | { | ||
101 | transactions.RequestCreateInventoryItem(remoteClient, transactionID, folderID, callbackID, description, | ||
102 | name, invType, type, wearableType, nextOwnerMask); | ||
103 | } | ||
104 | } | ||
105 | |||
106 | public void HandleUDPUploadRequest(IClientAPI remoteClient, LLUUID assetID, LLUUID transaction, sbyte type, | 95 | public void HandleUDPUploadRequest(IClientAPI remoteClient, LLUUID assetID, LLUUID transaction, sbyte type, |
107 | byte[] data, bool storeLocal, bool tempFile) | 96 | byte[] data, bool storeLocal, bool tempFile) |
108 | { | 97 | { |