horse.ts 315 Bytes
Newer Older
1 2 3 4 5 6 7
export class Horse {
  constructor(
    public id: number,
    public name: string,
    public description: string,
    public score: number,
    public birthday: Date,
8
    public race: ERace,
Ivaylo Ivanov's avatar
Ivaylo Ivanov committed
9
    public imagePath: String,
10 11 12
    public owner: number) {
  }
}
13 14 15 16 17 18 19

enum ERace {
  ARABIAN,
  MORGAN,
  PAINT,
  APPALOOSA
}