fi.foyt.foursquare.api.entities.notifications
枚举 NotificationType

java.lang.Object
  继承者 java.lang.Enum<NotificationType>
      继承者 fi.foyt.foursquare.api.entities.notifications.NotificationType
所有已实现的接口:
Serializable, Comparable<NotificationType>

public enum NotificationType
extends Enum<NotificationType>

Enumeration representing notification types

作者:
Antti Leppä

枚举常量摘要
Badge
           
Leaderboard
           
Mayorship
           
Message
           
Score
           
Tip
           
TipAlert
           
 
方法摘要
static NotificationType getByName(String name)
          Returns NotificationType by JSON name
 String getName()
          Returns JSON name
static NotificationType valueOf(String name)
          返回带有指定名称的该类型的枚举常量。
static NotificationType[] values()
          按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。
 
从类 java.lang.Enum 继承的方法
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
从类 java.lang.Object 继承的方法
getClass, notify, notifyAll, wait, wait, wait
 

枚举常量详细信息

Badge

public static final NotificationType Badge

Tip

public static final NotificationType Tip

TipAlert

public static final NotificationType TipAlert

Leaderboard

public static final NotificationType Leaderboard

Mayorship

public static final NotificationType Mayorship

Message

public static final NotificationType Message

Score

public static final NotificationType Score
方法详细信息

values

public static NotificationType[] values()
按照声明该枚举类型的常量的顺序,返回 包含这些常量的数组。该方法可用于迭代 常量,如下所示:
for (NotificationType c : NotificationType.values())
    System.out.println(c);


valueOf

public static NotificationType valueOf(String name)
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格。)

参数:
name - 要返回的枚举常量的名称。
返回:
返回带有指定名称的枚举常量
抛出:
如果该枚举类型没有带有指定名称的常量, - 则抛出 IllegalArgumentException

getName

public String getName()
Returns JSON name

返回:
JSON name

getByName

public static NotificationType getByName(String name)
Returns NotificationType by JSON name

参数:
name - JSON name
返回:
NotificationType


Copyright © 2013 Foyt. All Rights Reserved.