models/communities/FriendsQuery.js

import UserId from './../UserId.js';

export default class FriendsQuery {
    /**
     * Creates a FriendsQuery
     *
     * @constructor FriendsQuery
     * @param {UserId} userId - User ID.
     */
    constructor(userId) {
        this.userId = userId || null;
    }

    /**
     * Get friends of a user.
     *
     * @memberof FriendsQuery
     * @param {UserId} userId - User ID.
     * @return {FriendsQuery} New query.
     */
    static ofUser(userId) {
        return new FriendsQuery(userId);
    }
}