Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

add some additional parameters to Instance #66

Merged
merged 1 commit into from
Sep 5, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.google.gson.annotations.SerializedName
/**
* see more https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#instance
*/
class Instance(
data class Instance(
@SerializedName("uri")
val uri: String = "",

Expand All @@ -19,5 +19,14 @@ class Instance(
val email: String = "",

@SerializedName("version")
val version: String = "") {
val version: String = "",

@SerializedName("urls")
val urls: InstanceUrls? = null,

@SerializedName("languages")
val languages: List<String> = emptyList(),

@SerializedName("contact_account")
val contact_account: Account? = null) {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.sys1yagi.mastodon4j.api.entity

import com.google.gson.annotations.SerializedName

/**
* see more https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md#instance
*/
data class InstanceUrls(
@SerializedName("streaming_api")
val streamingApi: String = "") {
}