I have a Java pojo class like this:
public class Event {
private final List<String> urls;
private final int totalPhotoCount;
private final Owner owner;
public Event(@NonNull List<String> photoUrls,
int totalPhotoCount,
@Nullable Owner owner) {
urls = photoUrls;
this.totalPhotoCount = totalPhotoCount;
this.owner = owner;
}
@NonNull
public List<String> getUrls() {
return urls;
}
public int getTotalPhotoCount() {
return totalPhotoCount;
}
@Nullable
public Owner getOwner() {
return owner;
}
}
now I need to extend this class in a kotlin data class and add extra field - let's say String data. How can I achieve it? I cannot convert that class to kotlin