Virgil Security C++ SDK
Public Member Functions | Static Public Member Functions | List of all members
virgil::sdk::client::models::RawCardContent Class Reference

Represents content of Virgil Card. More...

#include <RawCardContent.h>

Public Member Functions

 RawCardContent (std::string identity, VirgilByteArray publicKey, std::time_t createdAt, std::string previousCardId=std::string(), std::string version="5.0")
 Constructor. More...
 
VirgilByteArray snapshot () const
 Takes binary snapshot of RawCardContent. More...
 
const std::string & identity () const
 Getter. More...
 
const VirgilByteArray & publicKey () const
 Getter. More...
 
const std::string & version () const
 Getter. More...
 
std::time_t createdAt () const
 Getter. More...
 
const std::string & previousCardId () const
 Getter. More...
 

Static Public Member Functions

static RawCardContent parse (const VirgilByteArray &snapshot)
 Initializes RawCardContent from binary content snapshot. More...
 

Detailed Description

Represents content of Virgil Card.

Constructor & Destructor Documentation

virgil::sdk::client::models::RawCardContent::RawCardContent ( std::string  identity,
VirgilByteArray  publicKey,
std::time_t  createdAt,
std::string  previousCardId = std::string(),
std::string  version = "5.0" 
)

Constructor.

Parameters
identityidentity of Card
publicKeyPublicKey data of Card
createdAtstd::time with date of Card creation
previousCardIdidentifier of previous Card with same identity
versionversion of Card

Member Function Documentation

std::time_t virgil::sdk::client::models::RawCardContent::createdAt ( ) const

Getter.

Returns
std::time with date of Card creation
const std::string& virgil::sdk::client::models::RawCardContent::identity ( ) const

Getter.

Returns
identity of Card
static RawCardContent virgil::sdk::client::models::RawCardContent::parse ( const VirgilByteArray &  snapshot)
static

Initializes RawCardContent from binary content snapshot.

Parameters
snapshotbinary snapshot of RawCardContent
Returns
initialized RawCardContent
const std::string& virgil::sdk::client::models::RawCardContent::previousCardId ( ) const

Getter.

Returns
identifier of previous Card with same identity
const VirgilByteArray& virgil::sdk::client::models::RawCardContent::publicKey ( ) const

Getter.

Returns
PublicKey data of Card
VirgilByteArray virgil::sdk::client::models::RawCardContent::snapshot ( ) const

Takes binary snapshot of RawCardContent.

Returns
binary snapshot of RawCardContent
const std::string& virgil::sdk::client::models::RawCardContent::version ( ) const

Getter.

Returns
version of Card

The documentation for this class was generated from the following file: