Skip to content

Commit 8ffec0a

Browse files
author
Max Presman
committed
update operation name
1 parent 209ae14 commit 8ffec0a

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎src/main/java/com/pubnub/api/endpoints/FetchMessages.java‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727

2828
@Accessors(chain = true, fluent = true)
2929
public class FetchMessages extends Endpoint<HistoryForChannelsEnvelope, HistoryForChannelsEnvelope> {
30-
private static final int MAX_CHANNELS = 100;
3130
private static final int MAX_MESSAGES = 25;
3231
@Setter
3332
private List<String> channels;
@@ -102,7 +101,7 @@ protected HistoryForChannelsEnvelope createResponse(Response<HistoryForChannelsE
102101

103102
@Override
104103
protected PNOperationType getOperationType() {
105-
return PNOperationType.PNHistoryOperation;
104+
return PNOperationType.PNFetchMessagesOperation;
106105
}
107106

108107
@Override

‎src/main/java/com/pubnub/api/enums/PNOperationType.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,12 @@
66
public enum PNOperationType {
77
PNSubscribeOperation,
88
PNUnsubscribeOperation,
9+
910
PNPublishOperation,
11+
1012
PNHistoryOperation,
13+
PNFetchMessagesOperation,
14+
1115
PNWhereNowOperation,
1216

1317
PNHeartbeatOperation,

0 commit comments

Comments
 (0)