generateUserPath function

String generateUserPath(
  1. Params params
)

Implementation

String generateUserPath(Params params) {
  if (params.drive == DriveType.user) return "users/${params.driveId}/drive/";
  if (params.drive == DriveType.drive) return "drives/${params.driveId}/";
  if (params.drive == DriveType.group) return "groups/${params.driveId}/drive/";
  if (params.drive == DriveType.site) return "sites/${params.driveId}/drive/";
  return "me/drive/";
}