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 class
GetFileUrl.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 void
async(@NotNull PNCallback<PNFileUrlResult> callback)
static GetFileUrl.Builder
builder(PubNub pubNub, TelemetryManager telemetryManager, RetrofitManager retrofitManager, TokenManager tokenManager)
protected PNFileUrlResult
createResponse(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 PNOperationType
getOperationType()
protected boolean
isAuthRequired()
void
retry()
PNFileUrlResult
sync()
protected void
validateParams()
-
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:
getAffectedChannels
in classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
getAffectedChannelGroups
protected java.util.List<java.lang.String> getAffectedChannelGroups()
- Specified by:
getAffectedChannelGroups
in classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
validateParams
protected void validateParams() throws PubNubException
- Specified by:
validateParams
in classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
- Throws:
PubNubException
-
sync
public PNFileUrlResult sync() throws PubNubException
- Specified by:
sync
in interfaceRemoteAction<PNFileUrlResult>
- Overrides:
sync
in classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
- Throws:
PubNubException
-
async
public void async(@NotNull @NotNull PNCallback<PNFileUrlResult> callback)
- Specified by:
async
in interfaceRemoteAction<PNFileUrlResult>
- Overrides:
async
in 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:
doWork
in classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
- Throws:
PubNubException
-
createResponse
protected PNFileUrlResult createResponse(retrofit2.Response<okhttp3.ResponseBody> input) throws PubNubException
- Specified by:
createResponse
in classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
- Throws:
PubNubException
-
getOperationType
protected PNOperationType getOperationType()
- Specified by:
getOperationType
in classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
retry
public void retry()
- Specified by:
retry
in interfaceRemoteAction<PNFileUrlResult>
- Overrides:
retry
in classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
isAuthRequired
protected boolean isAuthRequired()
- Specified by:
isAuthRequired
in classEndpoint<okhttp3.ResponseBody,PNFileUrlResult>
-
builder
public static GetFileUrl.Builder builder(PubNub pubNub, TelemetryManager telemetryManager, RetrofitManager retrofitManager, TokenManager tokenManager)
-
-