Skip to content

Commit e10c797

Browse files
committed
revert refactoring
1 parent d77d3a3 commit e10c797

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

intercom-java/src/main/java/io/intercom/api/Tag.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,19 @@ public static Tag tag(Tag tag, User... users) throws InvalidException, Authoriza
2626
return tag(tag, new UserCollection(Lists.newArrayList(users)));
2727
}
2828

29+
public static Tag tag(Tag tag, Company... companies) throws InvalidException, AuthorizationException {
30+
return tag(tag, new CompanyCollection(Lists.newArrayList(companies)));
31+
}
32+
33+
@Deprecated
34+
// don't require folks to create a collection object
2935
public static Tag tag(Tag tag, UserCollection users) throws InvalidException, AuthorizationException {
3036
TaggableCollection taggableCollection = createTagTypedCollection(tag, users);
3137
return DataResource.create(taggableCollection, "tags", Tag.class);
3238
}
3339

34-
public static Tag tag(Tag tag, Company... companies) throws InvalidException, AuthorizationException {
35-
return tag(tag, new CompanyCollection(Lists.newArrayList(companies)));
36-
}
37-
40+
@Deprecated
41+
// don't require folks to create a collection object
3842
public static Tag tag(Tag tag, CompanyCollection companies) throws InvalidException, AuthorizationException {
3943
TaggableCollection taggableCollection = createTagTypedCollection(tag, companies);
4044
return DataResource.create(taggableCollection, "tags", Tag.class);

intercom-java/src/main/java/io/intercom/api/TypedDataCollection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected <C extends TypedDataCollection<T>> C fetchNextPage(Class<C> typeRefere
4747
}
4848
}
4949

50-
public Map<String, URI> getPages() {
50+
public Map<String, URI> getPageLinks() {
5151
return ImmutableMap.<String, URI>builder().putAll(pages).build();
5252
}
5353

0 commit comments

Comments
 (0)