/** * Engine API * Civilization Engine API * * OpenAPI spec version: 1.0 * * * 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. */ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http'; import { Observable } from 'rxjs'; import { CivIntAction } from '../model/civIntAction'; import { ExchangeIntAction } from '../model/exchangeIntAction'; import { ExchangeUuidAction } from '../model/exchangeUuidAction'; import { GameEngineDto } from '../model/gameEngineDto'; import { Configuration } from '../configuration'; export declare class EngineTradeService { protected httpClient: HttpClient; protected basePath: string; defaultHeaders: HttpHeaders; configuration: Configuration; constructor(httpClient: HttpClient, basePath: string, configuration: Configuration); /** * @param consumes string[] mime-types * @return true: consumes contains 'multipart/form-data', false: otherwise */ private canConsumeForm; /** * Exchange culture * Exchange culture * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ exchangeCulture(body: ExchangeIntAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; exchangeCulture(body: ExchangeIntAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; exchangeCulture(body: ExchangeIntAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Exchange event * Exchange culture event * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ exchangeEvent(body: ExchangeUuidAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; exchangeEvent(body: ExchangeUuidAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; exchangeEvent(body: ExchangeUuidAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Exchange hut * Exchange hut * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ exchangeHut(body: ExchangeUuidAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; exchangeHut(body: ExchangeUuidAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; exchangeHut(body: ExchangeUuidAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Exchange resource * Exchange resource * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ exchangeResource(body: ExchangeUuidAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; exchangeResource(body: ExchangeUuidAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; exchangeResource(body: ExchangeUuidAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Exchange trade * Exchange trade * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ exchangeTrade(body: ExchangeIntAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; exchangeTrade(body: ExchangeIntAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; exchangeTrade(body: ExchangeIntAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Exchange village * Exchange village * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ exchangeVillage(body: ExchangeUuidAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; exchangeVillage(body: ExchangeUuidAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; exchangeVillage(body: ExchangeUuidAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; /** * Set trade * Set civilization trade * @param body * @param gameId Game ID * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ setTrade(body: CivIntAction, gameId: number, observe?: 'body', reportProgress?: boolean): Observable; setTrade(body: CivIntAction, gameId: number, observe?: 'response', reportProgress?: boolean): Observable>; setTrade(body: CivIntAction, gameId: number, observe?: 'events', reportProgress?: boolean): Observable>; }