code: function isStyleValid(style){
  
      if(!(style instanceof Style)){
          throw new Error('style is invalid');
      }
  
      if(parseInt(style.ring) !== 0 && parseInt(style.ring) !== 1){
          throw new Error('style.ring is invalid');
      }
  
      if(parseInt(style.vibrate) !== 0 && parseInt(style.vibrate) !== 1){
          throw new Error('style.vibrate is invalid');
      }
  
      if(parseInt(style.lights) !== 0 && parseInt(style.lights) !== 1){
          throw new Error('style.lights is invalid');
      }
  
      if(parseInt(style.iconType) !== 0 && parseInt(style.iconType) !== 1){
          throw new Error('style.iconType is invalid');
      }
  
      if(parseInt(style.builderId) !== style.builderId){
          throw new Error('style.builderId is invalid');
      }
  
      if(parseInt(style.styleId) !== 0 && parseInt(style.styleId) !== 1){
          throw new Error('style.styleId is invalid');
      }
  
      if(parseInt(style.clearable) !== 0 && parseInt(style.clearable) !== 1){
          throw new Error('style.clearable is invalid');
      }
  
      if(parseInt(style.nId) !== style.nId || style.nId < -1){
          throw new Error('style.nId is invalid');
      }
  
  }
docs: 校验AndroidMessage对象的style属性是否合法
  @param style