ref: v3.3.2
app/src/main/java/xyz/apiote/bimba/czwek/api/responses/Error.kt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
// SPDX-FileCopyrightText: Adam Evyčędo // // SPDX-License-Identifier: GPL-3.0-or-later package xyz.apiote.bimba.czwek.api.responses import xyz.apiote.fruchtfleisch.Reader import java.io.InputStream data class ErrorResponse(val field: String, val message: String) { companion object { fun unmarshal(stream: InputStream): ErrorResponse { val reader = Reader(stream) return ErrorResponse(reader.readString(), reader.readString()) } } } |