Lang.cs 491 B

12345678910111213141516171819
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace KdanCommon.GoogleCloud.Data
  7. {
  8. public class Lang
  9. {
  10. public string ISOCode { get; private set; } // two letter ISO 639 code, allow exceptions :zh-CN, zh-TW
  11. public string EnglishName { get; private set; }
  12. public Lang(string name, string code)
  13. {
  14. ISOCode = code;
  15. EnglishName = name;
  16. }
  17. }
  18. }