Skip to main content

Event

Event

Type: public class

A class that defines an event

Event(int id, @NonNull String name, @NonNull Pinpoint pinpoint, @NonNull EventDate [] dates)

Type: public

Create a Wemap Event

Parameter NameTypeDescription
idintthe event id
name@NonNullthe event name
pinpoint@NonNullthe event pinpoint

Event(int id, @NonNull String name, @NonNull Pinpoint pinpoint, @NonNull EventDate [] dates, @Nullable String description)

Type: public

Create a Wemap Event

Parameter NameTypeDescription
idintthe event id
name@NonNullthe event name
pinpoint@NonNullthe event pinpoint
description@NonNullthe event description

Event(int id, @NonNull String name, @NonNull Pinpoint pinpoint, @NonNull EventDate [] dates, @Nullable String description, @Nullable JSONObject externalData)

Type: public

Create a Wemap Event

Parameter NameTypeDescription
idintthe event id
name@NonNullthe event name
pinpoint@NonNullthe event pinpoint
description@NonNullthe event description
externalData@Nullablethe event external data

Event(int id, @NonNull String name, @NonNull Pinpoint pinpoint, @NonNull EventDate [] dates, @Nullable String description, @Nullable JSONObject externalData, @Nullable String created, @Nullable String updated)

Type: private

Create a Wemap Event

Parameter NameTypeDescription
idintthe event id
name@NonNullthe event name
pinpoint@NonNullthe event pinpoint
description@NonNullthe event description
externalData@Nullablethe event external data
created@Nullablethe event timestamp creation
updated@Nullablethe event timestamp last update

getId()

Type: public int

Get the event id.

Returned Value: the id

getName()

Type: @NonNull public [String](https://developer.android.com/reference/java/lang/String)

Get the event name.

Returned Value: the name

getPinpoint()

Type: @NonNull public

Get the event pinpoint.

Returned Value: the pinpoint

getDates()

Type: @NonNull public

Get the event dates

Returned Value: the event dates

getDescription()

Type: @Nullable public [String](https://developer.android.com/reference/java/lang/String)

Get the event description.

Returned Value: the description

getExternalData()

Type: @NonNull public JSONObject

Get the external data.

Returned Value: the external data.