checkEmail method
Check for new email on the server. Returns a list of the newest messages. The maximum size of the list is 20 items.
The client should not check email too many times as to not overload the server. Do not check if the email expired, the email checking routing should pause if the email expired.
sequenceNumber
The sequence number (id) of the oldest email
Implementation
Future<CheckEmailResponse> checkEmail(
/// The sequence number (id) of the oldest email
int sequenceNumber,
) async {
final response = await _doRequest(
call: 'check_email',
queryParameters: {'seq': sequenceNumber.toString()});
return CheckEmailResponse.fromJson(jsonDecode(response.body));
}