From fc3c0863d764fd5ee1dcd845007e17bdaed33df7 Mon Sep 17 00:00:00 2001 From: olivierapivideo Date: Wed, 5 Jun 2024 08:01:39 +0000 Subject: [PATCH] [DO NOT MERGE] Add Watch Data endpoints to OpenAPI spec --- .openapi-generator/FILES | 42 +--------- .../oas_apivideo.yaml-defaut-cli.sha256 | 2 +- README.md | 18 +---- docs/AnalyticsApi.md | 4 +- docs/LiveStreamSession.md | 15 ---- docs/LiveStreamSessionClient.md | 13 --- docs/LiveStreamSessionDevice.md | 13 --- docs/LiveStreamSessionLocation.md | 12 --- docs/LiveStreamSessionReferrer.md | 13 --- docs/LiveStreamSessionSession.md | 12 --- ...nLocation.md => UnrecognizedRequestUrl.md} | 8 +- docs/VideoSession.md | 15 ---- docs/VideoSessionClient.md | 13 --- docs/VideoSessionDevice.md | 13 --- docs/VideoSessionOs.md | 13 --- docs/VideoSessionReferrer.md | 13 --- docs/VideoSessionSession.md | 13 --- src/Api/AnalyticsApi.cs | 20 +++-- src/Model/LiveStreamSession.cs | 79 ------------------- src/Model/LiveStreamSessionClient.cs | 61 -------------- src/Model/LiveStreamSessionDevice.cs | 61 -------------- src/Model/LiveStreamSessionLocation.cs | 53 ------------- src/Model/LiveStreamSessionReferrer.cs | 69 ---------------- src/Model/LiveStreamSessionSession.cs | 61 -------------- ...ionDevice.cs => UnrecognizedRequestUrl.cs} | 34 ++++---- src/Model/VideoSession.cs | 79 ------------------- src/Model/VideoSessionClient.cs | 61 -------------- src/Model/VideoSessionLocation.cs | 53 ------------- src/Model/VideoSessionOs.cs | 61 -------------- src/Model/VideoSessionReferrer.cs | 69 ---------------- src/Model/VideoSessionSession.cs | 69 ---------------- 31 files changed, 44 insertions(+), 1018 deletions(-) delete mode 100644 docs/LiveStreamSession.md delete mode 100644 docs/LiveStreamSessionClient.md delete mode 100644 docs/LiveStreamSessionDevice.md delete mode 100644 docs/LiveStreamSessionLocation.md delete mode 100644 docs/LiveStreamSessionReferrer.md delete mode 100644 docs/LiveStreamSessionSession.md rename docs/{VideoSessionLocation.md => UnrecognizedRequestUrl.md} (52%) delete mode 100644 docs/VideoSession.md delete mode 100644 docs/VideoSessionClient.md delete mode 100644 docs/VideoSessionDevice.md delete mode 100644 docs/VideoSessionOs.md delete mode 100644 docs/VideoSessionReferrer.md delete mode 100644 docs/VideoSessionSession.md delete mode 100644 src/Model/LiveStreamSession.cs delete mode 100644 src/Model/LiveStreamSessionClient.cs delete mode 100644 src/Model/LiveStreamSessionDevice.cs delete mode 100644 src/Model/LiveStreamSessionLocation.cs delete mode 100644 src/Model/LiveStreamSessionReferrer.cs delete mode 100644 src/Model/LiveStreamSessionSession.cs rename src/Model/{VideoSessionDevice.cs => UnrecognizedRequestUrl.cs} (53%) delete mode 100644 src/Model/VideoSession.cs delete mode 100644 src/Model/VideoSessionClient.cs delete mode 100644 src/Model/VideoSessionLocation.cs delete mode 100644 src/Model/VideoSessionOs.cs delete mode 100644 src/Model/VideoSessionReferrer.cs delete mode 100644 src/Model/VideoSessionSession.cs diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 5243e11..885c90d 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -26,12 +26,6 @@ docs/LiveStream.md docs/LiveStreamAssets.md docs/LiveStreamCreationPayload.md docs/LiveStreamListResponse.md -docs/LiveStreamSession.md -docs/LiveStreamSessionClient.md -docs/LiveStreamSessionDevice.md -docs/LiveStreamSessionLocation.md -docs/LiveStreamSessionReferrer.md -docs/LiveStreamSessionSession.md docs/LiveStreamUpdatePayload.md docs/LiveStreamsApi.md docs/Metadata.md @@ -54,19 +48,13 @@ docs/RestreamsResponseObject.md docs/TokenCreationPayload.md docs/TokenListResponse.md docs/TooManyRequests.md +docs/UnrecognizedRequestUrl.md docs/UploadToken.md docs/UploadTokensApi.md docs/Video.md docs/VideoAssets.md docs/VideoClip.md docs/VideoCreationPayload.md -docs/VideoSession.md -docs/VideoSessionClient.md -docs/VideoSessionDevice.md -docs/VideoSessionLocation.md -docs/VideoSessionOs.md -docs/VideoSessionReferrer.md -docs/VideoSessionSession.md docs/VideoSource.md docs/VideoSourceLiveStream.md docs/VideoSourceLiveStreamLink.md @@ -118,12 +106,6 @@ src/ApiVideo.Test/Model/LinkTests.cs src/ApiVideo.Test/Model/LiveStreamAssetsTests.cs src/ApiVideo.Test/Model/LiveStreamCreationPayloadTests.cs src/ApiVideo.Test/Model/LiveStreamListResponseTests.cs -src/ApiVideo.Test/Model/LiveStreamSessionClientTests.cs -src/ApiVideo.Test/Model/LiveStreamSessionDeviceTests.cs -src/ApiVideo.Test/Model/LiveStreamSessionLocationTests.cs -src/ApiVideo.Test/Model/LiveStreamSessionReferrerTests.cs -src/ApiVideo.Test/Model/LiveStreamSessionSessionTests.cs -src/ApiVideo.Test/Model/LiveStreamSessionTests.cs src/ApiVideo.Test/Model/LiveStreamTests.cs src/ApiVideo.Test/Model/LiveStreamUpdatePayloadTests.cs src/ApiVideo.Test/Model/MetadataTests.cs @@ -144,17 +126,11 @@ src/ApiVideo.Test/Model/RestreamsResponseObjectTests.cs src/ApiVideo.Test/Model/TokenCreationPayloadTests.cs src/ApiVideo.Test/Model/TokenListResponseTests.cs src/ApiVideo.Test/Model/TooManyRequestsTests.cs +src/ApiVideo.Test/Model/UnrecognizedRequestUrlTests.cs src/ApiVideo.Test/Model/UploadTokenTests.cs src/ApiVideo.Test/Model/VideoAssetsTests.cs src/ApiVideo.Test/Model/VideoClipTests.cs src/ApiVideo.Test/Model/VideoCreationPayloadTests.cs -src/ApiVideo.Test/Model/VideoSessionClientTests.cs -src/ApiVideo.Test/Model/VideoSessionDeviceTests.cs -src/ApiVideo.Test/Model/VideoSessionLocationTests.cs -src/ApiVideo.Test/Model/VideoSessionOsTests.cs -src/ApiVideo.Test/Model/VideoSessionReferrerTests.cs -src/ApiVideo.Test/Model/VideoSessionSessionTests.cs -src/ApiVideo.Test/Model/VideoSessionTests.cs src/ApiVideo.Test/Model/VideoSourceLiveStreamLinkTests.cs src/ApiVideo.Test/Model/VideoSourceLiveStreamTests.cs src/ApiVideo.Test/Model/VideoSourceTests.cs @@ -213,12 +189,6 @@ src/ApiVideo/Model/LiveStream.cs src/ApiVideo/Model/LiveStreamAssets.cs src/ApiVideo/Model/LiveStreamCreationPayload.cs src/ApiVideo/Model/LiveStreamListResponse.cs -src/ApiVideo/Model/LiveStreamSession.cs -src/ApiVideo/Model/LiveStreamSessionClient.cs -src/ApiVideo/Model/LiveStreamSessionDevice.cs -src/ApiVideo/Model/LiveStreamSessionLocation.cs -src/ApiVideo/Model/LiveStreamSessionReferrer.cs -src/ApiVideo/Model/LiveStreamSessionSession.cs src/ApiVideo/Model/LiveStreamUpdatePayload.cs src/ApiVideo/Model/Metadata.cs src/ApiVideo/Model/Model403ErrorSchema.cs @@ -240,18 +210,12 @@ src/ApiVideo/Model/RestreamsResponseObject.cs src/ApiVideo/Model/TokenCreationPayload.cs src/ApiVideo/Model/TokenListResponse.cs src/ApiVideo/Model/TooManyRequests.cs +src/ApiVideo/Model/UnrecognizedRequestUrl.cs src/ApiVideo/Model/UploadToken.cs src/ApiVideo/Model/Video.cs src/ApiVideo/Model/VideoAssets.cs src/ApiVideo/Model/VideoClip.cs src/ApiVideo/Model/VideoCreationPayload.cs -src/ApiVideo/Model/VideoSession.cs -src/ApiVideo/Model/VideoSessionClient.cs -src/ApiVideo/Model/VideoSessionDevice.cs -src/ApiVideo/Model/VideoSessionLocation.cs -src/ApiVideo/Model/VideoSessionOs.cs -src/ApiVideo/Model/VideoSessionReferrer.cs -src/ApiVideo/Model/VideoSessionSession.cs src/ApiVideo/Model/VideoSource.cs src/ApiVideo/Model/VideoSourceLiveStream.cs src/ApiVideo/Model/VideoSourceLiveStreamLink.cs diff --git a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 index 644fa0c..c3205f9 100644 --- a/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 +++ b/.openapi-generator/oas_apivideo.yaml-defaut-cli.sha256 @@ -1 +1 @@ -d7b342ceb1a4805da9e3d6355384e34c1a99e1300d01cac3ae3218c5738f11f1 \ No newline at end of file +9ef51e903ea5ac11defcf41d7d64b096535604be88599008b13aab0d527f4e25 \ No newline at end of file diff --git a/README.md b/README.md index 79c2e34..12d19e4 100644 --- a/README.md +++ b/README.md @@ -170,8 +170,8 @@ AnalyticsApi analytics = client.Analytics() Method | HTTP request | Description ------------- | ------------- | ------------- -[**getLiveStreamsPlays**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/AnalyticsApi.md#getLiveStreamsPlays) | **GET** /analytics/live-streams/plays | Get play events for live stream -[**getVideosPlays**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/AnalyticsApi.md#getVideosPlays) | **GET** /analytics/videos/plays | Get play events for video +**(deprecated)** [**getLiveStreamsPlays**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/AnalyticsApi.md#getLiveStreamsPlays) | **GET** /analytics/live-streams/plays | Get play events for live stream +**(deprecated)** [**getVideosPlays**](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/AnalyticsApi.md#getVideosPlays) | **GET** /analytics/videos/plays | Get play events for video #### CaptionsApi @@ -359,12 +359,6 @@ Method | HTTP request | Description - [LiveStreamAssets](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamAssets.md) - [LiveStreamCreationPayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamCreationPayload.md) - [LiveStreamListResponse](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamListResponse.md) - - [LiveStreamSession](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamSession.md) - - [LiveStreamSessionClient](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamSessionClient.md) - - [LiveStreamSessionDevice](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamSessionDevice.md) - - [LiveStreamSessionLocation](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamSessionLocation.md) - - [LiveStreamSessionReferrer](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamSessionReferrer.md) - - [LiveStreamSessionSession](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamSessionSession.md) - [LiveStreamUpdatePayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/LiveStreamUpdatePayload.md) - [Metadata](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/Metadata.md) - [Model403ErrorSchema](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/Model403ErrorSchema.md) @@ -384,18 +378,12 @@ Method | HTTP request | Description - [TokenCreationPayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/TokenCreationPayload.md) - [TokenListResponse](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/TokenListResponse.md) - [TooManyRequests](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/TooManyRequests.md) + - [UnrecognizedRequestUrl](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/UnrecognizedRequestUrl.md) - [UploadToken](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/UploadToken.md) - [Video](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/Video.md) - [VideoAssets](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoAssets.md) - [VideoClip](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoClip.md) - [VideoCreationPayload](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoCreationPayload.md) - - [VideoSession](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSession.md) - - [VideoSessionClient](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSessionClient.md) - - [VideoSessionDevice](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSessionDevice.md) - - [VideoSessionLocation](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSessionLocation.md) - - [VideoSessionOs](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSessionOs.md) - - [VideoSessionReferrer](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSessionReferrer.md) - - [VideoSessionSession](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSessionSession.md) - [VideoSource](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSource.md) - [VideoSourceLiveStream](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSourceLiveStream.md) - [VideoSourceLiveStreamLink](https://github.com/apivideo/api.video-csharp-client/blob/main/docs/VideoSourceLiveStreamLink.md) diff --git a/docs/AnalyticsApi.md b/docs/AnalyticsApi.md index 1cb0b8d..cc6aeee 100644 --- a/docs/AnalyticsApi.md +++ b/docs/AnalyticsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description Get play events for live stream -Retrieve filtered analytics about the number of plays for your live streams in a project. +Retrieve filtered analytics about the number of plays for your live streams in a project. This endpoint will be deprecated with the release of Analytics v2.0. ### Example ```csharp @@ -94,7 +94,7 @@ Name | Type | Description | Notes Get play events for video -Retrieve filtered analytics about the number of plays for your videos in a project. +Retrieve filtered analytics about the number of plays for your videos in a project. This endpoint will be deprecated with the release of Analytics v2.0. ### Example ```csharp diff --git a/docs/LiveStreamSession.md b/docs/LiveStreamSession.md deleted file mode 100644 index 9f305fa..0000000 --- a/docs/LiveStreamSession.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiVideo.Model.LiveStreamSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Session** | [**LiveStreamSessionSession**](LiveStreamSessionSession.md) | | [optional] -**Location** | [**LiveStreamSessionLocation**](LiveStreamSessionLocation.md) | | [optional] -**Referrer** | [**LiveStreamSessionReferrer**](LiveStreamSessionReferrer.md) | | [optional] -**Device** | [**LiveStreamSessionDevice**](LiveStreamSessionDevice.md) | | [optional] -**Os** | [**VideoSessionOs**](VideoSessionOs.md) | | [optional] -**_Client** | [**LiveStreamSessionClient**](LiveStreamSessionClient.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/LiveStreamSessionClient.md b/docs/LiveStreamSessionClient.md deleted file mode 100644 index da01352..0000000 --- a/docs/LiveStreamSessionClient.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiVideo.Model.LiveStreamSessionClient -What kind of browser the viewer is using for the live stream session. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The name of the browser used to view the live stream session. | [optional] -**Version** | **string** | The version of the browser used to view the live stream session. | [optional] -**Type** | **string** | The type of client used to view the live stream session. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/LiveStreamSessionDevice.md b/docs/LiveStreamSessionDevice.md deleted file mode 100644 index 449bc90..0000000 --- a/docs/LiveStreamSessionDevice.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiVideo.Model.LiveStreamSessionDevice -What type of device the user is on when in the live stream session. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | What the type is like desktop, laptop, mobile. | [optional] -**Vendor** | **string** | If known, what the brand of the device is, like Apple, Dell, etc. | [optional] -**Model** | **string** | The specific model of the device, if known. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/LiveStreamSessionLocation.md b/docs/LiveStreamSessionLocation.md deleted file mode 100644 index 3e73072..0000000 --- a/docs/LiveStreamSessionLocation.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiVideo.Model.LiveStreamSessionLocation -The location of the viewer of the live stream. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Country** | **string** | The country of the viewer of the live stream. | [optional] -**City** | **string** | The city of the viewer of the live stream. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/LiveStreamSessionReferrer.md b/docs/LiveStreamSessionReferrer.md deleted file mode 100644 index d618371..0000000 --- a/docs/LiveStreamSessionReferrer.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiVideo.Model.LiveStreamSessionReferrer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Url** | **string** | The website the viewer of the live stream was referred to in order to view the live stream. | [optional] -**Medium** | **string** | The type of search that brought the viewer to the live stream. Organic would be they found it on their own, paid would be they found it via an advertisement. | [optional] -**Source** | **string** | Where the viewer came from to see the live stream (usually where they searched from). | [optional] -**SearchTerm** | **string** | What term they searched for that led them to the live stream. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/LiveStreamSessionSession.md b/docs/LiveStreamSessionSession.md deleted file mode 100644 index 84422fb..0000000 --- a/docs/LiveStreamSessionSession.md +++ /dev/null @@ -1,12 +0,0 @@ -# ApiVideo.Model.LiveStreamSessionSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SessionId** | **string** | A unique identifier for your session. You can use this to track what happens during a specific session. | [optional] -**LoadedAt** | **DateTime** | When the session started, with the date and time presented in ISO-8601 format. | [optional] -**EndedAt** | **DateTime** | When the session ended, with the date and time presented in ISO-8601 format. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/VideoSessionLocation.md b/docs/UnrecognizedRequestUrl.md similarity index 52% rename from docs/VideoSessionLocation.md rename to docs/UnrecognizedRequestUrl.md index 2284d65..a1817ca 100644 --- a/docs/VideoSessionLocation.md +++ b/docs/UnrecognizedRequestUrl.md @@ -1,12 +1,12 @@ -# ApiVideo.Model.VideoSessionLocation -The location of the viewer. +# ApiVideo.Model.UnrecognizedRequestUrl ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Country** | **string** | The country of the viewer. | [optional] -**City** | **string** | The city of the viewer. | [optional] +**Type** | **string** | A link to the error documentation. | [optional] +**Title** | **string** | A description of the error that occurred. | [optional] +**Status** | **int** | The HTTP status code. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VideoSession.md b/docs/VideoSession.md deleted file mode 100644 index f0445de..0000000 --- a/docs/VideoSession.md +++ /dev/null @@ -1,15 +0,0 @@ -# ApiVideo.Model.VideoSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Session** | [**VideoSessionSession**](VideoSessionSession.md) | | [optional] -**Location** | [**VideoSessionLocation**](VideoSessionLocation.md) | | [optional] -**Referrer** | [**VideoSessionReferrer**](VideoSessionReferrer.md) | | [optional] -**Device** | [**VideoSessionDevice**](VideoSessionDevice.md) | | [optional] -**Os** | [**VideoSessionOs**](VideoSessionOs.md) | | [optional] -**_Client** | [**VideoSessionClient**](VideoSessionClient.md) | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/VideoSessionClient.md b/docs/VideoSessionClient.md deleted file mode 100644 index ba54f46..0000000 --- a/docs/VideoSessionClient.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiVideo.Model.VideoSessionClient -What kind of browser the viewer is using for the video session. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The name of the browser used to view the video session. | [optional] -**Version** | **string** | The version of the browser used to view the video session. | [optional] -**Type** | **string** | The type of client used to view the video session. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/VideoSessionDevice.md b/docs/VideoSessionDevice.md deleted file mode 100644 index a38be90..0000000 --- a/docs/VideoSessionDevice.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiVideo.Model.VideoSessionDevice -What type of device the user is on when in the video session. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Type** | **string** | What the type is like desktop, laptop, mobile. | [optional] -**Vendor** | **string** | If known, what the brand of the device is, like Apple, Dell, etc. | [optional] -**Model** | **string** | The specific model of the device, if known. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/VideoSessionOs.md b/docs/VideoSessionOs.md deleted file mode 100644 index 2e02cb7..0000000 --- a/docs/VideoSessionOs.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiVideo.Model.VideoSessionOs -The operating system the viewer is on. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Name** | **string** | The name of the operating system. | [optional] -**Shortname** | **string** | The nickname for the operating system, often representing the version. | [optional] -**Version** | **string** | The version of the operating system. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/VideoSessionReferrer.md b/docs/VideoSessionReferrer.md deleted file mode 100644 index b6c32a0..0000000 --- a/docs/VideoSessionReferrer.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiVideo.Model.VideoSessionReferrer - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Url** | **string** | The link the viewer used to reach the video session. | [optional] -**Medium** | **string** | How they arrived at the site, for example organic or paid. Organic meaning they found it themselves and paid meaning they followed a link from an advertisement. | [optional] -**Source** | **string** | The source the referrer came from to the video session. For example if they searched through google to find the stream. | [optional] -**SearchTerm** | **string** | The search term they typed to arrive at the video session. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/docs/VideoSessionSession.md b/docs/VideoSessionSession.md deleted file mode 100644 index bf50d73..0000000 --- a/docs/VideoSessionSession.md +++ /dev/null @@ -1,13 +0,0 @@ -# ApiVideo.Model.VideoSessionSession - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**SessionId** | **string** | The unique identifier for the session that you can use to track what happens during it. | [optional] -**LoadedAt** | **DateTime** | When the video session started, presented in ISO-8601 format. | [optional] -**EndedAt** | **DateTime** | When the video session ended, presented in ISO-8601 format. | [optional] -**Metadata** | [**List<Metadata>**](Metadata.md) | A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/src/Api/AnalyticsApi.cs b/src/Api/AnalyticsApi.cs index eb16d76..be90e9e 100644 --- a/src/Api/AnalyticsApi.cs +++ b/src/Api/AnalyticsApi.cs @@ -40,7 +40,7 @@ public AnalyticsApi(ApiClient apiClient) } /// - /// Get play events for live stream Retrieve filtered analytics about the number of plays for your live streams in a project. + /// Get play events for live stream Retrieve filtered analytics about the number of plays for your live streams in a project. This endpoint will be deprecated with the release of Analytics v2.0. /// /// Thrown when fails to make API call /// Use this query parameter to set the start date for the time period that you want analytics for. - The API returns analytics data including the day you set in `from`. - The date you set must be **within the last 30 days**. - The value you provide must follow the `YYYY-MM-DD` format. @@ -51,6 +51,7 @@ public AnalyticsApi(ApiClient apiClient) /// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) /// AnalyticsPlaysResponse + [Obsolete] public AnalyticsPlaysResponse getLiveStreamsPlays(DateTime from, string dimension, DateTime? to = default, string filter = default, int? currentPage = default, int? pageSize = default) { ApiResponse localVarResponse = getLiveStreamsPlaysWithHttpInfo(from, dimension, to, filter, currentPage, pageSize); @@ -58,7 +59,7 @@ public AnalyticsPlaysResponse getLiveStreamsPlays(DateTime from, string dimensio } /// - /// Get play events for live stream Retrieve filtered analytics about the number of plays for your live streams in a project. + /// Get play events for live stream Retrieve filtered analytics about the number of plays for your live streams in a project. This endpoint will be deprecated with the release of Analytics v2.0. /// /// Thrown when fails to make API call /// Use this query parameter to set the start date for the time period that you want analytics for. - The API returns analytics data including the day you set in `from`. - The date you set must be **within the last 30 days**. - The value you provide must follow the `YYYY-MM-DD` format. @@ -69,6 +70,7 @@ public AnalyticsPlaysResponse getLiveStreamsPlays(DateTime from, string dimensio /// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) /// ApiResponse of AnalyticsPlaysResponse + [Obsolete] public ApiResponse getLiveStreamsPlaysWithHttpInfo(DateTime from, string dimension, DateTime? to = default, string filter = default, int? currentPage = default, int? pageSize = default) { @@ -130,11 +132,12 @@ public ApiResponse getLiveStreamsPlaysWithHttpInfo(DateT /// - /// Retrieve filtered analytics about the number of plays for your live streams in a project. + /// Retrieve filtered analytics about the number of plays for your live streams in a project. This endpoint will be deprecated with the release of Analytics v2.0. /// /// Use this query parameter to set the start date for the time period that you want analytics for. - The API returns analytics data including the day you set in `from`. - The date you set must be **within the last 30 days**. - The value you provide must follow the `YYYY-MM-DD` format. (required) /// Use this query parameter to define the dimension that you want analytics for. - `liveStreamId`: Returns analytics based on the public live stream identifiers. - `emittedAt`: Returns analytics based on the times of the play events. The API returns data in specific interval groups. When the date period you set in `from` and `to` is less than or equals to 2 days, the response for this dimension is grouped in hourly intervals. Otherwise, it is grouped in daily intervals. - `country`: Returns analytics based on the viewers' country. The list of supported country names are based on the [GeoNames public database](https://www.geonames.org/countries/). - `deviceType`: Returns analytics based on the type of device used by the viewers during the play event. Possible response values are: `computer`, `phone`, `tablet`, `tv`, `console`, `wearable`, `unknown`. - `operatingSystem`: Returns analytics based on the operating system used by the viewers during the play event. Response values include `windows`, `mac osx`, `android`, `ios`, `linux`. - `browser`: Returns analytics based on the browser used by the viewers during the play event. Response values include `chrome`, `firefox`, `edge`, `opera`. (required) /// APIgetLiveStreamsPlaysRequest + [Obsolete] public APIgetLiveStreamsPlaysRequest getLiveStreamsPlays(DateTime from, string dimension) { return new APIgetLiveStreamsPlaysRequest(this,from, dimension); } @@ -210,6 +213,7 @@ public APIgetLiveStreamsPlaysRequest PageSize(int? pageSize) { /// Execute getLiveStreamsPlays request /// /// AnalyticsPlaysResponse + [Obsolete] public Page execute(){ ApiResponse localVarResp = this.currentApiInstance.getLiveStreamsPlaysWithHttpInfo(from, dimension, to, filter, currentPage, pageSize); return new Page(localVarResp.Data.data, localVarResp.Data.pagination, () => { @@ -231,7 +235,7 @@ private APIgetLiveStreamsPlaysRequest copy() { } } /// - /// Get play events for video Retrieve filtered analytics about the number of plays for your videos in a project. + /// Get play events for video Retrieve filtered analytics about the number of plays for your videos in a project. This endpoint will be deprecated with the release of Analytics v2.0. /// /// Thrown when fails to make API call /// Use this query parameter to set the start date for the time period that you want analytics for. - The API returns analytics data including the day you set in `from`. - The date you set must be **within the last 30 days**. - The value you provide must follow the `YYYY-MM-DD` format. @@ -242,6 +246,7 @@ private APIgetLiveStreamsPlaysRequest copy() { /// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) /// AnalyticsPlaysResponse + [Obsolete] public AnalyticsPlaysResponse getVideosPlays(DateTime from, string dimension, DateTime? to = default, string filter = default, int? currentPage = default, int? pageSize = default) { ApiResponse localVarResponse = getVideosPlaysWithHttpInfo(from, dimension, to, filter, currentPage, pageSize); @@ -249,7 +254,7 @@ public AnalyticsPlaysResponse getVideosPlays(DateTime from, string dimension, Da } /// - /// Get play events for video Retrieve filtered analytics about the number of plays for your videos in a project. + /// Get play events for video Retrieve filtered analytics about the number of plays for your videos in a project. This endpoint will be deprecated with the release of Analytics v2.0. /// /// Thrown when fails to make API call /// Use this query parameter to set the start date for the time period that you want analytics for. - The API returns analytics data including the day you set in `from`. - The date you set must be **within the last 30 days**. - The value you provide must follow the `YYYY-MM-DD` format. @@ -260,6 +265,7 @@ public AnalyticsPlaysResponse getVideosPlays(DateTime from, string dimension, Da /// Results per page. Allowed values 1-100, default is 25. (optional, default to 25) /// ApiResponse of AnalyticsPlaysResponse + [Obsolete] public ApiResponse getVideosPlaysWithHttpInfo(DateTime from, string dimension, DateTime? to = default, string filter = default, int? currentPage = default, int? pageSize = default) { @@ -321,11 +327,12 @@ public ApiResponse getVideosPlaysWithHttpInfo(DateTime f /// - /// Retrieve filtered analytics about the number of plays for your videos in a project. + /// Retrieve filtered analytics about the number of plays for your videos in a project. This endpoint will be deprecated with the release of Analytics v2.0. /// /// Use this query parameter to set the start date for the time period that you want analytics for. - The API returns analytics data including the day you set in `from`. - The date you set must be **within the last 30 days**. - The value you provide must follow the `YYYY-MM-DD` format. (required) /// Use this query parameter to define the dimension that you want analytics for. - `videoId`: Returns analytics based on the public video identifiers. - `emittedAt`: Returns analytics based on the times of the play events. The API returns data in specific interval groups. When the date period you set in `from` and `to` is less than or equals to 2 days, the response for this dimension is grouped in hourly intervals. Otherwise, it is grouped in daily intervals. - `country`: Returns analytics based on the viewers' country. The list of supported country names are based on the [GeoNames public database](https://www.geonames.org/countries/). - `deviceType`: Returns analytics based on the type of device used by the viewers during the play event. Possible response values are: `computer`, `phone`, `tablet`, `tv`, `console`, `wearable`, `unknown`. - `operatingSystem`: Returns analytics based on the operating system used by the viewers during the play event. Response values include `windows`, `mac osx`, `android`, `ios`, `linux`. - `browser`: Returns analytics based on the browser used by the viewers during the play event. Response values include `chrome`, `firefox`, `edge`, `opera`. (required) /// APIgetVideosPlaysRequest + [Obsolete] public APIgetVideosPlaysRequest getVideosPlays(DateTime from, string dimension) { return new APIgetVideosPlaysRequest(this,from, dimension); } @@ -401,6 +408,7 @@ public APIgetVideosPlaysRequest PageSize(int? pageSize) { /// Execute getVideosPlays request /// /// AnalyticsPlaysResponse + [Obsolete] public Page execute(){ ApiResponse localVarResp = this.currentApiInstance.getVideosPlaysWithHttpInfo(from, dimension, to, filter, currentPage, pageSize); return new Page(localVarResp.Data.data, localVarResp.Data.pagination, () => { diff --git a/src/Model/LiveStreamSession.cs b/src/Model/LiveStreamSession.cs deleted file mode 100644 index e032b08..0000000 --- a/src/Model/LiveStreamSession.cs +++ /dev/null @@ -1,79 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// - /// - [DataContract] - public class LiveStreamSession { - /// - /// Gets or Sets Session - /// - [DataMember(Name="session", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "session")] - public LiveStreamSessionSession session { get; set; } - /// - /// Gets or Sets Location - /// - [DataMember(Name="location", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "location")] - public LiveStreamSessionLocation location { get; set; } - /// - /// Gets or Sets Referrer - /// - [DataMember(Name="referrer", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "referrer")] - public LiveStreamSessionReferrer referrer { get; set; } - /// - /// Gets or Sets Device - /// - [DataMember(Name="device", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "device")] - public LiveStreamSessionDevice device { get; set; } - /// - /// Gets or Sets Os - /// - [DataMember(Name="os", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "os")] - public VideoSessionOs os { get; set; } - /// - /// Gets or Sets _Client - /// - [DataMember(Name="client", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "client")] - public LiveStreamSessionClient _client { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class LiveStreamSession {\n"); - sb.Append(" Session: ").Append(session).Append("\n"); - sb.Append(" Location: ").Append(location).Append("\n"); - sb.Append(" Referrer: ").Append(referrer).Append("\n"); - sb.Append(" Device: ").Append(device).Append("\n"); - sb.Append(" Os: ").Append(os).Append("\n"); - sb.Append(" _Client: ").Append(_client).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/LiveStreamSessionClient.cs b/src/Model/LiveStreamSessionClient.cs deleted file mode 100644 index 5a4c63f..0000000 --- a/src/Model/LiveStreamSessionClient.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// What kind of browser the viewer is using for the live stream session. - /// - [DataContract] - public class LiveStreamSessionClient { - /// - /// The name of the browser used to view the live stream session. - /// - /// The name of the browser used to view the live stream session. - [DataMember(Name="name", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "name")] - public string name { get; set; } - /// - /// The version of the browser used to view the live stream session. - /// - /// The version of the browser used to view the live stream session. - [DataMember(Name="version", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "version")] - public string version { get; set; } - /// - /// The type of client used to view the live stream session. - /// - /// The type of client used to view the live stream session. - [DataMember(Name="type", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "type")] - public string type { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class LiveStreamSessionClient {\n"); - sb.Append(" Name: ").Append(name).Append("\n"); - sb.Append(" Version: ").Append(version).Append("\n"); - sb.Append(" Type: ").Append(type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/LiveStreamSessionDevice.cs b/src/Model/LiveStreamSessionDevice.cs deleted file mode 100644 index 4ba87f4..0000000 --- a/src/Model/LiveStreamSessionDevice.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// What type of device the user is on when in the live stream session. - /// - [DataContract] - public class LiveStreamSessionDevice { - /// - /// What the type is like desktop, laptop, mobile. - /// - /// What the type is like desktop, laptop, mobile. - [DataMember(Name="type", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "type")] - public string type { get; set; } - /// - /// If known, what the brand of the device is, like Apple, Dell, etc. - /// - /// If known, what the brand of the device is, like Apple, Dell, etc. - [DataMember(Name="vendor", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "vendor")] - public string vendor { get; set; } - /// - /// The specific model of the device, if known. - /// - /// The specific model of the device, if known. - [DataMember(Name="model", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "model")] - public string model { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class LiveStreamSessionDevice {\n"); - sb.Append(" Type: ").Append(type).Append("\n"); - sb.Append(" Vendor: ").Append(vendor).Append("\n"); - sb.Append(" Model: ").Append(model).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/LiveStreamSessionLocation.cs b/src/Model/LiveStreamSessionLocation.cs deleted file mode 100644 index 33e5c70..0000000 --- a/src/Model/LiveStreamSessionLocation.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// The location of the viewer of the live stream. - /// - [DataContract] - public class LiveStreamSessionLocation { - /// - /// The country of the viewer of the live stream. - /// - /// The country of the viewer of the live stream. - [DataMember(Name="country", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "country")] - public string country { get; set; } - /// - /// The city of the viewer of the live stream. - /// - /// The city of the viewer of the live stream. - [DataMember(Name="city", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "city")] - public string city { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class LiveStreamSessionLocation {\n"); - sb.Append(" Country: ").Append(country).Append("\n"); - sb.Append(" City: ").Append(city).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/LiveStreamSessionReferrer.cs b/src/Model/LiveStreamSessionReferrer.cs deleted file mode 100644 index 7e500d3..0000000 --- a/src/Model/LiveStreamSessionReferrer.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// - /// - [DataContract] - public class LiveStreamSessionReferrer { - /// - /// The website the viewer of the live stream was referred to in order to view the live stream. - /// - /// The website the viewer of the live stream was referred to in order to view the live stream. - [DataMember(Name="url", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "url")] - public string url { get; set; } - /// - /// The type of search that brought the viewer to the live stream. Organic would be they found it on their own, paid would be they found it via an advertisement. - /// - /// The type of search that brought the viewer to the live stream. Organic would be they found it on their own, paid would be they found it via an advertisement. - [DataMember(Name="medium", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "medium")] - public string medium { get; set; } - /// - /// Where the viewer came from to see the live stream (usually where they searched from). - /// - /// Where the viewer came from to see the live stream (usually where they searched from). - [DataMember(Name="source", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "source")] - public string source { get; set; } - /// - /// What term they searched for that led them to the live stream. - /// - /// What term they searched for that led them to the live stream. - [DataMember(Name="searchTerm", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "searchTerm")] - public string searchterm { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class LiveStreamSessionReferrer {\n"); - sb.Append(" Url: ").Append(url).Append("\n"); - sb.Append(" Medium: ").Append(medium).Append("\n"); - sb.Append(" Source: ").Append(source).Append("\n"); - sb.Append(" SearchTerm: ").Append(searchterm).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/LiveStreamSessionSession.cs b/src/Model/LiveStreamSessionSession.cs deleted file mode 100644 index ec6cda3..0000000 --- a/src/Model/LiveStreamSessionSession.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// - /// - [DataContract] - public class LiveStreamSessionSession { - /// - /// A unique identifier for your session. You can use this to track what happens during a specific session. - /// - /// A unique identifier for your session. You can use this to track what happens during a specific session. - [DataMember(Name="sessionId", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "sessionId")] - public string sessionid { get; set; } - /// - /// When the session started, with the date and time presented in ISO-8601 format. - /// - /// When the session started, with the date and time presented in ISO-8601 format. - [DataMember(Name="loadedAt", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "loadedAt")] - public DateTime? loadedat { get; set; } - /// - /// When the session ended, with the date and time presented in ISO-8601 format. - /// - /// When the session ended, with the date and time presented in ISO-8601 format. - [DataMember(Name="endedAt", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "endedAt")] - public DateTime? endedat { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class LiveStreamSessionSession {\n"); - sb.Append(" SessionId: ").Append(sessionid).Append("\n"); - sb.Append(" LoadedAt: ").Append(loadedat).Append("\n"); - sb.Append(" EndedAt: ").Append(endedat).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/VideoSessionDevice.cs b/src/Model/UnrecognizedRequestUrl.cs similarity index 53% rename from src/Model/VideoSessionDevice.cs rename to src/Model/UnrecognizedRequestUrl.cs index a36490f..c22eb3f 100644 --- a/src/Model/VideoSessionDevice.cs +++ b/src/Model/UnrecognizedRequestUrl.cs @@ -8,31 +8,31 @@ namespace ApiVideo.Model { /// - /// What type of device the user is on when in the video session. + /// /// [DataContract] - public class VideoSessionDevice { + public class UnrecognizedRequestUrl { /// - /// What the type is like desktop, laptop, mobile. + /// A link to the error documentation. /// - /// What the type is like desktop, laptop, mobile. + /// A link to the error documentation. [DataMember(Name="type", EmitDefaultValue=false)] [JsonProperty(PropertyName = "type")] public string type { get; set; } /// - /// If known, what the brand of the device is, like Apple, Dell, etc. + /// A description of the error that occurred. /// - /// If known, what the brand of the device is, like Apple, Dell, etc. - [DataMember(Name="vendor", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "vendor")] - public string vendor { get; set; } + /// A description of the error that occurred. + [DataMember(Name="title", EmitDefaultValue=false)] + [JsonProperty(PropertyName = "title")] + public string title { get; set; } /// - /// The specific model of the device, if known. + /// The HTTP status code. /// - /// The specific model of the device, if known. - [DataMember(Name="model", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "model")] - public string model { get; set; } + /// The HTTP status code. + [DataMember(Name="status", EmitDefaultValue=false)] + [JsonProperty(PropertyName = "status")] + public int status { get; set; } /// @@ -41,10 +41,10 @@ public class VideoSessionDevice { /// String presentation of the object public override string ToString() { var sb = new StringBuilder(); - sb.Append("class VideoSessionDevice {\n"); + sb.Append("class UnrecognizedRequestUrl {\n"); sb.Append(" Type: ").Append(type).Append("\n"); - sb.Append(" Vendor: ").Append(vendor).Append("\n"); - sb.Append(" Model: ").Append(model).Append("\n"); + sb.Append(" Title: ").Append(title).Append("\n"); + sb.Append(" Status: ").Append(status).Append("\n"); sb.Append("}\n"); return sb.ToString(); } diff --git a/src/Model/VideoSession.cs b/src/Model/VideoSession.cs deleted file mode 100644 index a1f0baf..0000000 --- a/src/Model/VideoSession.cs +++ /dev/null @@ -1,79 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// - /// - [DataContract] - public class VideoSession { - /// - /// Gets or Sets Session - /// - [DataMember(Name="session", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "session")] - public VideoSessionSession session { get; set; } - /// - /// Gets or Sets Location - /// - [DataMember(Name="location", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "location")] - public VideoSessionLocation location { get; set; } - /// - /// Gets or Sets Referrer - /// - [DataMember(Name="referrer", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "referrer")] - public VideoSessionReferrer referrer { get; set; } - /// - /// Gets or Sets Device - /// - [DataMember(Name="device", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "device")] - public VideoSessionDevice device { get; set; } - /// - /// Gets or Sets Os - /// - [DataMember(Name="os", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "os")] - public VideoSessionOs os { get; set; } - /// - /// Gets or Sets _Client - /// - [DataMember(Name="client", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "client")] - public VideoSessionClient _client { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class VideoSession {\n"); - sb.Append(" Session: ").Append(session).Append("\n"); - sb.Append(" Location: ").Append(location).Append("\n"); - sb.Append(" Referrer: ").Append(referrer).Append("\n"); - sb.Append(" Device: ").Append(device).Append("\n"); - sb.Append(" Os: ").Append(os).Append("\n"); - sb.Append(" _Client: ").Append(_client).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/VideoSessionClient.cs b/src/Model/VideoSessionClient.cs deleted file mode 100644 index 5a7412c..0000000 --- a/src/Model/VideoSessionClient.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// What kind of browser the viewer is using for the video session. - /// - [DataContract] - public class VideoSessionClient { - /// - /// The name of the browser used to view the video session. - /// - /// The name of the browser used to view the video session. - [DataMember(Name="name", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "name")] - public string name { get; set; } - /// - /// The version of the browser used to view the video session. - /// - /// The version of the browser used to view the video session. - [DataMember(Name="version", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "version")] - public string version { get; set; } - /// - /// The type of client used to view the video session. - /// - /// The type of client used to view the video session. - [DataMember(Name="type", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "type")] - public string type { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class VideoSessionClient {\n"); - sb.Append(" Name: ").Append(name).Append("\n"); - sb.Append(" Version: ").Append(version).Append("\n"); - sb.Append(" Type: ").Append(type).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/VideoSessionLocation.cs b/src/Model/VideoSessionLocation.cs deleted file mode 100644 index 2dee530..0000000 --- a/src/Model/VideoSessionLocation.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// The location of the viewer. - /// - [DataContract] - public class VideoSessionLocation { - /// - /// The country of the viewer. - /// - /// The country of the viewer. - [DataMember(Name="country", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "country")] - public string country { get; set; } - /// - /// The city of the viewer. - /// - /// The city of the viewer. - [DataMember(Name="city", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "city")] - public string city { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class VideoSessionLocation {\n"); - sb.Append(" Country: ").Append(country).Append("\n"); - sb.Append(" City: ").Append(city).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/VideoSessionOs.cs b/src/Model/VideoSessionOs.cs deleted file mode 100644 index 8f09ee6..0000000 --- a/src/Model/VideoSessionOs.cs +++ /dev/null @@ -1,61 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// The operating system the viewer is on. - /// - [DataContract] - public class VideoSessionOs { - /// - /// The name of the operating system. - /// - /// The name of the operating system. - [DataMember(Name="name", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "name")] - public string name { get; set; } - /// - /// The nickname for the operating system, often representing the version. - /// - /// The nickname for the operating system, often representing the version. - [DataMember(Name="shortname", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "shortname")] - public string shortname { get; set; } - /// - /// The version of the operating system. - /// - /// The version of the operating system. - [DataMember(Name="version", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "version")] - public string version { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class VideoSessionOs {\n"); - sb.Append(" Name: ").Append(name).Append("\n"); - sb.Append(" Shortname: ").Append(shortname).Append("\n"); - sb.Append(" Version: ").Append(version).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/VideoSessionReferrer.cs b/src/Model/VideoSessionReferrer.cs deleted file mode 100644 index 3bb410a..0000000 --- a/src/Model/VideoSessionReferrer.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// - /// - [DataContract] - public class VideoSessionReferrer { - /// - /// The link the viewer used to reach the video session. - /// - /// The link the viewer used to reach the video session. - [DataMember(Name="url", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "url")] - public string url { get; set; } - /// - /// How they arrived at the site, for example organic or paid. Organic meaning they found it themselves and paid meaning they followed a link from an advertisement. - /// - /// How they arrived at the site, for example organic or paid. Organic meaning they found it themselves and paid meaning they followed a link from an advertisement. - [DataMember(Name="medium", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "medium")] - public string medium { get; set; } - /// - /// The source the referrer came from to the video session. For example if they searched through google to find the stream. - /// - /// The source the referrer came from to the video session. For example if they searched through google to find the stream. - [DataMember(Name="source", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "source")] - public string source { get; set; } - /// - /// The search term they typed to arrive at the video session. - /// - /// The search term they typed to arrive at the video session. - [DataMember(Name="searchTerm", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "searchTerm")] - public string searchterm { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class VideoSessionReferrer {\n"); - sb.Append(" Url: ").Append(url).Append("\n"); - sb.Append(" Medium: ").Append(medium).Append("\n"); - sb.Append(" Source: ").Append(source).Append("\n"); - sb.Append(" SearchTerm: ").Append(searchterm).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -} diff --git a/src/Model/VideoSessionSession.cs b/src/Model/VideoSessionSession.cs deleted file mode 100644 index 63208b3..0000000 --- a/src/Model/VideoSessionSession.cs +++ /dev/null @@ -1,69 +0,0 @@ -using System; -using System.Text; -using System.Collections; -using System.Collections.Generic; -using System.Runtime.Serialization; -using Newtonsoft.Json; - -namespace ApiVideo.Model { - - /// - /// - /// - [DataContract] - public class VideoSessionSession { - /// - /// The unique identifier for the session that you can use to track what happens during it. - /// - /// The unique identifier for the session that you can use to track what happens during it. - [DataMember(Name="sessionId", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "sessionId")] - public string sessionid { get; set; } - /// - /// When the video session started, presented in ISO-8601 format. - /// - /// When the video session started, presented in ISO-8601 format. - [DataMember(Name="loadedAt", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "loadedAt")] - public DateTime? loadedat { get; set; } - /// - /// When the video session ended, presented in ISO-8601 format. - /// - /// When the video session ended, presented in ISO-8601 format. - [DataMember(Name="endedAt", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "endedAt")] - public DateTime? endedat { get; set; } - /// - /// A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos. - /// - /// A list of key value pairs that you use to provide metadata for your video. These pairs can be made dynamic, allowing you to segment your audience. You can also just use the pairs as another way to tag and categorize your videos. - [DataMember(Name="metadata", EmitDefaultValue=false)] - [JsonProperty(PropertyName = "metadata")] - public List metadata { get; set; } - - - /// - /// Get the string presentation of the object - /// - /// String presentation of the object - public override string ToString() { - var sb = new StringBuilder(); - sb.Append("class VideoSessionSession {\n"); - sb.Append(" SessionId: ").Append(sessionid).Append("\n"); - sb.Append(" LoadedAt: ").Append(loadedat).Append("\n"); - sb.Append(" EndedAt: ").Append(endedat).Append("\n"); - sb.Append(" Metadata: ").Append(metadata).Append("\n"); - sb.Append("}\n"); - return sb.ToString(); - } - - /// - /// Get the JSON string presentation of the object - /// - /// JSON string presentation of the object - public string ToJson() { - return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); - } - -} -}