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

com.github.jamesnetherton.zulip.client.api.stream.StreamUnsubscribeResult Maven / Gradle / Ivy

The newest version!
package com.github.jamesnetherton.zulip.client.api.stream;

import com.github.jamesnetherton.zulip.client.api.stream.response.UnsubscribeStreamsApiResponse;
import java.util.List;

/**
 * Defines a Zulip stream unsubscribe result.
 */
public class StreamUnsubscribeResult {

    private final UnsubscribeStreamsApiResponse delegate;

    public StreamUnsubscribeResult(UnsubscribeStreamsApiResponse delegate) {
        this.delegate = delegate;
    }

    /**
     * Gets the stream names that the user was not unsubscribed from.
     *
     * @return List of stream names that the user was not unsubcribed from
     */
    public List getNotRemoved() {
        return delegate.getNotRemoved();
    }

    /**
     * Gets the stream names that the user was unsubscribed from.
     *
     * @return List of stream names that the user was unsubcribed from
     */
    public List getRemoved() {
        return delegate.getRemoved();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy