com.google.code.facebookapi.schema.Notifications Maven / Gradle / Ivy
Show all versions of facebook-java-api-schema Show documentation
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-661
// See http://java.sun.com/xml/jaxb
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2009.02.15 at 07:02:48 PM GMT-08:00
//
package com.google.code.facebookapi.schema;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
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 notifications complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType name="notifications">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="messages" type="{http://api.facebook.com/1.0/}notification_count"/>
* <element name="pokes" type="{http://api.facebook.com/1.0/}notification_count"/>
* <element name="shares" type="{http://api.facebook.com/1.0/}notification_count"/>
* <element name="friend_requests">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="uid" type="{http://api.facebook.com/1.0/}uid" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="group_invites">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="gid" type="{http://api.facebook.com/1.0/}gid" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* <element name="event_invites">
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="eid" type="{http://api.facebook.com/1.0/}eid" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
* </element>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "notifications", propOrder = {
"messages",
"pokes",
"shares",
"friendRequests",
"groupInvites",
"eventInvites"
})
public class Notifications
implements Equals, HashCode, ToString
{
@XmlElement(required = true)
protected NotificationCount messages;
@XmlElement(required = true)
protected NotificationCount pokes;
@XmlElement(required = true)
protected NotificationCount shares;
@XmlElement(name = "friend_requests", required = true)
protected Notifications.FriendRequests friendRequests;
@XmlElement(name = "group_invites", required = true)
protected Notifications.GroupInvites groupInvites;
@XmlElement(name = "event_invites", required = true)
protected Notifications.EventInvites eventInvites;
/**
* Gets the value of the messages property.
*
* @return
* possible object is
* {@link NotificationCount }
*
*/
public NotificationCount getMessages() {
return messages;
}
/**
* Sets the value of the messages property.
*
* @param value
* allowed object is
* {@link NotificationCount }
*
*/
public void setMessages(NotificationCount value) {
this.messages = value;
}
/**
* Gets the value of the pokes property.
*
* @return
* possible object is
* {@link NotificationCount }
*
*/
public NotificationCount getPokes() {
return pokes;
}
/**
* Sets the value of the pokes property.
*
* @param value
* allowed object is
* {@link NotificationCount }
*
*/
public void setPokes(NotificationCount value) {
this.pokes = value;
}
/**
* Gets the value of the shares property.
*
* @return
* possible object is
* {@link NotificationCount }
*
*/
public NotificationCount getShares() {
return shares;
}
/**
* Sets the value of the shares property.
*
* @param value
* allowed object is
* {@link NotificationCount }
*
*/
public void setShares(NotificationCount value) {
this.shares = value;
}
/**
* Gets the value of the friendRequests property.
*
* @return
* possible object is
* {@link Notifications.FriendRequests }
*
*/
public Notifications.FriendRequests getFriendRequests() {
return friendRequests;
}
/**
* Sets the value of the friendRequests property.
*
* @param value
* allowed object is
* {@link Notifications.FriendRequests }
*
*/
public void setFriendRequests(Notifications.FriendRequests value) {
this.friendRequests = value;
}
/**
* Gets the value of the groupInvites property.
*
* @return
* possible object is
* {@link Notifications.GroupInvites }
*
*/
public Notifications.GroupInvites getGroupInvites() {
return groupInvites;
}
/**
* Sets the value of the groupInvites property.
*
* @param value
* allowed object is
* {@link Notifications.GroupInvites }
*
*/
public void setGroupInvites(Notifications.GroupInvites value) {
this.groupInvites = value;
}
/**
* Gets the value of the eventInvites property.
*
* @return
* possible object is
* {@link Notifications.EventInvites }
*
*/
public Notifications.EventInvites getEventInvites() {
return eventInvites;
}
/**
* Sets the value of the eventInvites property.
*
* @param value
* allowed object is
* {@link Notifications.EventInvites }
*
*/
public void setEventInvites(Notifications.EventInvites value) {
this.eventInvites = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
NotificationCount theMessages;
theMessages = this.getMessages();
toStringBuilder.append("messages", theMessages);
}
{
NotificationCount thePokes;
thePokes = this.getPokes();
toStringBuilder.append("pokes", thePokes);
}
{
NotificationCount theShares;
theShares = this.getShares();
toStringBuilder.append("shares", theShares);
}
{
Notifications.FriendRequests theFriendRequests;
theFriendRequests = this.getFriendRequests();
toStringBuilder.append("friendRequests", theFriendRequests);
}
{
Notifications.GroupInvites theGroupInvites;
theGroupInvites = this.getGroupInvites();
toStringBuilder.append("groupInvites", theGroupInvites);
}
{
Notifications.EventInvites theEventInvites;
theEventInvites = this.getEventInvites();
toStringBuilder.append("eventInvites", theEventInvites);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof Notifications)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final Notifications that = ((Notifications) object);
equalsBuilder.append(this.getMessages(), that.getMessages());
equalsBuilder.append(this.getPokes(), that.getPokes());
equalsBuilder.append(this.getShares(), that.getShares());
equalsBuilder.append(this.getFriendRequests(), that.getFriendRequests());
equalsBuilder.append(this.getGroupInvites(), that.getGroupInvites());
equalsBuilder.append(this.getEventInvites(), that.getEventInvites());
}
public boolean equals(Object object) {
if (!(object instanceof Notifications)) {
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.getMessages());
hashCodeBuilder.append(this.getPokes());
hashCodeBuilder.append(this.getShares());
hashCodeBuilder.append(this.getFriendRequests());
hashCodeBuilder.append(this.getGroupInvites());
hashCodeBuilder.append(this.getEventInvites());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="eid" type="{http://api.facebook.com/1.0/}eid" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"eid"
})
public static class EventInvites
implements Equals, HashCode, ToString
{
@XmlElement(type = Long.class)
protected List eid;
@XmlAttribute
protected Boolean list;
/**
* Gets the value of the eid property.
*
*
* 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 set
method for the eid property.
*
*
* For example, to add a new item, do as follows:
*
* getEid().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Long }
*
*
*/
public List getEid() {
if (eid == null) {
eid = new ArrayList();
}
return this.eid;
}
/**
* Gets the value of the list property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isList() {
return list;
}
/**
* Sets the value of the list property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setList(Boolean value) {
this.list = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
List theEid;
theEid = this.getEid();
toStringBuilder.append("eid", theEid);
}
{
Boolean theList;
theList = this.isList();
toStringBuilder.append("list", theList);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof Notifications.EventInvites)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final Notifications.EventInvites that = ((Notifications.EventInvites) object);
equalsBuilder.append(this.getEid(), that.getEid());
equalsBuilder.append(this.isList(), that.isList());
}
public boolean equals(Object object) {
if (!(object instanceof Notifications.EventInvites)) {
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.getEid());
hashCodeBuilder.append(this.isList());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="uid" type="{http://api.facebook.com/1.0/}uid" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"uid"
})
public static class FriendRequests
implements Equals, HashCode, ToString
{
@XmlElement(type = Long.class)
protected List uid;
@XmlAttribute
protected Boolean list;
/**
* Gets the value of the uid property.
*
*
* 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 set
method for the uid property.
*
*
* For example, to add a new item, do as follows:
*
* getUid().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Long }
*
*
*/
public List getUid() {
if (uid == null) {
uid = new ArrayList();
}
return this.uid;
}
/**
* Gets the value of the list property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isList() {
return list;
}
/**
* Sets the value of the list property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setList(Boolean value) {
this.list = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
List theUid;
theUid = this.getUid();
toStringBuilder.append("uid", theUid);
}
{
Boolean theList;
theList = this.isList();
toStringBuilder.append("list", theList);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof Notifications.FriendRequests)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final Notifications.FriendRequests that = ((Notifications.FriendRequests) object);
equalsBuilder.append(this.getUid(), that.getUid());
equalsBuilder.append(this.isList(), that.isList());
}
public boolean equals(Object object) {
if (!(object instanceof Notifications.FriendRequests)) {
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.getUid());
hashCodeBuilder.append(this.isList());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
/**
* Java class for anonymous complex type.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <complexType>
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence maxOccurs="unbounded" minOccurs="0">
* <element name="gid" type="{http://api.facebook.com/1.0/}gid" maxOccurs="unbounded" minOccurs="0"/>
* </sequence>
* <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
* </restriction>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = {
"gid"
})
public static class GroupInvites
implements Equals, HashCode, ToString
{
@XmlElement(type = Long.class)
protected List gid;
@XmlAttribute
protected Boolean list;
/**
* Gets the value of the gid property.
*
*
* 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 set
method for the gid property.
*
*
* For example, to add a new item, do as follows:
*
* getGid().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Long }
*
*
*/
public List getGid() {
if (gid == null) {
gid = new ArrayList();
}
return this.gid;
}
/**
* Gets the value of the list property.
*
* @return
* possible object is
* {@link Boolean }
*
*/
public Boolean isList() {
return list;
}
/**
* Sets the value of the list property.
*
* @param value
* allowed object is
* {@link Boolean }
*
*/
public void setList(Boolean value) {
this.list = value;
}
public void toString(ToStringBuilder toStringBuilder) {
{
List theGid;
theGid = this.getGid();
toStringBuilder.append("gid", theGid);
}
{
Boolean theList;
theList = this.isList();
toStringBuilder.append("list", theList);
}
}
public String toString() {
final ToStringBuilder toStringBuilder = new JAXBToStringBuilder(this);
toString(toStringBuilder);
return toStringBuilder.toString();
}
public void equals(Object object, EqualsBuilder equalsBuilder) {
if (!(object instanceof Notifications.GroupInvites)) {
equalsBuilder.appendSuper(false);
return ;
}
if (this == object) {
return ;
}
final Notifications.GroupInvites that = ((Notifications.GroupInvites) object);
equalsBuilder.append(this.getGid(), that.getGid());
equalsBuilder.append(this.isList(), that.isList());
}
public boolean equals(Object object) {
if (!(object instanceof Notifications.GroupInvites)) {
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.getGid());
hashCodeBuilder.append(this.isList());
}
public int hashCode() {
final HashCodeBuilder hashCodeBuilder = new JAXBHashCodeBuilder();
hashCode(hashCodeBuilder);
return hashCodeBuilder.toHashCode();
}
}
}