nx_server_plugin_sdk 1.0 Server Plugin SDK

Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
nx::sdk::cloud_storage::TimePeriod Struct Reference

## Public Member Functions
| TimePeriod (const char *jsonStr) noexcept(false)
| TimePeriod (const nx::kit::Json &json) noexcept(false)
| TimePeriod (std::chrono::milliseconds startTimestamp, std::chrono::milliseconds duration)
template<typename T >
| TimePeriod (const T &)=delete
bool | isInfinite () const
bool | contains (std::chrono::milliseconds timestamp) const
bool | isNull () const
bool | intersects (const TimePeriod &other) const
std::optional< std::chrono::milliseconds > | endTimestamp () const
nx::kit::Json | to_json () const
bool | operator< (const TimePeriod &other) const
bool | operator== (const TimePeriod &other) const
bool | operator!= (const TimePeriod &other) const

## Static Public Member Functions
static ValueOrError< TimePeriod > | fromJson (const char *jsonStr) noexcept
static ValueOrError< TimePeriod > | fromJson (const nx::kit::Json &json) noexcept

## Public Attributes
std::chrono::milliseconds | startTimestamp {-1}
std::chrono::milliseconds | duration {-1}

The documentation for this struct was generated from the following files:

- src/nx/sdk/cloud_storage/helpers/data.h
- src/nx/sdk/cloud_storage/helpers/data.cpp