samples/client/petstore/csharp-dotnet2/SwaggerClientTest/Lib/SwaggerClient/src/main/CsharpDotNet2/IO/Swagger/Api/PetApi.cs
/// <summary>
/// Finds Pets by status Multiple status values can be provided with comma separated strings
/// </summary>
/// <param name="status">Status values that need to be considered for filter</param> 
/// <returns>List&lt;Pet&gt;</returns>            
Finds Pets by status Multiple status values can be provided with comma separated strings
Finds Pets by status Multiple status values can be provided with comma separated strings
public List<Pet> FindPetsByStatus (List<string> status)
        {
            if (status == null) throw new ApiException(400, "Missing required parameter 'status' when calling FindPetsByStatus");
            var path = "/pet/findByStatus";
            path = path.Replace("{format}", "json");
            var queryParams = new Dictionary<String, String>();
            var headerParams = new Dictionary<String, String>();
            var formParams = new Dictionary<String, String>();
            var fileParams = new Dictionary<String, FileParameter>();
            String postBody = null;
             if (status != null) queryParams.Add("status", ApiClient.ParameterToString(status)); 
            String[] authSettings = new String[] { "petstore_auth" };
            IRestResponse response = (IRestResponse) ApiClient.CallApi(path, Method.GET, queryParams, postBody, headerParams, formParams, fileParams, authSettings);
            if (((int)response.StatusCode) >= 400)
                throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByStatus: " + response.Content, response.Content);
            else if (((int)response.StatusCode) == 0)
                throw new ApiException ((int)response.StatusCode, "Error calling FindPetsByStatus: " + response.ErrorMessage, response.ErrorMessage);
            return (List<Pet>) ApiClient.Deserialize(response.Content, typeof(List<Pet>), response.Headers);
        }
public List < Pet > FindPetsByStatus ( List < string > status ) { if ( status == null ) throw new ApiException ( 400 , " " ) ; var path = " " ; path = path . Replace ( " " , " " ) ; var queryParams = new Dictionary < String , String > ( ) ; var headerParams = new Dictionary < String , String > ( ) ; var formParams = new Dictionary < String , String > ( ) ; var fileParams = new Dictionary < String , FileParameter > ( ) ; String postBody = null ; if ( status != null ) queryParams . Add ( " " , ApiClient . ParameterToString ( status ) ) ; String [ ] authSettings = new String [ ] { " " } ; IRestResponse response = ( IRestResponse ) ApiClient . CallApi ( path , Method . GET , queryParams , postBody , headerParams , formParams , fileParams , authSettings ) ; if ( ( ( int ) response . StatusCode ) >= 400 ) throw new ApiException ( ( int ) response . StatusCode , " " + response . Content , response . Content ) ; else if ( ( ( int ) response . StatusCode ) == 0 ) throw new ApiException ( ( int ) response . StatusCode , " " + response . ErrorMessage , response . ErrorMessage ) ; return ( List < Pet > ) ApiClient . Deserialize ( response . Content , typeof ( List < Pet > ) , response . Headers ) ; }
Finds Pets by status Multiple status values can be provided with comma separated strings
Finds Pets by status Multiple status values can be provided with comma separated strings
// verify the required parameter 'status' is set // query parameter // authentication setting, if any // make the HTTP request
None
status
List<string>
Status values that need to be considered for filter
Status values that need to be considered for filter