Commit e2db05ec authored by Rigel Kent's avatar Rigel Kent
Browse files

Minor update kotlin

parent 8d16fbbe
4.3.0
\ No newline at end of file
4.3.1
\ No newline at end of file
......@@ -133,6 +133,7 @@ Class | Method | HTTP request | Description
## Documentation for Models
- [org.peertube.client.models.Account](docs/Account.md)
- [org.peertube.client.models.AccountAllOf](docs/AccountAllOf.md)
- [org.peertube.client.models.AccountSummary](docs/AccountSummary.md)
- [org.peertube.client.models.Actor](docs/Actor.md)
- [org.peertube.client.models.AddUser](docs/AddUser.md)
......
......@@ -4,6 +4,15 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**url** | **kotlin.String** | | [optional]
**name** | **kotlin.String** | | [optional]
**host** | **kotlin.String** | | [optional]
**followingCount** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**followersCount** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**createdAt** | **kotlin.String** | | [optional]
**updatedAt** | **kotlin.String** | | [optional]
**avatar** | [**Avatar**](Avatar.md) | | [optional]
**userId** | **kotlin.String** | | [optional]
**displayName** | **kotlin.String** | | [optional]
**description** | **kotlin.String** | | [optional]
......
# AccountAllOf
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**userId** | **kotlin.String** | | [optional]
**displayName** | **kotlin.String** | | [optional]
**description** | **kotlin.String** | | [optional]
......@@ -4,10 +4,37 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**uuid** | **kotlin.String** | | [optional]
**createdAt** | **kotlin.String** | | [optional]
**publishedAt** | **kotlin.String** | | [optional]
**updatedAt** | **kotlin.String** | | [optional]
**originallyPublishedAt** | **kotlin.String** | | [optional]
**category** | [**VideoConstantNumber**](VideoConstantNumber.md) | | [optional]
**licence** | [**VideoConstantNumber**](VideoConstantNumber.md) | | [optional]
**language** | [**VideoConstantString**](VideoConstantString.md) | | [optional]
**privacy** | [**VideoPrivacyConstant**](VideoPrivacyConstant.md) | | [optional]
**description** | **kotlin.String** | | [optional]
**duration** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**isLocal** | **kotlin.Boolean** | | [optional]
**name** | **kotlin.String** | | [optional]
**thumbnailPath** | **kotlin.String** | | [optional]
**previewPath** | **kotlin.String** | | [optional]
**embedPath** | **kotlin.String** | | [optional]
**views** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**likes** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**dislikes** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**nsfw** | **kotlin.Boolean** | | [optional]
**waitTranscoding** | **kotlin.Boolean** | | [optional]
**state** | [**VideoStateConstant**](VideoStateConstant.md) | | [optional]
**scheduledUpdate** | [**VideoScheduledUpdate**](VideoScheduledUpdate.md) | | [optional]
**blacklisted** | **kotlin.Boolean** | | [optional]
**blacklistedReason** | **kotlin.String** | | [optional]
**account** | [**Account**](Account.md) | | [optional]
**channel** | [**VideoChannel**](VideoChannel.md) | | [optional]
**userHistory** | [**VideoUserHistory**](VideoUserHistory.md) | | [optional]
**descriptionPath** | **kotlin.String** | | [optional]
**support** | **kotlin.String** | | [optional]
**channel** | [**VideoChannel**](VideoChannel.md) | | [optional]
**account** | [**Account**](Account.md) | | [optional]
**tags** | **kotlin.Array<kotlin.String>** | | [optional]
**files** | [**kotlin.Array<VideoFile>**](VideoFile.md) | | [optional]
**commentsEnabled** | **kotlin.Boolean** | | [optional]
......
......@@ -11,23 +11,51 @@
*/
package org.peertube.client.models
import org.peertube.client.models.AccountAllOf
import org.peertube.client.models.Actor
import org.peertube.client.models.Avatar
import com.squareup.moshi.Json
/**
*
* @param id
* @param url
* @param name
* @param host
* @param followingCount
* @param followersCount
* @param createdAt
* @param updatedAt
* @param avatar
* @param userId
* @param displayName
* @param description
*/
data class Account (
@Json(name = "id")
val id: java.math.BigDecimal? = null,
@Json(name = "url")
val url: kotlin.String? = null,
@Json(name = "name")
val name: kotlin.String? = null,
@Json(name = "host")
val host: kotlin.String? = null,
@Json(name = "followingCount")
val followingCount: java.math.BigDecimal? = null,
@Json(name = "followersCount")
val followersCount: java.math.BigDecimal? = null,
@Json(name = "createdAt")
val createdAt: kotlin.String? = null,
@Json(name = "updatedAt")
val updatedAt: kotlin.String? = null,
@Json(name = "avatar")
val avatar: Avatar? = null,
@Json(name = "userId")
val userId: kotlin.String? = null,
@Json(name = "displayName")
val displayName: kotlin.String? = null,
@Json(name = "description")
val description: kotlin.String? = null
) : Actor
)
/**
* PeerTube
* # Introduction The PeerTube API is built on HTTP(S) and is RESTful. You can use your favorite HTTP/REST library for your programming language to use PeerTube. No official SDK is currently provided, but the spec API is fully compatible with [openapi-generator](https://github.com/OpenAPITools/openapi-generator/wiki/API-client-generator-HOWTO) which generates a client SDK in the language of your choice. See the [Quick Start guide](https://docs.joinpeertube.org/#/api-rest-getting-started) so you can play with the PeerTube API. # Authentication When you sign up for an account, you are given the possibility to generate sessions, and authenticate using this session token. One session token can currently be used at a time. # Errors The API uses standard HTTP status codes to indicate the success or failure of the API call. The body of the response will be JSON in the following format. ``` { \"code\": \"unauthorized_request\", // example inner error code \"error\": \"Token is invalid.\" // example exposed error message } ```
*
* The version of the OpenAPI document: 2.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package org.peertube.client.models
import com.squareup.moshi.Json
/**
*
* @param userId
* @param displayName
* @param description
*/
data class AccountAllOf (
@Json(name = "userId")
val userId: kotlin.String? = null,
@Json(name = "displayName")
val displayName: kotlin.String? = null,
@Json(name = "description")
val description: kotlin.String? = null
)
......@@ -27,10 +27,37 @@ import org.peertube.client.models.VideoUserHistory
import com.squareup.moshi.Json
/**
*
* @param id
* @param uuid
* @param createdAt
* @param publishedAt
* @param updatedAt
* @param originallyPublishedAt
* @param category
* @param licence
* @param language
* @param privacy
* @param description
* @param duration
* @param isLocal
* @param name
* @param thumbnailPath
* @param previewPath
* @param embedPath
* @param views
* @param likes
* @param dislikes
* @param nsfw
* @param waitTranscoding
* @param state
* @param scheduledUpdate
* @param blacklisted
* @param blacklistedReason
* @param account
* @param channel
* @param userHistory
* @param descriptionPath
* @param support
* @param channel
* @param account
* @param tags
* @param files
* @param commentsEnabled
......@@ -40,14 +67,68 @@ import com.squareup.moshi.Json
*/
data class VideoDetails (
@Json(name = "id")
val id: java.math.BigDecimal? = null,
@Json(name = "uuid")
val uuid: kotlin.String? = null,
@Json(name = "createdAt")
val createdAt: kotlin.String? = null,
@Json(name = "publishedAt")
val publishedAt: kotlin.String? = null,
@Json(name = "updatedAt")
val updatedAt: kotlin.String? = null,
@Json(name = "originallyPublishedAt")
val originallyPublishedAt: kotlin.String? = null,
@Json(name = "category")
val category: VideoConstantNumber? = null,
@Json(name = "licence")
val licence: VideoConstantNumber? = null,
@Json(name = "language")
val language: VideoConstantString? = null,
@Json(name = "privacy")
val privacy: VideoPrivacyConstant? = null,
@Json(name = "description")
val description: kotlin.String? = null,
@Json(name = "duration")
val duration: java.math.BigDecimal? = null,
@Json(name = "isLocal")
val isLocal: kotlin.Boolean? = null,
@Json(name = "name")
val name: kotlin.String? = null,
@Json(name = "thumbnailPath")
val thumbnailPath: kotlin.String? = null,
@Json(name = "previewPath")
val previewPath: kotlin.String? = null,
@Json(name = "embedPath")
val embedPath: kotlin.String? = null,
@Json(name = "views")
val views: java.math.BigDecimal? = null,
@Json(name = "likes")
val likes: java.math.BigDecimal? = null,
@Json(name = "dislikes")
val dislikes: java.math.BigDecimal? = null,
@Json(name = "nsfw")
val nsfw: kotlin.Boolean? = null,
@Json(name = "waitTranscoding")
val waitTranscoding: kotlin.Boolean? = null,
@Json(name = "state")
val state: VideoStateConstant? = null,
@Json(name = "scheduledUpdate")
val scheduledUpdate: VideoScheduledUpdate? = null,
@Json(name = "blacklisted")
val blacklisted: kotlin.Boolean? = null,
@Json(name = "blacklistedReason")
val blacklistedReason: kotlin.String? = null,
@Json(name = "account")
val account: Account? = null,
@Json(name = "channel")
val channel: VideoChannel? = null,
@Json(name = "userHistory")
val userHistory: VideoUserHistory? = null,
@Json(name = "descriptionPath")
val descriptionPath: kotlin.String? = null,
@Json(name = "support")
val support: kotlin.String? = null,
@Json(name = "channel")
val channel: VideoChannel? = null,
@Json(name = "account")
val account: Account? = null,
@Json(name = "tags")
val tags: kotlin.Array<kotlin.String>? = null,
@Json(name = "files")
......@@ -60,5 +141,5 @@ data class VideoDetails (
val trackerUrls: kotlin.Array<kotlin.String>? = null,
@Json(name = "streamingPlaylists")
val streamingPlaylists: kotlin.Array<VideoStreamingPlaylists>? = null
) : Video
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment