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

com.nulabinc.backlog4j.api.WatchingMethods Maven / Gradle / Ivy

There is a newer version: 2.6.0
Show newest version
package com.nulabinc.backlog4j.api;

import com.nulabinc.backlog4j.BacklogException;
import com.nulabinc.backlog4j.Watch;
import com.nulabinc.backlog4j.api.option.UpdateWatchParams;

/**
 * Executes Backlog Watch APIs.
 */
public interface WatchingMethods {

    /**
     * Returns the Watch.
     *
     * @param watchingId
     * @return the Watch
     * @throws BacklogException
     */
    Watch getWatch(Long watchingId) throws BacklogException;

    /**
     * Adds a watching to the issue.
     *
     * @param watchingId the issue identifier
     * @param note
     * @throws BacklogException
     */
    Watch addWatchToIssue(Object watchingId, String note) throws BacklogException;

    /**
     * Updates the existing watching.
     *
     * @param params the updating project parameters
     * @return the updated Watching
     * @throws BacklogException
     */
    Watch updateWatch(UpdateWatchParams params) throws BacklogException;

    /**
     * Deletes the existing watching.
     *
     * @param watchingId the watching identifier
     * @return the deleted watching
     * @throws BacklogException
     */
    Watch deleteWatch(Object watchingId) throws BacklogException;

    /**
     * Marks the watching as already read.
     *
     * @param numericUserId the user identifier
     * @throws BacklogException
     */
    void markAsCheckedUserWatches(Object numericUserId) throws BacklogException;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy