/// <summary> /// Creates info from a net request /// </summary> /// <param name="fromReq"></param> public AssetRequestInfo(TransferRequestPacket fromReq, IClientAPI userInfo) { _origin = RequestOrigin.SRC_NET; _netSrc = (NetSourceType)fromReq.TransferInfo.SourceType; if (fromReq.TransferInfo.SourceType == 2) { //direct asset request _requestedId = new UUID(fromReq.TransferInfo.Params, 0); } else if (fromReq.TransferInfo.SourceType == 3) { //inventory asset request _requestedId = new UUID(fromReq.TransferInfo.Params, 80); } else if (fromReq.TransferInfo.SourceType == 4) { //sim estate request //We have to just send the covenent in this case, // I've looked through the params, and the UUID // of the covenent isn't in there (Matt Beardmore) _requestedId = userInfo.Scene.RegionInfo.RegionSettings.Covenant; } _transferId = fromReq.TransferInfo.TransferID; _params = fromReq.TransferInfo.Params; }
/// <summary> /// Creates info from a net request /// </summary> /// <param name="fromReq"></param> public AssetRequestInfo(TransferRequestPacket fromReq, IClientAPI userInfo) { _origin = RequestOrigin.SRC_NET; _netSrc = (NetSourceType)fromReq.TransferInfo.SourceType; _netChannel = (NetChannelType)fromReq.TransferInfo.ChannelType; if (fromReq.TransferInfo.SourceType == 2) { //direct asset request _requestedId = new UUID(fromReq.TransferInfo.Params, 0); } else if (fromReq.TransferInfo.SourceType == 3) { //inventory asset request _requestedId = new UUID(fromReq.TransferInfo.Params, 80); } else if (fromReq.TransferInfo.SourceType == 4) { //sim estate request //We have to just send the covenent in this case, // I've looked through the params, and the UUID // of the covenent isn't in there (Matt Beardmore) _requestedId = userInfo.Scene.RegionInfo.RegionSettings.Covenant; } _transferId = fromReq.TransferInfo.TransferID; _params = fromReq.TransferInfo.Params; }