Table of Contents

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

path string

The path of the directory.

feed Feed

The parsed feed.

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

string

Feed

The parsed feed.

[Browsable(false)]
public Feed Feed { get; }

Property Value

Feed

Homepage

The main website of the application.

public Uri? Homepage { get; }

Property Value

Uri

Name

The full name of the node used for tree hierarchies.

public override string Name { get; set; }

Property Value

string

Summary

A short one-line description of the application.

public string? Summary { get; }

Property Value

string

Uri

The URI identifying this feed.

public FeedUri Uri { get; }

Property Value

FeedUri

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 CacheNode

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

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 IFeedCache
implementationStore 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()

Returns

string