DefaultProfileImageService

Default ProfileImageService implementation.

Author

Jan Müller
class DefaultProfileImageService(userRepository: UserRepository) : ProfileImageService

Constructors

<init>
Link copied to clipboard
fun <init>(userRepository: UserRepository)

Functions

deleteProfileImageByUserId
Link copied to clipboard
Deletes the ProfileImage of a User. Must validate that the ProfileImage exists.
open suspend override fun deleteProfileImageByUserId(userId: String): Result<String>
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
getProfileImageByUserId
Link copied to clipboard
Returns the ProfileImage of a User. Must validate that the ProfileImage exists.
open suspend override fun getProfileImageByUserId(userId: String): Result<ProfileImage>
getProfileImageTimestampByUserId
Link copied to clipboard
Returns the timestamp of a User's ProfileImage. Must validate that the ProfileImage exists.
open suspend override fun getProfileImageTimestampByUserId(userId: String): Result<Long>
hashCode
Link copied to clipboard
open override fun hashCode(): Int
saveProfileImageForUser
Link copied to clipboard
Saves the ProfileImage of a User. Must validate that the User exists.
open suspend override fun saveProfileImageForUser(userId: String, image: String): Result<String>
toString
Link copied to clipboard
open override fun toString(): String