|
@@ -76,6 +76,7 @@ class ApiService {
|
|
'offset': offset.toString(),
|
|
'offset': offset.toString(),
|
|
'query': query
|
|
'query': query
|
|
});
|
|
});
|
|
|
|
+
|
|
var response = await http.get(url);
|
|
var response = await http.get(url);
|
|
|
|
|
|
if (response.statusCode == 200) {
|
|
if (response.statusCode == 200) {
|
|
@@ -83,14 +84,6 @@ class ApiService {
|
|
List<SerializableMessage> messages =
|
|
List<SerializableMessage> messages =
|
|
messagesJson.map((mj) => SerializableMessage.fromJson(mj)).toList();
|
|
messagesJson.map((mj) => SerializableMessage.fromJson(mj)).toList();
|
|
|
|
|
|
- // messages[0].id;
|
|
|
|
- // List<SerializableMessage> messages =
|
|
|
|
- // List<SerializableMessage>.from(json.decode(response.body));
|
|
|
|
- // List<SerializableMessage> messages =
|
|
|
|
- // - messagesJson.map((mj) => SerializableMessage.fromJson(mj)).toList();
|
|
|
|
- // print("above mess");
|
|
|
|
-
|
|
|
|
- // print(messages[0].uid);
|
|
|
|
return messages;
|
|
return messages;
|
|
}
|
|
}
|
|
} catch (e) {
|
|
} catch (e) {
|