Class Power#getOffTimerList

Power

Class Summary
Constructor Attributes Constructor Name and Description
 
Power#getOffTimerList(successCallback, errorCallback)
Gets 'off timer' list.

Class Detail

Power#getOffTimerList(successCallback, errorCallback)
Gets 'off timer' list.
// Javascript code
function getOffTimerList () {
  function successCb(cbObject) {
     var timerList = cbObject.timerList;
     for ( var i = 0; i < timerList.length; i++) {
        console.log("timerList[" + i + "] : " + JSON.stringify(timerList[i]));
        console.log("timerList[" + i + "].hour : " + timerList[i].hour);
        console.log("timerList[" + i + "].minute : " + timerList[i].minute);
        console.log("timerList[" + i + "].week : " + timerList[i].week);
     }

     // Do something
        ...
  }

  function failureCb(cbObject) {
     var errorCode = cbObject.errorCode;
     var errorText = cbObject.errorText;
     console.log ("Error Code [" + errorCode + "]: " + errorText);
  }

  var power = new Power();
  power.getOffTimerList(successCb, failureCb);
}
Parameters:
{Function} successCallback
success callback function.
{Function} errorCallback
failure callback function.
Since:
1.0
Returns:

{Object} list of timer object.

PropertyTypeDescription
timerList[]ArrayAn array with the timer information object as its elements.
timerList[].hourNumberhour (0~23)
timerList[].minuteNumberminute (0~59)
timerList[].weekNumberweek Power.TimerWeek
See:
Power.setOffTimer()