AbstractParentalRatingLocal

AbstractParentalRatingLocal ⇐ Class

Kind: static abstract class
Extends: Class
See: https://en.wikipedia.org/wiki/Motion_picture_content_rating_system

AbstractParentalRatingLocal()

Abstract helper to localise parental rating of a content. Unified parental rating is a set of values (ages) between 0 and 21 evaluating the content and reporting the suitability of contents for children, teenagers, or adults.

__parentalRatings : Array.<ParentalRating>

Kind: static property of AbstractParentalRatingLocal

getParentalRatingsSettingsList() ⇒ Array.<ParentalRating>

Returns the choice list of parental ratings in the Settings, minus the isInactive ones, ordered by value.

Kind: static method of AbstractParentalRatingLocal
Returns: Array.<ParentalRating> - The choice list of native ratings.

getUnifiedParentalRating(nativeRating) ⇒ Number

Allows to convert a localised rating to the unified one

Kind: static method of AbstractParentalRatingLocal
Returns: Number - The corresponding unified rating

ParamTypeDescription
nativeRatingNumber | String

Native rating to convert

getNativeParentalRating(unifiedRating) ⇒ String

Allows to convert a unified rating to the native one

Kind: static method of AbstractParentalRatingLocal
Returns: String - The corresponding native rating

ParamTypeDescription
unifiedRatingNumber

Unified rating to convert

_getParentalRatingsSettingsList() ⇒ Array.<ParentalRating>

Returns the choice list of native parental ratings, minus the isInactive ones, ordered by value.

Kind: static abstract method of AbstractParentalRatingLocal
Returns: Array.<ParentalRating> - The choice list of native ratings.

_getUnifiedParentalRating(nativeRating) ⇒ Number

Allows to convert a localised rating to the unified one

Kind: static abstract method of AbstractParentalRatingLocal
Returns: Number - The corresponding unified rating

ParamTypeDescription
nativeRatingNumber | String

Native rating to convert

_getNativeParentalRating(unifiedRating) ⇒ String

Allows to convert a unified rating to the native one

Kind: static abstract method of AbstractParentalRatingLocal
Returns: String - The corresponding native rating

ParamTypeDescription
unifiedRatingNumber

Unified rating to convert