diff options
Diffstat (limited to 'Emby.Common.Implementations/TextEncoding/NLangDetect/Language.cs')
| -rw-r--r-- | Emby.Common.Implementations/TextEncoding/NLangDetect/Language.cs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Emby.Common.Implementations/TextEncoding/NLangDetect/Language.cs b/Emby.Common.Implementations/TextEncoding/NLangDetect/Language.cs new file mode 100644 index 000000000..f4b4b153e --- /dev/null +++ b/Emby.Common.Implementations/TextEncoding/NLangDetect/Language.cs @@ -0,0 +1,45 @@ +using System.Globalization; + +namespace NLangDetect.Core +{ + // TODO IMM HI: name?? + public class Language + { + #region Constructor(s) + + public Language(string name, double probability) + { + Name = name; + Probability = probability; + } + + #endregion + + #region Object overrides + + public override string ToString() + { + if (Name == null) + { + return ""; + } + + return + string.Format( + CultureInfo.InvariantCulture.NumberFormat, + "{0}:{1:0.000000}", + Name, + Probability); + } + + #endregion + + #region Properties + + public string Name { get; set; } + + public double Probability { get; set; } + + #endregion + } +} |
