donky.microsoft.aspnet.signalr.client.hubs.HubResult Maven / Gradle / Ivy
/*
Copyright (c) Microsoft Open Technologies, Inc.
All Rights Reserved
See License.txt in the project root for license information.
*/
package donky.microsoft.aspnet.signalr.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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy