getRemoteStatusValue static method
Implementation
static int? getRemoteStatusValue(RemoteStatus? status) {
switch (status) {
case RemoteStatus.AUTHENTICATION_FAILED:
return 0;
case RemoteStatus.EMAIL_MANDATORY:
return 2;
case RemoteStatus.EMAIL_ALREADY_EXISTS:
return 3;
case RemoteStatus.EMAIL_ADDRESS_INVALID:
return 4;
case RemoteStatus.USER_ID_MANDATORY:
return 5;
case RemoteStatus.TS_MANDATORY:
return 6;
case RemoteStatus.USER_NOT_FOUND:
return 7;
case RemoteStatus.INVALID_TEST_MODE:
return 8;
case RemoteStatus.VERSION_NOT_MATCH:
return 9;
case RemoteStatus.CRC_MANDATORY:
return 10;
case RemoteStatus.SERVER_NOT_DEFINED:
return 11;
case RemoteStatus.INVALID_SERVER_TYPE:
return 12;
case RemoteStatus.FRESH_PASSKEY:
return 13;
case RemoteStatus.EXPECTED_PASSKEY:
return 14;
case RemoteStatus.CLIENT_PARSE_ERROR:
return 15;
case RemoteStatus.WATER_LINE_MANDATORY:
return 16;
case RemoteStatus.WATER_LINE_FIELD_MANDATORY:
return 17;
case RemoteStatus.CHANGE_SUPER_TYPE_MANDATORY:
return 18;
case RemoteStatus.COUNTRY_MANDATORY:
return 19;
case RemoteStatus.INVALID_COUNTRY:
return 20;
case RemoteStatus.STATE_MANDATORY:
return 21;
case RemoteStatus.INVALID_STATE:
return 22;
case RemoteStatus.STATE_OUT_OF_BOUNDS:
return 23;
case RemoteStatus.WRONG_USER_ID:
return 24;
case RemoteStatus.ILLEGAL_TABLE:
return 25;
case RemoteStatus.DUPLICATE_ENTRY:
return 26;
case RemoteStatus.CUSTOM_ERROR:
return 27;
case RemoteStatus.DATABASE_ACCESS_ERROR:
return 28;
case RemoteStatus.PROCESSED_OK:
return 500;
case RemoteStatus.PROCESSED_COMPLETE:
return 501;
case RemoteStatus.LAST_ENTRY_REACHED:
return 502;
}
return null;
}