Manual Reference Source Test
public class | source

BadgeModel

Direct Subclass:

Badge

Model representing a badge.

Constructor Summary

Public Constructor
public

constructor(response: Object)

Member Summary

Public Members
public
public
public
public
public
public
public

featured: Any

public
public
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 badge

response.id Number
  • nullable: false

The id of the badge on the server

response.type String
  • nullable: false

The type of this object ('badges')

response.title String
  • nullable: false

Title

response.based_on String

Must be either count or time

response.cache_token Any

Not sure what this does

response.created_at String

Created at

response.description String

Description

response.disabled_image Any

Image wrapper

response.disabled_image.disabled_image Any

Image Object when the item is not active

response.enabled Boolean

Is this enabled

response.featured Any

Not sure what this means

response.image Any

Image wrapper

response.image.image Any

Image Object

response.position Number

Position in which to sort

response.redemption_points String

Description

response.start_at String

Must be DateTime

response.start_point String

Must be either fixed or event.

response.threshold Number

Must be numeric

response.time_unit String

Must be one of day, month, year.

response.updated_at String

Updated at

Public Members

public basedOn: String source

public cacheToken: String source

public createdAt: String source

public description: String source

public disabledImage: ImageModel source

public enabled: Boolean source

public id: Number source

public image: ImageModel source

public position: Number source

public redemptionPoints: Number source

public startAt: String source

public startPoint: String source

public threshold: Number source

public timeUnit: String source

public title: String source

public updatedAt: String source