Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Int64 for download counts instead of Int32 #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Data/PackagesSearchResults.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void Read (string json)
Version = (string)x["version"],
Description = (string)x["description"],
IconUrl = (string)x["iconUrl"],
TotalDownloads = ((int?)x["totalDownloads"]) ?? 0,
TotalDownloads = ((long?)x["totalDownloads"]) ?? 0,
Authors = string.Join (", ", x["authors"]),
});
}
Expand All @@ -57,7 +57,7 @@ void Read (string json)
existingResult.Version = newVersion;
existingResult.Description = (string)x["description"];
existingResult.IconUrl = (string)x["iconUrl"];
existingResult.TotalDownloads = ((int?)x["totalDownloads"]) ?? 0;
existingResult.TotalDownloads = ((long?)x["totalDownloads"]) ?? 0;
existingResult.Authors = string.Join (", ", x["authors"]);
}
}
Expand Down Expand Up @@ -109,7 +109,7 @@ public class PackagesSearchResult
public string Version { get; set; } = "";
public string Description { get; set; } = "";
public string IconUrl { get; set; } = "";
public int TotalDownloads { get; set; } = 0;
public long TotalDownloads { get; set; } = 0;
public string Authors { get; set; } = "";

public override string ToString() => PackageId;
Expand Down