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

com.pubnub.internal.endpoints.objects.membership.GetMembershipsImpl.kt Maven / Gradle / Ivy

package com.pubnub.internal.endpoints.objects.membership

import com.pubnub.api.endpoints.remoteaction.ExtendedRemoteAction
import com.pubnub.api.endpoints.remoteaction.MappingRemoteAction
import com.pubnub.api.models.consumer.objects.membership.PNChannelMembershipArrayResult
import com.pubnub.internal.DelegatingEndpoint
import com.pubnub.internal.PubNubImpl
import com.pubnub.internal.models.toApi

/**
 * @see [PubNubImpl.getMemberships]
 */
class GetMembershipsImpl internal constructor(getMemberships: GetMembershipsEndpoint) :
    DelegatingEndpoint(
        getMemberships,
    ),
    GetMembershipsInterface by getMemberships,
    com.pubnub.api.endpoints.objects.membership.GetMemberships {
        override fun convertAction(
            remoteAction: ExtendedRemoteAction,
        ): ExtendedRemoteAction {
            return MappingRemoteAction(
                remoteAction,
                com.pubnub.internal.models.consumer.objects.membership.PNChannelMembershipArrayResult::toApi,
            )
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy