gluu
公開メンバ関数 | 公開変数類 | 静的関数 | 全メンバ一覧
com.toopher.PairingStatus クラス
com.toopher.PairingStatus 連携図
Collaboration graph

公開メンバ関数

String toString ()
 

公開変数類

String id
 
String userId
 
String userName
 
boolean enabled
 

静的関数

static PairingStatus fromJSON (JSONObject json) throws JSONException
 

詳解

Provides information about the status of a pairing request

関数詳解

◆ fromJSON()

static PairingStatus com.toopher.PairingStatus.fromJSON ( JSONObject  json) throws JSONException
inlinestaticpackage
37  {
38  PairingStatus ps = new PairingStatus();
39  ps.id = json.getString("id");
40 
41  JSONObject user = json.getJSONObject("user");
42  ps.userId = user.getString("id");
43  ps.userName = user.getString("name");
44 
45  ps.enabled = json.getBoolean("enabled");
46 
47  return ps;
48  }

◆ toString()

String com.toopher.PairingStatus.toString ( )
inline
32  {
33  return String.format("[PairingStatus: id=%s; userId=%s; userName=%s, enabled=%b]", id,
35  }
String userName
Definition: PairingStatus.java:24
String userId
Definition: PairingStatus.java:19
boolean enabled
Definition: PairingStatus.java:29

メンバ詳解

◆ enabled

boolean com.toopher.PairingStatus.enabled

Indicates if the pairing has been enabled by the user

◆ id

String com.toopher.PairingStatus.id

The unique id for the pairing request

◆ userId

String com.toopher.PairingStatus.userId

The unique id for the user associated with the pairing request

◆ userName

String com.toopher.PairingStatus.userName

The descriptive name for the user associated with the pairing request


このクラス詳解は次のファイルから抽出されました: