Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SandraRodgers committed Jul 19, 2023
1 parent 6a07f54 commit 264349f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
38 changes: 19 additions & 19 deletions Deepgram/Transcription/Warning.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@

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; }
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 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; }
/// <summary>
/// The warning message
/// </summary>
[JsonProperty("message")]
public string Message { get; set; }

}
}
}


24 changes: 12 additions & 12 deletions Deepgram/Transcription/WarningType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@ 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
}
[EnumMember(Value = "unsupported_language")]
UnsupportedLanguage,
[EnumMember(Value = "unsupported_model")]
UnsupportedModel,
[EnumMember(Value = "unsupported_encoding")]
UnsupportedEncoding,
[EnumMember(Value = "deprecated")]
Deprecated
}
}


0 comments on commit 264349f

Please sign in to comment.