Package com.omertron.themoviedbapi.model

Examples of com.omertron.themoviedbapi.model.Person


    public List<Person> getAll() {
        List<Person> people = new ArrayList<Person>();

        // Add a cast member
        for (PersonCast member : cast) {
            Person person = new Person();
            person.addCast(member.getId(), member.getName(), member.getProfilePath(), member.getCharacter(), member.getOrder());
            people.add(person);
        }

        // Add a crew member
        for (PersonCrew member : crew) {
            Person person = new Person();
            person.addCrew(member.getId(), member.getName(), member.getProfilePath(), member.getDepartment(), member.getJob());
            people.add(person);
        }

        return people;
    }
View Full Code Here


     * @throws MovieDbException
     */
    @Test
    public void testGetPersonInfo() throws MovieDbException {
        LOG.info("getPersonInfo");
        Person result = tmdb.getPersonInfo(ID_PERSON_BRUCE_WILLIS);
        assertTrue("Wrong actor returned", result.getId() == ID_PERSON_BRUCE_WILLIS);
    }
View Full Code Here

    @Test
    public void testGetPersonLatest() throws Exception {
        LOG.info("getPersonLatest");

        Person result = tmdb.getPersonLatest();

        assertNotNull("No results found", result);
        assertTrue("No results found", StringUtils.isNotBlank(result.getName()));
    }
View Full Code Here

TOP

Related Classes of com.omertron.themoviedbapi.model.Person

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.