+5
-4
@@ -57,16 +57,17 @@ internal static class Program
|
||||
var speckleProjectData = JsonConvert.DeserializeObject<SpeckleProjectData>(
|
||||
rawSpeckleProjectData
|
||||
);
|
||||
// if (speckleProjectData is null) throw new ArgumentException("Invalid SpeckleProjectData received");
|
||||
var functionInputs = JsonConvert.DeserializeObject<FunctionInputs>(
|
||||
rawFunctionInputs
|
||||
);
|
||||
|
||||
await AutomateFunction.Run(
|
||||
var count = await AutomateFunction.Run(
|
||||
speckleProjectData,
|
||||
functionInputs,
|
||||
speckleToken
|
||||
);
|
||||
Console.WriteLine(
|
||||
$"Found {count} elements that have the type {functionInputs.SpeckleTypeToCount}"
|
||||
);
|
||||
}
|
||||
|
||||
static string GenerateFunctionInputSchema()
|
||||
@@ -81,7 +82,7 @@ internal static class Program
|
||||
}
|
||||
|
||||
|
||||
internal struct SpeckleProjectData
|
||||
internal class SpeckleProjectData
|
||||
{
|
||||
public string ProjectId;
|
||||
public string ModelId;
|
||||
|
||||
Reference in New Issue
Block a user