public final class TimelineItem extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Mirror API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
TimelineItem() |
| Modifier and Type | Method and Description |
|---|---|
TimelineItem |
clone() |
List<Attachment> |
getAttachments()
A list of media attachments associated with this item.
|
String |
getBundleId()
The bundle ID for this item.
|
String |
getCanonicalUrl()
A canonical URL pointing to the canonical/high quality version of the data represented by the
timeline item.
|
DateTime |
getCreated()
The time at which this item was created, formatted according to RFC 3339.
|
Contact |
getCreator()
The user or group that created this item.
|
DateTime |
getDisplayTime()
The time that should be displayed when this item is viewed in the timeline, formatted according
to RFC 3339.
|
String |
getEtag()
ETag for this item.
|
String |
getHtml()
HTML content for this item.
|
String |
getId()
The ID of the timeline item.
|
String |
getInReplyTo()
If this item was generated as a reply to another item, this field will be set to the ID of the
item being replied to.
|
Boolean |
getIsBundleCover()
Whether this item is a bundle cover.
|
Boolean |
getIsDeleted()
When true, indicates this item is deleted, and only the ID property is set.
|
Boolean |
getIsPinned()
When true, indicates this item is pinned, which means it's grouped alongside "active" items
like navigation and hangouts, on the opposite side of the home screen from historical (non-
pinned) timeline items.
|
String |
getKind()
The type of resource.
|
Location |
getLocation()
The geographic location associated with this item.
|
List<MenuItem> |
getMenuItems()
A list of menu items that will be presented to the user when this item is selected in the
timeline.
|
NotificationConfig |
getNotification()
Controls how notifications for this item are presented on the device.
|
Integer |
getPinScore()
For pinned items, this determines the order in which the item is displayed in the timeline,
with a higher score appearing closer to the clock.
|
List<Contact> |
getRecipients()
A list of users or groups that this item has been shared with.
|
String |
getSelfLink()
A URL that can be used to retrieve this item.
|
String |
getSourceItemId()
Opaque string you can use to map a timeline item to data in your own service.
|
String |
getSpeakableText()
The speakable version of the content of this item.
|
String |
getSpeakableType()
A speakable description of the type of this item.
|
String |
getText()
Text content of this item.
|
String |
getTitle()
The title of this item.
|
DateTime |
getUpdated()
The time at which this item was last modified, formatted according to RFC 3339.
|
TimelineItem |
set(String fieldName,
Object value) |
TimelineItem |
setAttachments(List<Attachment> attachments)
A list of media attachments associated with this item.
|
TimelineItem |
setBundleId(String bundleId)
The bundle ID for this item.
|
TimelineItem |
setCanonicalUrl(String canonicalUrl)
A canonical URL pointing to the canonical/high quality version of the data represented by the
timeline item.
|
TimelineItem |
setCreated(DateTime created)
The time at which this item was created, formatted according to RFC 3339.
|
TimelineItem |
setCreator(Contact creator)
The user or group that created this item.
|
TimelineItem |
setDisplayTime(DateTime displayTime)
The time that should be displayed when this item is viewed in the timeline, formatted according
to RFC 3339.
|
TimelineItem |
setEtag(String etag)
ETag for this item.
|
TimelineItem |
setHtml(String html)
HTML content for this item.
|
TimelineItem |
setId(String id)
The ID of the timeline item.
|
TimelineItem |
setInReplyTo(String inReplyTo)
If this item was generated as a reply to another item, this field will be set to the ID of the
item being replied to.
|
TimelineItem |
setIsBundleCover(Boolean isBundleCover)
Whether this item is a bundle cover.
|
TimelineItem |
setIsDeleted(Boolean isDeleted)
When true, indicates this item is deleted, and only the ID property is set.
|
TimelineItem |
setIsPinned(Boolean isPinned)
When true, indicates this item is pinned, which means it's grouped alongside "active" items
like navigation and hangouts, on the opposite side of the home screen from historical (non-
pinned) timeline items.
|
TimelineItem |
setKind(String kind)
The type of resource.
|
TimelineItem |
setLocation(Location location)
The geographic location associated with this item.
|
TimelineItem |
setMenuItems(List<MenuItem> menuItems)
A list of menu items that will be presented to the user when this item is selected in the
timeline.
|
TimelineItem |
setNotification(NotificationConfig notification)
Controls how notifications for this item are presented on the device.
|
TimelineItem |
setPinScore(Integer pinScore)
For pinned items, this determines the order in which the item is displayed in the timeline,
with a higher score appearing closer to the clock.
|
TimelineItem |
setRecipients(List<Contact> recipients)
A list of users or groups that this item has been shared with.
|
TimelineItem |
setSelfLink(String selfLink)
A URL that can be used to retrieve this item.
|
TimelineItem |
setSourceItemId(String sourceItemId)
Opaque string you can use to map a timeline item to data in your own service.
|
TimelineItem |
setSpeakableText(String speakableText)
The speakable version of the content of this item.
|
TimelineItem |
setSpeakableType(String speakableType)
A speakable description of the type of this item.
|
TimelineItem |
setText(String text)
Text content of this item.
|
TimelineItem |
setTitle(String title)
The title of this item.
|
TimelineItem |
setUpdated(DateTime updated)
The time at which this item was last modified, formatted according to RFC 3339.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic List<Attachment> getAttachments()
null for nonepublic TimelineItem setAttachments(List<Attachment> attachments)
attachments - attachments or null for nonepublic String getBundleId()
null for nonepublic TimelineItem setBundleId(String bundleId)
bundleId - bundleId or null for nonepublic String getCanonicalUrl()
null for nonepublic TimelineItem setCanonicalUrl(String canonicalUrl)
canonicalUrl - canonicalUrl or null for nonepublic DateTime getCreated()
null for nonepublic TimelineItem setCreated(DateTime created)
created - created or null for nonepublic Contact getCreator()
null for nonepublic TimelineItem setCreator(Contact creator)
creator - creator or null for nonepublic DateTime getDisplayTime()
null for nonepublic TimelineItem setDisplayTime(DateTime displayTime)
displayTime - displayTime or null for nonepublic String getEtag()
null for nonepublic TimelineItem setEtag(String etag)
etag - etag or null for nonepublic String getHtml()
null for nonepublic TimelineItem setHtml(String html)
html - html or null for nonepublic String getId()
null for nonepublic TimelineItem setId(String id)
id - id or null for nonepublic String getInReplyTo()
null for nonepublic TimelineItem setInReplyTo(String inReplyTo)
inReplyTo - inReplyTo or null for nonepublic Boolean getIsBundleCover()
null for nonepublic TimelineItem setIsBundleCover(Boolean isBundleCover)
isBundleCover - isBundleCover or null for nonepublic Boolean getIsDeleted()
null for nonepublic TimelineItem setIsDeleted(Boolean isDeleted)
isDeleted - isDeleted or null for nonepublic Boolean getIsPinned()
null for nonepublic TimelineItem setIsPinned(Boolean isPinned)
isPinned - isPinned or null for nonepublic String getKind()
null for nonepublic TimelineItem setKind(String kind)
kind - kind or null for nonepublic Location getLocation()
null for nonepublic TimelineItem setLocation(Location location)
location - location or null for nonepublic List<MenuItem> getMenuItems()
null for nonepublic TimelineItem setMenuItems(List<MenuItem> menuItems)
menuItems - menuItems or null for nonepublic NotificationConfig getNotification()
null for nonepublic TimelineItem setNotification(NotificationConfig notification)
notification - notification or null for nonepublic Integer getPinScore()
null for nonepublic TimelineItem setPinScore(Integer pinScore)
pinScore - pinScore or null for nonepublic List<Contact> getRecipients()
null for nonepublic TimelineItem setRecipients(List<Contact> recipients)
recipients - recipients or null for nonepublic String getSelfLink()
null for nonepublic TimelineItem setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getSourceItemId()
null for nonepublic TimelineItem setSourceItemId(String sourceItemId)
sourceItemId - sourceItemId or null for nonepublic String getSpeakableText()
null for nonepublic TimelineItem setSpeakableText(String speakableText)
speakableText - speakableText or null for nonepublic String getSpeakableType()
null for nonepublic TimelineItem setSpeakableType(String speakableType)
speakableType - speakableType or null for nonepublic String getText()
null for nonepublic TimelineItem setText(String text)
text - text or null for nonepublic String getTitle()
null for nonepublic TimelineItem setTitle(String title)
title - title or null for nonepublic DateTime getUpdated()
null for nonepublic TimelineItem setUpdated(DateTime updated)
updated - updated or null for nonepublic TimelineItem set(String fieldName, Object value)
set in class GenericJsonpublic TimelineItem clone()
clone in class GenericJson