-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from likebamboo/feature/feedback
feedback is ok
- Loading branch information
Showing
14 changed files
with
797 additions
and
11 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
3 changes: 3 additions & 0 deletions
3
app/src/main/java/com/likebamboo/osa/android/entity/BaseRsp.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
86 changes: 86 additions & 0 deletions
86
app/src/main/java/com/likebamboo/osa/android/entity/Feedback.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,86 @@ | ||
|
||
package com.likebamboo.osa.android.entity; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.ArrayList; | ||
|
||
/** | ||
* 问题表 | ||
* | ||
* @author wentaoli | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class Feedback { | ||
/** | ||
* 联系方式 | ||
*/ | ||
private String contact = ""; | ||
|
||
/** | ||
* 描述 | ||
*/ | ||
private String description = ""; | ||
|
||
/** | ||
* 添加时间 | ||
*/ | ||
@JsonProperty("add_time") | ||
private String addTime = ""; | ||
|
||
/** | ||
* 反馈的问题列表 | ||
*/ | ||
@JsonProperty("issue") | ||
private ArrayList<String> issues = null; | ||
|
||
@JsonProperty("blogId") | ||
private Long blogId = 0L; | ||
|
||
public String getAddTime() { | ||
return addTime; | ||
} | ||
|
||
public void setAddTime(String addTime) { | ||
this.addTime = addTime; | ||
} | ||
|
||
public String getContact() { | ||
return contact; | ||
} | ||
|
||
public void setContact(String contact) { | ||
this.contact = contact; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public ArrayList<String> getIssues() { | ||
return issues; | ||
} | ||
|
||
public void setIssues(ArrayList<String> issuesArr) { | ||
this.issues = issuesArr; | ||
} | ||
|
||
public Long getBlogId() { | ||
return blogId; | ||
} | ||
|
||
public void setBlogId(Long blogId) { | ||
this.blogId = blogId; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Feedback [contact=" + contact + ", description=" + description + ", addTime=" + addTime + ", issues=" + issues + "]"; | ||
} | ||
|
||
} |
111 changes: 111 additions & 0 deletions
111
app/src/main/java/com/likebamboo/osa/android/entity/IssueList.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,111 @@ | ||
|
||
package com.likebamboo.osa.android.entity; | ||
|
||
import android.os.Parcel; | ||
import android.os.Parcelable; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.util.ArrayList; | ||
|
||
/** | ||
* Created by wentaoli on 2015/7/16. | ||
*/ | ||
public class IssueList extends BaseRsp { | ||
|
||
@JsonProperty("result") | ||
private ArrayList<Issue> mList = null; | ||
|
||
public ArrayList<Issue> getList() { | ||
return mList; | ||
} | ||
|
||
public void setList(ArrayList<Issue> list) { | ||
this.mList = list; | ||
} | ||
|
||
/** | ||
* 问题表 | ||
* | ||
* @author likebamboo | ||
*/ | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public static class Issue implements Parcelable { | ||
|
||
/** | ||
* 名称 | ||
*/ | ||
private String name = ""; | ||
|
||
/** | ||
* 描述 | ||
*/ | ||
private String description = ""; | ||
|
||
/** | ||
* 添加时间 | ||
*/ | ||
private String addTime = ""; | ||
|
||
public String getAddTime() { | ||
return addTime; | ||
} | ||
|
||
public void setAddTime(String addTime) { | ||
this.addTime = addTime; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "issue [name=" + name + "]"; | ||
} | ||
|
||
@Override | ||
public int describeContents() { | ||
return 0; | ||
} | ||
|
||
@Override | ||
public void writeToParcel(Parcel dest, int flags) { | ||
dest.writeString(this.name); | ||
dest.writeString(this.description); | ||
dest.writeString(this.addTime); | ||
} | ||
|
||
public Issue() { | ||
} | ||
|
||
private Issue(Parcel in) { | ||
this.name = in.readString(); | ||
this.description = in.readString(); | ||
this.addTime = in.readString(); | ||
} | ||
|
||
public static final Parcelable.Creator<Issue> CREATOR = new Parcelable.Creator<Issue>() { | ||
public Issue createFromParcel(Parcel source) { | ||
return new Issue(source); | ||
} | ||
|
||
public Issue[] newArray(int size) { | ||
return new Issue[size]; | ||
} | ||
}; | ||
} | ||
} |
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
Oops, something went wrong.