Skip to content
This repository was archived by the owner on Aug 28, 2021. It is now read-only.

Commit 01c12f5

Browse files
author
matteo@cominetti.org
committed
Merge remote-tracking branch 'origin/master' into Matteo/dev
2 parents 583fbb5 + af0fc2b commit 01c12f5

File tree

9 files changed

+624
-219
lines changed

9 files changed

+624
-219
lines changed

SpeckleGrasshopper/Management/ListMyStreams.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using GH_IO.Serialization;
22
using Grasshopper.Kernel;
33
using SpeckleCore;
4+
using SpeckleGrasshopper.Parameters;
45
using SpeckleGrasshopper.Properties;
56
using System;
67
using System.Collections.Generic;
@@ -36,7 +37,7 @@ protected override void RegisterInputParams(GH_InputParamManager pManager)
3637

3738
protected override void RegisterOutputParams(GH_OutputParamManager pManager)
3839
{
39-
pManager.Register_GenericParam("streams", "S", "Streams that you own or are shared with you.");
40+
pManager.AddParameter(new Param_SpeckleStreams(), "streams", "S", "Streams that you own or are shared with you.", GH_ParamAccess.list);
4041
}
4142

4243
public override void AddedToDocument(GH_Document document)
@@ -57,10 +58,10 @@ protected override void SolveInstance(IGH_DataAccess DA)
5758
return;
5859
}
5960

60-
DA.SetDataList(0, UserStreams);
61+
DA.SetDataList(0, UserStreams.Select(x => new GH_SpeckleStream(x)));
6162

6263
Client.BaseUrl = Account.RestApi; Client.AuthToken = Account.Token;
63-
Client.StreamsGetAllAsync("fields=streamId,name,description,parent&isComputedResult=false&deleted=false").ContinueWith(tsk =>
64+
Client.StreamsGetAllAsync("fields=streamId,name,description,parent,children,ancestors,tags,layers&isComputedResult=false&deleted=false").ContinueWith(tsk =>
6465
{
6566
if (tsk.Result.Success == false)
6667
{

0 commit comments

Comments
 (0)