mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-18 11:39:14 +00:00
33 lines
623 B
JavaScript
33 lines
623 B
JavaScript
'use strict';
|
|
|
|
/**
|
|
* Location information
|
|
*/
|
|
class Location {
|
|
/**
|
|
* @param {number} latitude
|
|
* @param {number} longitude
|
|
* @param {?string} description
|
|
*/
|
|
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; |