Class SelectionsDiffNode
- Namespace
- ZeroInstall.Store.ViewModel
- Assembly
- ZeroInstall.Store.dll
Models an implementation change between two Selections documents for display in a UI.
public sealed class SelectionsDiffNode : IEquatable<SelectionsDiffNode>
- Inheritance
-
objectSelectionsDiffNode
- Implements
Constructors
SelectionsDiffNode(FeedUri, ImplementationVersion?, ImplementationVersion?)
Creates a new selection diff.
public SelectionsDiffNode(FeedUri uri, ImplementationVersion? oldVersion = null, ImplementationVersion? newVersion = null)
Parameters
uriFeedUriThe interface URI of the changed implementation.
oldVersionImplementationVersionThe old version of the implementation;
nullif the implementation did not exist in the old selection.newVersionImplementationVersionThe new version of the implementation;
nullif the implementation does not exist in the new selection.
Properties
NewVersion
The new version of the implementation; null if the implementation does not exist in the new selection.
public ImplementationVersion? NewVersion { get; }
Property Value
OldVersion
The old version of the implementation; null if the implementation did not exist in the old selection.
public ImplementationVersion? OldVersion { get; }
Property Value
Uri
The interface URI of the changed implementation.
public FeedUri Uri { get; }
Property Value
Methods
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(SelectionsDiffNode?, SelectionsDiffNode?)
Indicates whether the object on the left is equal to the object on the right.
public static bool operator ==(SelectionsDiffNode? left, SelectionsDiffNode? right)
Parameters
leftSelectionsDiffNodeThe left object
rightSelectionsDiffNodeThe right object
Returns
- bool
true if the objects are equal; otherwise, false.
operator !=(SelectionsDiffNode?, SelectionsDiffNode?)
Indicates whether the object on the left is not equal to the object on the right.
public static bool operator !=(SelectionsDiffNode? left, SelectionsDiffNode? right)
Parameters
leftSelectionsDiffNodeThe left object
rightSelectionsDiffNodeThe right object
Returns
- bool
true if the objects are not equal; otherwise, false.