-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69d4347
commit 46c1201
Showing
6 changed files
with
251 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
96 changes: 96 additions & 0 deletions
96
visearch-android/src/main/java/com/visenze/visearch/android/model/AutoCompleteResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
package com.visenze.visearch.android.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.List; | ||
|
||
public class AutoCompleteResponse { | ||
|
||
@SerializedName("status") | ||
private String status; | ||
|
||
@SerializedName("method") | ||
private String method; | ||
|
||
@SerializedName("error") | ||
private ErrorData error; | ||
|
||
@SerializedName("result") | ||
private List<AutoCompleteResultItem> result; | ||
|
||
@SerializedName("page") | ||
private int page; | ||
|
||
@SerializedName("limit") | ||
private int limit; | ||
|
||
@SerializedName("total") | ||
private int total; | ||
|
||
@SerializedName("reqid") | ||
private String reqId; | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
public String getMethod() { | ||
return method; | ||
} | ||
|
||
public void setMethod(String method) { | ||
this.method = method; | ||
} | ||
|
||
public ErrorData getError() { | ||
return error; | ||
} | ||
|
||
public void setError(ErrorData error) { | ||
this.error = error; | ||
} | ||
|
||
public List<AutoCompleteResultItem> getResult() { | ||
return result; | ||
} | ||
|
||
public void setResult(List<AutoCompleteResultItem> result) { | ||
this.result = result; | ||
} | ||
|
||
public int getPage() { | ||
return page; | ||
} | ||
|
||
public void setPage(int page) { | ||
this.page = page; | ||
} | ||
|
||
public int getLimit() { | ||
return limit; | ||
} | ||
|
||
public void setLimit(int limit) { | ||
this.limit = limit; | ||
} | ||
|
||
public int getTotal() { | ||
return total; | ||
} | ||
|
||
public void setTotal(int total) { | ||
this.total = total; | ||
} | ||
|
||
public String getReqId() { | ||
return reqId; | ||
} | ||
|
||
public void setReqId(String reqId) { | ||
this.reqId = reqId; | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
...arch-android/src/main/java/com/visenze/visearch/android/model/AutoCompleteResultItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.visenze.visearch.android.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public class AutoCompleteResultItem { | ||
|
||
@SerializedName("text") | ||
private String text; | ||
|
||
@SerializedName("score") | ||
private double score; | ||
|
||
public String getText() { | ||
return text; | ||
} | ||
|
||
public void setText(String text) { | ||
this.text = text; | ||
} | ||
|
||
public double getScore() { | ||
return score; | ||
} | ||
|
||
public void setScore(double score) { | ||
this.score = score; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters