…lines 1–40 unchanged (40 lines)
41 // lidarr/supported is an disambagation page. the # should be a header on the page with appropriate details/link
42 InfoLink = string.Format("https://wiki.servarr.com/lidarr/supported#{0}",
43 definition.Implementation.ToLower())
44 };
45 }
46
47 public virtual TProviderDefinition ToModel(TProviderResource resource, TProviderDefinition existingDefinition)
48 {
49 if (resource == null)
50 {
51 return default(TProviderDefinition);
52 }
53
…lines 54–60 unchanged (7 lines)
61 ConfigContract = resource.ConfigContract,
62 Message = resource.Message,
63 Tags = resource.Tags
64 };
65
66 var configContract = ReflectionExtensions.CoreAssembly.FindTypeByName(definition.ConfigContract);
67 definition.Settings = (IProviderConfig)SchemaBuilder.ReadFromSchema(resource.Fields, configContract, existingDefinition?.Settings);
68
69 return definition;
70 }
71 }
72}
73