private string FailedPermissionsScriptCAPSUpdate(UUID assetID, UUID inv)
 {
     LLSDScriptAssetUploadComplete uploadComplete = new LLSDScriptAssetUploadComplete();
     uploadComplete.new_asset = assetID.ToString();
     uploadComplete.new_inventory_item = inv;
     uploadComplete.state = "complete";
     uploadComplete.compiled = false;
     uploadComplete.errors.Add("Insufficient permissions to edit script");
     return LLSDHelpers.SerialiseLLSDReply(uploadComplete);
 }
        private string SuccessScriptCAPSUpdate(UUID assetID, UUID inv)
        {
            LLSDScriptAssetUploadComplete uploadComplete = new LLSDScriptAssetUploadComplete();
            uploadComplete.new_asset = assetID.ToString();
            uploadComplete.new_inventory_item = inv;
            uploadComplete.state = "complete";
            uploadComplete.compiled = true;

            return LLSDHelpers.SerialiseLLSDReply(uploadComplete);
        }
 private string FailedCompileScriptCAPSUpdate(UUID assetID, UUID inv, string error)
 {
     LLSDScriptAssetUploadComplete uploadComplete = new LLSDScriptAssetUploadComplete();
     uploadComplete.new_asset = assetID.ToString();
     uploadComplete.new_inventory_item = inv;
     uploadComplete.state = "complete";
     uploadComplete.compiled = false;
     uploadComplete.errors.Add(error);
     return LLSDHelpers.SerialiseLLSDReply(uploadComplete);
 }