X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fclientapi%2Fcommon%2Fget_all_subscriptions_responses.go;fp=pkg%2Fclientapi%2Fcommon%2Fget_all_subscriptions_responses.go;h=807fc441d2fa4c09988dcf466908f9da2f753ae2;hb=c79bd0e1a4fe855b06c8f8131f162d0ee4a5f9f5;hp=2c774de1297b3aa3ac8ee3d6b91ab4c24fb93060;hpb=9ea6c7860300c299b9fe68caaf8aff61b3ec71d2;p=ric-plt%2Fxapp-frame.git diff --git a/pkg/clientapi/common/get_all_subscriptions_responses.go b/pkg/clientapi/common/get_all_subscriptions_responses.go index 2c774de..807fc44 100644 --- a/pkg/clientapi/common/get_all_subscriptions_responses.go +++ b/pkg/clientapi/common/get_all_subscriptions_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" ) // GetAllSubscriptionsReader is a Reader for the GetAllSubscriptions structure. @@ -24,14 +23,12 @@ type GetAllSubscriptionsReader struct { // ReadResponse reads a server response into the received o. func (o *GetAllSubscriptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) { switch response.Code() { - case 200: result := NewGetAllSubscriptionsOK() if err := result.readResponse(response, consumer, o.formats); err != nil { return nil, err } return result, nil - case 500: result := NewGetAllSubscriptionsInternalServerError() if err := result.readResponse(response, consumer, o.formats); err != nil { @@ -61,6 +58,10 @@ func (o *GetAllSubscriptionsOK) Error() string { return fmt.Sprintf("[GET /subscriptions][%d] getAllSubscriptionsOK %+v", 200, o.Payload) } +func (o *GetAllSubscriptionsOK) GetPayload() clientmodel.SubscriptionList { + return o.Payload +} + func (o *GetAllSubscriptionsOK) readResponse(response runtime.ClientResponse, consumer runtime.Consumer, formats strfmt.Registry) error { // response payload