nx_cloud_storage_sdk  1.0
Cloud Storage SDK
Public Member Functions | Public Attributes | List of all members
nx::sdk::cloud_storage::TimePeriod Struct Reference

Public Member Functions

 TimePeriod (const char *jsonStr)
 
 TimePeriod (const nx::kit::Json &json)
 
 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
 

Public Attributes

std::chrono::milliseconds startTimestamp {-1}
 
std::chrono::milliseconds duration {-1}
 

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