ZTActivityServiceDefinition

interface ZTActivityServiceDefinition

ZTActivityServiceDefinition

Author

Alexandre Lemoult <a.lemoult@zhortech.com>

Functions

addComment
Link copied to clipboard
@POST(value = activity/comment)
abstract fun addComment(@Body() payload: ActivityCommentPayload): Observable<ZTActivityComment>
addData
Link copied to clipboard
@POST(value = activity/addData)
abstract fun addData(@Body() activityDataContainer: ZTActivityDataContainer): Observable<ResponseBody>
addMediaFileToComment
Link copied to clipboard
@POST(value = activity/comment/{commentId}/mediafile)
abstract fun addMediaFileToComment(@Path(value = commentIdcommentId: String, @Body() payload: ZTMediaFileTemplate): Observable<ZTMediaFile>
addSegment
Link copied to clipboard
@POST(value = activity/addSegment)
abstract fun addSegment(@Body() payload: Map<String, Any>): Observable<ResponseBody>
addSegments
Link copied to clipboard
@POST(value = activity/addSegment)
abstract fun addSegments(@Body() payloads: List<Map<String, Any>>): Observable<ResponseBody>
deleteActivity
Link copied to clipboard
@DELETE(value = activity/{activityId})
abstract fun deleteActivity(@Path(value = activityIdactivityId: String): Observable<ResponseBody>
deleteComment
Link copied to clipboard
@DELETE(value = activity/comment/{commentId})
abstract fun deleteComment(@Path(value = commentIdcommentId: String): Observable<ResponseBody>
deleteMediaFileFromComment
Link copied to clipboard
@DELETE(value = activity/comment/mediafile/{mediaFileId})
abstract fun deleteMediaFileFromComment(@Path(value = mediaFileIdmediaFileId: String): Observable<ResponseBody>
getComment
Link copied to clipboard
@GET(value = activity/comment/{commentId})
abstract fun getComment(@Path(value = commentIdcommentId: String): Observable<ZTActivityComment>
getComments
Link copied to clipboard
@GET(value = activity/comments/{activityId})
abstract fun getComments(@Path(value = activityIdactivityId: String): Observable<Array<ZTActivityComment>>
getStatus
Link copied to clipboard
@GET(value = activity/status/{activityId})
abstract fun getStatus(@Path(value = activityIdactivityId: String): Observable<ZTActivitySummary<Any>>
patchComment
Link copied to clipboard
@PATCH(value = activity/comment/{commentId})
abstract fun patchComment(@Path(value = commentIdcommentId: String, @Body() payload: Map<String, String>): Observable<ZTActivityComment>
start
Link copied to clipboard
@POST(value = activity/start)
abstract fun start(@Body() payload: Map<String, Any>): Observable<ApiResponseModel.ActivityStartResponse>
stop
Link copied to clipboard
@POST(value = activity/stop)
abstract fun stop(@Body() payload: Map<String, Any>): Observable<ResponseBody>
updateAttributes
Link copied to clipboard
@PATCH(value = activity/{activityId}/attributes)
abstract fun updateAttributes(@Path(value = activityIdactivityId: String, @Body() payload: Map<String, Any>): Observable<ResponseBody>