ZTUserServiceDefinition

interface ZTUserServiceDefinition

ZTAuthServiceDefinition

Author

Alexandre Lemoult <a.lemoult@zhortech.com>

Functions

attributes
Link copied to clipboard
@PUT(value = user/attributes)
abstract fun attributes(@Body() payload: Map<String, Any>): Observable<ResponseBody>
deleteUser
Link copied to clipboard
@DELETE(value = compliance/userAndData)
abstract fun deleteUser(): Observable<ResponseBody>
exist
Link copied to clipboard
@GET(value = user/exists/{attributeName}/{attributeValue})
abstract fun exist(@Path(value = attributeNameattributeName: String, @Path(value = attributeValueattributeValue: String): Observable<ApiResponseModel.ExistResponse>
firmwareUpdated
Link copied to clipboard
@POST(value = user/firmwareUpdated)
abstract fun firmwareUpdated(@Body() payload: Map<String, String>): Observable<ResponseBody>
getAchievements
Link copied to clipboard
@GET(value = ez/apps/user/achievements)
abstract fun getAchievements(): Observable<Array<ZTAchievement>>
getAppAttributes
Link copied to clipboard
@GET(value = user/app/attributes)
abstract fun getAppAttributes(): Observable<Map<String, Any>>
getProfileImage
Link copied to clipboard
@GET(value = user/profileImage)
abstract fun getProfileImage(): Observable<ApiResponseModel.GenericDataResponse>
getPublicUserIpAddress
Link copied to clipboard
@GET()
abstract fun getPublicUserIpAddress(@Url() url: String): Observable<ResponseBody>
orgCodeExist
Link copied to clipboard
@Headers(value = [SKIP_HEADERS: true])
@GET(value = user/suborgExists)
abstract fun orgCodeExist(@Query(value = orgcodeorgCode: String): Single<ApiResponseModel.OrgCodeExistResponse>
postProfileImage
Link copied to clipboard
@POST(value = user/profileImage)
abstract fun postProfileImage(@Body() payload: Map<String, String>): Observable<ResponseBody>
recoverByAttribute
Link copied to clipboard
@POST(value = user/recoverByAttribute)
abstract fun recoverByAttribute(@Body() payload: Map<String, Any>): Observable<ResponseBody>
testRetry
Link copied to clipboard
@GET(value = compliance/testRetry/{ms}/{attempts}/{code})
abstract fun testRetry(@Path(value = msms: Long, @Path(value = attemptsattempts: Int, @Path(value = codecode: Int): Observable<ResponseBody>
updateNotificationToken
Link copied to clipboard
@POST(value = user/notificationToken)
abstract fun updateNotificationToken(@Body() payload: NotificationTokenPayload): Observable<ResponseBody>