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

com.google.code.facebookapi.schema.Notification Maven / Gradle / Ivy

There is a newer version: 3.0.4
Show newest version
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-833 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2009.12.02 at 03:06:46 PM PST 
//


package com.google.code.facebookapi.schema;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.jvnet.jaxb2_commons.lang.Equals;
import org.jvnet.jaxb2_commons.lang.HashCode;
import org.jvnet.jaxb2_commons.lang.ToString;
import org.jvnet.jaxb2_commons.lang.builder.JAXBEqualsBuilder;
import org.jvnet.jaxb2_commons.lang.builder.JAXBHashCodeBuilder;
import org.jvnet.jaxb2_commons.lang.builder.JAXBToStringBuilder;


/**
 * 

Java class for notification complex type. * *

The following schema fragment specifies the expected content contained within this class. * *

 * <complexType name="notification">
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="notification_id" type="{http://api.facebook.com/1.0/}id"/>
 *         <element name="sender_id" type="{http://api.facebook.com/1.0/}uid"/>
 *         <element name="recipient_id" type="{http://api.facebook.com/1.0/}uid"/>
 *         <element name="created_time" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="updated_time" type="{http://api.facebook.com/1.0/}time"/>
 *         <element name="title_html" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="title_text" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="body_html" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="body_text" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="href" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="app_id" type="{http://api.facebook.com/1.0/}id"/>
 *         <element name="is_unread" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         <element name="is_hidden" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
* * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "notification", propOrder = { "notificationId", "senderId", "recipientId", "createdTime", "updatedTime", "titleHtml", "titleText", "bodyHtml", "bodyText", "href", "appId", "isUnread", "isHidden" }) public class Notification implements Equals, HashCode, ToString { @XmlElement(name = "notification_id") protected long notificationId; @XmlElement(name = "sender_id") protected long senderId; @XmlElement(name = "recipient_id") protected long recipientId; @XmlElement(name = "created_time") protected long createdTime; @XmlElement(name = "updated_time") protected long updatedTime; @XmlElement(name = "title_html", required = true) protected String titleHtml; @XmlElement(name = "title_text", required = true) protected String titleText; @XmlElement(name = "body_html", required = true) protected String bodyHtml; @XmlElement(name = "body_text", required = true) protected String bodyText; @XmlElement(required = true) protected String href; @XmlElement(name = "app_id") protected long appId; @XmlElement(name = "is_unread") protected int isUnread; @XmlElement(name = "is_hidden") protected int isHidden; /** * Gets the value of the notificationId property. * */ public long getNotificationId() { return notificationId; } /** * Sets the value of the notificationId property. * */ public void setNotificationId(long value) { this.notificationId = value; } /** * Gets the value of the senderId property. * */ public long getSenderId() { return senderId; } /** * Sets the value of the senderId property. * */ public void setSenderId(long value) { this.senderId = value; } /** * Gets the value of the recipientId property. * */ public long getRecipientId() { return recipientId; } /** * Sets the value of the recipientId property. * */ public void setRecipientId(long value) { this.recipientId = value; } /** * Gets the value of the createdTime property. * */ public long getCreatedTime() { return createdTime; } /** * Sets the value of the createdTime property. * */ public void setCreatedTime(long value) { this.createdTime = value; } /** * Gets the value of the updatedTime property. * */ public long getUpdatedTime() { return updatedTime; } /** * Sets the value of the updatedTime property. * */ public void setUpdatedTime(long value) { this.updatedTime = value; } /** * Gets the value of the titleHtml property. * * @return * possible object is * {@link String } * */ public String getTitleHtml() { return titleHtml; } /** * Sets the value of the titleHtml property. * * @param value * allowed object is * {@link String } * */ public void setTitleHtml(String value) { this.titleHtml = value; } /** * Gets the value of the titleText property. * * @return * possible object is * {@link String } * */ public String getTitleText() { return titleText; } /** * Sets the value of the titleText property. * * @param value * allowed object is * {@link String } * */ public void setTitleText(String value) { this.titleText = value; } /** * Gets the value of the bodyHtml property. * * @return * possible object is * {@link String } * */ public String getBodyHtml() { return bodyHtml; } /** * Sets the value of the bodyHtml property. * * @param value * allowed object is * {@link String } * */ public void setBodyHtml(String value) { this.bodyHtml = value; } /** * Gets the value of the bodyText property. * * @return * possible object is * {@link String } * */ public String getBodyText() { return bodyText; } /** * Sets the value of the bodyText property. * * @param value * allowed object is * {@link String } * */ public void setBodyText(String value) { this.bodyText = value; } /** * Gets the value of the href property. * * @return * possible object is * {@link String } * */ public String getHref() { return href; } /** * Sets the value of the href property. * * @param value * allowed object is * {@link String } * */ public void setHref(String value) { this.href = value; } /** * Gets the value of the appId property. * */ public long getAppId() { return appId; } /** * Sets the value of the appId property. * */ public void setAppId(long value) { this.appId = value; } /** * Gets the value of the isUnread property. * */ public int getIsUnread() { return isUnread; } /** * Sets the value of the isUnread property. * */ public void setIsUnread(int value) { this.isUnread = value; } /** * Gets the value of the isHidden property. * */ public int getIsHidden() { return isHidden; } /** * Sets the value of the isHidden property. * */ public void setIsHidden(int value) { this.isHidden = value; } public void toString(ToStringBuilder toStringBuilder) { { long theNotificationId; theNotificationId = this.getNotificationId(); toStringBuilder.append("notificationId", theNotificationId); } { long theSenderId; theSenderId = this.getSenderId(); toStringBuilder.append("senderId", theSenderId); } { long theRecipientId; theRecipientId = this.getRecipientId(); toStringBuilder.append("recipientId", theRecipientId); } { long theCreatedTime; theCreatedTime = this.getCreatedTime(); toStringBuilder.append("createdTime", theCreatedTime); } { long theUpdatedTime; theUpdatedTime = this.getUpdatedTime(); toStringBuilder.append("updatedTime", theUpdatedTime); } { String theTitleHtml; theTitleHtml = this.getTitleHtml(); toStringBuilder.append("titleHtml", theTitleHtml); } { String theTitleText; theTitleText = this.getTitleText(); toStringBuilder.append("titleText", theTitleText); } { String theBodyHtml; theBodyHtml = this.getBodyHtml(); toStringBuilder.append("bodyHtml", theBodyHtml); } { String theBodyText; theBodyText = this.getBodyText(); toStringBuilder.append("bodyText", theBodyText); } { String theHref; theHref = this.getHref(); toStringBuilder.append("href", theHref); } { long theAppId; theAppId = this.getAppId(); toStringBuilder.append("appId", theAppId); } { int theIsUnread; theIsUnread = this.getIsUnread(); toStringBuilder.append("isUnread", theIsUnread); } { int theIsHidden; theIsHidden = this.getIsHidden(); toStringBuilder.append("isHidden", theIsHidden); } } public String toString() { final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this); toString(toStringBuilder); return toStringBuilder.toString(); } public void equals(Object object, EqualsBuilder equalsBuilder) { if (!(object instanceof Notification)) { equalsBuilder.appendSuper(false); return ; } if (this == object) { return ; } final Notification that = ((Notification) object); equalsBuilder.append(this.getNotificationId(), that.getNotificationId()); equalsBuilder.append(this.getSenderId(), that.getSenderId()); equalsBuilder.append(this.getRecipientId(), that.getRecipientId()); equalsBuilder.append(this.getCreatedTime(), that.getCreatedTime()); equalsBuilder.append(this.getUpdatedTime(), that.getUpdatedTime()); equalsBuilder.append(this.getTitleHtml(), that.getTitleHtml()); equalsBuilder.append(this.getTitleText(), that.getTitleText()); equalsBuilder.append(this.getBodyHtml(), that.getBodyHtml()); equalsBuilder.append(this.getBodyText(), that.getBodyText()); equalsBuilder.append(this.getHref(), that.getHref()); equalsBuilder.append(this.getAppId(), that.getAppId()); equalsBuilder.append(this.getIsUnread(), that.getIsUnread()); equalsBuilder.append(this.getIsHidden(), that.getIsHidden()); } public boolean equals(Object object) { if (!(object instanceof Notification)) { return false; } if (this == object) { return true; } final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder(); equals(object, equalsBuilder); return equalsBuilder.isEquals(); } public void hashCode(HashCodeBuilder hashCodeBuilder) { hashCodeBuilder.append(this.getNotificationId()); hashCodeBuilder.append(this.getSenderId()); hashCodeBuilder.append(this.getRecipientId()); hashCodeBuilder.append(this.getCreatedTime()); hashCodeBuilder.append(this.getUpdatedTime()); hashCodeBuilder.append(this.getTitleHtml()); hashCodeBuilder.append(this.getTitleText()); hashCodeBuilder.append(this.getBodyHtml()); hashCodeBuilder.append(this.getBodyText()); hashCodeBuilder.append(this.getHref()); hashCodeBuilder.append(this.getAppId()); hashCodeBuilder.append(this.getIsUnread()); hashCodeBuilder.append(this.getIsHidden()); } public int hashCode() { final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder(); hashCode(hashCodeBuilder); return hashCodeBuilder.toHashCode(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy