/* * Copyright 2010 Nabeel Mukhtar * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ package com.github.api.v2.schema; import java.util.Date; /** * The Class Comment. */ public class Comment extends SchemaEntity { /** The Constant serialVersionUID. */ private static final long serialVersionUID = 9155892708485181542L; /** The created at. */ private Date createdAt; /** The body. */ private String body; /** The updated at. */ private Date updatedAt; /** The id. */ private long id; /** The user. */ private String user; /** The gravatar id. */ private String gravatarId; /** * Gets the created at. * * @return the created at */ public Date getCreatedAt() { return createdAt; } /** * Sets the created at. * * @param createdAt * the new created at */ public void setCreatedAt(Date createdAt) { this.createdAt = createdAt; } /** * Gets the body. * * @return the body */ public String getBody() { return body; } /** * Sets the body. * * @param body * the new body */ public void setBody(String body) { this.body = body; } /** * Gets the updated at. * * @return the updated at */ public Date getUpdatedAt() { return updatedAt; } /** * Sets the updated at. * * @param updatedAt * the new updated at */ public void setUpdatedAt(Date updatedAt) { this.updatedAt = updatedAt; } /** * Gets the id. * * @return the id */ public long getId() { return id; } /** * Sets the id. * * @param id * the new id */ public void setId(long id) { this.id = id; } /** * Gets the user. * * @return the user */ public String getUser() { return user; } /** * Sets the user. * * @param user * the new user */ public void setUser(String user) { this.user = user; } /** * Gets the gravatar id. * * @return the gravatar id */ public String getGravatarId() { return gravatarId; } /** * Sets the gravatar id. * * @param gravatarId * the new gravatar id */ public void setGravatarId(String gravatarId) { this.gravatarId = gravatarId; } /* (non-Javadoc) * @see java.lang.Object#toString() */ @Override public String toString() { return "Comment [body=" + body + ", createdAt=" + createdAt + ", gravatarId=" + gravatarId + ", id=" + id + ", updatedAt=" + updatedAt + ", user=" + user + "]"; } }