You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The GetThumbnailBatchResultEntry type is a union to cover success, failure, and other cases, so you'll need to use a switch to handle each case, like this:
switch result {case.success(let data):print(data.metadata)print(data.thumbnail)case.failure(let error):print(error)case.other:print("other result")}
DropboxClientsManager.authorizedClient?.files.getThumbnailBatch(entries: subList).response(queue: DispatchQueue.global(qos: .default), completionHandler: { (dataResponse, error) in
here "result" is GetThumbnailBatchResultEntry ... that is "ENUM" ..
can anyone help me, how to get the "
"thumbnail" and "metadata" from this ..
result.thumbnail and result.metadata throws the compilation error ...
so how i can access the "thumbnail and "metadata"?
The text was updated successfully, but these errors were encountered: