All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yahoo.imapnio.async.request.FetchCommand Maven / Gradle / Ivy

The newest version!
package com.yahoo.imapnio.async.request;

import javax.annotation.Nonnull;

import com.yahoo.imapnio.async.data.MessageNumberSet;

/**
 * This class defines imap fetch command request from client.
 */
public class FetchCommand extends AbstractFetchCommand {

    /**
     * Initializes a {@link FetchCommand} with the {@link MessageNumberSet} array and fetch items.
     *
     * @param msgsets the set of message set
     * @param items the data items
     */
    public FetchCommand(@Nonnull final MessageNumberSet[] msgsets, @Nonnull final String items) {
        super(false, msgsets, items);
    }

    /**
     * Initializes a {@link FetchCommand} with the {@link MessageNumberSet} array and macro.
     *
     * @param msgsets the set of message set
     * @param macro the macro
     */
    public FetchCommand(@Nonnull final MessageNumberSet[] msgsets, @Nonnull final FetchMacro macro) {
        super(false, msgsets, macro);
    }

    @Override
    public ImapRFCSupportedCommandType getCommandType() {
        return ImapRFCSupportedCommandType.FETCH;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy