MapTrip SDK Android Manual 9.8.8
PostObject Class Reference

This class handles the post objects, delivered by the navi back end.
More...

+ Inheritance diagram for PostObject:

Public Member Functions

ApiError deleteObject ()
 
boolean equals (Object o)
 
native Date getCreateTime ()
 
native String getEntireXml ()
 
String getFile (final int fileIndex)
 
native int getFilesCount ()
 
native String getFolder ()
 
native String getID ()
 
native Date getReceiveTime ()
 
native String getType ()
 
native boolean isNew ()
 
ApiError markAsRead ()
 

Static Public Member Functions

static ApiError check ()
 
static Iterable< PostObjectgetPostObjects (final boolean onlyNewObjects)
 

Detailed Description

Member Function Documentation

◆ check()

static ApiError check ( )
static

Start a request manually to check, if there is post available on the server. If there is post, you will get a general callback.

◆ deleteObject()

ApiError deleteObject ( )

Deletes this PostObject.

◆ equals()

boolean equals ( Object  o)
inherited

◆ getCreateTime()

native Date getCreateTime ( )

Returns the utc time, when this PostObject was created in the back end.

◆ getEntireXml()

native String getEntireXml ( )

Returns the entire xml string of this object. BUT: The binary (base64-encoded) data is already saved as files and not contained in this xml anymore.

◆ getFile()

String getFile ( final int  fileIndex)

Returns a filename of this PostObject.

◆ getFilesCount()

native int getFilesCount ( )

Returns the number of contained files of this PostObject.

◆ getFolder()

native String getFolder ( )

Returns the folder, where this PostObject is saved.

◆ getID()

native String getID ( )

Returns the unique ID of this PostObject (as a string). This ID is unique on the client and in the entyre navi back end.

◆ getPostObjects()

static Iterable< PostObject > getPostObjects ( final boolean  onlyNewObjects)
static

Get a list of (new) post objects. A post object is new, as long as you not mark it as read.

Parameters
onlyNewObjects- If true, you only get new PostObjects

◆ getReceiveTime()

native Date getReceiveTime ( )

Returns the utc time, when this PostObject is received.

◆ getType()

native String getType ( )

Returns the type of this PostObject (as a string).

◆ isNew()

native boolean isNew ( )

Returns true, is the PostObject was not marked as read before.

◆ markAsRead()

ApiError markAsRead ( )

Removes the 'new' flag from this PostObject.


The documentation for this class was generated from the following file: