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

x33g5p2x  于2022-02-05 转载在 其他  
字(6.9k)|赞(0)|评价(0)|浏览(133)

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

z_F4JInternalParseUtil.getRawString介绍

暂无

代码示例

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

private void init(JSONObject json) throws FacebookException {
  id = getRawString("id", json);
  name = getRawString("name", json);
  period = getRawString("period", json);
  values = createValueList(json);
  title = getRawString("title", json);
  description = getRawString("description", json);
}

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

private void init(JSONObject json) throws FacebookException {
  id = getRawString("id", json);
  name = getRawString("name", json);
  category = getRawString("category", json);
  createdTime = getISO8601Datetime("created_time", json);
}

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

/*package*/VenueJSONImpl(JSONObject json) {
  id = getRawString("id", json);
  street = getRawString("street", json);
  city = getRawString("city", json);
  state = getRawString("state", json);
  country = getRawString("country", json);
  latitude = getDouble("latitude", json);
  longitude = getDouble("longitude", json);
  zip = getRawString("zip", json);
}

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

private void init(JSONObject json) throws FacebookException {
  id = getRawString("id", json);
  accessToken = getRawString("access_token", json);
  loginUrl = getRawString("login_url", json);
  if (!json.isNull("email")) {
    email = getRawString("email", json);
  }
  if (!json.isNull("password")) {
    password = getRawString("password", json);
  }
}

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

public static Double getDouble(String name, JSONObject json) {
  String str2 = getRawString(name, json);
  if (null == str2 || "".equals(str2) || "null".equals(str2)) {
    return null;
  } else {
    return Double.valueOf(str2);
  }
}

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

public DeviceCode(HttpResponse res) throws FacebookException {
  JSONObject json = res.asJSONObject();
  code = getRawString("code", json);
  userCode = getRawString("user_code", json);
  verificationUri = getRawString("verification_uri", json);
  expiresIn = getInt("expires_in", json);
  interval = getInt("interval", json);
}

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

public static URL getURL(String name, JSONObject json) {
  if (json.isNull(name)) {
    return null;
  }
  try {
    return new URL(getRawString(name, json));
  } catch (MalformedURLException urle) {
    return null;
  }
}

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

public static URL getURL(String name, JSONObject json) {
  if (json.isNull(name)) {
    return null;
  }
  try {
    return new URL(getRawString(name, json));
  } catch (MalformedURLException urle) {
    return null;
  }
}

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

FormatJSONImpl(JSONObject json) throws FacebookException {
  embedHtml = getRawString("embed_html", json);
  filter = getRawString("filter", json);
  height = getInt("height", json);
  width = getInt("width", json);
  picture = getURL("picture", json);
}

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

ValueJSONImpl(JSONObject json) throws FacebookException {
  if (null == getRawString("value", json)) {
    value = null;
  } else {
    value = new ValueEntryJSONImpl(json);
  }
  endTime = getISO8601Datetime("end_time", json);
}

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

public String postGroupFeed(String groupId, PostUpdate postUpdate) throws FacebookException {
  ensureAuthorizationEnabled();
  JSONObject json = post(buildEndpoint(groupId, "feed"),
            postUpdate.asHttpParameterArray()
           ).asJSONObject();
  return getRawString("id", json);
}
public String postGroupStatusMessage(String groupId, String message) throws FacebookException {

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

public String createOffer(String pageId, OfferUpdate offerUpdate) throws FacebookException {
  ensureAuthorizationEnabled();
  JSONObject json = post(buildEndpoint(pageId, "offers"), offerUpdate.asHttpParameterArray())
           .asJSONObject();
  return getRawString("id", json);
}

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

public String postVideo(String id, VideoUpdate videoUpdate) throws FacebookException {
  ensureAuthorizationEnabled();
  JSONObject json = post(buildVideoEndpoint(id, "videos"), videoUpdate.asHttpParameterArray()).asJSONObject();
  return getRawString("id", json);
}

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

public String postFeed(String id, PostUpdate postUpdate) throws FacebookException {
  ensureAuthorizationEnabled();
  JSONObject json = post(buildEndpoint(id, "feed"), postUpdate.asHttpParameterArray())
           .asJSONObject();
  return getRawString("id", json);
}

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

public String postVideo(String id, VideoUpdate videoUpdate) throws FacebookException {
  ensureAuthorizationEnabled();
  JSONObject json = post(buildVideoEndpoint(id, "videos"), videoUpdate.asHttpParameterArray()).asJSONObject();
  return getRawString("id", json);
}

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

public String checkin(String userId, CheckinUpdate checkinUpdate) throws FacebookException {
  ensureAuthorizationEnabled();
  JSONObject json = post(buildEndpoint(userId, "checkins"), checkinUpdate.asHttpParameterArray())
           .asJSONObject();
  return getRawString("id", json);
}

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

public String postFeed(String id, PostUpdate postUpdate) throws FacebookException {
  ensureAuthorizationEnabled();
  JSONObject json = post(buildEndpoint(id, "feed"), postUpdate.asHttpParameterArray())
           .asJSONObject();
  return getRawString("id", json);
}

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

public String createFriendlist(String userId, String friendlistName) throws FacebookException {
  ensureAuthorizationEnabled();
  JSONObject json = post(buildEndpoint(userId, "friendlists"),
              new HttpParameter[]{
                new HttpParameter("name", friendlistName)
              })
           .asJSONObject();
  return getRawString("id", json);
}
public boolean deleteFriendlist(String friendlistId) throws FacebookException {

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

private void init(JSONObject json) throws FacebookException {
  try {
    user = new IdNameEntityJSONImpl(json.getJSONObject("user"));
    score = getPrimitiveInt("score", json);
    application = new ApplicationJSONImpl(json.getJSONObject("application"));
    type = getRawString("type", json);
  } catch (JSONException jsone) {
    throw new FacebookException(jsone.getMessage(), jsone);
  }
}

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

public String postEventPhoto(String eventId, Media source, String message) throws FacebookException {
  ensureAuthorizationEnabled();
  HttpParameter[] httpParameters = new HttpParameter[] {source.asHttpParameter("source")};
  if (message != null) {
    httpParameters = HttpParameter.merge(httpParameters,
              new HttpParameter[]{new HttpParameter("message", message)});
  }
  JSONObject json = post(buildEndpoint(eventId, "photos"), httpParameters).asJSONObject();
  return getRawString("id", json);
}

相关文章