Ditto 4.1.0
Public Attributes | List of all members
ditto::OfflinePlaygroundIdentity Class Reference

Develop peer-to-peer apps with no cloud connection. This mode offers no security and must only be used for development. In this mode, any string can be used as the ID of the app. More...

#include <Identity.hpp>

Inheritance diagram for ditto::OfflinePlaygroundIdentity:
ditto::Identity

Public Attributes

uint64_t site_id
 
- Public Attributes inherited from ditto::Identity
IdentityType type
 

Additional Inherited Members

- Static Public Member Functions inherited from ditto::Identity
static std::shared_ptr< OfflinePlaygroundIdentityOfflinePlayground (std::string app_id="", uint64_t site_id=0)
 Construct a new OfflinePlaygroundIdentity. More...
 
static std::shared_ptr< OnlineWithAuthenticationIdentityOnlineWithAuthentication (std::string app_id, std::shared_ptr< AuthenticationCallback > callback, bool enable_ditto_cloud_sync=true, std::string custom_auth_url="")
 Construct a new OnlineWithAuthenticationIdentity. More...
 
static std::shared_ptr< OnlinePlaygroundIdentityOnlinePlayground (std::string app_id, std::string token, bool enable_ditto_cloud_sync=true)
 Construct a new OnlinePlaygroundIdentity. More...
 
static std::shared_ptr< SharedKeyIdentitySharedKey (std::string app_id, std::string shared_key, uint64_t site_id=0)
 Construct a new SharedKeyIdentity. More...
 
static std::shared_ptr< ManualIdentityManual (std::string certificate_config)
 Construct a new ManualIdentity. More...
 

Detailed Description

Develop peer-to-peer apps with no cloud connection. This mode offers no security and must only be used for development. In this mode, any string can be used as the ID of the app.

Member Data Documentation

◆ site_id

uint64_t ditto::OfflinePlaygroundIdentity::site_id

The site ID associated with the identity.