Encapsulates the IPv4 prefix, country code and lastUpdated parts of a response from dwmrdapd. More...
#include <DwmRDAPFetcher.hh>
Public Member Functions | |
| FetchedEntry ()=default | |
| Default constructor. | |
| FetchedEntry (const Ipv4Prefix &prefix, const std::string &country, const TimeValue64 &lastUpdated) | |
Construct from the given IPv4 prefix, country and lastUpdated. More... | |
| const Ipv4Prefix & | Prefix () const |
| Returns the contained IPv4 prefix. | |
| const Ipv4Prefix & | Prefix (const Ipv4Prefix &prefix) |
| Sets and returns the contained IPv4 prefix. | |
| const std::string & | Country () const |
| Returns the contained country code. | |
| const std::string & | Country (const std::string &country) |
| Sets and returns the contained country code. | |
| const TimeValue64 & | LastUpdated () const |
| Returns the contained 'last updated' field. More... | |
| const TimeValue64 & | LastUpdated (const TimeValue64 &lastUpdated) |
| Sets and returns the 'last updated' field. More... | |
Encapsulates the IPv4 prefix, country code and lastUpdated parts of a response from dwmrdapd.
| Dwm::RDAP::FetchedEntry::FetchedEntry | ( | const Ipv4Prefix & | prefix, |
| const std::string & | country, | ||
| const TimeValue64 & | lastUpdated | ||
| ) |
Construct from the given IPv4 prefix, country and lastUpdated.
This is a convenience constuctor used internally by the Fetcher class.
| const TimeValue64& Dwm::RDAP::FetchedEntry::LastUpdated | ( | ) | const |
Returns the contained 'last updated' field.
This represents the last time that dwmrdapd updated the entry by querying the RDAP servers of the Network Information Center.
| const TimeValue64& Dwm::RDAP::FetchedEntry::LastUpdated | ( | const TimeValue64 & | lastUpdated | ) |
Sets and returns the 'last updated' field.
This represents the last time that dwmrdapd updated the entry by querying the RDAP servers of the Network Information Center.