QEverCloud  4.0.0
Unofficial Evernote Cloud API for Qt
Public Member Functions | Public Attributes | List of all members
qevercloud::LazyMap Struct Reference

#include <types.h>

Public Member Functions

bool operator== (const LazyMap &other) const
 
bool operator!= (const LazyMap &other) const
 

Public Attributes

Optional< QSet< QString > > keysOnly
 
Optional< QMap< QString, QString > > fullMap
 

Detailed Description

A structure that wraps a map of name/value pairs whose values are not always present in the structure in order to reduce space when obtaining batches of entities that contain the map.

When the server provides the client with a LazyMap, it will fill in either the keysOnly field or the fullMap field, but never both, based on the API and parameters.

When a client provides a LazyMap to the server as part of an update to an object, the server will only update the LazyMap if the fullMap field is set. If the fullMap field is not set, the server will not make any changes to the map.

Check the API documentation of the individual calls involving the LazyMap for full details including the constraints of the names and values of the map.

Member Function Documentation

◆ operator!=()

bool qevercloud::LazyMap::operator!= ( const LazyMap other) const
inline

◆ operator==()

bool qevercloud::LazyMap::operator== ( const LazyMap other) const
inline

Member Data Documentation

◆ fullMap

Optional< QMap< QString, QString > > qevercloud::LazyMap::fullMap

The complete map, including all keys and values.

◆ keysOnly

Optional< QSet< QString > > qevercloud::LazyMap::keysOnly

The set of keys for the map. This field is ignored by the server when set.