@@ -74,99 +74,99 @@ public String getBaseUrl() {
7474
7575
7676 //
77- public final void addListener (SubscribeCallback listener ) {
77+ public void addListener (SubscribeCallback listener ) {
7878 subscriptionManager .addListener (listener );
7979 }
8080
81- public final void removeListener (SubscribeCallback listener ) {
81+ public void removeListener (SubscribeCallback listener ) {
8282 subscriptionManager .removeListener (listener );
8383 }
8484
85- public final SubscribeBuilder subscribe () {
85+ public SubscribeBuilder subscribe () {
8686 return new SubscribeBuilder (this .subscriptionManager );
8787 }
8888
89- public final UnsubscribeBuilder unsubscribe () {
89+ public UnsubscribeBuilder unsubscribe () {
9090 return new UnsubscribeBuilder (this .subscriptionManager );
9191 }
9292
9393 // start push
9494
95- public final AddChannelsToPush addPushNotificationsOnChannels () {
95+ public AddChannelsToPush addPushNotificationsOnChannels () {
9696 return new AddChannelsToPush (this , this .retrofitManager .getTransactionInstance ());
9797 }
9898
99- public final RemoveChannelsFromPush removePushNotificationsFromChannels () {
99+ public RemoveChannelsFromPush removePushNotificationsFromChannels () {
100100 return new RemoveChannelsFromPush (this , this .retrofitManager .getTransactionInstance ());
101101 }
102102
103- public final RemoveAllPushChannelsForDevice removeAllPushNotificationsFromDeviceWithPushToken () {
103+ public RemoveAllPushChannelsForDevice removeAllPushNotificationsFromDeviceWithPushToken () {
104104 return new RemoveAllPushChannelsForDevice (this , this .retrofitManager .getTransactionInstance ());
105105 }
106106
107- public final ListPushProvisions auditPushChannelProvisions () {
107+ public ListPushProvisions auditPushChannelProvisions () {
108108 return new ListPushProvisions (this , this .retrofitManager .getTransactionInstance ());
109109 }
110110
111111 // end push
112112
113- public final WhereNow whereNow () {
113+ public WhereNow whereNow () {
114114 return new WhereNow (this , this .retrofitManager .getTransactionInstance ());
115115 }
116116
117- public final HereNow hereNow () {
117+ public HereNow hereNow () {
118118 return new HereNow (this , this .retrofitManager .getTransactionInstance ());
119119 }
120120
121- public final Time time () {
121+ public Time time () {
122122 return new Time (this , this .retrofitManager .getTransactionInstance ());
123123 }
124124
125- public final History history () {
125+ public History history () {
126126 return new History (this , this .retrofitManager .getTransactionInstance ());
127127 }
128128
129- public final FetchMessages fetchMessages () {
129+ public FetchMessages fetchMessages () {
130130 return new FetchMessages (this , this .retrofitManager .getTransactionInstance ());
131131 }
132132
133- public final Audit audit () {
133+ public Audit audit () {
134134 return new Audit (this , this .retrofitManager .getTransactionInstance ());
135135 }
136136
137- public final Grant grant () {
137+ public Grant grant () {
138138 return new Grant (this , this .retrofitManager .getTransactionInstance ());
139139 }
140140
141- public final GetState getPresenceState () {
141+ public GetState getPresenceState () {
142142 return new GetState (this , this .retrofitManager .getTransactionInstance ());
143143 }
144144
145- public final SetState setPresenceState () {
145+ public SetState setPresenceState () {
146146 return new SetState (this , subscriptionManager , this .retrofitManager .getTransactionInstance ());
147147 }
148148
149- public final Publish publish () {
149+ public Publish publish () {
150150 return new Publish (this , publishSequenceManager , this .retrofitManager .getTransactionInstance ());
151151 }
152152
153- public final ListAllChannelGroup listAllChannelGroups () {
153+ public ListAllChannelGroup listAllChannelGroups () {
154154 return new ListAllChannelGroup (this , this .retrofitManager .getTransactionInstance ());
155155 }
156156
157- public final AllChannelsChannelGroup listChannelsForChannelGroup () {
157+ public AllChannelsChannelGroup listChannelsForChannelGroup () {
158158 return new AllChannelsChannelGroup (this , this .retrofitManager .getTransactionInstance ());
159159 }
160160
161- public final AddChannelChannelGroup addChannelsToChannelGroup () {
161+ public AddChannelChannelGroup addChannelsToChannelGroup () {
162162 return new AddChannelChannelGroup (this , this .retrofitManager .getTransactionInstance ());
163163 }
164164
165- public final RemoveChannelChannelGroup removeChannelsFromChannelGroup () {
165+ public RemoveChannelChannelGroup removeChannelsFromChannelGroup () {
166166 return new RemoveChannelChannelGroup (this , this .retrofitManager .getTransactionInstance ());
167167 }
168168
169- public final DeleteChannelGroup deleteChannelGroup () {
169+ public DeleteChannelGroup deleteChannelGroup () {
170170 return new DeleteChannelGroup (this , this .retrofitManager .getTransactionInstance ());
171171 }
172172
@@ -178,7 +178,7 @@ public final DeleteChannelGroup deleteChannelGroup() {
178178 * @param inputString String to be encrypted
179179 * @return String containing the encryption of inputString using cipherKey
180180 */
181- public final String decrypt (String inputString ) throws PubNubException {
181+ public String decrypt (String inputString ) throws PubNubException {
182182 if (inputString == null ) {
183183 throw PubNubException .builder ().pubnubError (PubNubErrorBuilder .PNERROBJ_INVALID_ARGUMENTS ).build ();
184184 }
@@ -194,7 +194,7 @@ public final String decrypt(String inputString) throws PubNubException {
194194 * @return String containing the encryption of inputString using cipherKey
195195 * @throws PubNubException throws exception in case of failed encryption
196196 */
197- public final String decrypt (final String inputString , final String cipherKey ) throws PubNubException {
197+ public String decrypt (String inputString , String cipherKey ) throws PubNubException {
198198 if (inputString == null ) {
199199 throw PubNubException .builder ().pubnubError (PubNubErrorBuilder .PNERROBJ_INVALID_ARGUMENTS ).build ();
200200 }
@@ -208,7 +208,7 @@ public final String decrypt(final String inputString, final String cipherKey) th
208208 * @param inputString String to be encrypted
209209 * @return String containing the encryption of inputString using cipherKey
210210 */
211- public final String encrypt (final String inputString ) throws PubNubException {
211+ public String encrypt (String inputString ) throws PubNubException {
212212 if (inputString == null ) {
213213 throw PubNubException .builder ().pubnubError (PubNubErrorBuilder .PNERROBJ_INVALID_ARGUMENTS ).build ();
214214 }
@@ -224,7 +224,7 @@ public final String encrypt(final String inputString) throws PubNubException {
224224 * @return String containing the encryption of inputString using cipherKey
225225 * @throws PubNubException throws exception in case of failed encryption
226226 */
227- public final String encrypt (final String inputString , final String cipherKey ) throws PubNubException {
227+ public String encrypt (String inputString , String cipherKey ) throws PubNubException {
228228 if (inputString == null ) {
229229 throw PubNubException .builder ().pubnubError (PubNubErrorBuilder .PNERROBJ_INVALID_ARGUMENTS ).build ();
230230 }
@@ -261,45 +261,45 @@ public String getVersion() {
261261 * Stop the SDK and terminate all listeners.
262262 */
263263 @ Deprecated
264- public final void stop () {
264+ public void stop () {
265265 subscriptionManager .stop ();
266266 }
267267
268268 /**
269269 * Destroy the SDK to evict the connection pools.
270270 */
271- public final void destroy () {
271+ public void destroy () {
272272 subscriptionManager .destroy ();
273273 retrofitManager .destroy ();
274274 }
275275
276276 /**
277277 * Perform a Reconnect to the network
278278 */
279- public final void reconnect () {
279+ public void reconnect () {
280280 subscriptionManager .reconnect ();
281281 }
282282
283283 /**
284284 * Perform a disconnect from the listeners
285285 */
286- public final void disconnect () {
286+ public void disconnect () {
287287 subscriptionManager .disconnect ();
288288 }
289289
290- public final Publish fire () {
290+ public Publish fire () {
291291 return publish ().shouldStore (false ).replicate (false );
292292 }
293293
294- public final List <String > getSubscribedChannels () {
294+ public List <String > getSubscribedChannels () {
295295 return subscriptionManager .getSubscribedChannels ();
296296 }
297297
298- public final List <String > getSubscribedChannelGroups () {
298+ public List <String > getSubscribedChannelGroups () {
299299 return subscriptionManager .getSubscribedChannelGroups ();
300300 }
301301
302- public final void unsubscribeAll () {
302+ public void unsubscribeAll () {
303303 subscriptionManager .unsubscribeAll ();
304304 }
305305}
0 commit comments