com.chrisdempewolf.pinterest.fields.board.BoardFields.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pinterest-sdk Show documentation
Show all versions of pinterest-sdk Show documentation
An SDK for Pinterest's version 1.0 API.
package com.chrisdempewolf.pinterest.fields.board
import com.chrisdempewolf.pinterest.fields.BaseFields
class BoardFields : BaseFields() {
override fun withAll(): BoardFields {
return withCounts()
.withCreatedAt()
.withDescription()
.withID()
.withImage()
.withName()
.withURL()
}
fun withID(): BoardFields {
fields = fields.plus("id")
return this
}
fun withName(): BoardFields {
fields = fields.plus("name")
return this
}
fun withURL(): BoardFields {
fields = fields.plus("url")
return this
}
fun withDescription(): BoardFields {
fields = fields.plus("description")
return this
}
fun withCreatedAt(): BoardFields {
fields = fields.plus("created_at")
return this
}
fun withCounts(): BoardFields {
fields = fields.plus("counts")
return this
}
fun withImage(): BoardFields {
fields = fields.plus("image")
return this
}
}