You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tp_ReactNative/JokesApp/model/CustomJoke.ts

19 lines
362 B

import { Joke } from "./Joke";
// Class CustomJoke héritant de Joke
export class CustomJoke extends Joke{
private _id : string
get id(): string {
return this._id;
}
constructor(type : string, setup : string,punchline : string,image : string ,id : string) {
super(type,setup,punchline,image);
this._id = id
}
}