miataru/miataru-server

View on GitHub
lib/models/ResponseLocationHistory.js

Summary

Maintainability
A
1 hr
Test Coverage
function ResponseLocationHistory(size, maxNumber, list) {
    this._size = size;
    this._locationsList = list;
    this._maxNumber = maxNumber;
}

ResponseLocationHistory.prototype.data = function() {
    return {
        MiataruServerConfig: {
            MaximumNumberOfLocationUpdates: this._maxNumber,
            AvailableDeviceLocationUpdates: this._size
        },
        MiataruLocation: this._locationsList
    };
};

module.exports = ResponseLocationHistory;