private static CanonicalPhoneName ResolveHtc(string manufacturer, string model)
{
var modelNormalized = model.Trim().ToUpper();
var result = new CanonicalPhoneName()
{
ReportedManufacturer = manufacturer,
ReportedModel = model,
CanonicalManufacturer = "HTC",
CanonicalModel = model,
IsResolved = false
};
var lookupValue = modelNormalized;
if (lookupValue.StartsWith("A620"))
{
lookupValue = "A620";
}
if (lookupValue.StartsWith("C625"))
{
lookupValue = "C625";
}
if (lookupValue.StartsWith("C620"))
{
lookupValue = "C620";
}
if (htcLookupTable.ContainsKey(lookupValue))
{
var modelMetadata = htcLookupTable[lookupValue];
result.CanonicalModel = modelMetadata.CanonicalModel;
result.Comments = modelMetadata.Comments;
result.IsResolved = true;
}
return result;
}