EDMI.API: add parameter to load file contents for GetFileObject
This commit is contained in:
@@ -13,9 +13,13 @@ Namespace Modules.Zooflow
|
||||
Channel = pChannel
|
||||
End Sub
|
||||
|
||||
Public Async Function RunAsync(pObjectId As Long) As Task(Of FileObject)
|
||||
Public Async Function RunAsync(pObjectId As Long, pLoadFileContents As Boolean) As Task(Of FileObject)
|
||||
Try
|
||||
Dim oResult = Await Channel.GetFileObjectAsync(New GetFileObjectRequest With {.ObjectId = pObjectId})
|
||||
Dim oParams = New GetFileObjectRequest With {
|
||||
.ObjectId = pObjectId,
|
||||
.LoadFileContents = pLoadFileContents
|
||||
}
|
||||
Dim oResult = Await Channel.GetFileObjectAsync(oParams)
|
||||
If oResult.OK Then
|
||||
Return oResult.FileObject
|
||||
Else
|
||||
@@ -27,9 +31,13 @@ Namespace Modules.Zooflow
|
||||
End Try
|
||||
End Function
|
||||
|
||||
Public Function Run(pObjectId As Long) As FileObject
|
||||
Public Function Run(pObjectId As Long, pLoadFileContents As Boolean) As FileObject
|
||||
Try
|
||||
Dim oResult = Channel.GetFileObject(New GetFileObjectRequest With {.ObjectId = pObjectId})
|
||||
Dim oParams = New GetFileObjectRequest With {
|
||||
.ObjectId = pObjectId,
|
||||
.LoadFileContents = pLoadFileContents
|
||||
}
|
||||
Dim oResult = Channel.GetFileObject(oParams)
|
||||
If oResult.OK Then
|
||||
Return oResult.FileObject
|
||||
Else
|
||||
|
||||
Reference in New Issue
Block a user