X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fclientapi%2Fxapp%2Fget_xapp_config_list_responses.go;h=ed07aed6a1bcf47ae48ec922519c17a39435791c;hb=refs%2Fchanges%2F40%2F6340%2F1;hp=3ddd2fb2fd630d107c8046e86d0fbc8b909092b7;hpb=3602bf801fef17e317cb35a4c710118ec80908b9;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/clientapi/xapp/get_xapp_config_list_responses.go b/pkg/clientapi/xapp/get_xapp_config_list_responses.go index 3ddd2fb..ed07aed 100644 --- a/pkg/clientapi/xapp/get_xapp_config_list_responses.go +++ b/pkg/clientapi/xapp/get_xapp_config_list_responses.go @@ -10,10 +10,9 @@ import ( "io" "github.com/go-openapi/runtime" + "github.com/go-openapi/strfmt" - strfmt "github.com/go-openapi/strfmt" - - clientmodel "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientmodel" + "gerrit.o-ran-sc.org/r/ric-plt/xapp-frame/pkg/clientmodel" ) // GetXappConfigListReader is a Reader for the GetXappConfigList structure. @@ -24,14 +23,12 @@ type GetXappConfigListReader struct { // ReadResponse reads a server response into the received o. func (o *GetXappConfigListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: result := NewGetXappConfigListOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 500: result := NewGetXappConfigListInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -61,6 +58,10 @@ func (o *GetXappConfigListOK) Error() string { return fmt.Sprintf("[GET /config][%d] getXappConfigListOK %+v", 200, o.Payload) } +func (o *GetXappConfigListOK) GetPayload() clientmodel.XappConfigList { + return o.Payload +} + func (o *GetXappConfigListOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload