Skip to content

Commit

Permalink
Ensure contact annotations use the correct Json Property name
Browse files Browse the repository at this point in the history
  • Loading branch information
bparks13 committed Dec 18, 2024
1 parent 9d68775 commit 0bd1f50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<UseArtifactsOutput>true</UseArtifactsOutput>
<PackageIcon>icon.png</PackageIcon>
<VersionPrefix>0.2.1</VersionPrefix>
<VersionPrefix>0.3.0</VersionPrefix>
<VersionSuffix></VersionSuffix>
<LangVersion>10.0</LangVersion>
<Features>strict</Features>
Expand Down
7 changes: 4 additions & 3 deletions OpenEphys.ProbeInterface.NET/ContactAnnotations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ public class ContactAnnotations
/// <summary>
/// Gets the array of strings holding annotations for each contact. Not all indices must have annotations.
/// </summary>
[JsonProperty("annotations")]
public string[] Annotations { get; protected set; }

/// <summary>
/// Initializes a new instance of the <see cref="ContactAnnotations"/> class.
/// </summary>
/// <param name="contactAnnotations">Array of strings containing annotations for each contact. Size of the array should match the number of contacts, but they can be empty strings.</param>
/// <param name="annotations">Array of strings containing annotations for each contact. Size of the array should match the number of contacts, but they can be empty strings.</param>
[JsonConstructor]
public ContactAnnotations(string[] contactAnnotations)
public ContactAnnotations(string[] annotations)
{
Annotations = contactAnnotations;
Annotations = annotations;
}
}
}

0 comments on commit 0bd1f50

Please sign in to comment.