alfdev / linkedin-j

Automatically exported from code.google.com/p/linkedin-j
0 stars 0 forks source link

Provide ability to define custom ProfileField extensions #50

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In order to reduce the number of LinkedIn API calls I need to the following to 
the ProfileField enum:

RELATION_TO_VIEWER_RELATED_CONNECTIONS_FIRST_NAME("first-name", 
RELATION_TO_VIEWER_RELATED_CONNECTIONS, false),

RELATION_TO_VIEWER_RELATED_CONNECTIONS_LAST_NAME("last-name", 
RELATION_TO_VIEWER_RELATED_CONNECTIONS, false),

RELATION_TO_VIEWER_RELATED_CONNECTIONS_PUBLIC_PROFILE_URL("public-profile-url", 
RELATION_TO_VIEWER_RELATED_CONNECTIONS, false),

Is there a flexible way to specify such fields without hacking the library?

I basically want to do something like this:

Person person = client.getProfileById(id, EnumSet.of(
                ProfileField.FIRST_NAME, ProfileField.LAST_NAME, ProfileField.HEADLINE,
                ProfileField.PUBLIC_PROFILE_URL, ProfileField.RELATION_TO_VIEWER_DISTANCE, 
                ProfileField.RELATION_TO_VIEWER_RELATED_CONNECTIONS, 
                ProfileField.RELATION_TO_VIEWER_RELATED_CONNECTIONS_FIRST_NAME, 
                ProfileField.RELATION_TO_VIEWER_RELATED_CONNECTIONS_LAST_NAME,
                ProfileField.RELATION_TO_VIEWER_RELATED_CONNECTIONS_PUBLIC_PROFILE_URL));

Original issue reported on code.google.com by rostisla...@gmail.com on 14 Mar 2011 at 12:35

GoogleCodeExporter commented 9 years ago
I have added these fields in build 1.0.370. Unfortunately there is no way to 
define custom profile field extensions. I will need to think about it.

Original comment by nabeelmukhtar on 6 Apr 2011 at 12:59

GoogleCodeExporter commented 9 years ago
Hi,
can you please also add these:
RELATION_TO_VIEWER_RELATED_CONNECTIONS_HEADLINE
RELATION_TO_VIEWER_RELATED_CONNECTIONS_PICTURE_URL

as they are missing and are needed so that we can reduce the number of API 
calls.

Thanks

Original comment by a...@callapp.com on 30 Aug 2011 at 12:10

GoogleCodeExporter commented 9 years ago
These fields have been added in release 1.0.415.

Original comment by nabeelmukhtar on 5 Sep 2011 at 12:30

GoogleCodeExporter commented 9 years ago
Hi,
I can see that these were added in the code repository but they don't exist in 
the android binary jar version 1.0.415

Thanks

Original comment by a...@callapp.com on 7 Nov 2011 at 12:32

GoogleCodeExporter commented 9 years ago
Hi,
When can we expect the android binary to include these changes?

Original comment by a...@callapp.com on 20 Nov 2011 at 9:07