in nuget-feed/src/jetbrains/buildServer/nuget/feed/server/olingo/model/NuGetMapper.java [35:72]
public static V2FeedPackage mapPackage(@Nullable final NuGetIndexEntry indexEntry, @NotNull final URI rootUriWithAuthenticattionType) {
if (indexEntry == null) {
return null;
}
final Map<String, String> attributes = indexEntry.getAttributes();
final V2FeedPackage feedPackage = new V2FeedPackage(getValue(attributes, ID), getValue(attributes, VERSION));
feedPackage.setNormalizedVersion(getValue(attributes, NORMALIZED_VERSION));
feedPackage.setAuthors(getValue(attributes, AUTHORS));
feedPackage.setCopyright(getValue(attributes, COPYRIGHT));
feedPackage.setCreated(getDate(attributes, CREATED));
feedPackage.setDependencies(getValue(attributes, DEPENDENCIES));
feedPackage.setDescription(getValue(attributes, DESCRIPTION));
feedPackage.setIconUrl(getValue(attributes, ICON_URL));
feedPackage.setIsLatestVersion(getBoolean(attributes, IS_LATEST_VERSION));
feedPackage.setIsAbsoluteLatestVersion(getBoolean(attributes, IS_ABSOLUTE_LATEST_VERSION));
feedPackage.setIsPrerelease(getBoolean(attributes, IS_PRERELEASE));
feedPackage.setLanguage(getValue(attributes, LANGUAGE));
feedPackage.setLastUpdated(getDate(attributes, LAST_UPDATED));
feedPackage.setPublished(getDate(attributes, PUBLISHED));
feedPackage.setPackageHash(getValue(attributes, PACKAGE_HASH));
feedPackage.setPackageHashAlgorithm(getValue(attributes, PACKAGE_HASH_ALGORITHM));
feedPackage.setPackageSize(getLong(attributes, PACKAGE_SIZE));
feedPackage.setProjectUrl(getValue(attributes, PROJECT_URL));
feedPackage.setReportAbuseUrl(getValue(attributes, REPORT_ABUSE_URL));
feedPackage.setReleaseNotes(getValue(attributes, RELEASE_NOTES));
feedPackage.setRequireLicenseAcceptance(getBoolean(attributes, REQUIRE_LICENSE_ACCEPTANCE));
feedPackage.setSummary(getValue(attributes, SUMMARY));
feedPackage.setTags(getValue(attributes, TAGS));
feedPackage.setTitle(getValue(attributes, TITLE));
feedPackage.setMinClientVersion(getValue(attributes, MIN_CLIENT_VERSION));
feedPackage.setLicenseUrl(getValue(attributes, LICENSE_URL));
feedPackage.setLicenseNames(getValue(attributes, LICENSE_NAMES));
feedPackage.setLicenseReportUrl(getValue(attributes, LICENSE_REPORT_URL));
feedPackage.setTeamCityDownloadUrl(getDownloadUrl(rootUriWithAuthenticattionType, attributes));
return feedPackage;
}