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

#include <Types.h>

Inheritance diagram for qevercloud::Contact:
qevercloud::Printable

Public Member Functions

virtual void print (QTextStream &strm) const override
 
bool operator== (const Contact &other) const
 
bool operator!= (const Contact &other) const
 
- Public Member Functions inherited from qevercloud::Printable
 Printable ()=default
 
virtual ~Printable ()=default
 
virtual QString toString () const
 

Public Attributes

EverCloudLocalData localData
 
Optional< QString > name
 
Optional< QString > id
 
Optional< ContactTypetype
 
Optional< QString > photoUrl
 
Optional< TimestampphotoLastUpdated
 
Optional< QByteArray > messagingPermit
 
Optional< TimestampmessagingPermitExpires
 

Detailed Description

A structure that represents contact information. Note this does not necessarily correspond to an Evernote user.

Member Function Documentation

◆ operator!=()

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

◆ operator==()

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

◆ print()

virtual void qevercloud::Contact::print ( QTextStream &  strm) const
overridevirtual

Implements qevercloud::Printable.

Member Data Documentation

◆ id

Optional< QString > qevercloud::Contact::id

A unique identifier for this ContactType.

◆ localData

EverCloudLocalData qevercloud::Contact::localData

See the declaration of EverCloudLocalData for details

◆ messagingPermit

Optional< QByteArray > qevercloud::Contact::messagingPermit

This field will only be filled by the service when it is giving a Contact record to a client, and that client does not normally have enough permission to send a new message to the person represented through this Contact. In that case, this whole Contact record could be used to send a new Message to the Contact, and the service will inspect this permit to confirm that operation was allowed.

◆ messagingPermitExpires

Optional< Timestamp > qevercloud::Contact::messagingPermitExpires

If this field is set, then this (whole) Contact record may be used in calls to sendMessage until this time. After that time, those calls may be rejected by the service if the caller does not have direct permission to initiate a message with the represented Evernote user.

◆ name

Optional< QString > qevercloud::Contact::name

The displayable name of this contact. This field is filled in by the service and is read-only to clients.

◆ photoLastUpdated

Optional< Timestamp > qevercloud::Contact::photoLastUpdated

timestamp when the profile photo at 'photoUrl' was last updated. This field will be null if the user has never set a profile photo. This field is filled in by the service and is read-only to clients.

◆ photoUrl

Optional< QString > qevercloud::Contact::photoUrl

A URL of a profile photo representing this Contact. This field is filled in by the service and is read-only to clients.

◆ type

Optional< ContactType > qevercloud::Contact::type

What service does this contact come from?