This seems kind of strange to me, but I just noticed that if the category is calendar, contact, task, journal or note the result of getCategory is null.
The Google Desktop Search Query API Developer Guide does not mention this, but when I do a Google Desktop search from the web page, it lists these categories as other. I know that Maso only documents email,chat,web and file as return values.
In my code, I have just checked for null as the return value of getCategory.
I looked at the gdapi code and did not see a way to modify it - I may not understand it all, but the getCategory method in ResultsTypeImpl is generated and can't be modified.
Has anyone found a better way to handle this problem?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Instead of checking for null as a return value of getCategory, I decided to modify
ResultsTypeImpl.java, getCategory()and set _Category to "other". So this would have to be modified if ResultsTypeImpl.java is regenerated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
This seems kind of strange to me, but I just noticed that if the category is calendar, contact, task, journal or note the result of getCategory is null.
The Google Desktop Search Query API Developer Guide does not mention this, but when I do a Google Desktop search from the web page, it lists these categories as other. I know that Maso only documents email,chat,web and file as return values.
In my code, I have just checked for null as the return value of getCategory.
I looked at the gdapi code and did not see a way to modify it - I may not understand it all, but the getCategory method in ResultsTypeImpl is generated and can't be modified.
Has anyone found a better way to handle this problem?
Instead of checking for null as a return value of getCategory, I decided to modify
ResultsTypeImpl.java, getCategory()and set _Category to "other". So this would have to be modified if ResultsTypeImpl.java is regenerated.