X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pkg%2Fclientapi%2Fcommon%2Fget_all_subscriptions_responses.go;h=807fc441d2fa4c09988dcf466908f9da2f753ae2;hb=refs%2Fchanges%2F95%2F6795%2F5;hp=2c774de1297b3aa3ac8ee3d6b91ab4c24fb93060;hpb=3602bf801fef17e317cb35a4c710118ec80908b9;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