forked from Azure/iotedge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged PR 919368: EdgeHub: MethodInvocation response Payload should b…
…e json object EdgeHub was stringifying the method invocation response payload json. This change is to return the payload as a json object instead (same like IotHub).
- Loading branch information
1 parent
0237700
commit 7892a98
Showing
3 changed files
with
121 additions
and
7 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
edge-hub/src/Microsoft.Azure.Devices.Edge.Hub.Http/MethodResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
// Copyright (c) Microsoft. All rights reserved. | ||
namespace Microsoft.Azure.Devices.Edge.Hub.Http | ||
{ | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Linq; | ||
|
||
public class MethodResult | ||
{ | ||
[JsonProperty("status")] | ||
public int Status { get; set; } | ||
|
||
[JsonProperty("payload")] | ||
public string Payload { get; set; } | ||
public JRaw Payload { get; set; } | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters