models/UserIdList.js

export default class UserIdList {
    /**
     * Creates a UserIdList
     * @constructor UserIdList
     * @param {string[]} ids - Array of User IDs.
     */
    constructor(ids) {
        this.ids = ids || [];
    }

    /**
     * Create a list of GetSocial user IDs.
     *
     * @memberof UserIdList
     * @param {string[]} ids - List of GetSocial user IDs.
     * @return {UserIdList} - New identifiers.
     */
    static create(ids) {
        return new UserIdList(ids);
    }
}