com.github.signalr4j.client.hubs.HubResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of signalr4j Show documentation
Show all versions of signalr4j Show documentation
A java client library for accessing SignalR WebSocket endpoints.
/*
Copyright (c) Microsoft Open Technologies, Inc.
All Rights Reserved
See License.txt in the project root for license information.
*/
package com.github.signalr4j.client.hubs;
import java.util.Locale;
import java.util.Map;
import com.google.gson.JsonElement;
/**
* Represents the result of a hub operation
*/
public class HubResult {
@com.google.gson.annotations.SerializedName("I")
private String mId;
@com.google.gson.annotations.SerializedName("R")
private JsonElement mResult;
@com.google.gson.annotations.SerializedName("H")
private boolean mIsHubException;
@com.google.gson.annotations.SerializedName("E")
private String mError;
@com.google.gson.annotations.SerializedName("D")
private Object mErrorData;
@com.google.gson.annotations.SerializedName("S")
private Map mState;
public String getId() {
return mId == null ? null : mId.toLowerCase(Locale.getDefault());
}
public void setId(String id) {
mId = id;
}
public JsonElement getResult() {
return mResult;
}
public void setResult(JsonElement result) {
mResult = result;
}
public boolean isHubException() {
return mIsHubException;
}
public void setIsHubException(boolean isHubException) {
mIsHubException = isHubException;
}
public String getError() {
return mError;
}
public void setError(String error) {
mError = error;
}
public Object getErrorData() {
return mErrorData;
}
public void setErrorData(Object errorData) {
mErrorData = errorData;
}
public Map getState() {
return mState;
}
public void setState(Map state) {
mState = state;
}
}