Skip to content

Instantly share code, notes, and snippets.

@xsobolx
Created May 31, 2018 11:48
Show Gist options
  • Select an option

  • Save xsobolx/219d3620ad4589632a4e00b9da0646ed to your computer and use it in GitHub Desktop.

Select an option

Save xsobolx/219d3620ad4589632a4e00b9da0646ed to your computer and use it in GitHub Desktop.
data class Chat(
@SerializedName("chat_id") val chatId: String,
@SerializedName("created_at") val createdAt: Long,
@SerializedName("updated_at") val updatedAt: Long,
@SerializedName("creator_id") val creatorId: String,
@SerializedName("recipients") val recipients: List<String>,
@SerializedName("unread_messages") val unreadMessages: Int,
@SerializedName("last_message_id") val lastMessageId: String,
@SerializedName("last_message") val lastMessage: String,
@SerializedName("last_message_timestamp") val lastMessageTimeStamp: Long,
@SerializedName("is_channel") val isChannel: Boolean,
@SerializedName("is_anonymous") val isAnonymous: Boolean
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment