Skip to content

Commit cf300b6

Browse files
committed
Merge pull request #28 from intercom/dehora/support-sessions
deprecate setter for company sessions
2 parents 444423f + cb629d0 commit cf300b6

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
- send custom company attributes on update
66

77
- fix NPE when company has no plan on update
8+
9+
- invalidate setSessionCount on Company [27](https://github.com/intercom/intercom-java/issues/27)
810

911
#### 1.0.0
1012

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,16 @@ public int getSessionCount() {
252252
return sessionCount;
253253
}
254254

255+
/**
256+
* Deprecated. The Intercom API does not support changing the
257+
* session value for a company. Calling this method has no
258+
* effect.
259+
*
260+
* @param sessionCount this value is ignored
261+
* @return the company object
262+
*/
263+
@Deprecated
255264
public Company setSessionCount(int sessionCount) {
256-
this.sessionCount = sessionCount;
257265
return this;
258266
}
259267

0 commit comments

Comments
 (0)