com.google.code.facebookapi
Enum AllocationType

java.lang.Object
  extended by java.lang.Enum<AllocationType>
      extended by com.google.code.facebookapi.AllocationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AllocationType>

public enum AllocationType
extends java.lang.Enum<AllocationType>

A listing of all allocation types used by the Admin.getAllocation method call.

See Also:
http://wiki.developers.facebook.com/index.php/Admin.getAllocation

Enum Constant Summary
ANNOUNCEMENT_NOTIFICATIONS_PER_WEEK
          The number of notifications your application can send to a user per week.
EMAIL_DISABLE_MESSAGE_LOCATION
          The location of the disable message within emails sent by your application.
EMAILS_PER_DAY
          The number of email messages your application can send to a user per day.
NOTIFICATIONS_PER_DAY
          The number of notifications your application can send on behalf of a user per day.
REQUESTS_PER_DAY
          The number of requests your application can send on behalf of a user per day.
 
Method Summary
 java.lang.String getName()
          Get the name by which Facebook refers to this metric.
static AllocationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AllocationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOTIFICATIONS_PER_DAY

public static final AllocationType NOTIFICATIONS_PER_DAY
The number of notifications your application can send on behalf of a user per day. These are user-to-user notifications.


ANNOUNCEMENT_NOTIFICATIONS_PER_WEEK

public static final AllocationType ANNOUNCEMENT_NOTIFICATIONS_PER_WEEK
The number of notifications your application can send to a user per week. These are application-to-user notifications.


REQUESTS_PER_DAY

public static final AllocationType REQUESTS_PER_DAY
The number of requests your application can send on behalf of a user per day.


EMAILS_PER_DAY

public static final AllocationType EMAILS_PER_DAY
The number of email messages your application can send to a user per day.


EMAIL_DISABLE_MESSAGE_LOCATION

public static final AllocationType EMAIL_DISABLE_MESSAGE_LOCATION
The location of the disable message within emails sent by your application. '1' is the bottom of the message and '2' is the top of the message.

Method Detail

values

public static AllocationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AllocationType c : AllocationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AllocationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getName

public java.lang.String getName()
Get the name by which Facebook refers to this metric.

Returns:
the Facebook-supplied name of this metric.


Copyright © 2009. All Rights Reserved.