package com.uwetrottmann.trakt5.entities;

import java.util.ArrayList;
import java.util.List;

public class SyncItems {

    public List<SyncMovie> movies;
    public List<SyncShow> shows;
    public List<SyncEpisode> episodes;
    /**
     * Only supported for removing specific history items.
     */
    public List<Integer> ids;

    public SyncItems movies(SyncMovie movie) {
        ArrayList<SyncMovie> list = new ArrayList<>(1);
        list.add(movie);
        return movies(list);
    }

    public SyncItems movies(List<SyncMovie> movies) {
        this.movies = movies;
        return this;
    }

    public SyncItems shows(SyncShow show) {
        ArrayList<SyncShow> list = new ArrayList<>(1);
        list.add(show);
        return shows(list);
    }

    public SyncItems shows(List<SyncShow> shows) {
        this.shows = shows;
        return this;
    }

    public SyncItems episodes(SyncEpisode episode) {
        ArrayList<SyncEpisode> list = new ArrayList<>(1);
        list.add(episode);
        return episodes(list);
    }

    public SyncItems episodes(List<SyncEpisode> episodes) {
        this.episodes = episodes;
        return this;
    }

    /**
     * History id to be removed.
     */
    public SyncItems ids(int id) {
        ArrayList<Integer> list = new ArrayList<>(1);
        list.add(id);
        return ids(list);
    }

    /**
     * History ids to be removed.
     */
    public SyncItems ids(List<Integer> ids) {
        this.ids = ids;
        return this;
    }

}

@@ -217,24 +217,25 @@
 %3E episodes;%0A
+%0A
     /**%0A    
@@ -309,31 +309,28 @@
 public List%3C
-Integer
+Long
 %3E ids;%0A%0A    
@@ -1156,32 +1156,187 @@
 rn this;%0A    %7D%0A%0A
+    /**%0A     * @deprecated use %7B@link #ids(long)%7D instead%0A     */%0A    @Deprecated%0A    public SyncItems ids(int id) %7B%0A        return ids((long) id);%0A    %7D%0A%0A
     /**%0A     * H
@@ -1385,35 +1385,36 @@
 c SyncItems ids(
-int
+long
  id) %7B%0A        A
@@ -1422,23 +1422,20 @@
 rayList%3C
-Integer
+Long
 %3E list =
@@ -1594,15 +1594,12 @@
 ist%3C
-Integer
+Long
 %3E id
@@ -1654,11 +1654,10 @@
 ;%0A    %7D%0A
-%0A
 %7D%0A

Change SyncItems to use Long IDs