EDMI: final changes to Client
This commit is contained in:
@@ -104,7 +104,7 @@ Public Class Client
|
||||
''' <returns>The ObjectId of the newly generated filesystem object</returns>
|
||||
''' <exception cref="FileNotFoundException">When local filepath was not found</exception>
|
||||
''' <exception cref="ApplicationException">When there was a error in the Service</exception>
|
||||
Public Async Function NewFileAsync(pFilePath As String, pWho As String, pWhen As Date, pObjectStoreType As String, pBusinessEntity As String, ImportOptions As ImportFileOptions) As Task(Of Long)
|
||||
Public Async Function NewFileAsync(pFilePath As String, pWho As String, pWhen As Date, pObjectStoreType As String, pBusinessEntity As String, ImportOptions As ImportFileOptions) As Task(Of FileMeta)
|
||||
Const oKindType = "DOC"
|
||||
|
||||
Try
|
||||
@@ -156,7 +156,10 @@ Public Class Client
|
||||
End Using
|
||||
End Using
|
||||
|
||||
Return oObjectIdResponse.ObjectId
|
||||
Return New FileMeta With {
|
||||
.ObjectId = oObjectIdResponse.ObjectId,
|
||||
.FilePath = oFilePathResponse.FileObjectPath
|
||||
}
|
||||
Catch ex As Exception
|
||||
_logger.Error(ex)
|
||||
Return Nothing
|
||||
|
||||
4
Modules.EDMIAPI/Client/FileMeta.vb
Normal file
4
Modules.EDMIAPI/Client/FileMeta.vb
Normal file
@@ -0,0 +1,4 @@
|
||||
Public Class FileMeta
|
||||
Public FilePath As String
|
||||
Public ObjectId As String
|
||||
End Class
|
||||
@@ -81,6 +81,7 @@
|
||||
</Compile>
|
||||
<Compile Include="Client.vb" />
|
||||
<Compile Include="DataWithFallback.vb" />
|
||||
<Compile Include="Client\FileMeta.vb" />
|
||||
<Compile Include="My Project\AssemblyInfo.vb" />
|
||||
<Compile Include="My Project\Application.Designer.vb">
|
||||
<AutoGen>True</AutoGen>
|
||||
|
||||
Reference in New Issue
Block a user