C# Класс IO.Swagger.Api.StoreApi

Represents a collection of functions to interact with the API endpoints
Наследование: IStoreApi
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
DeleteOrder ( string orderId ) : void

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

DeleteOrderAsync ( string orderId ) : System.Threading.Tasks.Task

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

DeleteOrderAsyncWithHttpInfo ( string orderId ) : System.Threading.Tasks.Task>

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

DeleteOrderWithHttpInfo ( string orderId ) : ApiResponse

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors

GetBasePath ( ) : String

Gets the base path of the API client.

GetInventory ( ) : int?>.Dictionary

Returns pet inventories by status Returns a map of status codes to quantities

GetInventoryAsync ( ) : int?>>.System.Threading.Tasks.Task

Returns pet inventories by status Returns a map of status codes to quantities

GetInventoryAsyncWithHttpInfo ( ) : int?>>>.System.Threading.Tasks.Task

Returns pet inventories by status Returns a map of status codes to quantities

GetInventoryWithHttpInfo ( ) : int?>>.ApiResponse

Returns pet inventories by status Returns a map of status codes to quantities

GetOrderById ( long orderId ) : Order

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

GetOrderByIdAsync ( long orderId ) : System.Threading.Tasks.Task

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

GetOrderByIdAsyncWithHttpInfo ( long orderId ) : System.Threading.Tasks.Task>

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

GetOrderByIdWithHttpInfo ( long orderId ) : ApiResponse

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions

PlaceOrder ( Order body ) : Order

Place an order for a pet

PlaceOrderAsync ( Order body ) : System.Threading.Tasks.Task

Place an order for a pet

PlaceOrderAsyncWithHttpInfo ( Order body ) : System.Threading.Tasks.Task>

Place an order for a pet

PlaceOrderWithHttpInfo ( Order body ) : ApiResponse

Place an order for a pet

StoreApi ( Configuration configuration = null ) : System

Initializes a new instance of the StoreApi class using Configuration object

StoreApi ( String basePath ) : System

Initializes a new instance of the StoreApi class.

Приватные методы

Метод Описание
AddDefaultHeader ( string key, string value ) : void
DefaultHeader ( ) : String>.Dictionary
SetBasePath ( String basePath ) : void

Описание методов

DeleteOrder() публичный Метод

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Thrown when fails to make API call
public DeleteOrder ( string orderId ) : void
orderId string ID of the order that needs to be deleted
Результат void

DeleteOrderAsync() публичный Метод

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Thrown when fails to make API call
public DeleteOrderAsync ( string orderId ) : System.Threading.Tasks.Task
orderId string ID of the order that needs to be deleted
Результат System.Threading.Tasks.Task

DeleteOrderAsyncWithHttpInfo() публичный Метод

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Thrown when fails to make API call
public DeleteOrderAsyncWithHttpInfo ( string orderId ) : System.Threading.Tasks.Task>
orderId string ID of the order that needs to be deleted
Результат System.Threading.Tasks.Task>

DeleteOrderWithHttpInfo() публичный Метод

Delete purchase order by ID For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
Thrown when fails to make API call
public DeleteOrderWithHttpInfo ( string orderId ) : ApiResponse
orderId string ID of the order that needs to be deleted
Результат ApiResponse

GetBasePath() публичный Метод

Gets the base path of the API client.
public GetBasePath ( ) : String
Результат String

GetInventory() публичный Метод

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventory ( ) : int?>.Dictionary
Результат int?>.Dictionary

GetInventoryAsync() публичный Метод

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventoryAsync ( ) : int?>>.System.Threading.Tasks.Task
Результат int?>>.System.Threading.Tasks.Task

GetInventoryAsyncWithHttpInfo() публичный Метод

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventoryAsyncWithHttpInfo ( ) : int?>>>.System.Threading.Tasks.Task
Результат int?>>>.System.Threading.Tasks.Task

GetInventoryWithHttpInfo() публичный Метод

Returns pet inventories by status Returns a map of status codes to quantities
Thrown when fails to make API call
public GetInventoryWithHttpInfo ( ) : int?>>.ApiResponse
Результат int?>>.ApiResponse

GetOrderById() публичный Метод

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Thrown when fails to make API call
public GetOrderById ( long orderId ) : Order
orderId long ID of pet that needs to be fetched
Результат IO.Swagger.Model.Order

GetOrderByIdAsync() публичный Метод

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Thrown when fails to make API call
public GetOrderByIdAsync ( long orderId ) : System.Threading.Tasks.Task
orderId long ID of pet that needs to be fetched
Результат System.Threading.Tasks.Task

GetOrderByIdAsyncWithHttpInfo() публичный Метод

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Thrown when fails to make API call
public GetOrderByIdAsyncWithHttpInfo ( long orderId ) : System.Threading.Tasks.Task>
orderId long ID of pet that needs to be fetched
Результат System.Threading.Tasks.Task>

GetOrderByIdWithHttpInfo() публичный Метод

Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions
Thrown when fails to make API call
public GetOrderByIdWithHttpInfo ( long orderId ) : ApiResponse
orderId long ID of pet that needs to be fetched
Результат ApiResponse

PlaceOrder() публичный Метод

Place an order for a pet
Thrown when fails to make API call
public PlaceOrder ( Order body ) : Order
body IO.Swagger.Model.Order order placed for purchasing the pet
Результат IO.Swagger.Model.Order

PlaceOrderAsync() публичный Метод

Place an order for a pet
Thrown when fails to make API call
public PlaceOrderAsync ( Order body ) : System.Threading.Tasks.Task
body IO.Swagger.Model.Order order placed for purchasing the pet
Результат System.Threading.Tasks.Task

PlaceOrderAsyncWithHttpInfo() публичный Метод

Place an order for a pet
Thrown when fails to make API call
public PlaceOrderAsyncWithHttpInfo ( Order body ) : System.Threading.Tasks.Task>
body IO.Swagger.Model.Order order placed for purchasing the pet
Результат System.Threading.Tasks.Task>

PlaceOrderWithHttpInfo() публичный Метод

Place an order for a pet
Thrown when fails to make API call
public PlaceOrderWithHttpInfo ( Order body ) : ApiResponse
body IO.Swagger.Model.Order order placed for purchasing the pet
Результат ApiResponse

StoreApi() публичный Метод

Initializes a new instance of the StoreApi class using Configuration object
public StoreApi ( Configuration configuration = null ) : System
configuration IO.Swagger.Client.Configuration An instance of Configuration
Результат System

StoreApi() публичный Метод

Initializes a new instance of the StoreApi class.
public StoreApi ( String basePath ) : System
basePath String
Результат System