import org.eclipse.jdt.annotation.NonNullByDefault;
import org.eclipse.jdt.annotation.Nullable;
-import org.jetbrains.annotations.NotNull;
import org.openhab.binding.heos.internal.json.dto.HeosResponseObject;
import org.openhab.binding.heos.internal.json.payload.BrowseResult;
import org.openhab.binding.heos.internal.json.payload.Group;
return getBrowseResults(PLAYLISTS_SID);
}
- @NotNull
private List<BrowseResult> getBrowseResults(String sourceIdentifier) throws IOException, ReadException {
HeosResponseObject<BrowseResult[]> response = browseSource(sourceIdentifier);
logger.debug("Response: {}", response);
/**
* Get all the players known by HEOS
- *
+ *
* @return
*/
public HeosResponseObject<Player[]> getPlayers() throws IOException, ReadException {
/**
* Get all the groups known by HEOS
- *
+ *
* @return
*/
public HeosResponseObject<Group[]> getGroups() throws IOException, ReadException {
*/
package org.openhab.binding.miio.internal.cloud;
-import org.jetbrains.annotations.NotNull;
-
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
@Expose
private Object captchaUrl;
- public @NotNull String getSsecurity() {
+ public String getSsecurity() {
return ssecurity != null ? ssecurity : "";
}
- public @NotNull String getUserId() {
+ public String getUserId() {
return userId != null ? userId : "";
}
- public @NotNull String getcUserId() {
+ public String getcUserId() {
return cUserId != null ? cUserId : "";
}
- public @NotNull String getPassToken() {
+ public String getPassToken() {
return passToken != null ? passToken : "";
}
- public @NotNull String getLocation() {
+ public String getLocation() {
return location != null ? location : "";
}
import java.util.concurrent.CompletableFuture;
import org.eclipse.jdt.annotation.NonNullByDefault;
-import org.jetbrains.annotations.NotNull;
import org.openhab.binding.revogi.internal.udp.UdpResponseDTO;
import org.openhab.binding.revogi.internal.udp.UdpSenderService;
import org.slf4j.Logger;
return responses.thenApply(this::getStatus);
}
- @NotNull
private StatusDTO getStatus(final List<UdpResponseDTO> singleResponse) {
return singleResponse.stream()
.filter(response -> !response.getAnswer().isEmpty() && response.getAnswer().contains(VERSION_STRING))
import java.util.concurrent.CompletableFuture;
import org.eclipse.jdt.annotation.NonNullByDefault;
-import org.jetbrains.annotations.NotNull;
import org.openhab.binding.revogi.internal.udp.UdpResponseDTO;
import org.openhab.binding.revogi.internal.udp.UdpSenderService;
import org.slf4j.Logger;
return responses.thenApply(this::getSwitchResponse);
}
- @NotNull
private SwitchResponseDTO getSwitchResponse(final List<UdpResponseDTO> singleResponse) {
return singleResponse.stream().filter(response -> !response.getAnswer().isEmpty())
.map(response -> deserializeString(response.getAnswer()))