Home Identifier Source Test Repository
public class | source

Update

Constructor Summary

Public Constructor
public

constructor(update: *)

Member Summary

Public Members
public
public

promise: *

Method Summary

Public Methods
public

destroy(callback: Function)

Deletes a status update from the user's buffer

public

edit(params: Object, callback: Function)

Updates the current status update on the API, then modifies the object to match the edit

public

getByID(update_id: Integer, callback: Function)

Retrieves a singular update with a given ID

public

getInteractions(params: Object, callback: Function)

Gets interactions (e.g.

public

moveToTop(callback: Function)

Moves the current update to the top of the Buffer queue

public

save(callback: Function)

Saves a status update to the user's buffer

public

share(callback: Function)

Instantly shares an update to the selected account

Public Constructors

public constructor(update: *) source

Params:

NameTypeAttributeDescription
update *

Public Members

public destroyed: boolean source

public promise: * source

Public Methods

public destroy(callback: Function) source

Deletes a status update from the user's buffer

Params:

NameTypeAttributeDescription
callback Function

The callback to run when the request has been fulfilled

public edit(params: Object, callback: Function) source

Updates the current status update on the API, then modifies the object to match the edit

Params:

NameTypeAttributeDescription
params Object

The parameters to update

callback Function

The callback to run when the request has been fulfilled

public getByID(update_id: Integer, callback: Function) source

Retrieves a singular update with a given ID

Params:

NameTypeAttributeDescription
update_id Integer

The ID of the update to retrieve

callback Function

The callback to run when the request has been fulfilled

public getInteractions(params: Object, callback: Function) source

Gets interactions (e.g. retweets) from an update with a given ID

Params:

NameTypeAttributeDescription
params Object

A list of params to be appended to the URL.

callback Function

The callback to run when the request has been fulfilled

public moveToTop(callback: Function) source

Moves the current update to the top of the Buffer queue

Params:

NameTypeAttributeDescription
callback Function

The callback to run when the request has been fulfilled

public save(callback: Function) source

Saves a status update to the user's buffer

Params:

NameTypeAttributeDescription
callback Function

The callback to run when the request has been fulfilled

public share(callback: Function) source

Instantly shares an update to the selected account

Params:

NameTypeAttributeDescription
callback Function

The callback to run when the request has been fulfilled