upload method

GemError upload({
  1. required String logPath,
  2. required String userName,
  3. required String userMail,
  4. String details = '',
  5. List<String> externalFiles = const <String>[],
})

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

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']);
}