Manual Reference Source Test
import AdvertisementModel from 'clinical6/src/models/Advertisement.js'
public class | source

AdvertisementModel

Direct Subclass:

Advertisement
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:

NameTypeAttributeDescription
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

Public Members

public action: Number source

public action_object: Object source

public content_id: Number source

public description: String source

public id: Number source

public image: Object source

Properties:

NameTypeAttributeDescription
this.image.url String
this.image.main Object
this.image.main.url String

public tags: Array source

public title: String source