All files / src/models game.ts

85.71% Statements 6/7
66.66% Branches 4/6
75% Functions 3/4
85.71% Lines 6/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31    1x 1x 1x 1x 1x                                 4x              
import { Model } from './model';
 
export namespace IGame {
  export enum Access {
    Private = 'private',
    PrivatePublic = 'private-public',
    Public = 'public',
  }
}
 
export class Game extends Model {
  public access: IGame.Access;
  public background: string;
  public description: string;
  public icon: string;
  public images: string[];
  public metadata: any;
  public namespaceId: string;
  public subtitle: string;
  public title: string;
  public videos: string[];
 
  constructor(params?: Partial<Game>) {
    super(params);
  }
 
  public get fullTitle() {
    return this.subtitle ? `${this.title} (${this.subtitle})` : this.title;
  }
}