| |
---|
| | public class Animation { |
---|
| | private int aid; |
---|
| | private String name; |
---|
| | private String description; |
---|
| | private Boolean ispublic; |
---|
| | private Boolean isPublic; |
---|
| | private String createdDate; |
---|
| | private String lastUpdate; |
---|
| | private Integer likes; |
---|
| | private Integer views; |
---|
| |
---|
| | |
---|
| | private Gallery gallery = Gallery.getInstance(); |
---|
| | private Accounts accounts = Accounts.getInstance(); |
---|
| | |
---|
| | public void setAid(Integer aid){ |
---|
| | this.aid = aid; |
---|
| | } |
---|
| | |
---|
| | public void setName(String name){ |
---|
| | this.name = name; |
---|
| | } |
---|
| | |
---|
| | public void setAid(Integer aid){ |
---|
| | this.aid = aid; |
---|
| | } |
---|
| | |
---|
| | public void setDescription(String description){ |
---|
| | this.description = description; |
---|
| | } |
---|
| | |
---|
| | public void setIsPublic(Boolean ispublic){ |
---|
| | this.ispublic = ispublic; |
---|
| | public void setIsPublic(Boolean publicStatus){ |
---|
| | this.isPublic = publicStatus; |
---|
| | } |
---|
| | |
---|
| | public void addEditors(Editor editor) { this.editors.add(editor); } |
---|
| | |
---|
| | public void setlastUpdate() { |
---|
| | Date dt = new Date(); |
---|
| | this.lastUpdate = dt.toString(); |
---|
| | } |
---|
| | |
---|
| | public void addLikes() { this.likes++; } |
---|
| | |
---|
| | public void addViews() { this.views++; } |
---|
| | |
---|
| | public void addHashTag(String inputHashTag) { this.hashTag.add(inputHashTag); } |
---|
| | |
---|
| | public Integer getAid() { return aid; } |
---|
| | |
---|
| | public String getName() { return name; } |
---|
| |
---|
| | // 本当に招待されているかを確認する |
---|
| | public Collection<Account> searchAnimationInvites(Integer aid, String invitedUid) { |
---|
| | Animation anime_info = gallery.getAnimationInformation(aid); |
---|
| | Account invitedAccount = accounts.getAccountByUid(Integer.parseInt(invitedUid)); |
---|
| | ArrayList<Account> invitedlist = null; |
---|
| | ArrayList<Account> inviters = null; |
---|
| | |
---|
| | for(Account account : anime_info.invites) { |
---|
| | if(account == invitedAccount) { |
---|
| | invitedlist.add(account); |
---|
| | inviters.add(account); |
---|
| | } |
---|
| | } |
---|
| | return invitedlist; |
---|
| | return inviters; |
---|
| | } |
---|
| | |
---|
| | //----------------------------------------------------------------- |
---|
| | //作品に招待する |
---|
| |
---|
| | |
isPublicの関数をなおしました
確認しました.
InvitesPutImple
a47c1cf
intomaster
fromInvitesPutImple
on 25 May 2021