Package com.pubnub.api.endpoints.files
Class DeleteFile
- java.lang.Object
-
- com.pubnub.api.endpoints.Endpoint<java.lang.Void,PNDeleteFileResult>
-
- com.pubnub.api.endpoints.files.DeleteFile
-
- All Implemented Interfaces:
RemoteAction<PNDeleteFileResult>
public class DeleteFile extends Endpoint<java.lang.Void,PNDeleteFileResult>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeleteFile.Builder
-
Constructor Summary
Constructors Constructor Description DeleteFile(java.lang.String channel, java.lang.String fileName, java.lang.String fileId, PubNub pubnubInstance, TelemetryManager telemetry, RetrofitManager retrofitInstance, TokenManager tokenManager)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeleteFile.Builderbuilder(PubNub pubNub, TelemetryManager telemetryManager, RetrofitManager retrofitManager, TokenManager tokenManager)protected PNDeleteFileResultcreateResponse(retrofit2.Response<java.lang.Void> input)protected retrofit2.Call<java.lang.Void>doWork(java.util.Map<java.lang.String,java.lang.String> baseParams)protected java.util.List<java.lang.String>getAffectedChannelGroups()protected java.util.List<java.lang.String>getAffectedChannels()protected PNOperationTypegetOperationType()protected booleanisAuthRequired()protected voidvalidateParams()-
Methods inherited from class com.pubnub.api.endpoints.Endpoint
async, createBaseParams, encodeParams, getPubnub, getRetrofit, isError, queryParam, retry, silentCancel, sync
-
-
-
-
Constructor Detail
-
DeleteFile
public DeleteFile(java.lang.String channel, java.lang.String fileName, java.lang.String fileId, PubNub pubnubInstance, TelemetryManager telemetry, RetrofitManager retrofitInstance, TokenManager tokenManager)
-
-
Method Detail
-
getAffectedChannels
protected java.util.List<java.lang.String> getAffectedChannels()
- Specified by:
getAffectedChannelsin classEndpoint<java.lang.Void,PNDeleteFileResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroupsin classEndpoint<java.lang.Void,PNDeleteFileResult>
-
validateParams
protected void validateParams() throws PubNubException- Specified by:
validateParamsin classEndpoint<java.lang.Void,PNDeleteFileResult>- Throws:
PubNubException
-
doWork
protected retrofit2.Call<java.lang.Void> doWork(java.util.Map<java.lang.String,java.lang.String> baseParams) throws PubNubException- Specified by:
doWorkin classEndpoint<java.lang.Void,PNDeleteFileResult>- Throws:
PubNubException
-
createResponse
protected PNDeleteFileResult createResponse(retrofit2.Response<java.lang.Void> input) throws PubNubException
- Specified by:
createResponsein classEndpoint<java.lang.Void,PNDeleteFileResult>- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationTypein classEndpoint<java.lang.Void,PNDeleteFileResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequiredin classEndpoint<java.lang.Void,PNDeleteFileResult>
-
builder
public static DeleteFile.Builder builder(PubNub pubNub, TelemetryManager telemetryManager, RetrofitManager retrofitManager, TokenManager tokenManager)
-
-