eclipse-uprotocol / up-cpp

uProtocol Language Specific Library for C++
Apache License 2.0
15 stars 25 forks source link

Implement PayloadBuilder Class and implement unit tests #161

Closed pranavishere2 closed 4 weeks ago

gregmedd commented 1 month ago

@pranavishere2 does this code only support UPAYLOAD_FORMAT_PROTOBUF, UPAYLOAD_FORMAT_TEXT or UPAYLOAD_FORMAT_JSON? what about UPAYLOAD_FORMAT_PROTOBUF_WRAPPED_IN_ANY and the google.protobuf.Any pack/unpacked format? This is the default format when is UPAYLOAD_FORMAT_UNSPECIFIED (per spec)

@stevenhartley No, it supports any format. It is not restricted to the examples provided in the doxygen comments. Any format supported by the spec can be provided here.

We do not currently provide any specific helpers for multiple payloads in the PROTOBUF_WRAPPED_IN_ANY case at the moment, but that could be added if needed.