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

Minor update kotlin

parent e2db05ec
......@@ -4,7 +4,17 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**reason** | **kotlin.String** | Reason why the user reports this video | [optional]
**reason** | **kotlin.String** | Reason why the user reports this video |
**predefinedReasons** | [**inline**](#kotlin.Array<PredefinedReasonsEnum>) | Reason categories that help triage reports | [optional]
**startAt** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | Timestamp in the video that marks the beginning of the report | [optional]
**endAt** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | Timestamp in the video that marks the ending of the report | [optional]
<a name="kotlin.Array<PredefinedReasonsEnum>"></a>
## Enum: predefinedReasons
Name | Value
---- | -----
predefinedReasons | violentOrAbusive, hatefulOrAbusive, spamOrMisleading, privacy, rights, serverRules, thumbnails, captions
......@@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | [**java.math.BigDecimal**](java.math.BigDecimal.md) | | [optional]
**reason** | **kotlin.String** | | [optional]
**predefinedReasons** | [**inline**](#kotlin.Array&lt;PredefinedReasonsEnum&gt;) | | [optional]
**reporterAccount** | [**Account**](Account.md) | | [optional]
**state** | [**VideoAbuseStateConstant**](VideoAbuseStateConstant.md) | | [optional]
**moderationComment** | **kotlin.String** | | [optional]
......@@ -13,4 +14,11 @@ Name | Type | Description | Notes
**createdAt** | **kotlin.String** | | [optional]
<a name="kotlin.Array<PredefinedReasonsEnum>"></a>
## Enum: predefinedReasons
Name | Value
---- | -----
predefinedReasons | violentOrAbusive, hatefulOrAbusive, spamOrMisleading, privacy, rights, serverRules, thumbnails, captions
......@@ -190,7 +190,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **kotlin.String**| The object id or uuid |
**inlineObject5** | [**InlineObject5**](InlineObject5.md)| | [optional]
**inlineObject5** | [**InlineObject5**](InlineObject5.md)| |
### Return type
......
......@@ -306,7 +306,7 @@ try {
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **kotlin.String**| The object id or uuid |
**inlineObject5** | [**InlineObject5**](InlineObject5.md)| | [optional]
**inlineObject5** | [**InlineObject5**](InlineObject5.md)| |
### Return type
......
......@@ -176,14 +176,14 @@ class VideoAbusesApi(basePath: kotlin.String = defaultBasePath) : ApiClient(base
* Report an abuse
*
* @param id The object id or uuid
* @param inlineObject5 (optional)
* @param inlineObject5
* @return void
* @throws UnsupportedOperationException If the API returns an informational or redirection response
* @throws ClientException If the API returns a client error response
* @throws ServerException If the API returns a server error response
*/
@Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class)
fun videosIdAbusePost(id: kotlin.String, inlineObject5: InlineObject5?) : Unit {
fun videosIdAbusePost(id: kotlin.String, inlineObject5: InlineObject5) : Unit {
val localVariableBody: kotlin.Any? = inlineObject5
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()
......
......@@ -320,14 +320,14 @@ class VideosApi(basePath: kotlin.String = defaultBasePath) : ApiClient(basePath)
* Report an abuse
*
* @param id The object id or uuid
* @param inlineObject5 (optional)
* @param inlineObject5
* @return void
* @throws UnsupportedOperationException If the API returns an informational or redirection response
* @throws ClientException If the API returns a client error response
* @throws ServerException If the API returns a server error response
*/
@Throws(UnsupportedOperationException::class, ClientException::class, ServerException::class)
fun videosIdAbusePost(id: kotlin.String, inlineObject5: InlineObject5?) : Unit {
fun videosIdAbusePost(id: kotlin.String, inlineObject5: InlineObject5) : Unit {
val localVariableBody: kotlin.Any? = inlineObject5
val localVariableQuery: MultiValueMap = mutableMapOf()
val localVariableHeaders: MutableMap<String, String> = mutableMapOf()
......
......@@ -16,11 +16,40 @@ import com.squareup.moshi.Json
/**
*
* @param reason Reason why the user reports this video
* @param predefinedReasons Reason categories that help triage reports
* @param startAt Timestamp in the video that marks the beginning of the report
* @param endAt Timestamp in the video that marks the ending of the report
*/
data class InlineObject5 (
/* Reason why the user reports this video */
@Json(name = "reason")
val reason: kotlin.String? = null
)
val reason: kotlin.String,
/* Reason categories that help triage reports */
@Json(name = "predefinedReasons")
val predefinedReasons: kotlin.Array<InlineObject5.PredefinedReasons>? = null,
/* Timestamp in the video that marks the beginning of the report */
@Json(name = "startAt")
val startAt: java.math.BigDecimal? = null,
/* Timestamp in the video that marks the ending of the report */
@Json(name = "endAt")
val endAt: java.math.BigDecimal? = null
) {
/**
* Reason categories that help triage reports
* Values: violentOrAbusive,hatefulOrAbusive,spamOrMisleading,privacy,rights,serverRules,thumbnails,captions
*/
enum class PredefinedReasons(val value: kotlin.String){
@Json(name = "violentOrAbusive") violentOrAbusive("violentOrAbusive"),
@Json(name = "hatefulOrAbusive") hatefulOrAbusive("hatefulOrAbusive"),
@Json(name = "spamOrMisleading") spamOrMisleading("spamOrMisleading"),
@Json(name = "privacy") privacy("privacy"),
@Json(name = "rights") rights("rights"),
@Json(name = "serverRules") serverRules("serverRules"),
@Json(name = "thumbnails") thumbnails("thumbnails"),
@Json(name = "captions") captions("captions");
}
}
......@@ -20,6 +20,7 @@ import com.squareup.moshi.Json
*
* @param id
* @param reason
* @param predefinedReasons
* @param reporterAccount
* @param state
* @param moderationComment
......@@ -32,6 +33,8 @@ data class VideoAbuse (
val id: java.math.BigDecimal? = null,
@Json(name = "reason")
val reason: kotlin.String? = null,
@Json(name = "predefinedReasons")
val predefinedReasons: kotlin.Array<VideoAbuse.PredefinedReasons>? = null,
@Json(name = "reporterAccount")
val reporterAccount: Account? = null,
@Json(name = "state")
......@@ -42,5 +45,22 @@ data class VideoAbuse (
val video: VideoAbuseVideo? = null,
@Json(name = "createdAt")
val createdAt: kotlin.String? = null
)
) {
/**
*
* Values: violentOrAbusive,hatefulOrAbusive,spamOrMisleading,privacy,rights,serverRules,thumbnails,captions
*/
enum class PredefinedReasons(val value: kotlin.String){
@Json(name = "violentOrAbusive") violentOrAbusive("violentOrAbusive"),
@Json(name = "hatefulOrAbusive") hatefulOrAbusive("hatefulOrAbusive"),
@Json(name = "spamOrMisleading") spamOrMisleading("spamOrMisleading"),
@Json(name = "privacy") privacy("privacy"),
@Json(name = "rights") rights("rights"),
@Json(name = "serverRules") serverRules("serverRules"),
@Json(name = "thumbnails") thumbnails("thumbnails"),
@Json(name = "captions") captions("captions");
}
}
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