Skip to content

Commit

Permalink
Change package in pubnub-users module: entities -> user
Browse files Browse the repository at this point in the history
  • Loading branch information
kleewho authored Jun 14, 2022
1 parent c514d0a commit 7ffb6df
Show file tree
Hide file tree
Showing 16 changed files with 43 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ import com.pubnub.entities.models.consumer.membership.UserDetailsLevel
import com.pubnub.entities.models.consumer.membership.UserMembershipsResultKey
import com.pubnub.entities.models.consumer.space.Space
import com.pubnub.entities.models.consumer.space.SpaceId
import com.pubnub.entities.models.consumer.user.User
import com.pubnub.entities.models.consumer.user.UserId
import com.pubnub.user.createUser
import com.pubnub.user.models.consumer.User
import com.pubnub.user.models.consumer.UserId
import com.pubnub.user.removeUser
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ import com.pubnub.entities.models.consumer.membership.toUserFetchMembershipsResu
import com.pubnub.entities.models.consumer.membership.toUserMembershipsResult
import com.pubnub.entities.models.consumer.space.ISpaceId
import com.pubnub.entities.models.consumer.space.SpaceId
import com.pubnub.entities.models.consumer.user.IUserId
import com.pubnub.entities.models.consumer.user.UserId
import com.pubnub.user.models.consumer.IUserId
import com.pubnub.user.models.consumer.UserId

/**
* Add memberships of user i.e. assign spaces to user, add user to spaces
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import com.pubnub.api.models.consumer.objects.membership.PNChannelMembership
import com.pubnub.entities.models.consumer.space.Space
import com.pubnub.entities.models.consumer.space.SpaceId
import com.pubnub.entities.models.consumer.space.toSpace
import com.pubnub.entities.models.consumer.user.User
import com.pubnub.entities.models.consumer.user.UserId
import com.pubnub.entities.models.consumer.user.toUser
import com.pubnub.user.models.consumer.User
import com.pubnub.user.models.consumer.UserId
import com.pubnub.user.models.consumer.toUser

data class Membership(
val user: User?,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import com.pubnub.api.models.consumer.pubsub.objects.PNObjectEventResult
import com.pubnub.api.models.consumer.pubsub.objects.PNSetMembershipEventMessage
import com.pubnub.entities.models.consumer.space.Space
import com.pubnub.entities.models.consumer.space.SpaceId
import com.pubnub.entities.models.consumer.user.User
import com.pubnub.entities.models.consumer.user.UserId
import com.pubnub.user.models.consumer.User
import com.pubnub.user.models.consumer.UserId

sealed class MembershipEvent {
abstract val spaceId: SpaceId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.pubnub.api.models.consumer.objects.PNPage
import com.pubnub.api.models.consumer.objects.member.PNMemberArrayResult
import com.pubnub.api.models.consumer.objects.membership.PNChannelMembershipArrayResult
import com.pubnub.entities.models.consumer.space.SpaceId
import com.pubnub.entities.models.consumer.user.UserId
import com.pubnub.user.models.consumer.UserId

data class MembershipsResult(
val data: Collection<Membership>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import com.pubnub.entities.models.consumer.membership.MembershipsResult
import com.pubnub.entities.models.consumer.membership.MembershipsStatusResult
import com.pubnub.entities.models.consumer.space.Space
import com.pubnub.entities.models.consumer.space.SpaceId
import com.pubnub.entities.models.consumer.user.User
import com.pubnub.entities.models.consumer.user.UserId
import com.pubnub.user.models.consumer.User
import com.pubnub.user.models.consumer.UserId
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
Expand Down
2 changes: 1 addition & 1 deletion pubnub-users/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POM_ARTIFACT_ID=pubnub-users
POM_NAME=pubnub-users
POM_PACKAGING=jar
VERSION_NAME=0.1.0
VERSION_NAME=0.2.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pubnub.entities
package com.pubnub.user

import org.aeonbits.owner.Config
import org.aeonbits.owner.ConfigFactory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pubnub.entities
package com.pubnub.user

import com.pubnub.api.PNConfiguration
import com.pubnub.api.PubNub
Expand All @@ -7,11 +7,11 @@ import com.pubnub.api.callbacks.SubscribeCallback
import com.pubnub.api.enums.PNStatusCategory
import com.pubnub.api.models.consumer.PNStatus
import com.pubnub.api.models.consumer.objects.ResultSortKey
import com.pubnub.entities.models.consumer.user.User
import com.pubnub.entities.models.consumer.user.UserId
import com.pubnub.entities.models.consumer.user.UserKey
import com.pubnub.entities.models.consumer.user.UserModified
import com.pubnub.entities.models.consumer.user.UsersResult
import com.pubnub.user.models.consumer.User
import com.pubnub.user.models.consumer.UserId
import com.pubnub.user.models.consumer.UserKey
import com.pubnub.user.models.consumer.UserModified
import com.pubnub.user.models.consumer.UsersResult
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pubnub.entities
package com.pubnub.user

import com.pubnub.api.PubNub
import com.pubnub.api.callbacks.DisposableListener
Expand All @@ -13,16 +13,16 @@ import com.pubnub.api.models.consumer.objects.PNPage
import com.pubnub.api.models.consumer.objects.PNSortKey
import com.pubnub.api.models.consumer.objects.ResultSortKey
import com.pubnub.api.models.consumer.pubsub.objects.PNObjectEventResult
import com.pubnub.entities.models.consumer.user.RemoveUserResult
import com.pubnub.entities.models.consumer.user.User
import com.pubnub.entities.models.consumer.user.UserEvent
import com.pubnub.entities.models.consumer.user.UserId
import com.pubnub.entities.models.consumer.user.UserKey
import com.pubnub.entities.models.consumer.user.UsersResult
import com.pubnub.entities.models.consumer.user.toRemoveUserResult
import com.pubnub.entities.models.consumer.user.toUser
import com.pubnub.entities.models.consumer.user.toUserEvent
import com.pubnub.entities.models.consumer.user.toUsersResult
import com.pubnub.user.models.consumer.RemoveUserResult
import com.pubnub.user.models.consumer.User
import com.pubnub.user.models.consumer.UserEvent
import com.pubnub.user.models.consumer.UserId
import com.pubnub.user.models.consumer.UserKey
import com.pubnub.user.models.consumer.UsersResult
import com.pubnub.user.models.consumer.toRemoveUserResult
import com.pubnub.user.models.consumer.toUser
import com.pubnub.user.models.consumer.toUserEvent
import com.pubnub.user.models.consumer.toUsersResult

/**
* Returns a paginated list of User metadata, optionally including the custom data object for each.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pubnub.entities.models.consumer.user
package com.pubnub.user.models.consumer

import com.pubnub.api.models.consumer.objects.PNRemoveMetadataResult

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pubnub.entities.models.consumer.user
package com.pubnub.user.models.consumer

import com.pubnub.api.models.consumer.objects.uuid.PNUUIDMetadata

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pubnub.entities.models.consumer.user
package com.pubnub.user.models.consumer

import com.pubnub.api.models.consumer.pubsub.objects.PNDeleteUUIDMetadataEventMessage
import com.pubnub.api.models.consumer.pubsub.objects.PNObjectEventResult
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pubnub.entities.models.consumer.user
package com.pubnub.user.models.consumer

import com.pubnub.api.models.consumer.objects.PNKey
import com.pubnub.api.models.consumer.objects.SortableKey
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pubnub.entities.models.consumer.user
package com.pubnub.user.models.consumer

import com.pubnub.api.models.consumer.objects.PNPage
import com.pubnub.api.models.consumer.objects.uuid.PNUUIDMetadataArrayResult
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.pubnub.entities
package com.pubnub.user

import com.pubnub.api.PNConfiguration
import com.pubnub.api.PubNub
Expand All @@ -11,10 +11,10 @@ import com.pubnub.api.models.consumer.objects.PNRemoveMetadataResult
import com.pubnub.api.models.consumer.objects.uuid.PNUUIDMetadata
import com.pubnub.api.models.consumer.objects.uuid.PNUUIDMetadataArrayResult
import com.pubnub.api.models.consumer.objects.uuid.PNUUIDMetadataResult
import com.pubnub.entities.models.consumer.user.RemoveUserResult
import com.pubnub.entities.models.consumer.user.User
import com.pubnub.entities.models.consumer.user.UserId
import com.pubnub.entities.models.consumer.user.UsersResult
import com.pubnub.user.models.consumer.RemoveUserResult
import com.pubnub.user.models.consumer.User
import com.pubnub.user.models.consumer.UserId
import com.pubnub.user.models.consumer.UsersResult
import io.mockk.MockKAnnotations
import io.mockk.every
import io.mockk.impl.annotations.MockK
Expand Down

0 comments on commit 7ffb6df

Please sign in to comment.