App Engine Java SDK version 1.9.8
[gae.git] / java / src / main / com / google / appengine / api / xmpp / SubscriptionType.java
blob63b6ab57a0ab5faf3c00fc8341242ec0446561e9
1 // Copyright 2011 Google Inc. All Rights Reserved.
3 package com.google.appengine.api.xmpp;
5 /**
6 * Values for the 'type' attributes used for presence subscription.
7 * These are only types from stanzas dealing with subscriptions. Types
8 * used for presence information are enumerated in {@link
9 * PresenceType} even though they are both communicated via presence
10 * stanzas.
12 * @see <a href="http://tools.ietf.org/html/rfc3921#section-6">RFC
13 * 3921, Section 6</a> for the specification of XMPP Presence
14 * Subscription.
16 public enum SubscriptionType {
17 /**
18 * Signals that a contact has requested a subscription.
20 SUBSCRIBE,
22 /**
23 * Signals that a contact has accepted a request for subscription.
25 SUBSCRIBED,
27 /**
28 * Signals that a contact is requesting an end to a subscription.
30 UNSUBSCRIBE,
32 /**
33 * Signals that a contact has ended a subscription.
35 UNSUBSCRIBED