import { Factory } from 'ember-cli-mirage';
import { faker } from 'ember-cli-mirage';

export default Factory.extend({
  name: "Creative",
  popularity: 224,
  _channels: faker.random.number(),
  _viewers: faker.random.number(),
  _is_featured: false,
  _id(i) {
    return i;
  },
  giantbomb_id: 0,
  box() {
    return {
      large: `http://static-cdn.jtvnw.net/ttv-boxart/${this.name}-272x380.jpg`,
      medium: `http://static-cdn.jtvnw.net/ttv-boxart/${this.name}-136x190.jpg`,
      small: `http://static-cdn.jtvnw.net/ttv-boxart/${this.name}-52x72.jpg`,
      template: `http://static-cdn.jtvnw.net/ttv-boxart/${this.name}-{width}x{height}.jpg`
    };
  },
  logo() {
    return {
      large: `http://static-cdn.jtvnw.net/ttv-logoart/${this.name}-240x144.jpg`,
      medium: `http://static-cdn.jtvnw.net/ttv-logoart/${this.name}-120x72.jpg`,
      small: `http://static-cdn.jtvnw.net/ttv-logoart/${this.name}-60x36.jpg`,
      template: `http://static-cdn.jtvnw.net/ttv-logoart/${this.name}-{width}x{height}.jpg`
    };
  },
  _links: {}
});
