- @Override\r
- public JSONObject asJSONObject() {\r
- JSONObject jo = new JSONObject();\r
- jo.put("id", id);\r
- jo.put("password", password);\r
- return jo;\r
- }\r
- @Override\r
- public boolean equals(Object obj) {\r
- if (!(obj instanceof FeedEndpointID))\r
- return false;\r
- FeedEndpointID f2 = (FeedEndpointID) obj;\r
- return id.equals(f2.id) && password.equals(f2.password);\r
- }\r
- @Override\r
- public int hashCode() {\r
- return (id + ":" + password).hashCode();\r
- }\r