// -------------------------------------------------------------------------------- public void login(String user, String apiKey) { try { session = new MSession(user, apiKey); session.init(); state = STATE_LOGIN_SUCCESS; notify1(); zoneMap = session.getZone(); state = STATE_ZONE_SUCCESS; notify1(); } catch (Exception e) { handleError(e); } }
// -------------------------------------------------------------------------------- public void onDomainSelect(Map domainData) { try { recordMap = session.getRecord((String) domainData.get("name")); state = STATE_RECORD_SUCCESS; notify1(); } catch (Exception e) { handleError(e); } }
// -------------------------------------------------------------------------------- public void updateRecord(String recordId, String fieldName, String value) { try { recordMap = session.updateRecord(recordId, fieldName, value); state = STATE_RECORD_SUCCESS; notify1(); } catch (Exception e) { handleError(e); } }