2018-08-07 18:17:14 +00:00
|
|
|
import Abstract from 'model/abstract';
|
|
|
|
|
|
|
|
class Photo extends Abstract {
|
|
|
|
getEntityName() {
|
|
|
|
return this.Title;
|
|
|
|
}
|
|
|
|
|
|
|
|
getId() {
|
|
|
|
return this.ID;
|
|
|
|
}
|
|
|
|
|
2018-08-09 21:10:05 +00:00
|
|
|
getGoogleMapsLink() {
|
|
|
|
return 'https://www.google.com/maps/place/' + this.Lat + ',' + this.Long;
|
|
|
|
}
|
|
|
|
|
2018-08-07 18:17:14 +00:00
|
|
|
static getCollectionResource() {
|
|
|
|
return 'photos';
|
|
|
|
}
|
|
|
|
|
|
|
|
static getModelName() {
|
|
|
|
return 'Photo';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Photo;
|