diff --git a/src/main/java/org/ntlab/amaryllis/server/entities/Voicememo.java b/src/main/java/org/ntlab/amaryllis/server/entities/Voicememo.java index f19f3db..008a105 100644 --- a/src/main/java/org/ntlab/amaryllis/server/entities/Voicememo.java +++ b/src/main/java/org/ntlab/amaryllis/server/entities/Voicememo.java @@ -5,54 +5,88 @@ public class Voicememo { private String vid; private String uid; - private String upload; - private Integer voicedata_time; - private String voicedata_data; - private double location_latitude; - private double location_longitude; + private Integer upload; + private Integer time; + private String data; + private double latitude; + private double longitude; private String title; private String summary; - private Integer times; - private ArrayList favoList; - private Integer favos;//favosListの要素数 - private ArrayList categories; - private ArrayList comments_commentNo; - private ArrayList comments_uid; - private ArrayList comments_comment; +// private Integer times; +// private ArrayList favolist; +// private Integer favos;//favoslistの要素数 +// private ArrayList categories; +// private ArrayList comments_commentNo; +// private ArrayList comments_uid; +// private ArrayList comments_comment; - public Voicememo(){ - + public Voicememo(String vid, String uid, Integer time, String data, double latitude, double longitude, String title, String summary){ + setVid(vid); + setUid(uid); + //setUpload(投稿時間取得); + setTime(time); + setData(data); + setLatitude(latitude); + setLongitude(longitude); + setTitle(title); + setSummary(summary); } public String getVid(){ return vid; } + public void setVid(String vid) { + this.vid = vid; + } - public String getUpload(){ return upload; } + public String getUid(){ return uid; } + public void setUid(String uid) { + this.uid = uid; + } - public Integer getVoicedata_time(){ return voicedata_time; } + public Integer getUpload(){ return upload; } + public void setUpload(Integer upload) { + this.upload = upload; + } - public String getVoicedata_data(){ return voicedata_data; } + public Integer getTime(){ return time; } + public void setTime(Integer time) { + this.time = time; + } - public double getLocation_latitude(){ return location_latitude; } + public String getData(){ return data; } + public void setData(String data) { + this.data= data; + } - public double getLocation_longitude(){ return location_longitude; } + public double getLatitude(){ return latitude; } + public void setLatitude(double latitude) { + this.latitude = latitude; + } + + public double getLongitude(){ return longitude; } + public void setLongitude(double longitude) { + this.longitude = longitude; + } public String getTitle(){ return title; } + public void setTitle(String title) { this.title = title; } public String getSummary(){ return summary; } + public void setSummary(String summary) {this.summary = summary; } - public Integer getTimes(){ return times; } - - public ArrayList getFavosList(){ return favoList; } - - public Integer getFavos(){ return favos; } - - public ArrayList getCategory(){ return categories; } - - public ArrayList getComments_commentNo(){ return comments_commentNo; } - - public ArrayList getComments_uid(){ return comments_uid; } - - public ArrayList getComments_comment(){ return comments_comment; } +// public Integer getTimes(){ return times; } +// public void setTimes(String times) { this.times = times; } +// +// public ArrayList getFavolist(){ return favolist; } +// +// public Integer getFavos(){ return favos; } +// +// public ArrayList getCategory(){ return categories; } +// +// public ArrayList getComments_commentNo(){ return comments_commentNo; } +// +// public ArrayList getComments_uid(){ return comments_uid; } +// +// public ArrayList getComments_comment(){ return comments_comment; } }