Rating.Builder

class Rating.Builder


Builder class for Rating.

Summary

Public constructors

Public functions

Rating!
Rating.Builder!

Sets the count of the rating. e.g. 1.2k, 12k etc

Rating.Builder!

Sets the count of the rating.

Rating.Builder!

Sets the current value of the rating.

Rating.Builder!

Sets the max value of the rating.

Public constructors

Builder

Builder()

Public functions

build

fun build(): Rating!

setCount

@CanIgnoreReturnValue
fun setCount(count: String!): Rating.Builder!

Sets the count of the rating. e.g. 1.2k, 12k etc

Optional.

setCountValue

@CanIgnoreReturnValue
fun setCountValue(countValue: Long): Rating.Builder!

Sets the count of the rating.

Optional.

setCurrentValue

@CanIgnoreReturnValue
fun setCurrentValue(currentValue: Double): Rating.Builder!

Sets the current value of the rating.

Required.

setMaxValue

@CanIgnoreReturnValue
fun setMaxValue(maxValue: Double): Rating.Builder!

Sets the max value of the rating.

Required.