-
Notifications
You must be signed in to change notification settings - Fork 3
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 #27 from AlongTheBlue/develop
Merge to Main from Develop
- Loading branch information
Showing
2 changed files
with
64 additions
and
4 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
42 changes: 42 additions & 0 deletions
42
...ngtheblue/alongtheblue_server/global/data/restaurant/RestaurantSimpleInformationImpl.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,42 @@ | ||
package org.alongtheblue.alongtheblue_server.global.data.restaurant; | ||
|
||
import java.util.List; | ||
|
||
public class RestaurantSimpleInformationImpl implements RestaurantSimpleInformation { | ||
|
||
private String contentId; | ||
private String title; | ||
private String address; | ||
private List<RestaurantImage> images; | ||
|
||
public RestaurantSimpleInformationImpl(String contentId, String title, String address, List<RestaurantImage> images) { | ||
this.contentId = contentId; | ||
this.title = title; | ||
this.address = address; | ||
this.images = images; | ||
} | ||
|
||
@Override | ||
public String getContentId() { | ||
return contentId; | ||
} | ||
|
||
@Override | ||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
@Override | ||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
@Override | ||
public List<RestaurantImage> getImages() { | ||
return images; | ||
} | ||
|
||
public void addImages(List<RestaurantImage> newImages) { | ||
this.images.addAll(newImages); // 기존 이미지 리스트에 새로운 이미지 추가 | ||
} | ||
} |