-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cd223df
commit 6a07f54
Showing
4 changed files
with
62 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace Deepgram.Transcription | ||
{ | ||
public class Warning | ||
{ | ||
/// <summary> | ||
/// Parameter sent in the request that resulted in the warning | ||
/// </summary> | ||
[JsonProperty("parameter")] | ||
public string Parameter { get; set; } | ||
|
||
/// <summary> | ||
/// The type of warning | ||
/// </summary> | ||
[JsonProperty("type")] | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public WarningType Type { get; set; } | ||
|
||
/// <summary> | ||
/// The warning message | ||
/// </summary> | ||
[JsonProperty("message")] | ||
public string Message { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Runtime.Serialization; | ||
|
||
namespace Deepgram.Transcription | ||
{ | ||
public enum WarningType | ||
|
||
{ | ||
[EnumMember(Value = "unsupported_language")] | ||
UnsupportedLanguage, | ||
|
||
[EnumMember(Value = "unsupported_model")] | ||
UnsupportedModel, | ||
|
||
[EnumMember(Value = "unsupported_encoding")] | ||
UnsupportedEncoding, | ||
|
||
[EnumMember(Value = "deprecated")] | ||
Deprecated | ||
} | ||
} | ||
|
||
|
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