Example usage for com.google.gson JsonElement getAsString

List of usage examples for com.google.gson JsonElement getAsString

Introduction

In this page you can find the example usage for com.google.gson JsonElement getAsString.

Prototype

public String getAsString() 

Source Link

Document

convenience method to get this element as a string value.

Usage

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

public String getCatalogExt(JsonObject catalogThreadJson) {
    JsonElement ext = catalogThreadJson.get(CATALOG_EXT);
    return ext != null ? ext.getAsString() : null;
}

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

public String getCatalogEmbed(JsonObject threadJson) {
    JsonElement embed = threadJson.get(CATALOG_EMBED);
    return embed != null ? embed.getAsString() : null;
}

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

public String getThreadFilename(JsonObject threadJson) {
    JsonElement fileName = threadJson.get(THREAD_FILENAME);
    return fileName != null ? fileName.getAsString() : null;
}

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

private String getThreadTim(JsonObject threadJson) {
    JsonElement tim = threadJson.get(THREAD_TIM);
    return tim != null ? tim.getAsString() : null;
}

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

private String getThreadExt(JsonObject threadJson) {
    JsonElement ext = threadJson.get(THREAD_EXT);
    return ext != null ? ext.getAsString() : null;
}

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

public String getThreadSub(JsonObject threadJson) {
    JsonElement sub = threadJson.get(THREAD_SUB);
    return sub != null ? sub.getAsString() : null;
}

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

public String getThreadCom(JsonObject threadJson) {
    JsonElement com = threadJson.get(THREAD_COM);
    return com != null ? com.getAsString() : null;
}

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

public String getThreadEmail(JsonObject threadJson) {
    JsonElement email = threadJson.get(THREAD_EMAIL);
    return email != null ? email.getAsString() : null;
}

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

public String getThreadName(JsonObject threadJson) {
    JsonElement name = threadJson.get(THREAD_NAME);
    return name != null ? name.getAsString() : null;
}

From source file:com.luorrak.ouroboros.api.JsonParser.java

License:Open Source License

public String getThreadTrip(JsonObject threadJson) {
    JsonElement trip = threadJson.get(THREAD_TRIP);
    return trip != null ? trip.getAsString() : null;
}