GWebCache 1.0.0-alpha
C# library and nuget package to interact with a Gnutella Webcache
Loading...
Searching...
No Matches
GWebCache.Models.GWebCacheNode Class Reference

A model representing a webcache. More...

Public Member Functions

 GWebCacheNode (string url)
 Constructs a new GWebCacheNode.
 
 GWebCacheNode (Uri uri)
 Constructs a new GWebCacheNode.
 
override string ToString ()
 Converts the GWebCacheNode to a string representation.
 
override bool Equals (object? obj)
 Two webcaches are equal if the url is the same.
 
override int GetHashCode ()
 Not relevant since the Equals method doesn't need it.
 

Properties

Uri? Url [get, set]
 The url of the webcache.
 
TimeSpan ActiveSince [get, set]
 When did the webcache first gain knowledge about the other webcache.
 

Detailed Description

A model representing a webcache.

Constructor & Destructor Documentation

◆ GWebCacheNode()

GWebCache.Models.GWebCacheNode.GWebCacheNode ( string url)
inline

Constructs a new GWebCacheNode.

Parameters
urlstring representation of the url
Exceptions
ArgumentExceptionIf the url could not be parsed to an absolute URI

Member Function Documentation

◆ Equals()

override bool GWebCache.Models.GWebCacheNode.Equals ( object? obj)
inline

Two webcaches are equal if the url is the same.

Returns
A boolean indicating if two webcaches are the same

◆ GetHashCode()

override int GWebCache.Models.GWebCacheNode.GetHashCode ( )
inline

Not relevant since the Equals method doesn't need it.

Exceptions
NotImplementedException

◆ ToString()

override string GWebCache.Models.GWebCacheNode.ToString ( )
inline

Converts the GWebCacheNode to a string representation.

Returns
UrlEncoded Url of the webcache

Property Documentation

◆ ActiveSince

TimeSpan GWebCache.Models.GWebCacheNode.ActiveSince
getset

When did the webcache first gain knowledge about the other webcache.

This is exclusively provided by V2 webcaches so always check if this is not filled in


The documentation for this class was generated from the following file: