-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92958e2
commit 99e03de
Showing
8 changed files
with
228 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
...-api/src/commonMain/kotlin/com/pubnub/api/models/consumer/objects/member/MemberInclude.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
.../commonMain/kotlin/com/pubnub/api/models/consumer/objects/membership/MembershipInclude.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
pubnub-kotlin/pubnub-kotlin-core-api/config/ktlint/baseline.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<baseline version="1.0"> | ||
<file name="src/commonMain/kotlin/com/pubnub/api/models/consumer/objects/membership/MembershipInclude.kt"> | ||
<error line="9" column="1" source="standard:no-empty-first-line-in-class-body" /> | ||
</file> | ||
</baseline> |
36 changes: 36 additions & 0 deletions
36
...-api/src/commonMain/kotlin/com/pubnub/api/models/consumer/objects/member/MemberInclude.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,51 @@ | ||
package com.pubnub.api.models.consumer.objects.member | ||
|
||
/** | ||
* Base interface defining options to include additional data when using Memberships API and ChannelMembers. | ||
*/ | ||
interface Include { | ||
/** | ||
* Whether to include custom data of the Membership in the result. | ||
*/ | ||
val includeCustom: Boolean | ||
|
||
/** | ||
* Whether to include the status of the Membership in the result. | ||
*/ | ||
val includeStatus: Boolean | ||
|
||
/** | ||
* Whether to include the type of the Membership in the result. | ||
*/ | ||
val includeType: Boolean | ||
|
||
/** | ||
* Whether to include the total count of Memberships in the result. | ||
*/ | ||
val includeTotalCount: Boolean | ||
} | ||
|
||
/** | ||
* Interface representing options to include additional data when using Channel Members API. | ||
*/ | ||
interface MemberInclude : Include { | ||
/** | ||
* Whether to include user information in the result. | ||
*/ | ||
val includeUser: Boolean | ||
|
||
/** | ||
* Whether to include custom properties of the user in the result. | ||
*/ | ||
val includeUserCustom: Boolean | ||
|
||
/** | ||
* Whether to include the type of the user in the result. | ||
*/ | ||
val includeUserType: Boolean | ||
|
||
/** | ||
* Whether to include the status of the user in the result. | ||
*/ | ||
val includeUserStatus: Boolean | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters