feat: Send and receive location

This commit is contained in:
Pedro Lopez
2020-02-08 00:46:08 -04:00
parent 4b1768450f
commit 7b229a39a4
8 changed files with 66 additions and 3 deletions

View File

@@ -0,0 +1,33 @@
'use strict';
/**
* Location information
*/
class Location {
/**
* @param {number} latitude
* @param {number} longitude
* @param {?string} descriptionon
*/
constructor(latitude, longitude, description) {
/**
* Location latitude
* @type {number}
*/
this.latitude = latitude;
/**
* Location longitude
* @type {number}
*/
this.longitude = longitude;
/**
* Name for the location
* @type {?string}
*/
this.description = description;
}
}
module.exports = Location;