File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
pubnub-kotlin/pubnub-kotlin-api/src/appleMain/kotlin/com/pubnub/api/endpoints/presence Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import com.pubnub.kmp.onFailureHandler
1515import com.pubnub.kmp.onSuccessHandler
1616import com.pubnub.kmp.safeCast
1717import kotlinx.cinterop.ExperimentalForeignApi
18+ import platform.Foundation.NSNumber
1819
1920/* *
2021 * @see [PubNub.hereNow]
@@ -37,9 +38,8 @@ class HereNowImpl(
3738 channelGroups = channelGroups,
3839 includeState = includeState,
3940 includeUUIDs = includeUUIDs,
40- // todo pass limit and offset once available
41- // limit = limit,
42- // offset = offset,
41+ limit = limit.toLong(),
42+ offset = offset?.let { NSNumber (it) },
4343 onSuccess = callback.onSuccessHandler {
4444 PNHereNowResult (
4545 totalChannels = it?.totalChannels()?.toInt() ? : 0 ,
You can’t perform that action at this time.
0 commit comments