com.pubnub.internal.endpoints.objects.uuid.GetUUIDMetadataImpl.kt Maven / Gradle / Ivy
package com.pubnub.internal.endpoints.objects.uuid
import com.pubnub.api.endpoints.remoteaction.ExtendedRemoteAction
import com.pubnub.api.endpoints.remoteaction.MappingRemoteAction
import com.pubnub.api.models.consumer.objects.uuid.PNUUIDMetadataResult
import com.pubnub.internal.DelegatingEndpoint
import com.pubnub.internal.PubNubImpl
import com.pubnub.internal.models.consumer.objects.uuid.PNUUIDMetadataResult as PNUUIDMetadataResultInternal
/**
* @see [PubNubImpl.getUUIDMetadata]
*/
class GetUUIDMetadataImpl internal constructor(getUUIDMetadata: GetUUIDMetadataEndpoint) :
DelegatingEndpoint(getUUIDMetadata),
GetUUIDMetadataInterface by getUUIDMetadata,
com.pubnub.api.endpoints.objects.uuid.GetUUIDMetadata {
override fun convertAction(
remoteAction: ExtendedRemoteAction,
): ExtendedRemoteAction {
return MappingRemoteAction(remoteAction, PNUUIDMetadataResult.Companion::from)
}
}