| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | using System.Collections.Generic; |
| | | 5 | | using Azure.Core; |
| | | 6 | | |
| | | 7 | | namespace Azure.DigitalTwins.Core.Serialization |
| | | 8 | | { |
| | | 9 | | internal static class PayloadHelper |
| | | 10 | | { |
| | | 11 | | /// <summary> |
| | | 12 | | /// Adds the specified unescaped json entities into a json array. |
| | | 13 | | /// </summary> |
| | | 14 | | /// <param name="entities">The entities to add</param> |
| | | 15 | | /// <returns>A json array</returns> |
| | | 16 | | internal static string BuildArrayPayload(IEnumerable<string> entities) |
| | | 17 | | { |
| | 44 | 18 | | Argument.AssertNotNull(entities, nameof(entities)); |
| | 42 | 19 | | return $"[{string.Join(",", entities)}]"; |
| | | 20 | | } |
| | | 21 | | } |
| | | 22 | | } |