Class ObjectApiEndpoint<INPUT,OUTPUT>
- java.lang.Object
-
- com.pubnub.api.endpoints.Endpoint<INPUT,OUTPUT>
-
- com.pubnub.api.endpoints.objects_api.ObjectApiEndpoint<INPUT,OUTPUT>
-
- All Implemented Interfaces:
RemoteAction<OUTPUT>
- Direct Known Subclasses:
ChannelEnpoint,GetAllChannelsMetadata,GetAllUUIDMetadata,UUIDEndpoint
public abstract class ObjectApiEndpoint<INPUT,OUTPUT> extends Endpoint<INPUT,OUTPUT>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedObjectApiEndpoint(PubNub pubnubInstance, TelemetryManager telemetry, RetrofitManager retrofitInstance, CompositeParameterEnricher compositeParameterEnricher, TokenManager tokenManager)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected retrofit2.Call<INPUT>doWork(java.util.Map<java.lang.String,java.lang.String> baseParams)protected abstract retrofit2.Call<INPUT>executeCommand(java.util.Map<java.lang.String,java.lang.String> effectiveParams)protected java.util.List<java.lang.String>getAffectedChannelGroups()protected java.util.List<java.lang.String>getAffectedChannels()protected CompositeParameterEnrichergetCompositeParameterEnricher()protected booleanisAuthRequired()protected voidvalidateParams()-
Methods inherited from class com.pubnub.api.endpoints.Endpoint
async, createBaseParams, createResponse, encodeParams, getOperationType, getPubnub, getRetrofit, isError, queryParam, retry, silentCancel, sync
-
-
-
-
Constructor Detail
-
ObjectApiEndpoint
protected ObjectApiEndpoint(PubNub pubnubInstance, TelemetryManager telemetry, RetrofitManager retrofitInstance, CompositeParameterEnricher compositeParameterEnricher, TokenManager tokenManager)
-
-
Method Detail
-
validateParams
protected void validateParams() throws PubNubException- Specified by:
validateParamsin classEndpoint<INPUT,OUTPUT>- Throws:
PubNubException
-
getAffectedChannels
protected java.util.List<java.lang.String> getAffectedChannels()
- Specified by:
getAffectedChannelsin classEndpoint<INPUT,OUTPUT>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroupsin classEndpoint<INPUT,OUTPUT>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequiredin classEndpoint<INPUT,OUTPUT>
-
doWork
protected retrofit2.Call<INPUT> doWork(java.util.Map<java.lang.String,java.lang.String> baseParams) throws PubNubException
- Specified by:
doWorkin classEndpoint<INPUT,OUTPUT>- Throws:
PubNubException
-
executeCommand
protected abstract retrofit2.Call<INPUT> executeCommand(java.util.Map<java.lang.String,java.lang.String> effectiveParams) throws PubNubException
- Throws:
PubNubException
-
getCompositeParameterEnricher
protected CompositeParameterEnricher getCompositeParameterEnricher()
-
-