All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.chrisdempewolf.pinterest.fields.user.UserFields.kt Maven / Gradle / Ivy

There is a newer version: 4.2.1
Show newest version
package com.chrisdempewolf.pinterest.fields.user

import com.chrisdempewolf.pinterest.fields.BaseFields
import com.chrisdempewolf.pinterest.fields.Fields
import com.chrisdempewolf.pinterest.fields.pin.PinFields

class UserFields : BaseFields() {
    override fun withAll(): UserFields {
        return withID()
                .withBio()
                .withCounts()
                .withCretedAt()
                .withFirstName()
                .withImage()
                .withLastName()
                .withURL()
                .withUsername()
    }

    fun withID(): UserFields {
        this.fields = fields.plus("id")
        return this
    }

    fun withUsername(): UserFields {
        this.fields = fields.plus("username")
        return this
    }

    fun withURL(): UserFields {
        this.fields = fields.plus("url")
        return this
    }

    fun withFirstName(): UserFields {
        this.fields = fields.plus("first_name")
        return this
    }

    fun withLastName(): UserFields {
        this.fields = fields.plus("last_name")
        return this
    }

    fun withBio(): UserFields {
        this.fields = fields.plus("bio")
        return this
    }

    fun withCretedAt(): UserFields {
        this.fields = fields.plus("created_at")
        return this
    }

    fun withCounts(): UserFields {
        this.fields = fields.plus("counts")
        return this
    }

    fun withImage(): UserFields {
        this.fields = fields.plus("image")
        return this
    }

    fun with(field: String): UserFields {
        fields.plus(field)
        return this
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy