Improve javadoc for all addons (#15667)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -114,7 +114,7 @@ public final class Utils {
|
||||
* Saves string to file in userdata folder
|
||||
*
|
||||
* @param filename
|
||||
* @param string with content
|
||||
* @param data String with content
|
||||
* @param logger
|
||||
*/
|
||||
public static void saveToFile(String filename, String data, Logger logger) {
|
||||
|
||||
@@ -72,11 +72,11 @@ public class CloudUtil {
|
||||
/**
|
||||
* Generate signature for the request.
|
||||
*
|
||||
* @param method http request method. GET or POST
|
||||
* @param requestUrl the full request url. e.g.: http://api.xiaomi.com/getUser?id=123321
|
||||
* @param signedNonce secret key for encryption.
|
||||
* @param nonce
|
||||
* @param params request params. This should be a TreeMap because the
|
||||
* parameters are required to be in lexicographic order.
|
||||
* @param signedNonce secret key for encryption.
|
||||
* @return hash value for the values provided
|
||||
* @throws MiIoCryptoException
|
||||
*/
|
||||
|
||||
@@ -275,7 +275,7 @@ public abstract class MiIoAbstractHandler extends BaseThingHandler implements Mi
|
||||
* between [] brackets. This to allow for unimplemented commands to be executed
|
||||
*
|
||||
* @param commandString command to be executed
|
||||
* @param cloud server to be used or empty string for direct sending to the device
|
||||
* @param cloudServer server to be used or empty string for direct sending to the device
|
||||
* @return message id
|
||||
*/
|
||||
protected int sendCommand(String commandString, String cloudServer) {
|
||||
@@ -300,9 +300,9 @@ public abstract class MiIoAbstractHandler extends BaseThingHandler implements Mi
|
||||
* Sends commands to the {@link MiIoAsyncCommunication} for transmission to the Mi devices or cloud
|
||||
*
|
||||
* @param command (method) to be queued for execution
|
||||
* @param parameters to be send with the command
|
||||
* @param cloud server to be used or empty string for direct sending to the device
|
||||
* @param sending subdevice or empty string for regular device
|
||||
* @param params to be send with the command
|
||||
* @param cloudServer server to be used or empty string for direct sending to the device
|
||||
* @param sender subdevice or empty string for regular device
|
||||
* @return message id
|
||||
*/
|
||||
protected int sendCommand(String command, String params, String cloudServer, String sender) {
|
||||
|
||||
@@ -20,7 +20,7 @@ import org.eclipse.jdt.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Enum of the unitTypes used in the miio protocol
|
||||
* Used to find the right {@link javax.measure.unitType} given the string of the unitType
|
||||
* Used to find the right {@link javax.measure.Unit} given the string of the unitType
|
||||
*
|
||||
* @author Marcel Verpaalen - Initial contribution
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user