Skip to content

Commit

Permalink
Merge pull request #5 from wordpress-mobile/issue/add-url-to-wporg-si…
Browse files Browse the repository at this point in the history
…tes2

add URL to .org sites
  • Loading branch information
aforcier committed Mar 8, 2016
2 parents 78b37f9 + 68618c2 commit c8f896d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ private SitesModel sitesResponseToSitesModel(Object response, String username, S
}

private SiteModel updateSiteFromOptions(Object response, SiteModel oldModel) {
// TODO: plenty of other options to read here
Map<?, ?> blogOptions = (Map<?, ?>) response;
oldModel.setName(getOption(blogOptions, "blog_title", String.class));
oldModel.setUrl(getOption(blogOptions, "home_url", String.class));
oldModel.setSoftwareVersion(getOption(blogOptions, "software_version", String.class));
oldModel.setIsFeaturedImageSupported(getOption(blogOptions, "post_thumbnail", Boolean.class));
return oldModel;
Expand Down

0 comments on commit c8f896d

Please sign in to comment.