Waterpumper / socialauth

Automatically exported from code.google.com/p/socialauth
0 stars 0 forks source link

implement equals() and hashcode() for org.brickred.socialauth.Contact class #372

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
this will be needed while managing contacts imported from social networks
I think email should be used to implement these functions because it remains 
same across different social websites.

Original issue reported on code.google.com by shabin.s...@gmail.com on 30 Sep 2014 at 9:41

GoogleCodeExporter commented 8 years ago
As most of the social sites are implementing OAuth2, so they dont provide email 
in contacts. So this cannot be implemented or no use to implement this.

Can you please elaborate your use case or solution for this.

Regards
Tarun

Original comment by tarun.na...@3pillarglobal.com on 6 Oct 2014 at 4:07

GoogleCodeExporter commented 8 years ago
Hi Tarun
I was working on creating an address book in our website that imports
contacts from google etc. For the address book to be up to date, each time
the user logs in to the website, i would fetch his/her contacts and add
them to their address book on our website, which is a Set of Contact class.
Since the equals() and hashcode() were not implemented in the Contact
class, this would lead to adding of duplicate to the Set. I got around this
by inheriting the Contact class in a CustomContact class and implementing
the functions there.

Sorry , I posted it as an error. Didn't know what I was doing. Its only an
improvement suggestion. And I don't  know much about Oauth2 other than that
I somehow use it to let people login to our website by creating apps on
social networks. I am a rookie.

Original comment by shabin.s...@gmail.com on 8 Oct 2014 at 6:01

GoogleCodeExporter commented 8 years ago
That's fine. You can customize the API as per your need. But this feature is 
not in much demand. So we are not implementing it for now but if we think it is 
necessary or get more demands for this feature then we will decide to take 
action on this.

Regards
Tarun

Original comment by tarunnag...@gmail.com on 31 Oct 2014 at 1:13