All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fi.metatavu.management.client.model.Comment Maven / Gradle / Ivy

There is a newer version: 0.0.31
Show newest version
/**
 * staging-hallinta-mikkeli.kunta-api.fi
 * No descripton provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
 *
 * OpenAPI spec version: 1.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 *
 * 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 fi.metatavu.management.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import fi.metatavu.management.client.model.CommentAuthorAvatarUrls;
import fi.metatavu.management.client.model.CommentContent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.time.LocalDateTime;


@com.fasterxml.jackson.annotation.JsonIgnoreProperties(ignoreUnknown = true)
/**
 * Comment
 */
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-01-13T07:26:12.428+02:00")
public class Comment   {
  @JsonProperty("id")
  private Integer id = null;

  @JsonProperty("author")
  private Integer author = null;

  @JsonProperty("author_email")
  private String authorEmail = null;

  @JsonProperty("author_ip")
  private String authorIp = null;

  @JsonProperty("author_name")
  private String authorName = null;

  @JsonProperty("author_url")
  private String authorUrl = null;

  @JsonProperty("author_user_agent")
  private String authorUserAgent = null;

  @JsonProperty("content")
  private CommentContent content = null;

  @JsonProperty("date")
  @com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer.class)  
  @com.fasterxml.jackson.databind.annotation.JsonSerialize(using = com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer.class)  
  private LocalDateTime date = null;

  @JsonProperty("date_gmt")
  @com.fasterxml.jackson.databind.annotation.JsonDeserialize(using = com.fasterxml.jackson.datatype.jsr310.deser.LocalDateTimeDeserializer.class)  
  @com.fasterxml.jackson.databind.annotation.JsonSerialize(using = com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer.class)  
  private LocalDateTime dateGmt = null;

  @JsonProperty("link")
  private String link = null;

  @JsonProperty("parent")
  private Integer parent = null;

  @JsonProperty("post")
  private Integer post = null;

  @JsonProperty("status")
  private String status = null;

  @JsonProperty("type")
  private String type = null;

  @JsonProperty("author_avatar_urls")
  private CommentAuthorAvatarUrls authorAvatarUrls = null;

  @JsonProperty("meta")
  private Object meta = null;

  public Comment id(Integer id) {
    this.id = id;
    return this;
  }

   /**
   * Kohteen uniikki tunniste.
   * @return id
  **/
  @ApiModelProperty(example = "null", value = "Kohteen uniikki tunniste.")
  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public Comment author(Integer author) {
    this.author = author;
    return this;
  }

   /**
   * Käyttäjän ID, jos kirjoittaja on tiedossa.
   * @return author
  **/
  @ApiModelProperty(example = "null", value = "Käyttäjän ID, jos kirjoittaja on tiedossa.")
  public Integer getAuthor() {
    return author;
  }

  public void setAuthor(Integer author) {
    this.author = author;
  }

  public Comment authorEmail(String authorEmail) {
    this.authorEmail = authorEmail;
    return this;
  }

   /**
   * Kohteen kirjoittajan sähköpostiosoite.
   * @return authorEmail
  **/
  @ApiModelProperty(example = "null", value = "Kohteen kirjoittajan sähköpostiosoite.")
  public String getAuthorEmail() {
    return authorEmail;
  }

  public void setAuthorEmail(String authorEmail) {
    this.authorEmail = authorEmail;
  }

  public Comment authorIp(String authorIp) {
    this.authorIp = authorIp;
    return this;
  }

   /**
   * Kohteen kirjoittajan IP-osoite.
   * @return authorIp
  **/
  @ApiModelProperty(example = "null", value = "Kohteen kirjoittajan IP-osoite.")
  public String getAuthorIp() {
    return authorIp;
  }

  public void setAuthorIp(String authorIp) {
    this.authorIp = authorIp;
  }

  public Comment authorName(String authorName) {
    this.authorName = authorName;
    return this;
  }

   /**
   * Kirjoittajan näyttönimi.
   * @return authorName
  **/
  @ApiModelProperty(example = "null", value = "Kirjoittajan näyttönimi.")
  public String getAuthorName() {
    return authorName;
  }

  public void setAuthorName(String authorName) {
    this.authorName = authorName;
  }

  public Comment authorUrl(String authorUrl) {
    this.authorUrl = authorUrl;
    return this;
  }

   /**
   * Kohteen kirjoittajan URL.
   * @return authorUrl
  **/
  @ApiModelProperty(example = "null", value = "Kohteen kirjoittajan URL.")
  public String getAuthorUrl() {
    return authorUrl;
  }

  public void setAuthorUrl(String authorUrl) {
    this.authorUrl = authorUrl;
  }

  public Comment authorUserAgent(String authorUserAgent) {
    this.authorUserAgent = authorUserAgent;
    return this;
  }

   /**
   * Kohteen kirjoittajan selain.
   * @return authorUserAgent
  **/
  @ApiModelProperty(example = "null", value = "Kohteen kirjoittajan selain.")
  public String getAuthorUserAgent() {
    return authorUserAgent;
  }

  public void setAuthorUserAgent(String authorUserAgent) {
    this.authorUserAgent = authorUserAgent;
  }

  public Comment content(CommentContent content) {
    this.content = content;
    return this;
  }

   /**
   * Get content
   * @return content
  **/
  @ApiModelProperty(example = "null", value = "")
  public CommentContent getContent() {
    return content;
  }

  public void setContent(CommentContent content) {
    this.content = content;
  }

  public Comment date(LocalDateTime date) {
    this.date = date;
    return this;
  }

   /**
   * Ajankohta kun kohde julkaistiin sivuston aikavyöhykkeen ajassa.
   * @return date
  **/
  @ApiModelProperty(example = "null", value = "Ajankohta kun kohde julkaistiin sivuston aikavyöhykkeen ajassa.")
  public LocalDateTime getDate() {
    return date;
  }

  public void setDate(LocalDateTime date) {
    this.date = date;
  }

  public Comment dateGmt(LocalDateTime dateGmt) {
    this.dateGmt = dateGmt;
    return this;
  }

   /**
   * Ajankohta kun kohde julkaistiin GMT-ajassa.
   * @return dateGmt
  **/
  @ApiModelProperty(example = "null", value = "Ajankohta kun kohde julkaistiin GMT-ajassa.")
  public LocalDateTime getDateGmt() {
    return dateGmt;
  }

  public void setDateGmt(LocalDateTime dateGmt) {
    this.dateGmt = dateGmt;
  }

  public Comment link(String link) {
    this.link = link;
    return this;
  }

   /**
   * Kohteen URL.
   * @return link
  **/
  @ApiModelProperty(example = "null", value = "Kohteen URL.")
  public String getLink() {
    return link;
  }

  public void setLink(String link) {
    this.link = link;
  }

  public Comment parent(Integer parent) {
    this.parent = parent;
    return this;
  }

   /**
   * Kohteen vanhemman ID.
   * @return parent
  **/
  @ApiModelProperty(example = "null", value = "Kohteen vanhemman ID.")
  public Integer getParent() {
    return parent;
  }

  public void setParent(Integer parent) {
    this.parent = parent;
  }

  public Comment post(Integer post) {
    this.post = post;
    return this;
  }

   /**
   * Liittyvän artikkelin ID.
   * @return post
  **/
  @ApiModelProperty(example = "null", value = "Liittyvän artikkelin ID.")
  public Integer getPost() {
    return post;
  }

  public void setPost(Integer post) {
    this.post = post;
  }

  public Comment status(String status) {
    this.status = status;
    return this;
  }

   /**
   * Kohteen tila. 
   * @return status
  **/
  @ApiModelProperty(example = "null", value = "Kohteen tila. ")
  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public Comment type(String type) {
    this.type = type;
    return this;
  }

   /**
   * Kohteen kommentin tyyppi. 
   * @return type
  **/
  @ApiModelProperty(example = "null", value = "Kohteen kommentin tyyppi. ")
  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public Comment authorAvatarUrls(CommentAuthorAvatarUrls authorAvatarUrls) {
    this.authorAvatarUrls = authorAvatarUrls;
    return this;
  }

   /**
   * Get authorAvatarUrls
   * @return authorAvatarUrls
  **/
  @ApiModelProperty(example = "null", value = "")
  public CommentAuthorAvatarUrls getAuthorAvatarUrls() {
    return authorAvatarUrls;
  }

  public void setAuthorAvatarUrls(CommentAuthorAvatarUrls authorAvatarUrls) {
    this.authorAvatarUrls = authorAvatarUrls;
  }

  public Comment meta(Object meta) {
    this.meta = meta;
    return this;
  }

   /**
   * Metakentät.
   * @return meta
  **/
  @ApiModelProperty(example = "null", value = "Metakentät.")
  public Object getMeta() {
    return meta;
  }

  public void setMeta(Object meta) {
    this.meta = meta;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Comment comment = (Comment) o;
    return Objects.equals(this.id, comment.id) &&
        Objects.equals(this.author, comment.author) &&
        Objects.equals(this.authorEmail, comment.authorEmail) &&
        Objects.equals(this.authorIp, comment.authorIp) &&
        Objects.equals(this.authorName, comment.authorName) &&
        Objects.equals(this.authorUrl, comment.authorUrl) &&
        Objects.equals(this.authorUserAgent, comment.authorUserAgent) &&
        Objects.equals(this.content, comment.content) &&
        Objects.equals(this.date, comment.date) &&
        Objects.equals(this.dateGmt, comment.dateGmt) &&
        Objects.equals(this.link, comment.link) &&
        Objects.equals(this.parent, comment.parent) &&
        Objects.equals(this.post, comment.post) &&
        Objects.equals(this.status, comment.status) &&
        Objects.equals(this.type, comment.type) &&
        Objects.equals(this.authorAvatarUrls, comment.authorAvatarUrls) &&
        Objects.equals(this.meta, comment.meta);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, author, authorEmail, authorIp, authorName, authorUrl, authorUserAgent, content, date, dateGmt, link, parent, post, status, type, authorAvatarUrls, meta);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Comment {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    author: ").append(toIndentedString(author)).append("\n");
    sb.append("    authorEmail: ").append(toIndentedString(authorEmail)).append("\n");
    sb.append("    authorIp: ").append(toIndentedString(authorIp)).append("\n");
    sb.append("    authorName: ").append(toIndentedString(authorName)).append("\n");
    sb.append("    authorUrl: ").append(toIndentedString(authorUrl)).append("\n");
    sb.append("    authorUserAgent: ").append(toIndentedString(authorUserAgent)).append("\n");
    sb.append("    content: ").append(toIndentedString(content)).append("\n");
    sb.append("    date: ").append(toIndentedString(date)).append("\n");
    sb.append("    dateGmt: ").append(toIndentedString(dateGmt)).append("\n");
    sb.append("    link: ").append(toIndentedString(link)).append("\n");
    sb.append("    parent: ").append(toIndentedString(parent)).append("\n");
    sb.append("    post: ").append(toIndentedString(post)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    authorAvatarUrls: ").append(toIndentedString(authorAvatarUrls)).append("\n");
    sb.append("    meta: ").append(toIndentedString(meta)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy