We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In Backend.java, we are using HashMap, instead of that a VO will add more OOP features to it.
Backend.java
For example in below code snippet:
Instead of:
Map<String, Object> object = new HashMap<String, Object>();
lets use a VO:
public Map<String, Object> rpc(String module, String member, Object argument) throws ParseException, IOException, JsonSyntaxException, BackendException { Map<String, Object> object = new HashMap<String, Object>(); object.put(Backend.KEY_MODULE, module); object.put(Backend.KEY_MEMBER, member); object.put(Backend.KEY_ARGUMENT, argument); String json = gson.toJson(object); StringEntity content = new StringEntity(json); this.rpc.setEntity(content); return this.postJson(this.rpc); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
Backend.java
, we are using HashMap, instead of that a VO will add more OOP features to it.For example in below code snippet:
Instead of:
lets use a VO:
The text was updated successfully, but these errors were encountered: