public enum MailListField extends java.lang.Enum<MailListField>
MailListField
- An enumeration of mail list fields as defined in HTTP API's mail sectionEnum Constant and Description |
---|
ACCOUNT_ID
Account identifier
|
ACCOUNT_NAME
Account name
|
ATTACHMENT
Whether message contains attachments
|
BCC
Bcc
|
CC
Cc
|
COLOR_LABEL
Color Label
|
DELETED
Deleted count
|
DISPOSITION_NOTIFICATION_TO
Disposition-Notification-To |
FLAG_SEEN
Flag \SEEN
|
FLAGS
Flags
|
FOLDER
Folder
|
FOLDER_ID
The folder ID
|
FROM
From
|
ID
The mail ID
|
MSG_REF
Message reference
|
NEW
New count
|
PRIORITY
Priority
|
RECEIVED_DATE
Received date
|
SENT_DATE
Sent date
|
SIZE
Size
|
SUBJECT
Subject
|
THREAD_LEVEL
Thread level
|
TO
To
|
TOTAL
Total count
|
UNREAD
Unread count
|
Modifier and Type | Method and Description |
---|---|
static int[] |
getAllFields()
Returns all field values as an array of integers.
|
static MailListField |
getBy(java.lang.String jsonName)
Gets a field by the JSON name
|
int |
getField() |
static MailListField |
getField(int field)
Determines the corresponding
MailListField constant to given int value |
static MailListField[] |
getFields(int[] fields)
Creates an array of
MailListField corresponding to given int values |
java.lang.String |
getKey() |
static MailListField |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MailListField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MailListField ID
public static final MailListField FOLDER_ID
public static final MailListField ATTACHMENT
public static final MailListField FROM
public static final MailListField TO
public static final MailListField CC
public static final MailListField BCC
public static final MailListField SUBJECT
public static final MailListField SIZE
public static final MailListField SENT_DATE
public static final MailListField RECEIVED_DATE
public static final MailListField FLAGS
public static final MailListField THREAD_LEVEL
public static final MailListField DISPOSITION_NOTIFICATION_TO
Disposition-Notification-To
public static final MailListField PRIORITY
public static final MailListField MSG_REF
public static final MailListField COLOR_LABEL
public static final MailListField FOLDER
public static final MailListField FLAG_SEEN
public static final MailListField TOTAL
public static final MailListField NEW
public static final MailListField UNREAD
public static final MailListField DELETED
public static final MailListField ACCOUNT_NAME
public static final MailListField ACCOUNT_ID
public static MailListField[] values()
for (MailListField c : MailListField.values()) System.out.println(c);
public static MailListField valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getField()
int
field valuepublic java.lang.String getKey()
public static final MailListField[] getFields(int[] fields)
MailListField
corresponding to given int
valuesfields
- The int
valuesMailListField
corresponding to given int
valuespublic static final MailListField getField(int field)
MailListField
constant to given int
valuefield
- The int
valueMailListField
constantpublic static final int[] getAllFields()
public static final MailListField getBy(java.lang.String jsonName)
jsonName
- identifier