/*
 *   Copyright (C) 2015 Karumi.
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */

package com.karumi.marvelapiclient.sample;

import com.karumi.marvelapiclient.CharacterApiClient;
import com.karumi.marvelapiclient.ComicApiClient;
import com.karumi.marvelapiclient.MarvelApiConfig;
import com.karumi.marvelapiclient.MarvelApiException;
import com.karumi.marvelapiclient.model.CharacterDto;
import com.karumi.marvelapiclient.model.CharactersDto;
import com.karumi.marvelapiclient.model.CharactersQuery;
import com.karumi.marvelapiclient.model.ComicDto;
import com.karumi.marvelapiclient.model.ComicsDto;
import com.karumi.marvelapiclient.model.MarvelResponse;

public class MarveApiClientDemo {
  public static void main(String[] args) {
    if (args.length < 3) {
      System.out.println("MarveApiClientDemo [publicKey] [privateKey] [operation]");
    }
    String publicKey = args[0];
    String privateKey = args[1];
    String operation = args[2];

    MarvelApiConfig marvelApiConfig =
        new MarvelApiConfig.Builder(publicKey, privateKey).debug().build();

    try {
      if (operation.equals("getCharacters")) {
        CharacterApiClient characterApiClient = new CharacterApiClient(marvelApiConfig);
        CharactersQuery spider =
            CharactersQuery.Builder.create().withOffset(0).withLimit(10).build();
        MarvelResponse<CharactersDto> all = characterApiClient.getAll(spider);
        System.out.println(all.toString());
      } else if (operation.equals("getCharacter")) {
        CharacterApiClient characterApiClient = new CharacterApiClient(marvelApiConfig);
        MarvelResponse<CharacterDto> character = characterApiClient.getCharacter("1011334");
        System.out.println(character.toString());
      } else if (operation.equals("getComics")) {
        ComicApiClient comicApiClient = new ComicApiClient(marvelApiConfig);
        MarvelResponse<ComicsDto> comics = comicApiClient.getAll(0, 10);
        System.out.println(comics.toString());
      } else if (operation.equals("getComic")) {
        ComicApiClient comicApiClient = new ComicApiClient(marvelApiConfig);
        MarvelResponse<ComicDto> comic = comicApiClient.getComic("42882");
        System.out.println(comic.toString());
      }
    } catch (MarvelApiException e) {
      System.out.println("An error calling the Marvel Api " + e);
      e.printStackTrace();
    }
  }
}

@@ -855,16 +855,66 @@
 eption;%0A
+import com.karumi.marvelapiclient.SerieApiClient;%0A
 import c
@@ -1227,16 +1227,117 @@
 esponse;
+%0Aimport com.karumi.marvelapiclient.model.SerieDto;%0Aimport com.karumi.marvelapiclient.model.SeriesDto;
 %0A%0Apublic
@@ -2897,24 +2897,518 @@
 oString());%0A
+      %7D else if (operation.equals(%22getSeries%22)) %7B%0A        SerieApiClient serieApiClient = new SerieApiClient(marvelApiConfig);%0A        MarvelResponse%3CSeriesDto%3E series = serieApiClient.getAll(0, 10);%0A        System.out.println(series.toString());%0A      %7D else if (operation.equals(%22getSerie%22)) %7B%0A        SerieApiClient serieApiClient = new SerieApiClient(marvelApiConfig);%0A        MarvelResponse%3CSerieDto%3E serie = serieApiClient.getSerie(%2215276%22);%0A        System.out.println(serie.toString());%0A
       %7D%0A    

Add demo.