kotlin - 如何在 kotlin 中使用 JasonElement
问题描述
科特林
如何更改下面的代码以接收关键动态?
@FormUrlEncoded
@GET("sections/content?s=1339ccb7-e7e2-41f1-9da3-6f4e95dc9b5a")
fun getContentSection(
@Field("id") id : String,
@Field("type") type : String,
@Field("title") title : String,
@Field("description") description : String,
@Field("thumbnail") thumbnail : String,
@Field("featured") featured : Boolean,
@Field("position") position : Int,
) : Single<Token>
邮差
"keydinamic": [ // ID da Seção
{
"id": "id_movie", // ID do Vídeo/Live
"type": "live", // Tipo de conteúdo
"title": "Conteúdo_8-0-0", // Título do conteúdo
"description": "Description_8-0-0", // Descrição do conteúdo
"thumbnail": "url.png", // Thumbnail/Capa
"featured": true, // É destaque?
"position": 0 // Posição deste conteúdo
},
JAVA json元素
解决方案
推荐阅读
- protractor - 量角器启动 chrome 数据:。url 并且需要将近 10 分钟才能导航到应用程序 URL
- r - 计算 data.table 中事件以来的天数
- python - 使用 scikit-learn 训练模型时出现问题,shell 重新启动
- php - PHP 选择和内部连接表问题。
- javascript - Grunt babel 没有为 IE 转换箭头函数
- json - 如何将 JSON 数据附加到现有 JSON 文件 node.js
- java - 尽管存在密钥,为什么捆绑始终为空?
- javascript - 尝试使用 mkdirp 创建目录时,Node.js 引发错误
- c# - 从带有换行的文本框中获取 LineCount
- php - 我想在 php 中选择最小日期和时间