Hi,
I have a content type for Comments and every comment has additional field called "UserId" which is relation to Users. I have also added some fields to Users content type, therefore I have extended the "User" class from Android SDK to "MyUser". This is how my classes look basically:
^^^^^
ServerType("Comments")
public class Comment extends DataItem {
@ServerProperty("UserId")
private UUID userId;
@ServerProperty("UserData")
private MyUser user;
^^^^^
@ServerType("Users")
public class MyUser extends User {
@ServerProperty("Picture")
String pictureUrl;
^^^^^
And the expand definition is like this: ExpandDefinition expandDefinition = new ExpandDefinition("UserId", "UserData");
The result is that "UserData" has all properties with NULL as a value. If I change the type of "UserData" to the default class "Users", the data is populated, by then I'm missing the user's picture.
How should this be done?
Thanks,
Viktor