Z T Api
object ZTApi
Content copied to clipboard
This object provides an API for application user
Author
Alexandre Lemoult <a.lemoult@zhortech.com>
Functions
addActivityComment
Link copied to clipboard
fun addActivityComment(activityId: String, text: String, mediaFileTemplates: Array<ZTMediaFileTemplate>?): Observable<ZTActivityComment>
Content copied to clipboard
addMediaFileToComment
Link copied to clipboard
fun addMediaFileToComment(commentId: String, mediaFileTemplate: ZTMediaFileTemplate): Observable<ZTMediaFile>
Content copied to clipboard
createRestService
Link copied to clipboard
deleteActivity
Link copied to clipboard
deleteComment
Link copied to clipboard
deleteMediaFileFromComment
Link copied to clipboard
deleteUser
Link copied to clipboard
editActivityComment
Link copied to clipboard
fun editActivityComment(commentId: String, newText: String): Observable<ZTActivityComment>
Content copied to clipboard
getActivityComment
Link copied to clipboard
getActivityComments
Link copied to clipboard
fun getActivityComments(activityId: String): Observable<Array<ZTActivityComment>>
Content copied to clipboard
getAppAttributes
Link copied to clipboard
getUnsafeOkHttpClient
Link copied to clipboard
getUserAchievements
Link copied to clipboard
getUserProfileImage
Link copied to clipboard
isOrgCodeExist
Link copied to clipboard
fun isOrgCodeExist(orgCode: String): Single<ApiResponseModel.OrgCodeExistResponse>
Content copied to clipboard
isUserExist
Link copied to clipboard
fun isUserExist(attributeName: String, attributeValue: String): Single<Boolean>
Content copied to clipboard
log
Link copied to clipboard
logCustomEvent
Link copied to clipboard
fun logCustomEvent(eventName: String, data: Any? = null, attributes: Any? = null)
Content copied to clipboard
startActivity
Link copied to clipboard
updateActivityAttributes
Link copied to clipboard
fun updateActivityAttributes(activityId: String, attributes: Map<String, Any>): Completable
Content copied to clipboard
updatePushNotificationToken
Link copied to clipboard
updateUserAttributes
Link copied to clipboard
fun updateUserAttributes(userId: String, payload: Map<String, Any>): Completable
Content copied to clipboard
updateUserId
Link copied to clipboard
updateUserProfileImage
Link copied to clipboard
uploadMediaFile
Link copied to clipboard
fun uploadMediaFile(templatePayload: ZTMediaFileTemplatePayload, context: Context? = null): Observable<ZTMediaFileTemplate>
Content copied to clipboard