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

fi.metatavu.restfulptv.client.ServiceChannelsApi Maven / Gradle / Ivy

There is a newer version: 1.4.9
Show newest version
/**
 * RESTful PTV
 * Restful way to use Palvelutietovaranto.
 *
 * OpenAPI spec version: v1
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package fi.metatavu.restfulptv.client;

import fi.metatavu.restfulptv.client.model.*;

import fi.metatavu.restfulptv.client.model.BadRequest;
import fi.metatavu.restfulptv.client.model.Forbidden;
import fi.metatavu.restfulptv.client.model.ElectronicServiceChannel;
import fi.metatavu.restfulptv.client.model.InternalServerError;
import fi.metatavu.restfulptv.client.model.NotFound;
import fi.metatavu.restfulptv.client.model.PhoneServiceChannel;
import fi.metatavu.restfulptv.client.model.PrintableFormServiceChannel;
import fi.metatavu.restfulptv.client.model.ServiceLocationServiceChannel;
import fi.metatavu.restfulptv.client.model.WebPageServiceChannel;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2017-04-11T07:17:18.637+03:00")
public class ServiceChannelsApi {

  private ApiClient client;
  private String baseUrl;

  public ServiceChannelsApi(String baseUrl, ApiClient client) {
    this.client = client;
    this.baseUrl = baseUrl;
  }
  
  /**
   * finds an electronic service channel by id
   * finds an electronic service channel by id
   * @param electronicServiceChannelId electronic service channel id (required)
   */
  public ApiResponse findElectronicServiceChannel(String electronicServiceChannelId) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
        
        
    String path = String.format("%s/electronicServiceChannels/{electronicServiceChannelId}"
      .replaceAll("\\{" + "electronicServiceChannelId" + "\\}", String.valueOf(electronicServiceChannelId)), baseUrl);
      
    ResultType resultType = new ResultType() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  /**
   * finds a phone service channel by id
   * finds a phone service channel by id
   * @param phoneServiceChannelId phone service channel id (required)
   */
  public ApiResponse findPhoneServiceChannel(String phoneServiceChannelId) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
        
        
    String path = String.format("%s/phoneServiceChannels/{phoneServiceChannelId}"
      .replaceAll("\\{" + "phoneServiceChannelId" + "\\}", String.valueOf(phoneServiceChannelId)), baseUrl);
      
    ResultType resultType = new ResultType() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  /**
   * finds a printable for service channel by id
   * finds a printable for service channel by id
   * @param printableFormServiceChannelId Printable form service channel id (required)
   */
  public ApiResponse findPrintableFormServiceChannel(String printableFormServiceChannelId) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
        
        
    String path = String.format("%s/printableFormServiceChannels/{printableFormServiceChannelId}"
      .replaceAll("\\{" + "printableFormServiceChannelId" + "\\}", String.valueOf(printableFormServiceChannelId)), baseUrl);
      
    ResultType resultType = new ResultType() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  /**
   * Finds a service location service channel by id
   * Finds a service location service channel by id
   * @param serviceLocationServiceChannelId service location service channel id (required)
   */
  public ApiResponse findServiceLocationServiceChannel(String serviceLocationServiceChannelId) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
        
        
    String path = String.format("%s/serviceLocationServiceChannels/{serviceLocationServiceChannelId}"
      .replaceAll("\\{" + "serviceLocationServiceChannelId" + "\\}", String.valueOf(serviceLocationServiceChannelId)), baseUrl);
      
    ResultType resultType = new ResultType() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  /**
   * Finds a web page service channel by id
   * Finds a web page service channel by id
   * @param webPageServiceChannelId web page service channel id (required)
   */
  public ApiResponse findWebPageServiceChannel(String webPageServiceChannelId) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
        
        
    String path = String.format("%s/webPageServiceChannels/{webPageServiceChannelId}"
      .replaceAll("\\{" + "webPageServiceChannelId" + "\\}", String.valueOf(webPageServiceChannelId)), baseUrl);
      
    ResultType resultType = new ResultType() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  /**
   * Lists electronic service channels
   * Lists electronic service channels
   * @param firstResult First result (optional)
   * @param maxResults Max results (optional)
   */
  public ApiResponse> listElectronicServiceChannels(Long firstResult, Long maxResults) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
    if (firstResult != null)
    queryParams.put("firstResult", firstResult);
if (maxResults != null)
    queryParams.put("maxResults", maxResults);
    
        
    String path = String.format("%s/electronicServiceChannels", baseUrl);
      
    ResultType> resultType = new ResultType>() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  /**
   * Lists phone service channels
   * Lists phone service channels
   * @param firstResult First result (optional)
   * @param maxResults Max results (optional)
   */
  public ApiResponse> listPhoneServiceChannels(Long firstResult, Long maxResults) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
    if (firstResult != null)
    queryParams.put("firstResult", firstResult);
if (maxResults != null)
    queryParams.put("maxResults", maxResults);
    
        
    String path = String.format("%s/phoneServiceChannels", baseUrl);
      
    ResultType> resultType = new ResultType>() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  /**
   * Lists printable form service channels
   * Lists printable form service channels
   * @param firstResult First result (optional)
   * @param maxResults Max results (optional)
   */
  public ApiResponse> listPrintableFormServiceChannels(Long firstResult, Long maxResults) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
    if (firstResult != null)
    queryParams.put("firstResult", firstResult);
if (maxResults != null)
    queryParams.put("maxResults", maxResults);
    
        
    String path = String.format("%s/printableFormServiceChannels", baseUrl);
      
    ResultType> resultType = new ResultType>() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  /**
   * Lists service location service channels
   * Lists service location service channels
   * @param firstResult First result (optional)
   * @param maxResults Max results (optional)
   */
  public ApiResponse> listServiceLocationServiceChannels(Long firstResult, Long maxResults) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
    if (firstResult != null)
    queryParams.put("firstResult", firstResult);
if (maxResults != null)
    queryParams.put("maxResults", maxResults);
    
        
    String path = String.format("%s/serviceLocationServiceChannels", baseUrl);
      
    ResultType> resultType = new ResultType>() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  /**
   * Lists web page service channels
   * Lists web page service channels
   * @param firstResult First result (optional)
   * @param maxResults Max results (optional)
   */
  public ApiResponse> listWebPageServiceChannels(Long firstResult, Long maxResults) {
    Map queryParams = new HashMap<>();
    Map formParams = new HashMap<>();
    if (firstResult != null)
    queryParams.put("firstResult", firstResult);
if (maxResults != null)
    queryParams.put("maxResults", maxResults);
    
        
    String path = String.format("%s/webPageServiceChannels", baseUrl);
      
    ResultType> resultType = new ResultType>() {};
    return client.doGETRequest(path, resultType, queryParams, formParams);
  }
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy