private static CanonicalPhoneName ResolveLg(string manufacturer, string model)
{
var modelNormalized = model.Trim().ToUpper();
var result = new CanonicalPhoneName()
{
ReportedManufacturer = manufacturer,
ReportedModel = model,
CanonicalManufacturer = "LG",
CanonicalModel = model,
IsResolved = false
};
var lookupValue = modelNormalized;
if (lookupValue.StartsWith("LG-C900"))
{
lookupValue = "LG-C900";
}
if (lookupValue.StartsWith("LG-E900"))
{
lookupValue = "LG-E900";
}
if (lgLookupTable.ContainsKey(lookupValue))
{
var modelMetadata = lgLookupTable[lookupValue];
result.CanonicalModel = modelMetadata.CanonicalModel;
result.Comments = modelMetadata.Comments;
result.IsResolved = true;
}
return result;
}