Skip to content

Setting collection data to an object #66

@chmchmchm

Description

@chmchmchm

Hiya, we're using GenericData.SetData in both this client and the javascript client. In the javascript client, the docs example allows for passing in an object with multiple properties to be serialized.

In this client I can't see a way to do that except setting multiple name/value pairs? Is there a way to pass in an object instead? If not, would you be able to add an overload for that?

Thanks very much!


In the Stream docs on collections here:

  1. The javascript docs passing in an object with two properties
    image

  2. The C# docs calling SetData once for each property
    image

  3. What we'd be keen for

var collectionData = new GenericData();
collectionData.SetData(new Food("cheese burger", "4 stars"));
await client.Collections.Add("food", collectionData, "cheese-burger");

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions