/** * Builds an instance of {@link FullAccount} configured with this * builder's values * * @return new instance of {@link FullAccount} */ public FullAccount build() { return new FullAccount(accountId, name, email, emailVerified, disabled, locale, referralLink, isPaired, accountType, rootInfo, profilePhotoUrl, country, team, teamMemberId); } }
throw new JsonParseException(p, "Required field \"root_info\" missing."); value = new FullAccount(f_accountId, f_name, f_email, f_emailVerified, f_disabled, f_locale, f_referralLink, f_isPaired, f_accountType, f_rootInfo, f_profilePhotoUrl, f_country, f_team, f_teamMemberId); expectEndObject(p); StoneDeserializerLogger.log(value, value.toStringMultiline()); return value;
private void displayCloudStatus() { String message = "Working locally."; String displayName; // Check Dropbox connection DbxClientV2 client = DbxUtil.getDbxClient(); if (client != null) { try { displayName = client.users().getCurrentAccount().getName().getDisplayName(); message = "Connected to Dropbox account as " + displayName + "."; Cloud.getInstance().setStatus(Cloud.Status.DBX_CONNECTED, " (" + displayName + ")"); } catch (DbxException ex) { // simply stay working locally. Cloud.getInstance().setStatus(Cloud.Status.DISCONNECTED); } } LOGGER.log(message); }
String additional = ""; if(client != null) { additional = " (" + client.users().getCurrentAccount().getName().getDisplayName() + ")";