AdvertisementModel
Direct Subclass:
this class was deprecated.
Model representing a advertisement.
Constructor Summary
| Public Constructor | ||
| public |
constructor(response: Object) |
|
Member Summary
| Public Members | ||
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
| public |
|
|
Public Constructors
public constructor(response: Object) source
Params:
| Name | Type | Attribute | Description |
| response | Object | JSON formatted response of a single advertisement |
|
| response.action | Number | The action the device needs to execute when the ad is tapped |
|
| response.action_object | Object | Complementary information for the action, this value depends on the action |
|
| response.content_id | Number | The content_id of the image |
|
| response.description | String | The description of the image |
|
| response.id | Number | The id of the image |
|
| response.image | Object | The icon of the advertisement |
|
| response.image.image | Object | The url of the advertisement |
|
| response.tags | Array | An Array of tags, |
|
| response.title | String | The title of the advertisement, this should be shown in the device |
Manual
Reference
Source
Test
