Package facebook4j.internal.org.json

Examples of facebook4j.internal.org.json.JSONObject$Null


    throws FacebookException {
        try {
            if (conf.isJSONStoreEnabled()) {
                DataObjectFactoryUtil.clearThreadLocalMap();
            }
            JSONObject json = res.asJSONObject();
            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<Question.Option> options = new ResponseListImpl<Question.Option>(size, json);
            for (int i = 0; i < size; i++) {
                Question.Option option = new OptionJSONImpl(list.getJSONObject(i));
                options.add(option);
View Full Code Here


        /*package*/OptionJSONImpl(JSONObject json) throws FacebookException {
            try {
                id = getRawString("id", json);
                if (!json.isNull("from")) {
                    JSONObject fromJSONObject = json.getJSONObject("from");
                    from = new CategoryJSONImpl(fromJSONObject);
                }
                name = getRawString("name", json);
                voteCount = getPrimitiveInt("vote_count", json);
                createdTime = getISO8601Datetime("created_time", json);
View Full Code Here

   
    private Metadata.Connections connections;
   
    /*package*/MetadataJSONImpl(JSONObject json) throws FacebookException {
        try {
            JSONObject connectionsJSONObject = json.getJSONObject("connections");
            connections = new ConnectionsJSONImpl(connectionsJSONObject);
        } catch (JSONException jsone) {
            throw new FacebookException(jsone.getMessage(), jsone);
        }
    }
View Full Code Here

    private Double y;
    private Date createdTime;

    /*package*/TagJSONImpl(HttpResponse res, Configuration conf) throws FacebookException {
        super(res);
        JSONObject json = res.asJSONObject();
        init(json);
        if (conf.isJSONStoreEnabled()) {
            DataObjectFactoryUtil.clearThreadLocalMap();
            DataObjectFactoryUtil.registerJSONObject(this, json);
        }
View Full Code Here

    static ResponseList<Tag> createTagList(HttpResponse res, Configuration conf) throws FacebookException {
        try {
            if (conf.isJSONStoreEnabled()) {
                DataObjectFactoryUtil.clearThreadLocalMap();
            }
            JSONObject json = res.asJSONObject();
            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<Tag> tags = new ResponseListImpl<Tag>(size, json);
            for (int i = 0; i < size; i++) {
                JSONObject tagJSONObject = list.getJSONObject(i);
                Tag tag = new TagJSONImpl(tagJSONObject);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(tag, tagJSONObject);
                }
                tags.add(tag);
View Full Code Here

    static ResponseList<Subscriber> createSubscriberList(HttpResponse res, Configuration conf) throws FacebookException {
        try {
            if (conf.isJSONStoreEnabled()) {
                DataObjectFactoryUtil.clearThreadLocalMap();
            }
            JSONObject json = res.asJSONObject();
            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<Subscriber> subscribers = new ResponseListImpl<Subscriber>(size, json);
            for (int i = 0; i < size; i++) {
                JSONObject subscriberJSONObject = list.getJSONObject(i);
                Subscriber subscriber = new SubscriberJSONImpl(subscriberJSONObject);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(subscriber, subscriberJSONObject);
                }
                subscribers.add(subscriber);
View Full Code Here

    static ResponseList<Music> createMusicList(HttpResponse res, Configuration conf) throws FacebookException {
        try {
            if (conf.isJSONStoreEnabled()) {
                DataObjectFactoryUtil.clearThreadLocalMap();
            }
            JSONObject json = res.asJSONObject();
            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<Music> musics = new ResponseListImpl<Music>(size, json);
            for (int i = 0; i < size; i++) {
                JSONObject musicJSONObject = list.getJSONObject(i);
                Music music = new MusicJSONImpl(musicJSONObject);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(music, musicJSONObject);
                }
                musics.add(music);
View Full Code Here

    private Boolean isAdministrator;

    /*package*/GroupMemberJSONImpl(HttpResponse res, Configuration conf) throws FacebookException {
        super(res, conf);
        JSONObject json = res.asJSONObject();
        init(json);
        if (conf.isJSONStoreEnabled()) {
            DataObjectFactoryUtil.clearThreadLocalMap();
            DataObjectFactoryUtil.registerJSONObject(this, json);
        }
View Full Code Here

    static ResponseList<GroupMember> createGroupMemberList(HttpResponse res, Configuration conf) throws FacebookException {
        try {
            if (conf.isJSONStoreEnabled()) {
                DataObjectFactoryUtil.clearThreadLocalMap();
            }
            JSONObject json = res.asJSONObject();
            JSONArray list = json.getJSONArray("data");
            final int size = list.length();
            ResponseList<GroupMember> members = new ResponseListImpl<GroupMember>(size, json);
            for (int i = 0; i < size; i++) {
                JSONObject groupMemberJSONObject = list.getJSONObject(i);
                GroupMember member = new GroupMemberJSONImpl(groupMemberJSONObject);
                if (conf.isJSONStoreEnabled()) {
                    DataObjectFactoryUtil.registerJSONObject(member, groupMemberJSONObject);
                }
                members.add(member);
View Full Code Here

    private String title;
    private String description;
   
    /*package*/InsightJSONImpl(HttpResponse res, Configuration conf) throws FacebookException {
        super(res);
        JSONObject json = res.asJSONObject();
        init(json);
        if (conf.isJSONStoreEnabled()) {
            DataObjectFactoryUtil.clearThreadLocalMap();
            DataObjectFactoryUtil.registerJSONObject(this, json);
        }
View Full Code Here

TOP

Related Classes of facebook4j.internal.org.json.JSONObject$Null

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.