List

data class List(id: String?, name: String?)

The list object contains Twitter Lists metadata describing the referenced List. The List object is the primary object returned in the List lookup endpoint. When requesting additional List fields on this endpoint, simply use the fields' parameter list.fields. At the moment, the List object cannot be found as a child object from any other data object. However, user objects can be found and expanded in the user resource. These objects are available for expansion by adding owner_id to the expansions query parameter. Use the expansion with the field parameter: list.fields when requesting additional fields to complete the primary List object and user.fields to complete the expansion object.

Constructors

Link copied to clipboard
fun List(id: String? = null, name: String? = null)

Properties

Link copied to clipboard
@SerializedName(value = "created_at")
var createdAt: String? = null

The UTC datetime that the List was created on Twitter.

Link copied to clipboard
@SerializedName(value = "description")
var description: String? = null

A brief description to let users know about the List.

Link copied to clipboard
@SerializedName(value = "follower_count")
var followerCount: Int = 0

Shows how many users follow this List,

Link copied to clipboard
@SerializedName(value = "id")
var id: String? = null

The unique identifier of this List.

Link copied to clipboard
@SerializedName(value = "member_count")
var memberCount: Int = 0

Shows how many members are part of this List.

Link copied to clipboard
@SerializedName(value = "name")
var name: String? = null

The name of the List, as defined when creating the List.

Link copied to clipboard
@SerializedName(value = "owner_id")
var ownerId: String? = null

Unique identifier of this List's owner.

Link copied to clipboard
@SerializedName(value = "private")
var private: Boolean = false

Indicates if the List is private.