Package blue.starry.penicillin.extensions.models.builder

Types

Link copied to clipboard
class CustomDeleteBuilder : JsonBuilder<Stream.Delete> , MutableMap<String, Any?>

Custom payload builder for Stream.Delete.

Link copied to clipboard
class CustomDirectMessageBuilder : JsonBuilder<DirectMessage> , MutableMap<String, Any?>

Custom payload builder for DirectMessage.

Link copied to clipboard
class CustomListBuilder : JsonBuilder<TwitterList> , MutableMap<String, Any?>

Custom payload builder for TwitterList.

Link copied to clipboard
class CustomListEventBuilder(type: UserStreamEvent) : JsonBuilder<Stream.ListEvent> , MutableMap<String, Any?>

Custom payload builder for Stream.ListEvent.

Link copied to clipboard
class CustomStatusBuilder : JsonBuilder<Status> , MutableMap<String, Any?>

Custom payload builder for Status.

Link copied to clipboard
class CustomStatusEventBuilder(type: UserStreamEvent) : JsonBuilder<Stream.StatusEvent> , MutableMap<String, Any?>

Custom payload builder for Stream.StatusEvent.

Link copied to clipboard
class CustomUserBuilder : JsonBuilder<User> , MutableMap<String, Any?>

Custom payload builder for User.

Link copied to clipboard
class CustomUserEventBuilder(type: UserStreamEvent) : JsonBuilder<Stream.UserEvent> , MutableMap<String, Any?>

Custom payload builder for Stream.UserEvent.

Link copied to clipboard
interface JsonBuilder<T : JsonModel> : MutableMap<String, Any?>

Json builder for T.

Functions

Link copied to clipboard
inline fun newDelete(builder: CustomDeleteBuilder.() -> Unit): Stream.Delete

Creates new custom Stream.Delete object.

Link copied to clipboard
inline fun newDirectMessage(builder: CustomDirectMessageBuilder.() -> Unit): DirectMessage

Creates new custom DirectMessage object.

Link copied to clipboard
inline fun newList(builder: CustomListBuilder.() -> Unit): TwitterList

Creates new custom TwitterList object.

Link copied to clipboard
inline fun newListEvent(event: UserStreamEvent, builder: CustomListEventBuilder.() -> Unit): Stream.ListEvent

Creates new custom Stream.ListEvent object.

Link copied to clipboard
inline fun newStatus(builder: CustomStatusBuilder.() -> Unit): Status

Creates new custom Status object.

Link copied to clipboard
inline fun newStatusEvent(event: UserStreamEvent, builder: CustomStatusEventBuilder.() -> Unit): Stream.StatusEvent

Creates new custom Stream.StatusEvent object.

Link copied to clipboard
inline fun newUser(builder: CustomUserBuilder.() -> Unit): User

Creates new custom User object.

Link copied to clipboard
inline fun newUserEvent(event: UserStreamEvent, builder: CustomUserEventBuilder.() -> Unit): Stream.UserEvent

Creates new custom Stream.UserEvent object.