#  Copyright Qantom software private limited - all rights reserved
# No part of this code may be edited or used without the written 
# permission of Qantom's management. 

from WiNoThing import WiThing

__author__ = "raghu"
__date__ = "$April 20, 2018 00:15:57 PM$"

class WiPushButton(WiThing):
  
  def __init__(self, host, name=None): 
    WiThing.__init__(self,host,name);
   
  def is_pushed(self):
    response =  WiThing.invoke_rest(self, "isPushed") ;
    if (response == "1"):
      return True ; 
    else :
      return False ; 