PhoneNameResolver icon indicating copy to clipboard operation
PhoneNameResolver copied to clipboard

Redundant information in last commit

Open patrickfrei opened this issue 10 years ago • 5 comments

Hi ailon,

In lines 235-238: Why don't you just simly write... result.CanonicalManufacturer = manufacturer; ...?

And in line 219: CanonicalManufacturer = manufacturer,

From the switch/case statement in lines 25-26, the variable "manufacturer" is always filled with the respective manufacturer name (either Nokia or Microsoft). This would make the code easier and would also prevent an implementation of redundant Information, such as "CanonicalManufacturer="MICROSOFT" (see lines 522-525).

What do you think?

Best regards, Patrick

patrickfrei avatar Jan 24 '15 17:01 patrickfrei

Hi ailon,

What do you think about this suggestion?

Best regards, Patrick

patrickfrei avatar Feb 22 '15 09:02 patrickfrei

Lumia 535 for example returns either NOKIA or Microsoft as manufacturer in about 50/50 proportion. So this won't work.

Alan.

ailon avatar Feb 22 '15 09:02 ailon

Does this behavior depend on the OS version? I.e. versions after the takeover of Nokia by Microsoft show Microsoft as manufacturer?

patrickfrei avatar Feb 22 '15 11:02 patrickfrei

I think it's mostly about hardware revision or lot or whatever.


From: patrickfreimailto:[email protected] Sent: ‎2015-‎02-‎22 13:40 To: ailon/PhoneNameResolvermailto:[email protected] Cc: Alan Mendelevichmailto:[email protected] Subject: Re: [PhoneNameResolver] Redundant information in last commit (#11)

Does this behavior depend on the OS version? I.e. versions after the takeover of Nokia by Microsoft show Microsoft as manufacturer?


Reply to this email directly or view it on GitHub: https://github.com/ailon/PhoneNameResolver/issues/11#issuecomment-75431570

ailon avatar Feb 22 '15 11:02 ailon

Ok, thank you for your feedback!

patrickfrei avatar Feb 22 '15 11:02 patrickfrei