mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-12-29 06:18:51 +00:00
19 lines
331 B
Dart
19 lines
331 B
Dart
|
import 'package:flutter/cupertino.dart';
|
||
|
|
||
|
/// Single search result
|
||
|
///
|
||
|
/// @author Pierre Hubert
|
||
|
|
||
|
enum SearchResultKind { USER, GROUP }
|
||
|
|
||
|
class SearchResult {
|
||
|
final int id;
|
||
|
final SearchResultKind kind;
|
||
|
|
||
|
SearchResult({
|
||
|
@required this.id,
|
||
|
@required this.kind,
|
||
|
}) : assert(id != null),
|
||
|
assert(kind != null);
|
||
|
}
|