Open shakdwipeea opened 6 years ago
ok, so basically returning pojo(model) would suffice?
Yes
In the return type for getSubreddit,
the com.entranceplus.craw.dto.Subreddit
class contains the name as "/r/politics" instead of just "politics".
Also, in getLinksFromReddit, the expected subreddit name is "politics".
So we could format the getSubreddit to return "politics".
In the class com.entranceplus.craw.dto.SubredditLinks
, apart from the url of the article. I would also need the title and thumbnail. How difficult is to get that in ?
Note that, I am using getLinksFromReddit for this.
In the return type for getSubreddit, the
com.entranceplus.craw.dto.Subreddit
class contains the name as "/r/politics" instead of just "politics". Also, in getLinksFromReddit, the expected subreddit name is "politics".So we could format the getSubreddit to return "politics".
Fixed as a part of 73c372d58b066f2eb32c930e17159890ad3fd4a4
In the class
com.entranceplus.craw.dto.SubredditLinks
, apart from the url of the article. I would also need the title and thumbnail. How difficult is to get that in ?Note that, I am using getLinksFromReddit for this.
This is added as a part of 12172425acec5b343a6d9c862291959b4e3d5ff8
I think a java model return would be better since I can use that directly in jvm clients.