11package bitmovin
2+
23import (
3- "github.com/bitmovin/bitmovin-api-sdk-go/common"
4-
5- "github.com/bitmovin/bitmovin-api-sdk-go/account"
6- "github.com/bitmovin/bitmovin-api-sdk-go/analytics"
7- "github.com/bitmovin/bitmovin-api-sdk-go/encoding"
8- "github.com/bitmovin/bitmovin-api-sdk-go/general"
9- "github.com/bitmovin/bitmovin-api-sdk-go/notifications"
10- "github.com/bitmovin/bitmovin-api-sdk-go/player"
4+ "github.com/bitmovin/bitmovin-api-sdk-go/account"
5+ "github.com/bitmovin/bitmovin-api-sdk-go/analytics"
6+ "github.com/bitmovin/bitmovin-api-sdk-go/common"
7+ "github.com/bitmovin/bitmovin-api-sdk-go/encoding"
8+ "github.com/bitmovin/bitmovin-api-sdk-go/general"
9+ "github.com/bitmovin/bitmovin-api-sdk-go/notifications"
10+ "github.com/bitmovin/bitmovin-api-sdk-go/player"
1111)
1212
1313type BitmovinApi struct {
14- apiClient * common.ApiClient
15- Account * account.AccountApi
16- Analytics * analytics.AnalyticsApi
17- Encoding * encoding.EncodingApi
18- General * general.GeneralApi
19- Notifications * notifications.NotificationsApi
20- Player * player.PlayerApi
14+ apiClient * common.ApiClient
15+ Account * account.AccountApi
16+ Analytics * analytics.AnalyticsApi
17+ Encoding * encoding.EncodingApi
18+ General * general.GeneralApi
19+ Notifications * notifications.NotificationsApi
20+ Player * player.PlayerApi
2121}
2222
2323func NewBitmovinApi (configs ... func (* common.ApiClient )) (* BitmovinApi , error ) {
@@ -26,25 +26,24 @@ func NewBitmovinApi(configs ...func(*common.ApiClient)) (*BitmovinApi, error) {
2626 return nil , err
2727 }
2828
29- api := & BitmovinApi {apiClient : apiClient }
29+ api := & BitmovinApi {apiClient : apiClient }
3030
31- accountApi , err := account .NewAccountApi (configs ... )
32- api .Account = accountApi
33- analyticsApi , err := analytics .NewAnalyticsApi (configs ... )
34- api .Analytics = analyticsApi
35- encodingApi , err := encoding .NewEncodingApi (configs ... )
36- api .Encoding = encodingApi
37- generalApi , err := general .NewGeneralApi (configs ... )
38- api .General = generalApi
39- notificationsApi , err := notifications .NewNotificationsApi (configs ... )
40- api .Notifications = notificationsApi
41- playerApi , err := player .NewPlayerApi (configs ... )
42- api .Player = playerApi
31+ accountApi , err := account .NewAccountApi (configs ... )
32+ api .Account = accountApi
33+ analyticsApi , err := analytics .NewAnalyticsApi (configs ... )
34+ api .Analytics = analyticsApi
35+ encodingApi , err := encoding .NewEncodingApi (configs ... )
36+ api .Encoding = encodingApi
37+ generalApi , err := general .NewGeneralApi (configs ... )
38+ api .General = generalApi
39+ notificationsApi , err := notifications .NewNotificationsApi (configs ... )
40+ api .Notifications = notificationsApi
41+ playerApi , err := player .NewPlayerApi (configs ... )
42+ api .Player = playerApi
4343
4444 if err != nil {
4545 return nil , err
4646 }
4747
4848 return api , nil
4949}
50-
0 commit comments