class Builder

Defined at line 1303 of file x64-shared/gen/third_party/openweave-core/src/include/Weave/Profiles/data-management/Current/MessageDef.h

WDM Custom Command encoder definition

The argument, and the authenticator elements are not directly supported, as they do not have a fixed schema.

Public Methods

WEAVE_ERROR Init (nl::Weave::TLV::TLVWriter *const apWriter)

Initialize a CustomCommand::Builder for writing into a TLV stream

Parameters

apWriter [in] A pointer to TLVWriter
Path::Builder & CreatePathBuilder ()

Initialize a Path::Builder for writing into the TLV stream

Returns

A reference to Path::Builder

CustomCommand::Builder & CommandType (const uint64_t aCommandType)

Inject command type id into the TLV stream

Parameters

aCommandType [in] Command type ID for this command

Returns

A reference to *this

CustomCommand::Builder & InitiationTimeMicroSecond (const int64_t aInitiationTimeMicroSecond)

Inject init time into the TLV stream

Parameters

aInitiationTimeMicroSecond [in] Init time for this command, in microseconds since UNIX epoch

Returns

A reference to *this

CustomCommand::Builder & ActionTimeMicroSecond (const int64_t aActionTimeMicroSecond)

Inject action time into the TLV stream

Parameters

aActionTimeMicroSecond [in] Action time for this command, in microseconds since UNIX epoch

Returns

A reference to *this

CustomCommand::Builder & ExpiryTimeMicroSecond (const int64_t aExpiryTimeMicroSecond)

Inject expiry time into the TLV stream

Parameters

aExpiryTimeMicroSecond [in] Expiry time for this command, in microseconds since UNIX epoch

Returns

A reference to *this

CustomCommand::Builder & MustBeVersion (const uint64_t aMustBeVersion)

Inject must-be version into the TLV stream

Parameters

aMustBeVersion [in] Trait instance in the path must be at this version for this command to be accepted

Returns

A reference to *this

CustomCommand::Builder & EndOfCustomCommand ()

Mark the end of this command

Returns

A reference to *this