Skip to content

Commit 8c51ac8

Browse files
authored
Merge pull request #15 from open-ephys/add-attributes
Add JsonProperty attributes to contact shape parameters
2 parents 4b87cbc + 9ebec58 commit 8c51ac8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<PackageLicenseFile>LICENSE</PackageLicenseFile>
1313
<UseArtifactsOutput>true</UseArtifactsOutput>
1414
<PackageIcon>icon.png</PackageIcon>
15-
<VersionPrefix>0.1.1</VersionPrefix>
15+
<VersionPrefix>0.2.0</VersionPrefix>
1616
<VersionSuffix></VersionSuffix>
1717
<LangVersion>10.0</LangVersion>
1818
<Features>strict</Features>

OpenEphys.ProbeInterface.NET/ContactShapeParam.cs

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public class ContactShapeParam
1616
/// <remarks>
1717
/// This is only used to draw <see cref="ContactShape.Circle"/> contacts. Field can be null.
1818
/// </remarks>
19+
[JsonProperty("radius")]
1920
public float? Radius { get; protected set; }
2021

2122
/// <summary>
@@ -25,6 +26,7 @@ public class ContactShapeParam
2526
/// This is used to draw <see cref="ContactShape.Square"/> or <see cref="ContactShape.Rect"/> contacts.
2627
/// Field can be null.
2728
/// </remarks>
29+
[JsonProperty("width")]
2830
public float? Width { get; protected set; }
2931

3032
/// <summary>
@@ -33,6 +35,7 @@ public class ContactShapeParam
3335
/// <remarks>
3436
/// This is only used to draw <see cref="ContactShape.Rect"/> contacts. Field can be null.
3537
/// </remarks>
38+
[JsonProperty("height")]
3639
public float? Height { get; protected set; }
3740

3841
/// <summary>

0 commit comments

Comments
 (0)