Dummy information in SendObject

This commit is contained in:
Ralph Wessel
2024-10-01 18:58:50 +01:00
parent 8eae1e9967
commit e9f8e86f95
2 changed files with 6 additions and 2 deletions
@@ -26,9 +26,9 @@ namespace connector::interfac::browser::bridge {
// MARK: - Public variables
///The root object id which should be used for creating the version
speckle::utility::String id;
speckle::utility::String id = "1234";
///The total number of children
int32_t totalChildrenCount;
int32_t totalChildrenCount = 0;
///JSON batches for the root object and child (detached) objects
std::vector<speckle::utility::String> batches;
@@ -24,6 +24,7 @@ namespace {
serverID,
accID,
messageID,
sendObjectID,
};
///Serialisation field IDs
@@ -35,6 +36,7 @@ namespace {
Identity{"serverUrl"},
Identity{"accountId"},
Identity{"message"},
Identity{"sendObject"},
};
}
@@ -102,6 +104,8 @@ Cargo::Unique SendViaBrowserArgs::getCargo(const active::serialise::Inventory::I
return std::make_unique<StringWrap>(accountID);
case messageID:
return std::make_unique<StringWrap>(message);
case sendObjectID:
return std::make_unique<PackageWrap>(sendObject);
default:
return nullptr; //Requested an unknown index
}