Class FeedNode
- Namespace
- ZeroInstall.Store.ViewModel
- Assembly
- ZeroInstall.Store.dll
Models information about a Feed in the IFeedCache for display in a UI.
public sealed class FeedNode : CacheNode, INamed, IEquatable<CacheNode>
- Inheritance
-
FeedNode
- Implements
- Inherited Members
Constructors
FeedNode(string, Feed)
Creates a new feed node.
public FeedNode(string path, Feed feed)
Parameters
Exceptions
- IOException
The feed file could not be read.
- UnauthorizedAccessException
Read access to the feed file is not permitted.
Properties
Categories
A comma-separated list of categories the applications fits into.
public string Categories { get; }
Property Value
Feed
The parsed feed.
[Browsable(false)]
public Feed Feed { get; }
Property Value
Homepage
The main website of the application.
public Uri? Homepage { get; }
Property Value
Name
The full name of the node used for tree hierarchies.
public override string Name { get; set; }
Property Value
Summary
A short one-line description of the application.
public string? Summary { get; }
Property Value
Uri
The URI identifying this feed.
public FeedUri Uri { get; }
Property Value
Methods
Equals(CacheNode?)
Indicates whether the current object is equal to another object of the same type.
public override bool Equals(CacheNode? other)
Parameters
other
CacheNodeAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
Remove(IFeedCache?, IImplementationStore?)
Removes this Feed from the feedCache
if provided.
public override void Remove(IFeedCache? feedCache = null, IImplementationStore? implementationStore = null)
Parameters
feedCache
IFeedCacheimplementationStore
IImplementationStore
Exceptions
- KeyNotFoundException
No matching feed could be found in the IFeedCache.
- IOException
The feed could not be deleted.
- UnauthorizedAccessException
Write access to the cache is not permitted.
ToString()
Creates string representation suitable for console output.
public override string ToString()