Skip to content

Commit

Permalink
spring-social#88 Add 'circledByCount' field to Person resource
Browse files Browse the repository at this point in the history
  • Loading branch information
f-lopes committed Apr 2, 2017
1 parent 2970845 commit d237bf8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ private static class Email {
@JsonProperty("isPlusUser")
private boolean plusUser;

private int circledByCount;

@JsonProperty
private Image image;

Expand Down Expand Up @@ -148,6 +150,10 @@ public boolean isPlusUser() {
return plusUser;
}

public int getCircledByCount() {
return circledByCount;
}

public String getImageUrl() {
if (thumbnailUrl != null) {
return thumbnailUrl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,5 +308,6 @@ private void assertPerson(Person person) {
assertEquals("guznik@gmail.com", person.getAccountEmail());
assertEquals("https://plus.google.com/+GabrielAxel", person.getUrl());
assertTrue(person.isPlusUser());
assertEquals(51, person.getCircledByCount());
}
}

0 comments on commit d237bf8

Please sign in to comment.