OSDN Git Service

CLI: update the built in presets
[handbrake-jp/handbrake-jp-git.git] / win / C# / interop / Language.cs
1 namespace HandBrake.Interop\r
2 {\r
3     using System;\r
4     using System.Collections.Generic;\r
5     using System.Linq;\r
6     using System.Text;\r
7 \r
8     /// <summary>\r
9     /// Represents a language.\r
10     /// </summary>\r
11     public class Language\r
12     {\r
13         /// <summary>\r
14         /// Initializes a new instance of the Language class.\r
15         /// </summary>\r
16         /// <param name="code">The code for the langauge.</param>\r
17         public Language(string code)\r
18         {\r
19             this.Code = code;\r
20         }\r
21 \r
22         /// <summary>\r
23         /// Gets the friendly name of the language.\r
24         /// </summary>\r
25         public string Name\r
26         {\r
27             get\r
28             {\r
29                 return LanguageCodes.Decode(this.Code);\r
30             }\r
31         }\r
32 \r
33         /// <summary>\r
34         /// Gets or sets the language code.\r
35         /// </summary>\r
36         public string Code { get; set; }\r
37     }\r
38 }\r