Erweiterungen
This commit is contained in:
1 parent
e85450942c
commit
0b17574694
4 files changed
+4
-4
No files matched your search
@@ -186,7 +186,7 @@ class _AssignedJobsPageState extends State<AssignedJobsPage> {
|
||||
var currentPosition = MyApp.currentPosition;
|
||||
|
||||
var message = Reaction();
|
||||
message.id = job.id.toString();
|
||||
message.id = job.id;
|
||||
message.ver = job.ver.toString();
|
||||
message.item = item;
|
||||
message.track = Track();
|
||||
|
||||
@@ -157,7 +157,7 @@ _sendAnswer(Job job, int item) {
|
||||
var currentPosition = MyApp.currentPosition;
|
||||
|
||||
var message = Reaction();
|
||||
message.id = job.id.toString();
|
||||
message.id = job.id;
|
||||
message.ver = job.ver.toString();
|
||||
message.item = item;
|
||||
message.track = Track();
|
||||
|
||||
@@ -5,7 +5,7 @@ part 'accept_job_message.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class Reaction {
|
||||
late String id;
|
||||
late int id;
|
||||
late String ver;
|
||||
late int item;
|
||||
late Track track;
|
||||
|
||||
@@ -7,7 +7,7 @@ part of 'accept_job_message.dart';
|
||||
// **************************************************************************
|
||||
|
||||
Reaction _$ReactionFromJson(Map<String, dynamic> json) => Reaction()
|
||||
..id = json['id'] as String
|
||||
..id = json['id'] as int
|
||||
..ver = json['ver'] as String
|
||||
..item = json['item'] as int
|
||||
..track = Track.fromJson(json['track'] as Map<String, dynamic>);
|
||||
|
||||
Reference in new issue
Block a user