Add `Captcha` class and return type

This commit is contained in:
krawieck 2020-08-09 23:24:06 +02:00
parent 9c101868a3
commit 8ab016076a
2 changed files with 10 additions and 1 deletions

View File

@ -49,3 +49,12 @@ extension VoteValue on Vote {
throw Exception("unreachable");
}
}
class Captcha {
final String png;
/// can be null
final String wav;
final String uuid;
Captcha({this.png, this.wav, this.uuid});
}

View File

@ -25,7 +25,7 @@ extension UserEndpoint on V1 {
/// GET /user/get_captcha
/// https://dev.lemmy.ml/docs/contributing_websocket_http_api.html#get-captcha
String getCaptcha() {
Future<Captcha> getCaptcha() {
throw UnimplementedError();
}