Add `Captcha` class and return type
This commit is contained in:
parent
9c101868a3
commit
8ab016076a
|
@ -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});
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue