getRehabilitationId method

  1. @override
Future<String> getRehabilitationId()
override

リハビリidを取得する。

Implementation

@override
Future<String> getRehabilitationId() async {
  try {
    // ignore: unused_local_variab
    // TODO: APIが完成次第実装
    // final client = DefaultApi(dio, standardSerializers);

    /// FIXME: await client.xxxxx でAPI発行
    /// final result = await client.xxxxx
    return '';
  } on DioException catch (error, stackTrace) {
    throw await _dioErrorHandler.handleDioError(
      error,
      stackTrace,
      null,
    );
  } catch (error, stackTrace) {
    throw _repositoryErrorHandler.handleUnknownError(error, stackTrace);
  }
}