Ejemplo n.º 1
0
Vector<GraphRequest *> AppRequests::getRequests(int type) {
    Vector<GraphRequest *> all = getRequests();
    Vector<GraphRequest *> ret;
    for (GraphRequest *r : all) {
        GraphObject *data = r->getDataObject();
        if (data && data->getInt(AppRequestsDataTypeKey) == type) {
            ret.pushBack(r);
        }
    }
    return ret;
}