Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.datenstrudel.bulbs.shared.domain.model.bulb;
 
 import java.util.Map;

Deprecated:
Author(s):
Thomas Wendzinski
public class AppLinkResult {
    //~ Member(s) //////////////////////////////////////////////////////////////
    String apiKey;
    /* BridgeId + '-' + bridge.name => linked*/
    Map<StringBooleanlinkStates = new HashMap<StringBoolean>();
    /* BridgeId + '-' + bridge.name => error message */
    Map<StringStringlinkErrors = new HashMap<StringString>();
    
    
    //~ Construction ///////////////////////////////////////////////////////////
    private AppLinkResult(){}
    public AppLinkResult(String apiKey) {
        this. = apiKey;
    }
    //~ Method(s) //////////////////////////////////////////////////////////////
    

Returns:
the apiKey that authenticates the app that was linked for further requests.
    public String getApiKey() {
        return ;
    }
    public Map<StringBooleangetLinkStates() {
        return ;
    }
    

Parameters:
bridge should contain unique bridge ID concatenated with a dash and its name.
state whether link was established
    public void addLinkState(String bridgeboolean state){
        .put(bridgestate);
    }
    public Map<StringStringgetLinkErrors() {
        return ;
    }
    public void addLinkError(String bridgeString errorMsg){
        .put(bridgeerrorMsg);
    }
    
    //~ Private Artifact(s) ////////////////////////////////////////////////////
    private void setApiKey(String apiKey) {
        this. = apiKey;
    }
    private void setLinkStates(Map<StringBooleanlinkStates) {
        this. = linkStates;
    }
    private void setLinkErrors(Map<StringStringlinkErrors) {
        this. = linkErrors;
    }
    
New to GrepCode? Check out our FAQ X