Account queries: Add option to include secondary emails

If an account is suggested due to a match on a secondary email address
the UI needs to have the secondary email address available to show it
in the suggestion (see Ife5e3 for more details).

Change-Id: I23c72630f54250e7ac0a7ff26d4b28e8a6af0df3
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-07-01 13:33:32 +02:00
parent aedc6626ec
commit 2eadde4d9f
9 changed files with 140 additions and 25 deletions

View File

@@ -20,7 +20,10 @@ import java.util.Set;
/** Output options available for retrieval of account details. */
public enum ListAccountsOption {
/** Return detailed account properties. */
DETAILS(0);
DETAILS(0),
/** Return all secondary emails. */
ALL_EMAILS(1);
private final int value;

View File

@@ -20,6 +20,7 @@ public class AccountInfo {
public Integer _accountId;
public String name;
public String email;
public List<String> secondaryEmails;
public String username;
public List<AvatarInfo> avatars;
public Boolean _moreAccounts;