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

com.pubnub.internal.endpoints.objects.membership.ManageMembershipsImpl.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.manageMemberships]
 */
class ManageMembershipsImpl internal constructor(manageMemberships: ManageMembershipsEndpoint) :
    DelegatingEndpoint(
        manageMemberships,
    ),
    ManageMembershipsInterface by manageMemberships,
    com.pubnub.api.endpoints.objects.membership.ManageMemberships {
        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