removed old marianum message structure
This commit is contained in:
@ -1,25 +0,0 @@
|
||||
|
||||
import '../../api/apiResponse.dart';
|
||||
import '../../api/mhsl/message/getMessages/getMessagesCache.dart';
|
||||
import '../../api/mhsl/message/getMessages/getMessagesResponse.dart';
|
||||
import '../dataHolder.dart';
|
||||
|
||||
class MessageProps extends DataHolder {
|
||||
GetMessagesResponse? _getMessagesResponse;
|
||||
GetMessagesResponse get getMessagesResponse => _getMessagesResponse!;
|
||||
|
||||
@override
|
||||
List<ApiResponse?> properties() => [_getMessagesResponse];
|
||||
|
||||
@override
|
||||
void run({renew}) {
|
||||
GetMessagesCache(
|
||||
renew: renew,
|
||||
onUpdate: (GetMessagesResponse data) => {
|
||||
_getMessagesResponse = data,
|
||||
notifyListeners(),
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user