Skip to content

Commit

Permalink
fix: moved AutosuggestInputType to a namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
chaddgrimm committed Oct 29, 2024
1 parent 4bd6188 commit f4b32b2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 44 deletions.
82 changes: 42 additions & 40 deletions what3words.dotnet.wrapper/request/AutosuggestInputType.cs
Original file line number Diff line number Diff line change
@@ -1,42 +1,44 @@
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
public enum AutosuggestInputType
namespace what3words.dotnet.wrapper.request
{
/**
* Text typed by a user, e.g.'index.home.raf'. Default setting.
* Expects exactly two dots and no whitespace in the input.
*/
TEXT,
/**
* JSON from Nuance VoConHybrid.
* This should only be used with grammars provided by what3words ltd;
* using other grammars will cause run-time exceptions.
* Language detection is disabled, so lang must be set for non-English input.
*/
VOCON_HYBRID,
/**
* Text from the Nuance server at https://dictation.nuancemobility.net/NMDPAsrCmdServlet/dictation -
* please contact Nuance before attempting to use this server.
* Use with text from any other source is unsupported and results may not be as expected.
* Does not handle text in languages in which words are not separated by spaces, e.g. Chinese.
* Language detection is disabled, so lang must be set for non-English input.
*/
NMDP_ASR,
/**
*
*
* Text output from speech recognition software. E.g. "index home raft".
* This input type handles spaces between words.
* Users should not pronounce 'dot' when speaking a 3 word address.
* Does not handle text in languages in which words are not separated by spaces, e.g. Chinese.
* Language detection is disabled, so lang must be set.
*/
GENERIC_VOICE,
/**
* Text from Speechmatics voice recognition.
* Use with text from any other source is unsupported and results may not be as expected.
* This should only be used with grammars provided by what3words ltd;
* using other grammars will cause run-time exceptions.
* Language detection is disabled, so language must be set.
*/
SPEECHMATICS
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
public enum AutosuggestInputType
{
/**
* Text typed by a user, e.g.'index.home.raf'. Default setting.
* Expects exactly two dots and no whitespace in the input.
*/
TEXT,
/**
* JSON from Nuance VoConHybrid.
* This should only be used with grammars provided by what3words ltd;
* using other grammars will cause run-time exceptions.
* Language detection is disabled, so lang must be set for non-English input.
*/
VOCON_HYBRID,
/**
* Text from the Nuance server at https://dictation.nuancemobility.net/NMDPAsrCmdServlet/dictation -
* please contact Nuance before attempting to use this server.
* Use with text from any other source is unsupported and results may not be as expected.
* Does not handle text in languages in which words are not separated by spaces, e.g. Chinese.
* Language detection is disabled, so lang must be set for non-English input.
*/
NMDP_ASR,
/**
* Text output from speech recognition software. E.g. "index home raft".
* This input type handles spaces between words.
* Users should not pronounce 'dot' when speaking a 3 word address.
* Does not handle text in languages in which words are not separated by spaces, e.g. Chinese.
* Language detection is disabled, so lang must be set.
*/
GENERIC_VOICE,
/**
* Text from Speechmatics voice recognition.
* Use with text from any other source is unsupported and results may not be as expected.
* This should only be used with grammars provided by what3words ltd;
* using other grammars will cause run-time exceptions.
* Language detection is disabled, so language must be set.
*/
SPEECHMATICS
}

}
8 changes: 4 additions & 4 deletions what3words.dotnet.wrapper/what3words.dotnet.wrapper.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Authors>What3words</Authors>
<Product>What3words .NET Wrapper</Product>
<PackageId>what3words.dotnet.wrapper</PackageId>
<PackageVersion>3.1.2</PackageVersion>
<PackageVersion>4.0.0</PackageVersion>
<Description>A .NET library to use the what3words v3 API.

API methods are grouped into a single service object which can be centrally managed by a
Expand All @@ -23,9 +23,9 @@
<PackageProjectUrl>https://developer.what3words.com/public-api</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Version>3.1.2</Version>
<AssemblyVersion>3.1.2</AssemblyVersion>
<FileVersion>3.1.2</FileVersion>
<Version>4.0.0</Version>
<AssemblyVersion>4.0.0</AssemblyVersion>
<FileVersion>4.0.0</FileVersion>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit f4b32b2

Please sign in to comment.