upload method
Start an upload operation
Events about this operation are notified via the callback method given at LogUploader creation.
Parameters
- IN logPath The path to the log file to upload
- IN userName The user name to associate with the log
- IN userMail The user email to associate with the log
- IN details Additional details to associate with the log
- IN externalFiles List of paths to external files to upload with the log
Returns
- GemError.success On success.
- GemError.required If the email was not provided.
- GemError.internalAbort If the updater could not be initialized.
Throws
- An exception if it fails.
Implementation
GemError upload({
required final String logPath,
required final String userName,
required final String userMail,
final String details = '',
final List<String> externalFiles = const <String>[],
}) {
final OperationResult resultString = objectMethod(
_pointerId,
'LogUploader',
'upload',
args: <String, Object>{
'logPath': logPath,
'userName': userName,
'userMail': userMail,
'details': details,
'externalFiles': externalFiles,
},
);
return GemErrorExtension.fromCode(resultString['result']);
}