import { Factory, faker } from 'ember-cli-mirage';
import { JTV_USER_PICTURES_404_USER_150X150_URL } from 'web-client/utilities/urls/static-cdn';
import { TYPE_VIDEO } from 'web-client/utilities/video/playlist-item';

export default Factory.extend({
  _id(i) {
    let id = i + 1;
    return id.toString();
  },
  description_html: 'Platlist item description',
  duration: 2498,
  item_id: '1234',
  item_type: TYPE_VIDEO,
  owner_id: '12345',
  thumbnail_url: JTV_USER_PICTURES_404_USER_150X150_URL,
  title() { return faker.name.firstName(); },
  updated_at: '2016-04-07T00:18:49Z',
  views: 17449
});
