Zooflow: CheckInOut
This commit is contained in:
@@ -20,12 +20,12 @@ Namespace Modules.IDB
|
||||
.Language = pOptions.Language,
|
||||
.UserName = pOptions.Username
|
||||
},
|
||||
.Action = CheckInOutFileAction.CheckOut,
|
||||
.Action = CheckInOutFileAction.CheckIn,
|
||||
.ObjectId = pObjectId
|
||||
})
|
||||
|
||||
If oCheckInFileResponse.OK = False Then
|
||||
Throw New ApplicationException("Could not Import File Contents!")
|
||||
Throw New ApplicationException(oCheckInFileResponse.ErrorMessage)
|
||||
End If
|
||||
|
||||
Return oCheckInFileResponse.ObjectId
|
||||
|
||||
@@ -15,7 +15,7 @@ Namespace Modules.IDB
|
||||
pOptions = New Options.CheckOutInOptions()
|
||||
End If
|
||||
|
||||
Dim oCheckOutFileResponse = Await Channel.CheckInOutFileAsync(New CheckInOutFileRequest With {
|
||||
Dim oArgs = New CheckInOutFileRequest With {
|
||||
.User = New UserState With {
|
||||
.Language = pOptions.Language,
|
||||
.UserName = pOptions.Username
|
||||
@@ -23,10 +23,11 @@ Namespace Modules.IDB
|
||||
.Action = CheckInOutFileAction.CheckOut,
|
||||
.Comment = pComment,
|
||||
.ObjectId = pObjectId
|
||||
})
|
||||
}
|
||||
Dim oCheckOutFileResponse = Await Channel.CheckInOutFileAsync(oArgs)
|
||||
|
||||
If oCheckOutFileResponse.OK = False Then
|
||||
Throw New ApplicationException("Could not Import File Contents!")
|
||||
Throw New ApplicationException(oCheckOutFileResponse.ErrorMessage)
|
||||
End If
|
||||
|
||||
Return oCheckOutFileResponse.ObjectId
|
||||
|
||||
Reference in New Issue
Block a user