public DeviceModel(DeviceModelId id, string name, string friendlyName, string friendlyNameEN)
 {
     this.id             = id;
     this.name           = name;
     this.friendlyName   = friendlyName;
     this.friendlyNameEN = friendlyNameEN;
 }
        public static string GetFriendlyName(DeviceModelId id)
        {
            if (dicModels.ContainsKey(id))
            {
                return(dicModels[id].friendlyName);
            }

            return(null);
        }
        static void Add(DeviceModelId id, string name, string friendlyName, string friendlyNameEN)
        {
            if (dicModels.ContainsKey(id))
            {
                return;
            }

            var model = new DeviceModel(id, name, friendlyName, friendlyNameEN);

            dicModels.Add(model.id, model);
            dicNames.Add(model.name, model);
        }