Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4
- // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
- // Any modifications to this file will be lost upon recompilation of the source schema.
- // Generated on: 2015.08.15
- //
- package org.runelight.dto;
- import java.util.LinkedList;
- import java.util.List;
- import javax.xml.bind.annotation.XmlAccessType;
- import javax.xml.bind.annotation.XmlAccessorType;
- import javax.xml.bind.annotation.XmlElement;
- import javax.xml.bind.annotation.XmlType;
- /**
- * <p>Java class for ThreadDTO complex type.
- *
- * <p>The following schema fragment specifies the expected content contained within this class.
- *
- * <pre>
- * <complexType name="ThreadDTO">
- * <complexContent>
- * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
- * <sequence>
- * <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
- * <element name="mainMessageId" type="{http://www.w3.org/2001/XMLSchema}int"/>
- * <element name="messageCount" type="{http://www.w3.org/2001/XMLSchema}int"/>
- * <element name="title" type="{http://www.w3.org/2001/XMLSchema}string"/>
- * <element name="canReply" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
- * <element name="messageList" type="{http://org.runelight}MessageViewDTO" maxOccurs="unbounded"/>
- * </sequence>
- * </restriction>
- * </complexContent>
- * </complexType>
- * </pre>
- *
- *
- */
- @XmlAccessorType(XmlAccessType.FIELD)
- @XmlType(name = "ThreadDTO", propOrder = {
- "id",
- "mainMessageId",
- "messageCount",
- "title",
- "canReply",
- "messageList"
- })
- public class ThreadDTO {
- protected int id;
- protected int mainMessageId;
- protected int messageCount;
- @XmlElement(required = true)
- protected String title;
- protected boolean canReply;
- @XmlElement(required = true)
- protected List<MessageViewDTO> messageList = new LinkedList<MessageViewDTO>();
- /**
- * Default no-arg constructor
- *
- */
- public ThreadDTO() {
- super();
- }
- /**
- * Fully-initialising value constructor
- *
- */
- public ThreadDTO(final int id, final int mainMessageId, final int messageCount, final String title, final boolean canReply, final List<MessageViewDTO> messageList) {
- this.id = id;
- this.mainMessageId = mainMessageId;
- this.messageCount = messageCount;
- this.title = title;
- this.canReply = canReply;
- this.messageList = messageList;
- }
- /**
- * Gets the value of the id property.
- *
- */
- public int getId() {
- return id;
- }
- /**
- * Sets the value of the id property.
- *
- */
- public void setId(int value) {
- this.id = value;
- }
- /**
- * Gets the value of the mainMessageId property.
- *
- */
- public int getMainMessageId() {
- return mainMessageId;
- }
- /**
- * Sets the value of the mainMessageId property.
- *
- */
- public void setMainMessageId(int value) {
- this.mainMessageId = value;
- }
- /**
- * Gets the value of the messageCount property.
- *
- */
- public int getMessageCount() {
- return messageCount;
- }
- /**
- * Sets the value of the messageCount property.
- *
- */
- public void setMessageCount(int value) {
- this.messageCount = value;
- }
- /**
- * Gets the value of the title property.
- *
- * @return
- * possible object is
- * {@link String }
- *
- */
- public String getTitle() {
- return title;
- }
- /**
- * Sets the value of the title property.
- *
- * @param value
- * allowed object is
- * {@link String }
- *
- */
- public void setTitle(String value) {
- this.title = value;
- }
- /**
- * Gets the value of the canReply property.
- *
- */
- public boolean isCanReply() {
- return canReply;
- }
- /**
- * Sets the value of the canReply property.
- *
- */
- public void setCanReply(boolean value) {
- this.canReply = value;
- }
- /**
- * Gets the value of the messageList property.
- *
- * <p>
- * This accessor method returns a reference to the live list,
- * not a snapshot. Therefore any modification you make to the
- * returned list will be present inside the JAXB object.
- * This is why there is not a <CODE>set</CODE> method for the messageList property.
- *
- * <p>
- * For example, to add a new item, do as follows:
- * <pre>
- * getMessageList().add(newItem);
- * </pre>
- *
- *
- * <p>
- * Objects of the following type(s) are allowed in the list
- * {@link MessageViewDTO }
- *
- *
- */
- public List<MessageViewDTO> getMessageList() {
- if (messageList == null) {
- messageList = new LinkedList<MessageViewDTO>();
- }
- return this.messageList;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement