Skip to content

Commit

Permalink
Remote package
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrrm committed Mar 3, 2025
1 parent 3f09109 commit 9ab658d
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using System;
using System.Collections.Generic;
using NuGet.Packaging;
using NuGet.Packaging.Core;

#nullable enable

namespace NuGet.PackageManagement.UI.Models.Package
{
class RemotePackageModel : PackageModel
{
public RemotePackageModel(PackageIdentity identity,
string? title = null,
string? description = null,
string? authors = null,
Uri? projectUrl = null,
string[]? tags = null,
string? copyright = null,
bool isListed = false,
DateTimeOffset? dateTimeOffset = null,
Uri? packageDetailsUrl = null,
long? downloadCount = null,
Uri? iconUrl = null,
IEnumerable<PackageDependencyGroup>? dependencySets = null)
: base(identity, title, description, authors, projectUrl, tags, copyright)
{
IsListed = isListed;
Published = dateTimeOffset;
PackageDetailsUrl = packageDetailsUrl;
DownloadCount = downloadCount;
IconUrl = iconUrl;
DependencySets = dependencySets;
}

public bool IsListed { get; set; }
public DateTimeOffset? Published { get; }
public Uri? PackageDetailsUrl { get; }
public long? DownloadCount { get; }
public Uri? IconUrl { get; }
public IEnumerable<PackageDependencyGroup>? DependencySets { get; }

// Capabilities
}
}

0 comments on commit 9ab658d

Please sign in to comment.