mirror of
https://github.com/hanzo-go/sdk.git
synced 2026-11-20 20:13:42 +00:00
1671 lines
42 KiB
Go
1671 lines
42 KiB
Go
/*
|
|
Hanzo Cloud API
|
|
|
|
The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
|
|
|
|
API version: v1
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package hanzoai
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the Video type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &Video{}
|
|
|
|
// Video struct for Video
|
|
type Video struct {
|
|
AudioUrl *string `json:"audioUrl,omitempty"`
|
|
Class *string `json:"class,omitempty"`
|
|
CoverUrl *string `json:"coverUrl,omitempty"`
|
|
CreatedTime *string `json:"createdTime,omitempty"`
|
|
DataUrl *string `json:"dataUrl,omitempty"`
|
|
DataUrls []string `json:"dataUrls,omitempty"`
|
|
Description *string `json:"description,omitempty"`
|
|
DisplayName *string `json:"displayName,omitempty"`
|
|
DownloadUrl *string `json:"downloadUrl,omitempty"`
|
|
EditMode *string `json:"editMode,omitempty"`
|
|
ExcellentCount *int32 `json:"excellentCount,omitempty"`
|
|
Grade *string `json:"grade,omitempty"`
|
|
Grade2 *string `json:"grade2,omitempty"`
|
|
IsPublic *bool `json:"isPublic,omitempty"`
|
|
Keywords []string `json:"keywords,omitempty"`
|
|
LabelCount *int32 `json:"labelCount,omitempty"`
|
|
Labels []Label `json:"labels,omitempty"`
|
|
Lesson *string `json:"lesson,omitempty"`
|
|
Name *string `json:"name,omitempty"`
|
|
Owner *string `json:"owner,omitempty"`
|
|
PlayAuth *string `json:"playAuth,omitempty"`
|
|
Remarks []Remark `json:"remarks,omitempty"`
|
|
Remarks2 []Remark `json:"remarks2,omitempty"`
|
|
ReviewState *string `json:"reviewState,omitempty"`
|
|
School *string `json:"school,omitempty"`
|
|
SegmentCount *int32 `json:"segmentCount,omitempty"`
|
|
Segments []Label `json:"segments,omitempty"`
|
|
Stage *string `json:"stage,omitempty"`
|
|
State *string `json:"state,omitempty"`
|
|
Subject *string `json:"subject,omitempty"`
|
|
Tag *string `json:"tag,omitempty"`
|
|
TagOnPause *bool `json:"tagOnPause,omitempty"`
|
|
Task1 *string `json:"task1,omitempty"`
|
|
Task2 *string `json:"task2,omitempty"`
|
|
Task3 *string `json:"task3,omitempty"`
|
|
Template *string `json:"template,omitempty"`
|
|
Topic *string `json:"topic,omitempty"`
|
|
Type *string `json:"type,omitempty"`
|
|
Unit *string `json:"unit,omitempty"`
|
|
VideoId *string `json:"videoId,omitempty"`
|
|
VideoLength *string `json:"videoLength,omitempty"`
|
|
WordCountMap map[string]int32 `json:"wordCountMap,omitempty"`
|
|
AdditionalProperties map[string]interface{}
|
|
}
|
|
|
|
type _Video Video
|
|
|
|
// NewVideo instantiates a new Video object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewVideo() *Video {
|
|
this := Video{}
|
|
return &this
|
|
}
|
|
|
|
// NewVideoWithDefaults instantiates a new Video object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewVideoWithDefaults() *Video {
|
|
this := Video{}
|
|
return &this
|
|
}
|
|
|
|
// GetAudioUrl returns the AudioUrl field value if set, zero value otherwise.
|
|
func (o *Video) GetAudioUrl() string {
|
|
if o == nil || IsNil(o.AudioUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AudioUrl
|
|
}
|
|
|
|
// GetAudioUrlOk returns a tuple with the AudioUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetAudioUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AudioUrl) {
|
|
return nil, false
|
|
}
|
|
return o.AudioUrl, true
|
|
}
|
|
|
|
// HasAudioUrl returns a boolean if a field has been set.
|
|
func (o *Video) HasAudioUrl() bool {
|
|
if o != nil && !IsNil(o.AudioUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAudioUrl gets a reference to the given string and assigns it to the AudioUrl field.
|
|
func (o *Video) SetAudioUrl(v string) {
|
|
o.AudioUrl = &v
|
|
}
|
|
|
|
// GetClass returns the Class field value if set, zero value otherwise.
|
|
func (o *Video) GetClass() string {
|
|
if o == nil || IsNil(o.Class) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Class
|
|
}
|
|
|
|
// GetClassOk returns a tuple with the Class field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetClassOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Class) {
|
|
return nil, false
|
|
}
|
|
return o.Class, true
|
|
}
|
|
|
|
// HasClass returns a boolean if a field has been set.
|
|
func (o *Video) HasClass() bool {
|
|
if o != nil && !IsNil(o.Class) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetClass gets a reference to the given string and assigns it to the Class field.
|
|
func (o *Video) SetClass(v string) {
|
|
o.Class = &v
|
|
}
|
|
|
|
// GetCoverUrl returns the CoverUrl field value if set, zero value otherwise.
|
|
func (o *Video) GetCoverUrl() string {
|
|
if o == nil || IsNil(o.CoverUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CoverUrl
|
|
}
|
|
|
|
// GetCoverUrlOk returns a tuple with the CoverUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetCoverUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CoverUrl) {
|
|
return nil, false
|
|
}
|
|
return o.CoverUrl, true
|
|
}
|
|
|
|
// HasCoverUrl returns a boolean if a field has been set.
|
|
func (o *Video) HasCoverUrl() bool {
|
|
if o != nil && !IsNil(o.CoverUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCoverUrl gets a reference to the given string and assigns it to the CoverUrl field.
|
|
func (o *Video) SetCoverUrl(v string) {
|
|
o.CoverUrl = &v
|
|
}
|
|
|
|
// GetCreatedTime returns the CreatedTime field value if set, zero value otherwise.
|
|
func (o *Video) GetCreatedTime() string {
|
|
if o == nil || IsNil(o.CreatedTime) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.CreatedTime
|
|
}
|
|
|
|
// GetCreatedTimeOk returns a tuple with the CreatedTime field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetCreatedTimeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.CreatedTime) {
|
|
return nil, false
|
|
}
|
|
return o.CreatedTime, true
|
|
}
|
|
|
|
// HasCreatedTime returns a boolean if a field has been set.
|
|
func (o *Video) HasCreatedTime() bool {
|
|
if o != nil && !IsNil(o.CreatedTime) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetCreatedTime gets a reference to the given string and assigns it to the CreatedTime field.
|
|
func (o *Video) SetCreatedTime(v string) {
|
|
o.CreatedTime = &v
|
|
}
|
|
|
|
// GetDataUrl returns the DataUrl field value if set, zero value otherwise.
|
|
func (o *Video) GetDataUrl() string {
|
|
if o == nil || IsNil(o.DataUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DataUrl
|
|
}
|
|
|
|
// GetDataUrlOk returns a tuple with the DataUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetDataUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DataUrl) {
|
|
return nil, false
|
|
}
|
|
return o.DataUrl, true
|
|
}
|
|
|
|
// HasDataUrl returns a boolean if a field has been set.
|
|
func (o *Video) HasDataUrl() bool {
|
|
if o != nil && !IsNil(o.DataUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDataUrl gets a reference to the given string and assigns it to the DataUrl field.
|
|
func (o *Video) SetDataUrl(v string) {
|
|
o.DataUrl = &v
|
|
}
|
|
|
|
// GetDataUrls returns the DataUrls field value if set, zero value otherwise.
|
|
func (o *Video) GetDataUrls() []string {
|
|
if o == nil || IsNil(o.DataUrls) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.DataUrls
|
|
}
|
|
|
|
// GetDataUrlsOk returns a tuple with the DataUrls field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetDataUrlsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.DataUrls) {
|
|
return nil, false
|
|
}
|
|
return o.DataUrls, true
|
|
}
|
|
|
|
// HasDataUrls returns a boolean if a field has been set.
|
|
func (o *Video) HasDataUrls() bool {
|
|
if o != nil && !IsNil(o.DataUrls) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDataUrls gets a reference to the given []string and assigns it to the DataUrls field.
|
|
func (o *Video) SetDataUrls(v []string) {
|
|
o.DataUrls = v
|
|
}
|
|
|
|
// GetDescription returns the Description field value if set, zero value otherwise.
|
|
func (o *Video) GetDescription() string {
|
|
if o == nil || IsNil(o.Description) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Description
|
|
}
|
|
|
|
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetDescriptionOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Description) {
|
|
return nil, false
|
|
}
|
|
return o.Description, true
|
|
}
|
|
|
|
// HasDescription returns a boolean if a field has been set.
|
|
func (o *Video) HasDescription() bool {
|
|
if o != nil && !IsNil(o.Description) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDescription gets a reference to the given string and assigns it to the Description field.
|
|
func (o *Video) SetDescription(v string) {
|
|
o.Description = &v
|
|
}
|
|
|
|
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
|
|
func (o *Video) GetDisplayName() string {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DisplayName
|
|
}
|
|
|
|
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetDisplayNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
return nil, false
|
|
}
|
|
return o.DisplayName, true
|
|
}
|
|
|
|
// HasDisplayName returns a boolean if a field has been set.
|
|
func (o *Video) HasDisplayName() bool {
|
|
if o != nil && !IsNil(o.DisplayName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
|
|
func (o *Video) SetDisplayName(v string) {
|
|
o.DisplayName = &v
|
|
}
|
|
|
|
// GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise.
|
|
func (o *Video) GetDownloadUrl() string {
|
|
if o == nil || IsNil(o.DownloadUrl) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DownloadUrl
|
|
}
|
|
|
|
// GetDownloadUrlOk returns a tuple with the DownloadUrl field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetDownloadUrlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DownloadUrl) {
|
|
return nil, false
|
|
}
|
|
return o.DownloadUrl, true
|
|
}
|
|
|
|
// HasDownloadUrl returns a boolean if a field has been set.
|
|
func (o *Video) HasDownloadUrl() bool {
|
|
if o != nil && !IsNil(o.DownloadUrl) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDownloadUrl gets a reference to the given string and assigns it to the DownloadUrl field.
|
|
func (o *Video) SetDownloadUrl(v string) {
|
|
o.DownloadUrl = &v
|
|
}
|
|
|
|
// GetEditMode returns the EditMode field value if set, zero value otherwise.
|
|
func (o *Video) GetEditMode() string {
|
|
if o == nil || IsNil(o.EditMode) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EditMode
|
|
}
|
|
|
|
// GetEditModeOk returns a tuple with the EditMode field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetEditModeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.EditMode) {
|
|
return nil, false
|
|
}
|
|
return o.EditMode, true
|
|
}
|
|
|
|
// HasEditMode returns a boolean if a field has been set.
|
|
func (o *Video) HasEditMode() bool {
|
|
if o != nil && !IsNil(o.EditMode) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEditMode gets a reference to the given string and assigns it to the EditMode field.
|
|
func (o *Video) SetEditMode(v string) {
|
|
o.EditMode = &v
|
|
}
|
|
|
|
// GetExcellentCount returns the ExcellentCount field value if set, zero value otherwise.
|
|
func (o *Video) GetExcellentCount() int32 {
|
|
if o == nil || IsNil(o.ExcellentCount) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.ExcellentCount
|
|
}
|
|
|
|
// GetExcellentCountOk returns a tuple with the ExcellentCount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetExcellentCountOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.ExcellentCount) {
|
|
return nil, false
|
|
}
|
|
return o.ExcellentCount, true
|
|
}
|
|
|
|
// HasExcellentCount returns a boolean if a field has been set.
|
|
func (o *Video) HasExcellentCount() bool {
|
|
if o != nil && !IsNil(o.ExcellentCount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetExcellentCount gets a reference to the given int32 and assigns it to the ExcellentCount field.
|
|
func (o *Video) SetExcellentCount(v int32) {
|
|
o.ExcellentCount = &v
|
|
}
|
|
|
|
// GetGrade returns the Grade field value if set, zero value otherwise.
|
|
func (o *Video) GetGrade() string {
|
|
if o == nil || IsNil(o.Grade) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Grade
|
|
}
|
|
|
|
// GetGradeOk returns a tuple with the Grade field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetGradeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Grade) {
|
|
return nil, false
|
|
}
|
|
return o.Grade, true
|
|
}
|
|
|
|
// HasGrade returns a boolean if a field has been set.
|
|
func (o *Video) HasGrade() bool {
|
|
if o != nil && !IsNil(o.Grade) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGrade gets a reference to the given string and assigns it to the Grade field.
|
|
func (o *Video) SetGrade(v string) {
|
|
o.Grade = &v
|
|
}
|
|
|
|
// GetGrade2 returns the Grade2 field value if set, zero value otherwise.
|
|
func (o *Video) GetGrade2() string {
|
|
if o == nil || IsNil(o.Grade2) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Grade2
|
|
}
|
|
|
|
// GetGrade2Ok returns a tuple with the Grade2 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetGrade2Ok() (*string, bool) {
|
|
if o == nil || IsNil(o.Grade2) {
|
|
return nil, false
|
|
}
|
|
return o.Grade2, true
|
|
}
|
|
|
|
// HasGrade2 returns a boolean if a field has been set.
|
|
func (o *Video) HasGrade2() bool {
|
|
if o != nil && !IsNil(o.Grade2) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetGrade2 gets a reference to the given string and assigns it to the Grade2 field.
|
|
func (o *Video) SetGrade2(v string) {
|
|
o.Grade2 = &v
|
|
}
|
|
|
|
// GetIsPublic returns the IsPublic field value if set, zero value otherwise.
|
|
func (o *Video) GetIsPublic() bool {
|
|
if o == nil || IsNil(o.IsPublic) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.IsPublic
|
|
}
|
|
|
|
// GetIsPublicOk returns a tuple with the IsPublic field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetIsPublicOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.IsPublic) {
|
|
return nil, false
|
|
}
|
|
return o.IsPublic, true
|
|
}
|
|
|
|
// HasIsPublic returns a boolean if a field has been set.
|
|
func (o *Video) HasIsPublic() bool {
|
|
if o != nil && !IsNil(o.IsPublic) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIsPublic gets a reference to the given bool and assigns it to the IsPublic field.
|
|
func (o *Video) SetIsPublic(v bool) {
|
|
o.IsPublic = &v
|
|
}
|
|
|
|
// GetKeywords returns the Keywords field value if set, zero value otherwise.
|
|
func (o *Video) GetKeywords() []string {
|
|
if o == nil || IsNil(o.Keywords) {
|
|
var ret []string
|
|
return ret
|
|
}
|
|
return o.Keywords
|
|
}
|
|
|
|
// GetKeywordsOk returns a tuple with the Keywords field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetKeywordsOk() ([]string, bool) {
|
|
if o == nil || IsNil(o.Keywords) {
|
|
return nil, false
|
|
}
|
|
return o.Keywords, true
|
|
}
|
|
|
|
// HasKeywords returns a boolean if a field has been set.
|
|
func (o *Video) HasKeywords() bool {
|
|
if o != nil && !IsNil(o.Keywords) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetKeywords gets a reference to the given []string and assigns it to the Keywords field.
|
|
func (o *Video) SetKeywords(v []string) {
|
|
o.Keywords = v
|
|
}
|
|
|
|
// GetLabelCount returns the LabelCount field value if set, zero value otherwise.
|
|
func (o *Video) GetLabelCount() int32 {
|
|
if o == nil || IsNil(o.LabelCount) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.LabelCount
|
|
}
|
|
|
|
// GetLabelCountOk returns a tuple with the LabelCount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetLabelCountOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.LabelCount) {
|
|
return nil, false
|
|
}
|
|
return o.LabelCount, true
|
|
}
|
|
|
|
// HasLabelCount returns a boolean if a field has been set.
|
|
func (o *Video) HasLabelCount() bool {
|
|
if o != nil && !IsNil(o.LabelCount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLabelCount gets a reference to the given int32 and assigns it to the LabelCount field.
|
|
func (o *Video) SetLabelCount(v int32) {
|
|
o.LabelCount = &v
|
|
}
|
|
|
|
// GetLabels returns the Labels field value if set, zero value otherwise.
|
|
func (o *Video) GetLabels() []Label {
|
|
if o == nil || IsNil(o.Labels) {
|
|
var ret []Label
|
|
return ret
|
|
}
|
|
return o.Labels
|
|
}
|
|
|
|
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetLabelsOk() ([]Label, bool) {
|
|
if o == nil || IsNil(o.Labels) {
|
|
return nil, false
|
|
}
|
|
return o.Labels, true
|
|
}
|
|
|
|
// HasLabels returns a boolean if a field has been set.
|
|
func (o *Video) HasLabels() bool {
|
|
if o != nil && !IsNil(o.Labels) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLabels gets a reference to the given []Label and assigns it to the Labels field.
|
|
func (o *Video) SetLabels(v []Label) {
|
|
o.Labels = v
|
|
}
|
|
|
|
// GetLesson returns the Lesson field value if set, zero value otherwise.
|
|
func (o *Video) GetLesson() string {
|
|
if o == nil || IsNil(o.Lesson) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Lesson
|
|
}
|
|
|
|
// GetLessonOk returns a tuple with the Lesson field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetLessonOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Lesson) {
|
|
return nil, false
|
|
}
|
|
return o.Lesson, true
|
|
}
|
|
|
|
// HasLesson returns a boolean if a field has been set.
|
|
func (o *Video) HasLesson() bool {
|
|
if o != nil && !IsNil(o.Lesson) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLesson gets a reference to the given string and assigns it to the Lesson field.
|
|
func (o *Video) SetLesson(v string) {
|
|
o.Lesson = &v
|
|
}
|
|
|
|
// GetName returns the Name field value if set, zero value otherwise.
|
|
func (o *Video) GetName() string {
|
|
if o == nil || IsNil(o.Name) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Name
|
|
}
|
|
|
|
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Name) {
|
|
return nil, false
|
|
}
|
|
return o.Name, true
|
|
}
|
|
|
|
// HasName returns a boolean if a field has been set.
|
|
func (o *Video) HasName() bool {
|
|
if o != nil && !IsNil(o.Name) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetName gets a reference to the given string and assigns it to the Name field.
|
|
func (o *Video) SetName(v string) {
|
|
o.Name = &v
|
|
}
|
|
|
|
// GetOwner returns the Owner field value if set, zero value otherwise.
|
|
func (o *Video) GetOwner() string {
|
|
if o == nil || IsNil(o.Owner) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Owner
|
|
}
|
|
|
|
// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetOwnerOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Owner) {
|
|
return nil, false
|
|
}
|
|
return o.Owner, true
|
|
}
|
|
|
|
// HasOwner returns a boolean if a field has been set.
|
|
func (o *Video) HasOwner() bool {
|
|
if o != nil && !IsNil(o.Owner) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetOwner gets a reference to the given string and assigns it to the Owner field.
|
|
func (o *Video) SetOwner(v string) {
|
|
o.Owner = &v
|
|
}
|
|
|
|
// GetPlayAuth returns the PlayAuth field value if set, zero value otherwise.
|
|
func (o *Video) GetPlayAuth() string {
|
|
if o == nil || IsNil(o.PlayAuth) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.PlayAuth
|
|
}
|
|
|
|
// GetPlayAuthOk returns a tuple with the PlayAuth field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetPlayAuthOk() (*string, bool) {
|
|
if o == nil || IsNil(o.PlayAuth) {
|
|
return nil, false
|
|
}
|
|
return o.PlayAuth, true
|
|
}
|
|
|
|
// HasPlayAuth returns a boolean if a field has been set.
|
|
func (o *Video) HasPlayAuth() bool {
|
|
if o != nil && !IsNil(o.PlayAuth) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetPlayAuth gets a reference to the given string and assigns it to the PlayAuth field.
|
|
func (o *Video) SetPlayAuth(v string) {
|
|
o.PlayAuth = &v
|
|
}
|
|
|
|
// GetRemarks returns the Remarks field value if set, zero value otherwise.
|
|
func (o *Video) GetRemarks() []Remark {
|
|
if o == nil || IsNil(o.Remarks) {
|
|
var ret []Remark
|
|
return ret
|
|
}
|
|
return o.Remarks
|
|
}
|
|
|
|
// GetRemarksOk returns a tuple with the Remarks field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetRemarksOk() ([]Remark, bool) {
|
|
if o == nil || IsNil(o.Remarks) {
|
|
return nil, false
|
|
}
|
|
return o.Remarks, true
|
|
}
|
|
|
|
// HasRemarks returns a boolean if a field has been set.
|
|
func (o *Video) HasRemarks() bool {
|
|
if o != nil && !IsNil(o.Remarks) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRemarks gets a reference to the given []Remark and assigns it to the Remarks field.
|
|
func (o *Video) SetRemarks(v []Remark) {
|
|
o.Remarks = v
|
|
}
|
|
|
|
// GetRemarks2 returns the Remarks2 field value if set, zero value otherwise.
|
|
func (o *Video) GetRemarks2() []Remark {
|
|
if o == nil || IsNil(o.Remarks2) {
|
|
var ret []Remark
|
|
return ret
|
|
}
|
|
return o.Remarks2
|
|
}
|
|
|
|
// GetRemarks2Ok returns a tuple with the Remarks2 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetRemarks2Ok() ([]Remark, bool) {
|
|
if o == nil || IsNil(o.Remarks2) {
|
|
return nil, false
|
|
}
|
|
return o.Remarks2, true
|
|
}
|
|
|
|
// HasRemarks2 returns a boolean if a field has been set.
|
|
func (o *Video) HasRemarks2() bool {
|
|
if o != nil && !IsNil(o.Remarks2) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRemarks2 gets a reference to the given []Remark and assigns it to the Remarks2 field.
|
|
func (o *Video) SetRemarks2(v []Remark) {
|
|
o.Remarks2 = v
|
|
}
|
|
|
|
// GetReviewState returns the ReviewState field value if set, zero value otherwise.
|
|
func (o *Video) GetReviewState() string {
|
|
if o == nil || IsNil(o.ReviewState) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.ReviewState
|
|
}
|
|
|
|
// GetReviewStateOk returns a tuple with the ReviewState field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetReviewStateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.ReviewState) {
|
|
return nil, false
|
|
}
|
|
return o.ReviewState, true
|
|
}
|
|
|
|
// HasReviewState returns a boolean if a field has been set.
|
|
func (o *Video) HasReviewState() bool {
|
|
if o != nil && !IsNil(o.ReviewState) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetReviewState gets a reference to the given string and assigns it to the ReviewState field.
|
|
func (o *Video) SetReviewState(v string) {
|
|
o.ReviewState = &v
|
|
}
|
|
|
|
// GetSchool returns the School field value if set, zero value otherwise.
|
|
func (o *Video) GetSchool() string {
|
|
if o == nil || IsNil(o.School) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.School
|
|
}
|
|
|
|
// GetSchoolOk returns a tuple with the School field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetSchoolOk() (*string, bool) {
|
|
if o == nil || IsNil(o.School) {
|
|
return nil, false
|
|
}
|
|
return o.School, true
|
|
}
|
|
|
|
// HasSchool returns a boolean if a field has been set.
|
|
func (o *Video) HasSchool() bool {
|
|
if o != nil && !IsNil(o.School) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSchool gets a reference to the given string and assigns it to the School field.
|
|
func (o *Video) SetSchool(v string) {
|
|
o.School = &v
|
|
}
|
|
|
|
// GetSegmentCount returns the SegmentCount field value if set, zero value otherwise.
|
|
func (o *Video) GetSegmentCount() int32 {
|
|
if o == nil || IsNil(o.SegmentCount) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.SegmentCount
|
|
}
|
|
|
|
// GetSegmentCountOk returns a tuple with the SegmentCount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetSegmentCountOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.SegmentCount) {
|
|
return nil, false
|
|
}
|
|
return o.SegmentCount, true
|
|
}
|
|
|
|
// HasSegmentCount returns a boolean if a field has been set.
|
|
func (o *Video) HasSegmentCount() bool {
|
|
if o != nil && !IsNil(o.SegmentCount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSegmentCount gets a reference to the given int32 and assigns it to the SegmentCount field.
|
|
func (o *Video) SetSegmentCount(v int32) {
|
|
o.SegmentCount = &v
|
|
}
|
|
|
|
// GetSegments returns the Segments field value if set, zero value otherwise.
|
|
func (o *Video) GetSegments() []Label {
|
|
if o == nil || IsNil(o.Segments) {
|
|
var ret []Label
|
|
return ret
|
|
}
|
|
return o.Segments
|
|
}
|
|
|
|
// GetSegmentsOk returns a tuple with the Segments field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetSegmentsOk() ([]Label, bool) {
|
|
if o == nil || IsNil(o.Segments) {
|
|
return nil, false
|
|
}
|
|
return o.Segments, true
|
|
}
|
|
|
|
// HasSegments returns a boolean if a field has been set.
|
|
func (o *Video) HasSegments() bool {
|
|
if o != nil && !IsNil(o.Segments) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSegments gets a reference to the given []Label and assigns it to the Segments field.
|
|
func (o *Video) SetSegments(v []Label) {
|
|
o.Segments = v
|
|
}
|
|
|
|
// GetStage returns the Stage field value if set, zero value otherwise.
|
|
func (o *Video) GetStage() string {
|
|
if o == nil || IsNil(o.Stage) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Stage
|
|
}
|
|
|
|
// GetStageOk returns a tuple with the Stage field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetStageOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Stage) {
|
|
return nil, false
|
|
}
|
|
return o.Stage, true
|
|
}
|
|
|
|
// HasStage returns a boolean if a field has been set.
|
|
func (o *Video) HasStage() bool {
|
|
if o != nil && !IsNil(o.Stage) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStage gets a reference to the given string and assigns it to the Stage field.
|
|
func (o *Video) SetStage(v string) {
|
|
o.Stage = &v
|
|
}
|
|
|
|
// GetState returns the State field value if set, zero value otherwise.
|
|
func (o *Video) GetState() string {
|
|
if o == nil || IsNil(o.State) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.State
|
|
}
|
|
|
|
// GetStateOk returns a tuple with the State field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetStateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.State) {
|
|
return nil, false
|
|
}
|
|
return o.State, true
|
|
}
|
|
|
|
// HasState returns a boolean if a field has been set.
|
|
func (o *Video) HasState() bool {
|
|
if o != nil && !IsNil(o.State) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetState gets a reference to the given string and assigns it to the State field.
|
|
func (o *Video) SetState(v string) {
|
|
o.State = &v
|
|
}
|
|
|
|
// GetSubject returns the Subject field value if set, zero value otherwise.
|
|
func (o *Video) GetSubject() string {
|
|
if o == nil || IsNil(o.Subject) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Subject
|
|
}
|
|
|
|
// GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetSubjectOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Subject) {
|
|
return nil, false
|
|
}
|
|
return o.Subject, true
|
|
}
|
|
|
|
// HasSubject returns a boolean if a field has been set.
|
|
func (o *Video) HasSubject() bool {
|
|
if o != nil && !IsNil(o.Subject) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetSubject gets a reference to the given string and assigns it to the Subject field.
|
|
func (o *Video) SetSubject(v string) {
|
|
o.Subject = &v
|
|
}
|
|
|
|
// GetTag returns the Tag field value if set, zero value otherwise.
|
|
func (o *Video) GetTag() string {
|
|
if o == nil || IsNil(o.Tag) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Tag
|
|
}
|
|
|
|
// GetTagOk returns a tuple with the Tag field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetTagOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Tag) {
|
|
return nil, false
|
|
}
|
|
return o.Tag, true
|
|
}
|
|
|
|
// HasTag returns a boolean if a field has been set.
|
|
func (o *Video) HasTag() bool {
|
|
if o != nil && !IsNil(o.Tag) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTag gets a reference to the given string and assigns it to the Tag field.
|
|
func (o *Video) SetTag(v string) {
|
|
o.Tag = &v
|
|
}
|
|
|
|
// GetTagOnPause returns the TagOnPause field value if set, zero value otherwise.
|
|
func (o *Video) GetTagOnPause() bool {
|
|
if o == nil || IsNil(o.TagOnPause) {
|
|
var ret bool
|
|
return ret
|
|
}
|
|
return *o.TagOnPause
|
|
}
|
|
|
|
// GetTagOnPauseOk returns a tuple with the TagOnPause field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetTagOnPauseOk() (*bool, bool) {
|
|
if o == nil || IsNil(o.TagOnPause) {
|
|
return nil, false
|
|
}
|
|
return o.TagOnPause, true
|
|
}
|
|
|
|
// HasTagOnPause returns a boolean if a field has been set.
|
|
func (o *Video) HasTagOnPause() bool {
|
|
if o != nil && !IsNil(o.TagOnPause) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTagOnPause gets a reference to the given bool and assigns it to the TagOnPause field.
|
|
func (o *Video) SetTagOnPause(v bool) {
|
|
o.TagOnPause = &v
|
|
}
|
|
|
|
// GetTask1 returns the Task1 field value if set, zero value otherwise.
|
|
func (o *Video) GetTask1() string {
|
|
if o == nil || IsNil(o.Task1) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Task1
|
|
}
|
|
|
|
// GetTask1Ok returns a tuple with the Task1 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetTask1Ok() (*string, bool) {
|
|
if o == nil || IsNil(o.Task1) {
|
|
return nil, false
|
|
}
|
|
return o.Task1, true
|
|
}
|
|
|
|
// HasTask1 returns a boolean if a field has been set.
|
|
func (o *Video) HasTask1() bool {
|
|
if o != nil && !IsNil(o.Task1) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTask1 gets a reference to the given string and assigns it to the Task1 field.
|
|
func (o *Video) SetTask1(v string) {
|
|
o.Task1 = &v
|
|
}
|
|
|
|
// GetTask2 returns the Task2 field value if set, zero value otherwise.
|
|
func (o *Video) GetTask2() string {
|
|
if o == nil || IsNil(o.Task2) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Task2
|
|
}
|
|
|
|
// GetTask2Ok returns a tuple with the Task2 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetTask2Ok() (*string, bool) {
|
|
if o == nil || IsNil(o.Task2) {
|
|
return nil, false
|
|
}
|
|
return o.Task2, true
|
|
}
|
|
|
|
// HasTask2 returns a boolean if a field has been set.
|
|
func (o *Video) HasTask2() bool {
|
|
if o != nil && !IsNil(o.Task2) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTask2 gets a reference to the given string and assigns it to the Task2 field.
|
|
func (o *Video) SetTask2(v string) {
|
|
o.Task2 = &v
|
|
}
|
|
|
|
// GetTask3 returns the Task3 field value if set, zero value otherwise.
|
|
func (o *Video) GetTask3() string {
|
|
if o == nil || IsNil(o.Task3) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Task3
|
|
}
|
|
|
|
// GetTask3Ok returns a tuple with the Task3 field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetTask3Ok() (*string, bool) {
|
|
if o == nil || IsNil(o.Task3) {
|
|
return nil, false
|
|
}
|
|
return o.Task3, true
|
|
}
|
|
|
|
// HasTask3 returns a boolean if a field has been set.
|
|
func (o *Video) HasTask3() bool {
|
|
if o != nil && !IsNil(o.Task3) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTask3 gets a reference to the given string and assigns it to the Task3 field.
|
|
func (o *Video) SetTask3(v string) {
|
|
o.Task3 = &v
|
|
}
|
|
|
|
// GetTemplate returns the Template field value if set, zero value otherwise.
|
|
func (o *Video) GetTemplate() string {
|
|
if o == nil || IsNil(o.Template) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Template
|
|
}
|
|
|
|
// GetTemplateOk returns a tuple with the Template field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetTemplateOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Template) {
|
|
return nil, false
|
|
}
|
|
return o.Template, true
|
|
}
|
|
|
|
// HasTemplate returns a boolean if a field has been set.
|
|
func (o *Video) HasTemplate() bool {
|
|
if o != nil && !IsNil(o.Template) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTemplate gets a reference to the given string and assigns it to the Template field.
|
|
func (o *Video) SetTemplate(v string) {
|
|
o.Template = &v
|
|
}
|
|
|
|
// GetTopic returns the Topic field value if set, zero value otherwise.
|
|
func (o *Video) GetTopic() string {
|
|
if o == nil || IsNil(o.Topic) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Topic
|
|
}
|
|
|
|
// GetTopicOk returns a tuple with the Topic field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetTopicOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Topic) {
|
|
return nil, false
|
|
}
|
|
return o.Topic, true
|
|
}
|
|
|
|
// HasTopic returns a boolean if a field has been set.
|
|
func (o *Video) HasTopic() bool {
|
|
if o != nil && !IsNil(o.Topic) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetTopic gets a reference to the given string and assigns it to the Topic field.
|
|
func (o *Video) SetTopic(v string) {
|
|
o.Topic = &v
|
|
}
|
|
|
|
// GetType returns the Type field value if set, zero value otherwise.
|
|
func (o *Video) GetType() string {
|
|
if o == nil || IsNil(o.Type) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Type
|
|
}
|
|
|
|
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetTypeOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Type) {
|
|
return nil, false
|
|
}
|
|
return o.Type, true
|
|
}
|
|
|
|
// HasType returns a boolean if a field has been set.
|
|
func (o *Video) HasType() bool {
|
|
if o != nil && !IsNil(o.Type) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetType gets a reference to the given string and assigns it to the Type field.
|
|
func (o *Video) SetType(v string) {
|
|
o.Type = &v
|
|
}
|
|
|
|
// GetUnit returns the Unit field value if set, zero value otherwise.
|
|
func (o *Video) GetUnit() string {
|
|
if o == nil || IsNil(o.Unit) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Unit
|
|
}
|
|
|
|
// GetUnitOk returns a tuple with the Unit field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetUnitOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Unit) {
|
|
return nil, false
|
|
}
|
|
return o.Unit, true
|
|
}
|
|
|
|
// HasUnit returns a boolean if a field has been set.
|
|
func (o *Video) HasUnit() bool {
|
|
if o != nil && !IsNil(o.Unit) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUnit gets a reference to the given string and assigns it to the Unit field.
|
|
func (o *Video) SetUnit(v string) {
|
|
o.Unit = &v
|
|
}
|
|
|
|
// GetVideoId returns the VideoId field value if set, zero value otherwise.
|
|
func (o *Video) GetVideoId() string {
|
|
if o == nil || IsNil(o.VideoId) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.VideoId
|
|
}
|
|
|
|
// GetVideoIdOk returns a tuple with the VideoId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetVideoIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.VideoId) {
|
|
return nil, false
|
|
}
|
|
return o.VideoId, true
|
|
}
|
|
|
|
// HasVideoId returns a boolean if a field has been set.
|
|
func (o *Video) HasVideoId() bool {
|
|
if o != nil && !IsNil(o.VideoId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVideoId gets a reference to the given string and assigns it to the VideoId field.
|
|
func (o *Video) SetVideoId(v string) {
|
|
o.VideoId = &v
|
|
}
|
|
|
|
// GetVideoLength returns the VideoLength field value if set, zero value otherwise.
|
|
func (o *Video) GetVideoLength() string {
|
|
if o == nil || IsNil(o.VideoLength) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.VideoLength
|
|
}
|
|
|
|
// GetVideoLengthOk returns a tuple with the VideoLength field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetVideoLengthOk() (*string, bool) {
|
|
if o == nil || IsNil(o.VideoLength) {
|
|
return nil, false
|
|
}
|
|
return o.VideoLength, true
|
|
}
|
|
|
|
// HasVideoLength returns a boolean if a field has been set.
|
|
func (o *Video) HasVideoLength() bool {
|
|
if o != nil && !IsNil(o.VideoLength) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetVideoLength gets a reference to the given string and assigns it to the VideoLength field.
|
|
func (o *Video) SetVideoLength(v string) {
|
|
o.VideoLength = &v
|
|
}
|
|
|
|
// GetWordCountMap returns the WordCountMap field value if set, zero value otherwise.
|
|
func (o *Video) GetWordCountMap() map[string]int32 {
|
|
if o == nil || IsNil(o.WordCountMap) {
|
|
var ret map[string]int32
|
|
return ret
|
|
}
|
|
return o.WordCountMap
|
|
}
|
|
|
|
// GetWordCountMapOk returns a tuple with the WordCountMap field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *Video) GetWordCountMapOk() (map[string]int32, bool) {
|
|
if o == nil || IsNil(o.WordCountMap) {
|
|
return map[string]int32{}, false
|
|
}
|
|
return o.WordCountMap, true
|
|
}
|
|
|
|
// HasWordCountMap returns a boolean if a field has been set.
|
|
func (o *Video) HasWordCountMap() bool {
|
|
if o != nil && !IsNil(o.WordCountMap) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetWordCountMap gets a reference to the given map[string]int32 and assigns it to the WordCountMap field.
|
|
func (o *Video) SetWordCountMap(v map[string]int32) {
|
|
o.WordCountMap = v
|
|
}
|
|
|
|
func (o Video) MarshalJSON() ([]byte, error) {
|
|
toSerialize, err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o Video) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AudioUrl) {
|
|
toSerialize["audioUrl"] = o.AudioUrl
|
|
}
|
|
if !IsNil(o.Class) {
|
|
toSerialize["class"] = o.Class
|
|
}
|
|
if !IsNil(o.CoverUrl) {
|
|
toSerialize["coverUrl"] = o.CoverUrl
|
|
}
|
|
if !IsNil(o.CreatedTime) {
|
|
toSerialize["createdTime"] = o.CreatedTime
|
|
}
|
|
if !IsNil(o.DataUrl) {
|
|
toSerialize["dataUrl"] = o.DataUrl
|
|
}
|
|
if !IsNil(o.DataUrls) {
|
|
toSerialize["dataUrls"] = o.DataUrls
|
|
}
|
|
if !IsNil(o.Description) {
|
|
toSerialize["description"] = o.Description
|
|
}
|
|
if !IsNil(o.DisplayName) {
|
|
toSerialize["displayName"] = o.DisplayName
|
|
}
|
|
if !IsNil(o.DownloadUrl) {
|
|
toSerialize["downloadUrl"] = o.DownloadUrl
|
|
}
|
|
if !IsNil(o.EditMode) {
|
|
toSerialize["editMode"] = o.EditMode
|
|
}
|
|
if !IsNil(o.ExcellentCount) {
|
|
toSerialize["excellentCount"] = o.ExcellentCount
|
|
}
|
|
if !IsNil(o.Grade) {
|
|
toSerialize["grade"] = o.Grade
|
|
}
|
|
if !IsNil(o.Grade2) {
|
|
toSerialize["grade2"] = o.Grade2
|
|
}
|
|
if !IsNil(o.IsPublic) {
|
|
toSerialize["isPublic"] = o.IsPublic
|
|
}
|
|
if !IsNil(o.Keywords) {
|
|
toSerialize["keywords"] = o.Keywords
|
|
}
|
|
if !IsNil(o.LabelCount) {
|
|
toSerialize["labelCount"] = o.LabelCount
|
|
}
|
|
if !IsNil(o.Labels) {
|
|
toSerialize["labels"] = o.Labels
|
|
}
|
|
if !IsNil(o.Lesson) {
|
|
toSerialize["lesson"] = o.Lesson
|
|
}
|
|
if !IsNil(o.Name) {
|
|
toSerialize["name"] = o.Name
|
|
}
|
|
if !IsNil(o.Owner) {
|
|
toSerialize["owner"] = o.Owner
|
|
}
|
|
if !IsNil(o.PlayAuth) {
|
|
toSerialize["playAuth"] = o.PlayAuth
|
|
}
|
|
if !IsNil(o.Remarks) {
|
|
toSerialize["remarks"] = o.Remarks
|
|
}
|
|
if !IsNil(o.Remarks2) {
|
|
toSerialize["remarks2"] = o.Remarks2
|
|
}
|
|
if !IsNil(o.ReviewState) {
|
|
toSerialize["reviewState"] = o.ReviewState
|
|
}
|
|
if !IsNil(o.School) {
|
|
toSerialize["school"] = o.School
|
|
}
|
|
if !IsNil(o.SegmentCount) {
|
|
toSerialize["segmentCount"] = o.SegmentCount
|
|
}
|
|
if !IsNil(o.Segments) {
|
|
toSerialize["segments"] = o.Segments
|
|
}
|
|
if !IsNil(o.Stage) {
|
|
toSerialize["stage"] = o.Stage
|
|
}
|
|
if !IsNil(o.State) {
|
|
toSerialize["state"] = o.State
|
|
}
|
|
if !IsNil(o.Subject) {
|
|
toSerialize["subject"] = o.Subject
|
|
}
|
|
if !IsNil(o.Tag) {
|
|
toSerialize["tag"] = o.Tag
|
|
}
|
|
if !IsNil(o.TagOnPause) {
|
|
toSerialize["tagOnPause"] = o.TagOnPause
|
|
}
|
|
if !IsNil(o.Task1) {
|
|
toSerialize["task1"] = o.Task1
|
|
}
|
|
if !IsNil(o.Task2) {
|
|
toSerialize["task2"] = o.Task2
|
|
}
|
|
if !IsNil(o.Task3) {
|
|
toSerialize["task3"] = o.Task3
|
|
}
|
|
if !IsNil(o.Template) {
|
|
toSerialize["template"] = o.Template
|
|
}
|
|
if !IsNil(o.Topic) {
|
|
toSerialize["topic"] = o.Topic
|
|
}
|
|
if !IsNil(o.Type) {
|
|
toSerialize["type"] = o.Type
|
|
}
|
|
if !IsNil(o.Unit) {
|
|
toSerialize["unit"] = o.Unit
|
|
}
|
|
if !IsNil(o.VideoId) {
|
|
toSerialize["videoId"] = o.VideoId
|
|
}
|
|
if !IsNil(o.VideoLength) {
|
|
toSerialize["videoLength"] = o.VideoLength
|
|
}
|
|
if !IsNil(o.WordCountMap) {
|
|
toSerialize["wordCountMap"] = o.WordCountMap
|
|
}
|
|
|
|
for key, value := range o.AdditionalProperties {
|
|
toSerialize[key] = value
|
|
}
|
|
|
|
return toSerialize, nil
|
|
}
|
|
|
|
func (o *Video) UnmarshalJSON(data []byte) (err error) {
|
|
varVideo := _Video{}
|
|
|
|
err = json.Unmarshal(data, &varVideo)
|
|
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
*o = Video(varVideo)
|
|
|
|
additionalProperties := make(map[string]interface{})
|
|
|
|
if err = json.Unmarshal(data, &additionalProperties); err == nil {
|
|
delete(additionalProperties, "audioUrl")
|
|
delete(additionalProperties, "class")
|
|
delete(additionalProperties, "coverUrl")
|
|
delete(additionalProperties, "createdTime")
|
|
delete(additionalProperties, "dataUrl")
|
|
delete(additionalProperties, "dataUrls")
|
|
delete(additionalProperties, "description")
|
|
delete(additionalProperties, "displayName")
|
|
delete(additionalProperties, "downloadUrl")
|
|
delete(additionalProperties, "editMode")
|
|
delete(additionalProperties, "excellentCount")
|
|
delete(additionalProperties, "grade")
|
|
delete(additionalProperties, "grade2")
|
|
delete(additionalProperties, "isPublic")
|
|
delete(additionalProperties, "keywords")
|
|
delete(additionalProperties, "labelCount")
|
|
delete(additionalProperties, "labels")
|
|
delete(additionalProperties, "lesson")
|
|
delete(additionalProperties, "name")
|
|
delete(additionalProperties, "owner")
|
|
delete(additionalProperties, "playAuth")
|
|
delete(additionalProperties, "remarks")
|
|
delete(additionalProperties, "remarks2")
|
|
delete(additionalProperties, "reviewState")
|
|
delete(additionalProperties, "school")
|
|
delete(additionalProperties, "segmentCount")
|
|
delete(additionalProperties, "segments")
|
|
delete(additionalProperties, "stage")
|
|
delete(additionalProperties, "state")
|
|
delete(additionalProperties, "subject")
|
|
delete(additionalProperties, "tag")
|
|
delete(additionalProperties, "tagOnPause")
|
|
delete(additionalProperties, "task1")
|
|
delete(additionalProperties, "task2")
|
|
delete(additionalProperties, "task3")
|
|
delete(additionalProperties, "template")
|
|
delete(additionalProperties, "topic")
|
|
delete(additionalProperties, "type")
|
|
delete(additionalProperties, "unit")
|
|
delete(additionalProperties, "videoId")
|
|
delete(additionalProperties, "videoLength")
|
|
delete(additionalProperties, "wordCountMap")
|
|
o.AdditionalProperties = additionalProperties
|
|
}
|
|
|
|
return err
|
|
}
|
|
|
|
type NullableVideo struct {
|
|
value *Video
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableVideo) Get() *Video {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableVideo) Set(val *Video) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableVideo) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableVideo) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableVideo(val *Video) *NullableVideo {
|
|
return &NullableVideo{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableVideo) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableVideo) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|