IAuthUserAPI

interface IAuthUserAPI : IPublicUserAPI, Authable

Functions

Link copied to clipboard
abstract suspend fun getAllMyComments(): List<Comment>

Get all comments of the current user.

abstract suspend fun <T> getAllMyComments(eachGetOperation: suspend (List<Comment>) -> T): List<Comment>

Get all comments of the current user and after each get operation, run lambda block with result of get operation.

Link copied to clipboard
abstract suspend fun getAllMyEntries(): List<Entry>

Get all entries of the current user.

abstract suspend fun <T> getAllMyEntries(eachGetOperation: suspend (List<Entry>) -> T): List<Entry>

Get all entries of the current user and after each get operation, run lambda block with result of get operation.

Link copied to clipboard
abstract suspend fun getAllMyFavoriteComments(): List<Comment>

Get all the current user's favorite comments.

abstract suspend fun <T> getAllMyFavoriteComments(eachGetOperation: suspend (List<Comment>) -> T): List<Comment>

Get all favorite comments of the current user and after each get operation, run lambda block with result of get operation.

Link copied to clipboard
abstract suspend fun getAllMyFavoriteEntries(): List<Entry>

Get all favorites of the current user.

abstract suspend fun <T> getAllMyFavoriteEntries(eachGetOperation: suspend (List<Entry>) -> T): List<Entry>

Get all favorite entries of the current user and after each get operation, run lambda block with result of get operation.

Link copied to clipboard
abstract suspend fun getAllUserComments(userID: Long): List<Comment>

Get all user comments.

abstract suspend fun <T> getAllUserComments(userID: Long, eachGetOperation: suspend (List<Comment>) -> T): List<Comment>

Get all user comments and after each get operation, run lambda block with result of get operation.

Link copied to clipboard
abstract suspend fun getAllUserEntries(userID: Long): List<Entry>

Get all user entries.

abstract suspend fun <T> getAllUserEntries(userID: Long, eachGetOperation: suspend (List<Entry>) -> T): List<Entry>

Get all user entries and after each get operation, run lambda block with result of get operation.

Link copied to clipboard
abstract suspend fun getMe(): Subsite

Get information about the current user

Link copied to clipboard
abstract suspend fun getMyComments(count: Int, offset: Int): List<Comment>

Get the current user's comments

Link copied to clipboard
abstract suspend fun getMyEntries(count: Int, offset: Int): List<Entry>

Get entries of the current user

Link copied to clipboard
abstract suspend fun getMyFavoriteComments(count: Int, offset: Int): List<Comment>

Get the current user's favorite comments.

Link copied to clipboard
abstract suspend fun getMyFavoriteEntries(count: Int, offset: Int): List<Entry>

Get the current user's favorites

Link copied to clipboard
abstract suspend fun getMyNotifications(): List<Notification>

Get notification list for the current user

Link copied to clipboard
abstract suspend fun getMyNotificationsCount(): Int

Get the number of unread notifications for the current user

Link copied to clipboard
abstract suspend fun getUserByID(userID: Long): Subsite

Get user information by ID

Link copied to clipboard
abstract suspend fun getUserComments(userID: Long, count: Int, offset: Int): List<Comment>

Get user comments

Link copied to clipboard
abstract suspend fun getUserEntries(userID: Long, count: Int, offset: Int): List<Entry>

Get user entries

Link copied to clipboard
abstract suspend fun readAllNotifications(): List<Notification>

Mark all notifications as read

Link copied to clipboard
abstract suspend fun readNotificationsById(id: Long): Boolean

Mark the notification as read

Properties

Link copied to clipboard
abstract val token: String