C# Класс PetStore.PetStoreClient

Показать файл Открыть проект

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

Метод Описание
AddPetAsync ( Pet body ) : System.Threading.Tasks.Task

Add a new pet to the store

AddPetAsync ( Pet body, System cancellationToken ) : System.Threading.Tasks.Task

Add a new pet to the store

CreateUserAsync ( User body ) : System.Threading.Tasks.Task

Create user

CreateUserAsync ( User body, System cancellationToken ) : System.Threading.Tasks.Task

Create user

CreateUsersWithArrayInputAsync ( System body ) : System.Threading.Tasks.Task

Creates list of users with given input array

CreateUsersWithArrayInputAsync ( System body, System cancellationToken ) : System.Threading.Tasks.Task

Creates list of users with given input array

CreateUsersWithListInputAsync ( System body ) : System.Threading.Tasks.Task

Creates list of users with given input array

CreateUsersWithListInputAsync ( System body, System cancellationToken ) : System.Threading.Tasks.Task

Creates list of users with given input array

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

Delete purchase order by ID

DeleteOrderAsync ( int orderId, System cancellationToken ) : System.Threading.Tasks.Task

Delete purchase order by ID

DeletePetAsync ( string api_key, int petId ) : System.Threading.Tasks.Task

Deletes a pet

DeletePetAsync ( string api_key, int petId, System cancellationToken ) : System.Threading.Tasks.Task

Deletes a pet

DeleteUserAsync ( string username ) : System.Threading.Tasks.Task

Delete user

DeleteUserAsync ( string username, System cancellationToken ) : System.Threading.Tasks.Task

Delete user

FindPetsByStatusAsync ( System status ) : System.Threading.Tasks.Task>

Finds Pets by status

FindPetsByStatusAsync ( System status, System cancellationToken ) : System.Threading.Tasks.Task>

Finds Pets by status

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

Returns pet inventories by status

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

Returns pet inventories by status

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

Find purchase order by ID

GetOrderByIdAsync ( int orderId, System cancellationToken ) : System.Threading.Tasks.Task

Find purchase order by ID

GetPetByIdAsync ( int petId ) : System.Threading.Tasks.Task

Find pet by ID

GetPetByIdAsync ( int petId, System cancellationToken ) : System.Threading.Tasks.Task

Find pet by ID

GetUserByNameAsync ( string username ) : System.Threading.Tasks.Task

Get user by user name

GetUserByNameAsync ( string username, System cancellationToken ) : System.Threading.Tasks.Task

Get user by user name

LoginUserAsync ( string username, string password ) : System.Threading.Tasks.Task

Logs user into the system

LoginUserAsync ( string username, string password, System cancellationToken ) : System.Threading.Tasks.Task

Logs user into the system

LogoutUserAsync ( ) : System.Threading.Tasks.Task

Logs out current logged in user session

LogoutUserAsync ( System cancellationToken ) : System.Threading.Tasks.Task

Logs out current logged in user session

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

Place an order for a pet

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

Place an order for a pet

UpdatePetAsync ( Pet body ) : System.Threading.Tasks.Task

Update an existing pet

UpdatePetAsync ( Pet body, System cancellationToken ) : System.Threading.Tasks.Task

Update an existing pet

UpdatePetWithFormAsync ( int petId, string name, string status ) : System.Threading.Tasks.Task

Updates a pet in the store with form data

UpdatePetWithFormAsync ( int petId, string name, string status, System cancellationToken ) : System.Threading.Tasks.Task

Updates a pet in the store with form data

UpdateUserAsync ( string username, User body ) : System.Threading.Tasks.Task

Updated user

UpdateUserAsync ( string username, User body, System cancellationToken ) : System.Threading.Tasks.Task

Updated user

UploadFileAsync ( int petId, string additionalMetadata, FileParameter file ) : System.Threading.Tasks.Task

uploads an image

UploadFileAsync ( int petId, string additionalMetadata, FileParameter file, System cancellationToken ) : System.Threading.Tasks.Task

uploads an image

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

Метод Описание
FindPetsByTagsAsync ( System tags ) : System.Threading.Tasks.Task>
FindPetsByTagsAsync ( System tags, System cancellationToken ) : System.Threading.Tasks.Task>
PrepareRequest ( System request, string &url ) : void
ProcessResponse ( System request, System response ) : void

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

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

Add a new pet to the store
A server side error occurred.
public AddPetAsync ( Pet body ) : System.Threading.Tasks.Task
body Pet Pet object that needs to be added to the store
Результат System.Threading.Tasks.Task

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

Add a new pet to the store
A server side error occurred.
public AddPetAsync ( Pet body, System cancellationToken ) : System.Threading.Tasks.Task
body Pet Pet object that needs to be added to the store
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Create user
A server side error occurred.
public CreateUserAsync ( User body ) : System.Threading.Tasks.Task
body User Created user object
Результат System.Threading.Tasks.Task

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

Create user
A server side error occurred.
public CreateUserAsync ( User body, System cancellationToken ) : System.Threading.Tasks.Task
body User Created user object
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Creates list of users with given input array
A server side error occurred.
public CreateUsersWithArrayInputAsync ( System body ) : System.Threading.Tasks.Task
body System List of user object
Результат System.Threading.Tasks.Task

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

Creates list of users with given input array
A server side error occurred.
public CreateUsersWithArrayInputAsync ( System body, System cancellationToken ) : System.Threading.Tasks.Task
body System List of user object
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Creates list of users with given input array
A server side error occurred.
public CreateUsersWithListInputAsync ( System body ) : System.Threading.Tasks.Task
body System List of user object
Результат System.Threading.Tasks.Task

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

Creates list of users with given input array
A server side error occurred.
public CreateUsersWithListInputAsync ( System body, System cancellationToken ) : System.Threading.Tasks.Task
body System List of user object
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Delete purchase order by ID
A server side error occurred.
public DeleteOrderAsync ( int orderId ) : System.Threading.Tasks.Task
orderId int ID of the order that needs to be deleted
Результат System.Threading.Tasks.Task

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

Delete purchase order by ID
A server side error occurred.
public DeleteOrderAsync ( int orderId, System cancellationToken ) : System.Threading.Tasks.Task
orderId int ID of the order that needs to be deleted
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Deletes a pet
A server side error occurred.
public DeletePetAsync ( string api_key, int petId ) : System.Threading.Tasks.Task
api_key string
petId int Pet id to delete
Результат System.Threading.Tasks.Task

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

Deletes a pet
A server side error occurred.
public DeletePetAsync ( string api_key, int petId, System cancellationToken ) : System.Threading.Tasks.Task
api_key string
petId int Pet id to delete
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Delete user
A server side error occurred.
public DeleteUserAsync ( string username ) : System.Threading.Tasks.Task
username string The name that needs to be deleted
Результат System.Threading.Tasks.Task

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

Delete user
A server side error occurred.
public DeleteUserAsync ( string username, System cancellationToken ) : System.Threading.Tasks.Task
username string The name that needs to be deleted
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Finds Pets by status
A server side error occurred.
public FindPetsByStatusAsync ( System status ) : System.Threading.Tasks.Task>
status System Status values that need to be considered for filter
Результат System.Threading.Tasks.Task>

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

Finds Pets by status
A server side error occurred.
public FindPetsByStatusAsync ( System status, System cancellationToken ) : System.Threading.Tasks.Task>
status System Status values that need to be considered for filter
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task>

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

Returns pet inventories by status
A server side error occurred.
public GetInventoryAsync ( ) : int>>.System.Threading.Tasks.Task
Результат int>>.System.Threading.Tasks.Task

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

Returns pet inventories by status
A server side error occurred.
public GetInventoryAsync ( System cancellationToken ) : int>>.System.Threading.Tasks.Task
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат int>>.System.Threading.Tasks.Task

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

Find purchase order by ID
A server side error occurred.
public GetOrderByIdAsync ( int orderId ) : System.Threading.Tasks.Task
orderId int ID of pet that needs to be fetched
Результат System.Threading.Tasks.Task

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

Find purchase order by ID
A server side error occurred.
public GetOrderByIdAsync ( int orderId, System cancellationToken ) : System.Threading.Tasks.Task
orderId int ID of pet that needs to be fetched
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Find pet by ID
A server side error occurred.
public GetPetByIdAsync ( int petId ) : System.Threading.Tasks.Task
petId int ID of pet to return
Результат System.Threading.Tasks.Task

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

Find pet by ID
A server side error occurred.
public GetPetByIdAsync ( int petId, System cancellationToken ) : System.Threading.Tasks.Task
petId int ID of pet to return
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Get user by user name
A server side error occurred.
public GetUserByNameAsync ( string username ) : System.Threading.Tasks.Task
username string The name that needs to be fetched. Use user1 for testing.
Результат System.Threading.Tasks.Task

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

Get user by user name
A server side error occurred.
public GetUserByNameAsync ( string username, System cancellationToken ) : System.Threading.Tasks.Task
username string The name that needs to be fetched. Use user1 for testing.
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Logs user into the system
A server side error occurred.
public LoginUserAsync ( string username, string password ) : System.Threading.Tasks.Task
username string The user name for login
password string The password for login in clear text
Результат System.Threading.Tasks.Task

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

Logs user into the system
A server side error occurred.
public LoginUserAsync ( string username, string password, System cancellationToken ) : System.Threading.Tasks.Task
username string The user name for login
password string The password for login in clear text
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Logs out current logged in user session
A server side error occurred.
public LogoutUserAsync ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

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

Logs out current logged in user session
A server side error occurred.
public LogoutUserAsync ( System cancellationToken ) : System.Threading.Tasks.Task
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Place an order for a pet
A server side error occurred.
public PlaceOrderAsync ( Order body ) : System.Threading.Tasks.Task
body Order order placed for purchasing the pet
Результат System.Threading.Tasks.Task

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

Place an order for a pet
A server side error occurred.
public PlaceOrderAsync ( Order body, System cancellationToken ) : System.Threading.Tasks.Task
body Order order placed for purchasing the pet
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Update an existing pet
A server side error occurred.
public UpdatePetAsync ( Pet body ) : System.Threading.Tasks.Task
body Pet Pet object that needs to be added to the store
Результат System.Threading.Tasks.Task

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

Update an existing pet
A server side error occurred.
public UpdatePetAsync ( Pet body, System cancellationToken ) : System.Threading.Tasks.Task
body Pet Pet object that needs to be added to the store
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Updates a pet in the store with form data
A server side error occurred.
public UpdatePetWithFormAsync ( int petId, string name, string status ) : System.Threading.Tasks.Task
petId int ID of pet that needs to be updated
name string Updated name of the pet
status string Updated status of the pet
Результат System.Threading.Tasks.Task

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

Updates a pet in the store with form data
A server side error occurred.
public UpdatePetWithFormAsync ( int petId, string name, string status, System cancellationToken ) : System.Threading.Tasks.Task
petId int ID of pet that needs to be updated
name string Updated name of the pet
status string Updated status of the pet
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

Updated user
A server side error occurred.
public UpdateUserAsync ( string username, User body ) : System.Threading.Tasks.Task
username string name that need to be updated
body User Updated user object
Результат System.Threading.Tasks.Task

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

Updated user
A server side error occurred.
public UpdateUserAsync ( string username, User body, System cancellationToken ) : System.Threading.Tasks.Task
username string name that need to be updated
body User Updated user object
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task

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

uploads an image
A server side error occurred.
public UploadFileAsync ( int petId, string additionalMetadata, FileParameter file ) : System.Threading.Tasks.Task
petId int ID of pet to update
additionalMetadata string Additional data to pass to server
file FileParameter file to upload
Результат System.Threading.Tasks.Task

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

uploads an image
A server side error occurred.
public UploadFileAsync ( int petId, string additionalMetadata, FileParameter file, System cancellationToken ) : System.Threading.Tasks.Task
petId int ID of pet to update
additionalMetadata string Additional data to pass to server
file FileParameter file to upload
cancellationToken System A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Результат System.Threading.Tasks.Task