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

com.jdroid.github.service.LabelService Maven / Gradle / Ivy

There is a newer version: 0.9.4
Show newest version
/*******************************************************************************
 *  Copyright (c) 2011 GitHub Inc.
 *  All rights reserved. This program and the accompanying materials
 *  are made available under the terms of the Eclipse Public License v1.0
 *  which accompanies this distribution, and is available at
 *  http://www.eclipse.org/legal/epl-v10.html
 *
 *  Contributors:
 *    Kevin Sawicki (GitHub Inc.) - initial API and implementation
 *******************************************************************************/
package com.jdroid.github.service;

import com.google.gson.reflect.TypeToken;
import com.jdroid.github.IRepositoryIdProvider;
import com.jdroid.github.Label;
import com.jdroid.github.client.GitHubClient;
import com.jdroid.github.client.GitHubRequest;
import com.jdroid.github.client.PagedRequest;

import java.io.IOException;
import java.util.List;

import static com.jdroid.github.client.IGitHubConstants.SEGMENT_ISSUES;
import static com.jdroid.github.client.IGitHubConstants.SEGMENT_LABELS;
import static com.jdroid.github.client.IGitHubConstants.SEGMENT_REPOS;

/**
 * Label service class for listing {@link Label} objects in use for a given
 * repository.
 *
 * @see GitHub labels API
 *      documentation
 */
public class LabelService extends GitHubService {

	/**
	 * Create label service
	 */
	public LabelService() {
		super();
	}

	/**
	 * Create label service for client
	 *
	 * @param client
	 */
	public LabelService(GitHubClient client) {
		super(client);
	}

	/**
	 * Get labels
	 *
	 * @param repository
	 * @return list of labels
	 * @throws IOException
	 */
	public List




© 2015 - 2025 Weber Informatics LLC | Privacy Policy