Simplify ProjectSearch
With the simplification of Conduit's `projectSearch`, the need for
attachments went away, and we remove them to get simpler, more straight
forward data capsules.
Change-Id: If3aac900f3f9b926d928d20ea256e2a332b51593
diff --git a/src/main/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/results/ProjectSearch.java b/src/main/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/results/ProjectSearch.java
index 078a4d3..f185b36 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/results/ProjectSearch.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/its/phabricator/conduit/results/ProjectSearch.java
@@ -58,31 +58,22 @@
*/
public class ProjectSearch {
private int id;
- private String type;
private String phid;
- private Fields fields;
+
+ public ProjectSearch(int id, String phid) {
+ this.id = id;
+ this.phid = phid;
+ }
+
+ public ProjectSearch() {
+ this(0, null);
+ }
public int getId() {
return id;
}
- public String getType() {
- return type;
- }
-
public String getPhid() {
return phid;
}
-
- public Fields getFields() {
- return fields;
- }
-
- public class Fields {
- private String name;
-
- public String getName() {
- return name;
- }
- }
}