Changed model card dagtabase tag to "models"
Minor namespace tweaks
This commit is contained in:
@@ -21,7 +21,7 @@ namespace {
|
||||
|
||||
///Serialisation field IDs
|
||||
static std::array fieldID = {
|
||||
Identity{"model"},
|
||||
Identity{"models"},
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -3,8 +3,7 @@
|
||||
|
||||
#include "Speckle/Interface/Browser/JSObject.h"
|
||||
#include "Speckle/Interface/Browser/Functional.h"
|
||||
#include "Speckle/Interface/Browser/Bridge/JSBridgeArgumentWrap.h"
|
||||
#include "Speckle/Interface/Browser/Bridge/JSBridgeMethod.h"
|
||||
#include "Speckle/Interface/Browser/Bridge/JSBridgeMethodBase.h"
|
||||
|
||||
namespace active::setting {
|
||||
class ValueSetting;
|
||||
|
||||
@@ -39,11 +39,12 @@ GetCallResult::GetCallResult(BrowserBridge& bridge) : m_bridge{bridge},
|
||||
--------------------------------------------------------------------*/
|
||||
std::unique_ptr<WrappedResultArg> GetCallResult::getResult(WrappedResultArg& argument) const {
|
||||
//Retrieve the requested result
|
||||
using namespace json;
|
||||
auto result = m_bridge.releaseResult(argument);
|
||||
auto item = dynamic_cast<Cargo*>(result.get());
|
||||
if (!item)
|
||||
return nullptr;
|
||||
String jsonOutput;
|
||||
json::JSONTransport().send(std::forward<Cargo&&>(*item), Identity{}, jsonOutput);
|
||||
JSONTransport().send(std::forward<Cargo&&>(*item), Identity{}, jsonOutput);
|
||||
return std::make_unique<WrappedResultArg>(jsonOutput);
|
||||
} //GetCallResult::getResult
|
||||
|
||||
Reference in New Issue
Block a user