Hi,
NetworkUpdateParameters parameters = new NetworkUpdateParameters(null, false, 0, 20, null, null, false, false, Collections.singletonList(UpdateTypeInput.CMPY));
List<LinkedInNetworkUpdate> updates = linkedin.networkUpdateOperations().getNetworkUpdat es(parameters);
UpdateContentCompany[] ucs=new UpdateContentCompany[updates.size()];
int numLikes[]=new int[updates.size()];
Iterator<LinkedInNetworkUpdate> i=updates.iterator();
int j=0;
while(i.hasNext()){
ucs[j]=(UpdateContentCompany)i.next().getUpdateContent() ;
j++;
}
This is basically my code. Due to some issues with LinkedIn Spring API 1.0.0Build, while retrieving Company Updates using Network Operations , I am getting back UpdateContent(Which is proper for normal updates) and not UpdateContentCompany (which I need for Company Updates) which I now need to explicitly typecast. Could you'll please correct this issue?Or is this something that I am doing wrong?
Thanks and Regards,
Neil
NetworkUpdateParameters parameters = new NetworkUpdateParameters(null, false, 0, 20, null, null, false, false, Collections.singletonList(UpdateTypeInput.CMPY));
List<LinkedInNetworkUpdate> updates = linkedin.networkUpdateOperations().getNetworkUpdat es(parameters);
UpdateContentCompany[] ucs=new UpdateContentCompany[updates.size()];
int numLikes[]=new int[updates.size()];
Iterator<LinkedInNetworkUpdate> i=updates.iterator();
int j=0;
while(i.hasNext()){
ucs[j]=(UpdateContentCompany)i.next().getUpdateContent() ;
j++;
}
This is basically my code. Due to some issues with LinkedIn Spring API 1.0.0Build, while retrieving Company Updates using Network Operations , I am getting back UpdateContent(Which is proper for normal updates) and not UpdateContentCompany (which I need for Company Updates) which I now need to explicitly typecast. Could you'll please correct this issue?Or is this something that I am doing wrong?
Thanks and Regards,
Neil