Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BODY
The email body.
|
static java.lang.String |
FROM
The sender of the email
|
static java.lang.String |
PACKAGE_NAME
The package name of the email app.
|
static java.lang.String |
SUBJECT
The subject of the email
|
static java.lang.String |
TIMESTAMP
The timestamp of when the message is sent or received.
|
static java.lang.String |
TO
The receiver of the email
|
EOS, TIME_CREATED
Modifier and Type | Method and Description |
---|---|
static PStreamProvider |
asGmailHistory(long afterTime,
long beforeTime,
int maxNumberOfResults)
Provide a list of Email items from Gmail.
|
static PStreamProvider |
asGmailUpdates(long frequency)
Provide a live stream of Emails from Gmail.
|
containsField, equals, excludeFields, getAsBoolean, getAsDouble, getAsFloat, getAsInteger, getAsLong, getAsString, getValueByField, includeFields, isEndOfStream, setFieldValue, toDebugString, toJson, toMap, toString
@PSItemField(type=java.lang.String.class) public static final java.lang.String BODY
@PSItemField(type=java.lang.String.class) public static final java.lang.String PACKAGE_NAME
@PSItemField(type=java.lang.String.class) public static final java.lang.String FROM
@PSItemField(type=java.lang.String.class) public static final java.lang.String TO
@PSItemField(type=java.lang.String.class) public static final java.lang.String SUBJECT
@PSItemField(type=java.lang.Long.class) public static final java.lang.String TIMESTAMP
public static PStreamProvider asGmailHistory(long afterTime, long beforeTime, int maxNumberOfResults)
afterTime
- the minimum timestamp of emails to getbeforeTime
- the maximum timestamp of emails to getmaxNumberOfResults
- the max number of emails to getpublic static PStreamProvider asGmailUpdates(long frequency)
frequency
- the frequency of checking updates