private static String getDataId(DownloadableFile downloadableFile) {
    if (downloadableFile instanceof PhotoModel) {
      return ((PhotoModel) downloadableFile).getDataId();
    }
    else if (downloadableFile instanceof VideoModel) {
      return ((VideoModel) downloadableFile).getDataId();
    }
    return downloadableFile.getIdempotentId();
  }
An interface that is synonymous to HTTP client to interact with the Apple Photos APIs.
extensions/data-transfer/portability-data-transfer-apple/src/main/java/org/datatransferproject/datatransfer/apple/photos/AppleMediaInterface.java