ThumbRating

Added in 1.0.0
Deprecated in 1.3.0

class ThumbRating : Rating


A class for rating with a single degree of rating, "thumb up" vs "thumb down".

Summary

Public constructors

Creates a unrated ThumbRating instance.

ThumbRating(thumbIsUp: Boolean)

Creates a ThumbRating instance.

Public functions

Boolean
equals(obj: Any!)
Int
Boolean

Returns whether there is a rating value available.

Boolean

Returns whether the rating is "thumb up".

String!

Public constructors

ThumbRating

Added in 1.0.0
Deprecated in 1.3.0
ThumbRating()

Creates a unrated ThumbRating instance.

ThumbRating

Added in 1.0.0
Deprecated in 1.3.0
ThumbRating(thumbIsUp: Boolean)

Creates a ThumbRating instance.

Parameters
thumbIsUp: Boolean

true for a "thumb up" rating, false for "thumb down".

Public functions

equals

fun equals(obj: Any!): Boolean

hashCode

fun hashCode(): Int

isRated

Added in 1.0.0
Deprecated in 1.3.0
fun isRated(): Boolean

Returns whether there is a rating value available.

Returns
Boolean

true if there is an available rating value.

isThumbUp

Added in 1.0.0
Deprecated in 1.3.0
fun isThumbUp(): Boolean

Returns whether the rating is "thumb up".

Returns
Boolean

true if the rating is "thumb up", false if the rating is "thumb down", or if it is unrated.

toString

fun toString(): String!