All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pubnub.internal.endpoints.objects.channel.GetAllChannelMetadataImpl.kt Maven / Gradle / Ivy

package com.pubnub.internal.endpoints.objects.channel

import com.pubnub.api.endpoints.remoteaction.ExtendedRemoteAction
import com.pubnub.api.endpoints.remoteaction.MappingRemoteAction
import com.pubnub.internal.DelegatingEndpoint
import com.pubnub.internal.PubNubImpl
import com.pubnub.internal.models.consumer.objects.channel.PNChannelMetadataArrayResult

/**
 * @see [PubNubImpl.getAllChannelMetadata]
 */
class GetAllChannelMetadataImpl internal constructor(getAllChannelMetadata: GetAllChannelMetadataEndpoint) :
    DelegatingEndpoint(
        getAllChannelMetadata,
    ),
    GetAllChannelMetadataInterface by getAllChannelMetadata,
    com.pubnub.api.endpoints.objects.channel.GetAllChannelMetadata {
        override fun convertAction(
            remoteAction: ExtendedRemoteAction,
        ): ExtendedRemoteAction {
            return MappingRemoteAction(
                remoteAction,
                PNChannelMetadataArrayResult::toApi,
            )
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy