getShareTokenInfoHash method
inherited
Return the info-hash of the repository corresponding to the given token, formatted as hex string.
See also: repository_get_info_hash
Implementation
Future<String> getShareTokenInfoHash(
ShareToken token,
) async {
final request = RequestSessionGetShareTokenInfoHash(
token: token,
);
final response = await client.invoke(request);
switch (response) {
case ResponseString(value: final value): return value;
default: throw UnexpectedResponse();
}
}