gpt4 book ai didi

facebook4j.internal.util.z_F4JInternalParseUtil.getBoolean()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 10:23:00 26 4
gpt4 key购买 nike

本文整理了Java中facebook4j.internal.util.z_F4JInternalParseUtil.getBoolean()方法的一些代码示例,展示了z_F4JInternalParseUtil.getBoolean()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。z_F4JInternalParseUtil.getBoolean()方法的具体详情如下:
包路径:facebook4j.internal.util.z_F4JInternalParseUtil
类名称:z_F4JInternalParseUtil
方法名:getBoolean

z_F4JInternalParseUtil.getBoolean介绍

暂无

代码示例

代码示例来源:origin: roundrop/facebook4j

private void init(JSONObject json) throws FacebookException {
  isAdministrator = getBoolean("administrator", json);
}

代码示例来源:origin: org.facebook4j/facebook4j-core

private void init(JSONObject json) throws FacebookException {
  isAdministrator = getBoolean("administrator", json);
}

代码示例来源:origin: apache/servicemix-bundles

private void init(JSONObject json) throws FacebookException {
  isAdministrator = getBoolean("administrator", json);
}

代码示例来源:origin: roundrop/facebook4j

private void init(JSONObject json) {
  setting = getRawString("setting", json);
  value = getBoolean("value", json);
}

代码示例来源:origin: org.facebook4j/facebook4j-core

private void init(JSONObject json) {
  setting = getRawString("setting", json);
  value = getBoolean("value", json);
}

代码示例来源:origin: apache/servicemix-bundles

private void init(JSONObject json) {
  setting = getRawString("setting", json);
  value = getBoolean("value", json);
}

代码示例来源:origin: roundrop/facebook4j

public Map<String, Boolean> block(String pageId, List<String> userIds) throws FacebookException {
  ensureAuthorizationEnabled();
  String _userIds = z_F4JInternalStringUtil.join(userIds.toArray(new String[userIds.size()]), ",");
  HttpResponse res = post(buildEndpoint(pageId, "blocked"), new HttpParameter[]{new HttpParameter("uid", _userIds)});
  Map<String, Boolean> blocks = new HashMap<String, Boolean>();
  JSONObject jsonObject = res.asJSONObject();
  Iterator<String> uids = jsonObject.keys();
  while (uids.hasNext()) {
    String uid = uids.next();
    boolean result = getBoolean(uid, jsonObject);
    blocks.put(uid, result);
  }
  return blocks;
}

代码示例来源:origin: org.facebook4j/facebook4j-core

public Map<String, Boolean> block(String pageId, List<String> userIds) throws FacebookException {
  ensureAuthorizationEnabled();
  String _userIds = z_F4JInternalStringUtil.join(userIds.toArray(new String[userIds.size()]), ",");
  HttpResponse res = post(buildEndpoint(pageId, "blocked"), new HttpParameter[]{new HttpParameter("uid", _userIds)});
  Map<String, Boolean> blocks = new HashMap<String, Boolean>();
  JSONObject jsonObject = res.asJSONObject();
  Iterator<String> uids = jsonObject.keys();
  while (uids.hasNext()) {
    String uid = uids.next();
    boolean result = getBoolean(uid, jsonObject);
    blocks.put(uid, result);
  }
  return blocks;
}

代码示例来源:origin: apache/servicemix-bundles

public Map<String, Boolean> block(String pageId, List<String> userIds) throws FacebookException {
  ensureAuthorizationEnabled();
  String _userIds = z_F4JInternalStringUtil.join(userIds.toArray(new String[userIds.size()]), ",");
  HttpResponse res = post(buildEndpoint(pageId, "blocked"), new HttpParameter[]{new HttpParameter("uid", _userIds)});
  Map<String, Boolean> blocks = new HashMap<String, Boolean>();
  JSONObject jsonObject = res.asJSONObject();
  Iterator<String> uids = jsonObject.keys();
  while (uids.hasNext()) {
    String uid = uids.next();
    boolean result = getBoolean(uid, jsonObject);
    blocks.put(uid, result);
  }
  return blocks;
}

代码示例来源:origin: roundrop/facebook4j

/*package*/PictureJSONImpl(JSONObject json) throws FacebookException {
  try {
    JSONObject pictureJSONObject = json.getJSONObject("data");
    url = z_F4JInternalParseUtil.getURL("url", pictureJSONObject);
    isSilhouette = z_F4JInternalParseUtil.getBoolean("is_silhouette", pictureJSONObject);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone);
  }
}
/*package*/PictureJSONImpl(URL url) {

代码示例来源:origin: org.facebook4j/facebook4j-core

/*package*/PictureJSONImpl(JSONObject json) throws FacebookException {
  try {
    JSONObject pictureJSONObject = json.getJSONObject("data");
    url = z_F4JInternalParseUtil.getURL("url", pictureJSONObject);
    isSilhouette = z_F4JInternalParseUtil.getBoolean("is_silhouette", pictureJSONObject);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone);
  }
}
/*package*/PictureJSONImpl(URL url) {

代码示例来源:origin: apache/servicemix-bundles

/*package*/PictureJSONImpl(JSONObject json) throws FacebookException {
  try {
    JSONObject pictureJSONObject = json.getJSONObject("data");
    url = z_F4JInternalParseUtil.getURL("url", pictureJSONObject);
    isSilhouette = z_F4JInternalParseUtil.getBoolean("is_silhouette", pictureJSONObject);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone);
  }
}
/*package*/PictureJSONImpl(URL url) {

代码示例来源:origin: org.facebook4j/facebook4j-core

private void init(JSONObject json) throws FacebookException {
  try {
    id = getRawString("id", json);
    name = getRawString("name", json);
    link = getURL("link", json);
    if (!json.isNull("application")) {
      application = new IdNameEntityJSONImpl(json.getJSONObject("application"));
    }
    customName = getRawString("custom_name", json);
    isPermanent = getBoolean("is_permanent", json);
    position = getInt("position", json);
    isNonConnectionLandingTab = getBoolean("is_non_connection_landing_tab", json);
    imageURL = getURL("image_url", json);
    customImageURL = getURL("custom_image_url", json);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone);
  }
}

代码示例来源:origin: roundrop/facebook4j

private void init(JSONObject json) throws FacebookException {
  try {
    id = getRawString("id", json);
    name = getRawString("name", json);
    link = getURL("link", json);
    if (!json.isNull("application")) {
      application = new IdNameEntityJSONImpl(json.getJSONObject("application"));
    }
    customName = getRawString("custom_name", json);
    isPermanent = getBoolean("is_permanent", json);
    position = getInt("position", json);
    isNonConnectionLandingTab = getBoolean("is_non_connection_landing_tab", json);
    imageURL = getURL("image_url", json);
    customImageURL = getURL("custom_image_url", json);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone);
  }
}

代码示例来源:origin: apache/servicemix-bundles

private void init(JSONObject json) throws FacebookException {
  try {
    id = getRawString("id", json);
    name = getRawString("name", json);
    link = getURL("link", json);
    if (!json.isNull("application")) {
      application = new IdNameEntityJSONImpl(json.getJSONObject("application"));
    }
    customName = getRawString("custom_name", json);
    isPermanent = getBoolean("is_permanent", json);
    position = getInt("position", json);
    isNonConnectionLandingTab = getBoolean("is_non_connection_landing_tab", json);
    imageURL = getURL("image_url", json);
    customImageURL = getURL("custom_image_url", json);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone);
  }
}

代码示例来源:origin: roundrop/facebook4j

private void init(JSONObject json) throws FacebookException {
  try {
    id = getRawString("id", json);
    if (!json.isNull("from")) {
      JSONObject fromJSONObject = json.getJSONObject("from");
      from = new IdNameEntityJSONImpl(fromJSONObject);
    }
    subject = getRawString("subject", json);
    message = getRawString("message", json);
    icon = getURL("icon", json);
    createdTime = getISO8601Datetime("created_time", json);
    updatedTime = getISO8601Datetime("updated_time", json);
    revision = getLong("revision", json);
    canEdit = getBoolean("can_edit", json);
    canDelete = getBoolean("can_delete", json);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone.getMessage(), jsone);
  }
}

代码示例来源:origin: org.facebook4j/facebook4j-core

private void init(JSONObject json) throws FacebookException {
  try {
    id = getRawString("id", json);
    if (!json.isNull("from")) {
      JSONObject fromJSONObject = json.getJSONObject("from");
      from = new IdNameEntityJSONImpl(fromJSONObject);
    }
    subject = getRawString("subject", json);
    message = getRawString("message", json);
    icon = getURL("icon", json);
    createdTime = getISO8601Datetime("created_time", json);
    updatedTime = getISO8601Datetime("updated_time", json);
    revision = getLong("revision", json);
    canEdit = getBoolean("can_edit", json);
    canDelete = getBoolean("can_delete", json);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone.getMessage(), jsone);
  }
}

代码示例来源:origin: apache/servicemix-bundles

private void init(JSONObject json) throws FacebookException {
  try {
    id = getRawString("id", json);
    if (!json.isNull("from")) {
      JSONObject fromJSONObject = json.getJSONObject("from");
      from = new IdNameEntityJSONImpl(fromJSONObject);
    }
    subject = getRawString("subject", json);
    message = getRawString("message", json);
    icon = getURL("icon", json);
    createdTime = getISO8601Datetime("created_time", json);
    updatedTime = getISO8601Datetime("updated_time", json);
    revision = getLong("revision", json);
    canEdit = getBoolean("can_edit", json);
    canDelete = getBoolean("can_delete", json);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone.getMessage(), jsone);
  }
}

代码示例来源:origin: org.facebook4j/facebook4j-core

private void init(JSONObject json) throws FacebookException {
  try {
    if (!json.isNull("from")) {
      JSONObject fromJSONObject = json.getJSONObject("from");
      from = new IdNameEntityJSONImpl(fromJSONObject);
    } else {
      from = null;
    }
    if (!json.isNull("to")) {
      JSONObject toJSONObject = json.getJSONObject("to");
      to = new IdNameEntityJSONImpl(toJSONObject);
    } else {
      to = null;
    }
    createdTime = getISO8601Datetime("created_time", json);
    message = getRawString("message", json);
    unread = getBoolean("unread", json);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone.getMessage(), jsone);
  }
}

代码示例来源:origin: roundrop/facebook4j

private void init(JSONObject json) throws FacebookException {
  try {
    if (!json.isNull("from")) {
      JSONObject fromJSONObject = json.getJSONObject("from");
      from = new IdNameEntityJSONImpl(fromJSONObject);
    } else {
      from = null;
    }
    if (!json.isNull("to")) {
      JSONObject toJSONObject = json.getJSONObject("to");
      to = new IdNameEntityJSONImpl(toJSONObject);
    } else {
      to = null;
    }
    createdTime = getISO8601Datetime("created_time", json);
    message = getRawString("message", json);
    unread = getBoolean("unread", json);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone.getMessage(), jsone);
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com