getNotificationList method

  1. @override
Future<Result<NotificationList>> getNotificationList(
  1. GetNotificationListQuery query
)
inherited

Implementation

@override
Future<Result<NotificationList>> getNotificationList(GetNotificationListQuery query) async {
  NotificationListResult result = await _notificationApi.getNotificationList(getAppName(), query.toParam());
  if (!result.isSuccess) {
    throw Exception(result.message);
  }
  return Result.success(result.data?.toNotificationList() ?? NotificationList.empty());
}