models/communities/PollOptionContent.js

import MediaAttachment from './../MediaAttachment.js';

/** PollOptionContent */
export default class PollOptionContent {
    /**
     * Creates a PollOptionContent
     * @param {Object} params - Option content parameters.
     * @param {string} [params.optionId] - Option ID
     * @param {string} [params.text] - Text
     * @param {MediaAttachment} [params.attachment] - Attachment
     */
    constructor(params) {
        this.optionId = params.optionId || null;
        this.text = params.text || null;
        this.attachment = params.attachment || null;
    }
}