com.ibm.wiotp.sdk.gateway

Class Notification



  • public class Notification
    extends Object
    The Notification class
    • Constructor Detail

      • Notification

        public Notification(String type,
                            String id,
                            org.eclipse.paho.client.mqttv3.MqttMessage msg)
                     throws UnsupportedEncodingException
        Note that this class does not have a default constructor
        Parameters:
        type - Object of String which denotes command type
        id - Object of String which denotes command id
        msg - Object of MqttMessage which denotes actual message
        Throws:
        UnsupportedEncodingException - When the format is not UTF-8
    • Method Detail

      • getDeviceType

        public String getDeviceType()
      • getDeviceId

        public String getDeviceId()
      • getMessage

        public org.eclipse.paho.client.mqttv3.MqttMessage getMessage()

Copyright © 2019. All rights reserved.