private static CanonicalPhoneName ResolveSamsung(string manufacturer, string model)
{
var modelNormalized = model.Trim().ToUpper();
var result = new CanonicalPhoneName()
{
ReportedManufacturer = manufacturer,
ReportedModel = model,
CanonicalManufacturer = "SAMSUNG",
CanonicalModel = model,
IsResolved = false
};
var lookupValue = modelNormalized;
if (lookupValue.StartsWith("GT-S7530"))
{
lookupValue = "GT-S7530";
}
if (lookupValue.StartsWith("SGH-I917"))
{
lookupValue = "SGH-I917";
}
if (samsungLookupTable.ContainsKey(lookupValue))
{
var modelMetadata = samsungLookupTable[lookupValue];
result.CanonicalModel = modelMetadata.CanonicalModel;
result.Comments = modelMetadata.Comments;
result.IsResolved = true;
}
return result;
}