Dateを追加
1 parent 1e002c0 commit 6fb65af32c7f9af12f3395e9e07897ab3be7806a
m-mifune authored on 29 Jun 2023
Showing 3 changed files
View
4
.idea/deploymentTargetDropDown.xml
<type value="QUICK_BOOT_TARGET" />
<deviceKey>
<Key>
<type value="VIRTUAL_DEVICE_PATH" />
<value value="C:\Users\student\.android\avd\Pixel_3_API_28.avd" />
<value value="C:\Users\student\.android\avd\Nexus_5X_API_29.avd" />
</Key>
</deviceKey>
</Target>
</targetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-06-27T06:07:51.136151100Z" />
<timeTargetWasSelectedWithDropDown value="2023-06-29T06:26:57.173696700Z" />
</component>
</project>
View
4
app/src/main/java/com/example/nemophila/entities/Post.java
public Post(PostJson pj) {
this.pid = pj.getId();
this.uid = pj.getOwner().getId();
this.name = pj.getOwner().getName();
this.genre = this.getGenre();
this.date = "2001/12/12"; //サンプル
this.genre = pj.getGenre();
this.date = pj.getDate();
this.rate = pj.getRate();
this.comment = pj.getComment();
}
}
View
7
app/src/main/java/com/example/nemophila/entities/PostJson.java
 
public class PostJson {
private String id;
private String genre;
private String date;
private String image1;
private String image2;
private String image3;
private int rate;
return id;
}
public String getGenre() {
return genre;
}
public String getDate() {
return date;
}
public String getImage1() {
return image1;
}
}
public void setGenre(String genre) {
this.genre = genre;
}
public void setDate(String date) {
this.date = date;
}
public void setImage1(String image1) {
this.image1 = image1;
}
public void setImage2(String image2) {