public RepositoryInfo(Repository repository) { if (repository != null) { this.id = repository.getId(); this.name = repository.getName(); this.gitURL = repository.getGitUrl(); this.htmlURL = repository.getHtmlUrl(); this.description = repository.getDescription(); this.masterBranch = repository.getMasterBranch(); this.openIssues = repository.getOpenIssues(); this.sshURL = repository.getSshUrl(); this.watchers = repository.getWatchers(); } }
setProperty(node, PropertyName.CLONE_URL, repo.getCloneUrl()); setProperty(node, PropertyName.CREATED_AT, repo.getCreatedAt()); setProperty(node, PropertyName.DESCRIPTION, repo.getDescription()); setProperty(node, PropertyName.FORKS, repo.getForks()); setProperty(node, PropertyName.GIT_URL, repo.getGitUrl());