net.daum.dna.api.vo.blog
Class BlogComments

java.lang.Object
  extended by net.daum.dna.api.vo.blog.BlogComments

public class BlogComments
extends java.lang.Object

The Class Comments.


Constructor Summary
BlogComments()
          Comments 객체를 생성한다.
BlogComments(int status, int totalCount, java.util.List<BlogComment> comments)
          Comments 객체를 생성하고 parameter값으로 초기화한다.
 
Method Summary
 void addComment(BlogComment comment)
          코멘트를 추가합니다.
 BlogComment getComment(int index)
          특정 index의 코멘트를 얻습니다.
 java.util.List<BlogComment> getComments()
          코멘트 목록을 반환합니다.
 int getStatus()
          응답코드를 반환합니다.
 int getTotalCount()
          총 댓글 수 를 반환합니다.
 void setComments(java.util.List<BlogComment> comments)
          코멘트 목록을 넣습니다.
 void setStatus(int status)
          응답코드를 넣습니다.
 void setTotalCount(int totalCount)
          총 댓글 수를 넣습니다.
 java.lang.String toString()
          Comments 객체 에 있는 값들을 string 형태로 출력한다.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BlogComments

public BlogComments()
Comments 객체를 생성한다.


BlogComments

public BlogComments(int status,
                    int totalCount,
                    java.util.List<BlogComment> comments)
Comments 객체를 생성하고 parameter값으로 초기화한다.

Parameters:
status - 응답코드
totalCount - 총 댓글 수
comments - 코멘트 목록
Method Detail

getStatus

public int getStatus()
응답코드를 반환합니다.

Returns:
응답코드

setStatus

public void setStatus(int status)
응답코드를 넣습니다.

Parameters:
status - 응답코드

getTotalCount

public int getTotalCount()
총 댓글 수 를 반환합니다.

Returns:
총 댓글 수

setTotalCount

public void setTotalCount(int totalCount)
총 댓글 수를 넣습니다.

Parameters:
totalCount - 총 댓글 수

getComments

public java.util.List<BlogComment> getComments()
코멘트 목록을 반환합니다.

Returns:
코멘트 목록

setComments

public void setComments(java.util.List<BlogComment> comments)
코멘트 목록을 넣습니다.

Parameters:
comments - 코멘트 목록

addComment

public void addComment(BlogComment comment)
코멘트를 추가합니다.

Parameters:
comment - 코멘트

getComment

public BlogComment getComment(int index)
특정 index의 코멘트를 얻습니다.

Parameters:
index - the index
Returns:
코멘트

toString

public java.lang.String toString()
Comments 객체 에 있는 값들을 string 형태로 출력한다.

Overrides:
toString in class java.lang.Object
Returns:
the string