PushDeviceMessageQuery method

Future<messageQueryResp> PushDeviceMessageQuery({
  1. int counts = 200,
  2. String category = "",
  3. int? start_point,
  4. String? position,
})

裝置端查詢訊息列表

Implementation

Future<messageQueryResp> PushDeviceMessageQuery({int counts = 200, String category = "", int ?start_point, String ?position}) {
  Map<String,dynamic> postdata = {
    "domain_key": Globals.domain_key,
    "counts": counts,
    "category": category,
    "start_point": start_point,
    "position": position
  };

  return GWSend("PushDeviceMessageQuery", postdata: postdata).then((response) {
    return messageQueryResp.fromJson(jsonDecode(response.body.toString()));
  });
}