Skip to content

Instantly share code, notes, and snippets.

@Marcrobito
Marcrobito / Api.kt
Created January 21, 2021 00:58
Comments
interface Api{
suspend fun createComment(comment:Comment):RegularComment?
suspend fun readComments()
suspend fun readComment(id:String)
suspend fun updateComment(id:String, comment:RegularComment)
suspend fun deleteComment(id:String)
suspend fun createAnnotation(annotation:Annotation):Annotation?
suspend fun readAnnotations()
suspend fun readAnnotation(id:String)
suspend fun updateAnnotation(id:String, annotation: Annotation)