# wx.checkIsUserAdvisedToRest(Object object)

Start from base library version 1.9.97. Please remaining backward compatible.

Determines whether the user needs a rest according to the user's playtime of the day.

# Parameters

# Object object

Attribute Type Default Required Description
todayPlayedTime number Yes The time spent playing the game today (in sec)
success function No The callback function for a successful API call
fail function No Callback function for failed API call
complete function No Callback function used when API call completed (always executed whether call succeeds or fails)

# object.success callback function

# Parameters
# Object res
Property Type Description
result boolean Whether to send a rest reminder to the user