seamapi/csharp

Stringify Resources Better in C# SDK

Closed this issue · 1 comments

Currently this:

Console.WriteLine(seam.Devices.List());

Outputs this:

System.Collections.Generic.List`1[Seam.Model.Device]

When we really want it to do something like this (from Ruby, exclude the pound signs):

# [
# <Seam::Device:0x00764f8
#   device_id="e002825a-27ee-4d74-9be3-45564b14c931"
#   device_type="smartthings_lock"
#   properties={
#     "locked"=>true,
#     "online"=>true,
#     "battery_level"=>1,
#     "manufacturer"=>"yale",
#     "smartthings_metadata"=>{
#       "device_id"=>"83b32603-e36a-416b-a06e-78215223df98",
#       "device_name"=>"Yale Door Lock"},
#     "max_active_codes_supported": 100,
#     "supported_code_lengths": [
#       6
#     ],
#     "name"=>"Yale Door Lock"}>
# ]

Might not be possible with lists, but would be great to have it for resources directly

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.