Package com.pubnub.api.endpoints.files
Class GetFileUrl
- java.lang.Object
-
- com.pubnub.api.endpoints.Endpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
- com.pubnub.api.endpoints.files.GetFileUrl
-
- All Implemented Interfaces:
RemoteAction<PNFileUrlResult>
public class GetFileUrl extends Endpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGetFileUrl.Builder
-
Constructor Summary
Constructors Constructor Description GetFileUrl(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 voidasync(@NotNull PNCallback<PNFileUrlResult> callback)static GetFileUrl.Builderbuilder(PubNub pubNub, TelemetryManager telemetryManager, RetrofitManager retrofitManager, TokenManager tokenManager)protected PNFileUrlResultcreateResponse(retrofit2.Response<okhttp3.ResponseBody> input)protected retrofit2.Call<okhttp3.ResponseBody>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()voidretry()PNFileUrlResultsync()protected voidvalidateParams()-
Methods inherited from class com.pubnub.api.endpoints.Endpoint
createBaseParams, encodeParams, getPubnub, getRetrofit, isError, queryParam, silentCancel
-
-
-
-
Constructor Detail
-
GetFileUrl
public GetFileUrl(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<okhttp3.ResponseBody,PNFileUrlResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroupsin classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
validateParams
protected void validateParams() throws PubNubException- Specified by:
validateParamsin classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>- Throws:
PubNubException
-
sync
public PNFileUrlResult sync() throws PubNubException
- Specified by:
syncin interfaceRemoteAction<PNFileUrlResult>- Overrides:
syncin classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>- Throws:
PubNubException
-
async
public void async(@NotNull @NotNull PNCallback<PNFileUrlResult> callback)- Specified by:
asyncin interfaceRemoteAction<PNFileUrlResult>- Overrides:
asyncin classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
doWork
protected retrofit2.Call<okhttp3.ResponseBody> doWork(java.util.Map<java.lang.String,java.lang.String> baseParams) throws PubNubException- Specified by:
doWorkin classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>- Throws:
PubNubException
-
createResponse
protected PNFileUrlResult createResponse(retrofit2.Response<okhttp3.ResponseBody> input) throws PubNubException
- Specified by:
createResponsein classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationTypein classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
retry
public void retry()
- Specified by:
retryin interfaceRemoteAction<PNFileUrlResult>- Overrides:
retryin classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequiredin classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
builder
public static GetFileUrl.Builder builder(PubNub pubNub, TelemetryManager telemetryManager, RetrofitManager retrofitManager, TokenManager tokenManager)
-
-