com.ibm.wiotp.sdk.device

Class Command<T>

  • All Implemented Interfaces:
    MessageInterface<T>


    public class Command<T>
    extends Object
    implements MessageInterface<T>
    The objects of this class hold the command and the format of the command sent to a device
    This class has only accessors and no mutators and later on might be made final
    • Constructor Detail

      • Command

        public Command(String command,
                       String format,
                       MessageInterface<T> message)
        Note that this class does not have a default constructor
        This class has only accessors and no mutators and later on might be made final
        Parameters:
        command - Actual command in the form of String passed
        format - Format is a String which can contain values such as "json"
        message - Object implementing MessageInterface
        See Also:
        Paho Client Library
    • Method Detail

      • getCommandId

        public String getCommandId()
        Returns the name of the command
        Returns:
        the name of the command
      • getFormat

        public String getFormat()

Copyright © 2019. All rights reserved.