/
model_movie_dto_v1_4.go
1875 lines (1616 loc) · 57.6 KB
/
model_movie_dto_v1_4.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Документация для неофициального API кинопоиска (kinopoisk.dev).
<!-- Yandex.Metrika counter --> <div><img src=\"https://mc.yandex.ru/watch/62307766\" style=\"position:absolute; left:-9999px;\" alt=\"\" /></div> <!-- /Yandex.Metrika counter --> <p>Через этот API вы можете получить практически все данные из кинопоиска. Больше информации вы можете получить изучив эту документацию.</p> <h2>Как работать с документацией?</h2> <p> Для начала работы с API вам необходимо получить токен, который вы можете получить в боте <a href=\"https://t.me/kinopoiskdev_bot\">@kinopoiskdev_bot</a>. <br /> После получения токена, вам необходимо авторизоваться в документации, для этого нажмите на кнопку <strong>Authorize</strong> и введите токен в поле <strong>Value</strong>.<br /> После авторизации вы можете отправлять запросы к API, для этого нажмите на кнопку <strong>Try it out</strong> и заполните необходимые поля для составления нужного фильтра.<br /> После заполнения полей нажмите на кнопку <strong>Execute</strong> и получите ответ от API и пример запроса. </p> <h3>Как работать с API?</h3> <p> API работает по принципу REST, все запросы отправляются на адрес <code>https://api.kinopoisk.dev/</code> с указанием версии API и необходимого ресурса.<br /> Все запросы к API кинопоиска должны содержать заголовок <code>X-API-KEY</code> с вашим токеном. В противном случае вы получите ошибку <code>401</code>.<br /> При составлении запроса учитывайте, что все параметры должны быть в <code>query</code> и <code>path</code>. В зависимости от метода который вы используете. Например, вы хотите получить список фильмов за 2023 год в жанре <code>криминал</code>, тогда ваш запрос будет выглядеть так: <code>https://api.kinopoisk.dev/v1.4/movie?year=2023&genres.name=криминал</code>. Или вы хотите получить список фильмов с рейтингом выше 8, тогда ваш запрос будет выглядеть так: <code>https://api.kinopoisk.dev/v1.4/movie?rating.imdb=8-10</code>. Документация kinopoisk api может помочь вам составить нужный запрос, для этого воспользуйтесь ее конструктором. </p> <h3>Особенности синтекса query параметров</h3> <p> Ключи в query параметрах имеют разные типы значений. В зависимости от типа значения, вы можете использовать разные операторы для фильтрации для поиска максимально релевантного фильма, сериала и т.д. в базе. <br /> Поля с типом <code>Number</code> могут принимать значения в форматах: <code>rating.kp=1-10</code>, <code>rating.kp=1</code>, <code>year=2022&year=2023</code>. <br /> Поля с типом <code>Date</code> могут принимать значения в форматах: <code>premiere.russia=dd.mm.yyyy-dd.mm.yyyy</code>, <code>premiere.russia=dd.mm.yyyy</code>. <br /> Поля с типом <code>String</code> могут принимать значения в форматах: <code>genres.name=драма</code>, <code>genres.name=криминал</code>, <code>genres.name=криминал&genres.name=драма</code> <br/> Поля с типом <code>Boolean</code> могут принимать значения в форматах: <code>isSeries=true</code>, <code>isSeries=false</code>. <br /> Параметры жанров и стран могут принимать операторы <code>+</code> и <code>!</code>, для указания включаемых и исключаемых значений. Например, вы хотите получить список фильмов в жанрах <code>драма</code> и <code>криминал</code>, тогда ваш запрос будет выглядеть так: <code>genres.name=+драма&genres.name=+криминал</code>. Или вы хотите получить список фильмов с жанром <code>драма</code> и без жанра <code>криминал</code>, тогда ваш запрос будет выглядеть так: <code>genres.name=+драма&genres.name=!криминал</code>. <br /> </p> <p> Расшифровка операторов: <ul> <li><code>!</code> - исключить. Этот символ нужно отправлять в кодированной форме <code>%21</code></li> <li><code>+</code> - включить. Этот символ нужно отправлять в кодированной форме <code>%2B</code></li> <li><code>-</code> - диапазон значений, используется в качестве разделителя.</li> </ul> </p> <p>По вопросам работы с API обращайтесь в чат <a href=\"https://t.me/+jeHPZVXiLPFhODJi\">Developer Community KinopoiskDev</a>.</p> <p>Если вы обнаружили ошибку или у вас есть предложения по улучшению, создавайте issue на <a href=\"https://github.com/mdwitr0/kinopoiskdev\">GitHub</a>.</p> <h3>Полезные ссылки:</h3> <ul> <li><a href=\"https://kinopoiskdev.readme.io\">Более удобная документация</a></li> <li><a href=\"https://github.com/OpenMovieDB/kinopoiskdev_client\">JavaScript и TypeScript клиент (Устарел, ждет обновления)</a></li> <li><a href=\"https://github.com/odi1n/kinopoisk_dev\">Python клиент (Устарел, ждет обновления)</a></li> <li><a href=\"/documentation-json\">OpenAPI Specification (JSON)</a></li> <li><a href=\"/documentation-yaml\">OpenAPI Specification (YAML)</a></li> </ul>
API version: 1.4
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package kinopoisk_api
import (
"encoding/json"
"time"
)
// MovieDtoV14 struct for MovieDtoV14
type MovieDtoV14 struct {
// Id фильма с кинопоиска
Id float32 `json:"id"`
ExternalId ExternalId `json:"externalId"`
Name NullableString `json:"name,omitempty"`
AlternativeName NullableString `json:"alternativeName,omitempty"`
EnName NullableString `json:"enName,omitempty"`
Names []Name `json:"names"`
// Тип тайтла. Доступны: movie | tv-series | cartoon | anime | animated-series | tv-show
Type string `json:"type"`
// Тип тайтла в числовом обозначении. Доступны: 1 (movie) | 2 (tv-series) | 3 (cartoon) | 4 (anime) | 5 (animated-series) | 6 (tv-show)
TypeNumber float32 `json:"typeNumber"`
// Год премьеры. При поиске по этому полю, можно использовать интервалы 1860-2030
Year NullableFloat32 `json:"year,omitempty"`
// Описание тайтла
Description NullableString `json:"description,omitempty"`
// Сокращенное описание
ShortDescription NullableString `json:"shortDescription,omitempty"`
// Слоган
Slogan NullableString `json:"slogan,omitempty"`
// Статус релиза тайтла. Доступные значения: filming | pre-production | completed | announced | post-production
Status NullableString `json:"status,omitempty"`
Rating *Rating `json:"rating,omitempty"`
Votes *Votes `json:"votes,omitempty"`
// Продолжительность фильма
MovieLength NullableFloat32 `json:"movieLength,omitempty"`
// Возрастной рейтинг по MPAA
RatingMpaa NullableString `json:"ratingMpaa,omitempty"`
// Возрастной рейтинг
AgeRating NullableFloat32 `json:"ageRating,omitempty"`
Logo *Logo `json:"logo,omitempty"`
Poster *ShortImage `json:"poster,omitempty"`
Backdrop *ShortImage `json:"backdrop,omitempty"`
Videos *VideoTypes `json:"videos,omitempty"`
Genres []ItemName `json:"genres,omitempty"`
Countries []ItemName `json:"countries,omitempty"`
Persons []PersonInMovie `json:"persons,omitempty"`
ReviewInfo *ReviewInfo `json:"reviewInfo,omitempty"`
SeasonsInfo []SeasonInfo `json:"seasonsInfo,omitempty"`
Budget *CurrencyValue `json:"budget,omitempty"`
Fees *Fees `json:"fees,omitempty"`
Premiere *Premiere `json:"premiere,omitempty"`
SimilarMovies []LinkedMovieV14 `json:"similarMovies,omitempty"`
SequelsAndPrequels []LinkedMovieV14 `json:"sequelsAndPrequels,omitempty"`
Watchability *Watchability `json:"watchability,omitempty"`
ReleaseYears []YearRange `json:"releaseYears,omitempty"`
// Позиция тайтла в топ 10. Чтобы найти фильмы участвующие в рейтинге используйте: `!null`
Top10 NullableFloat32 `json:"top10,omitempty"`
// Позиция тайтла в топ 250. Чтобы найти фильмы участвующие в рейтинге используйте: `!null`
Top250 NullableFloat32 `json:"top250,omitempty"`
// Признак того, что тайтл находится в прокате
TicketsOnSale NullableBool `json:"ticketsOnSale,omitempty"`
// Продолжительность всех серий
TotalSeriesLength NullableFloat32 `json:"totalSeriesLength,omitempty"`
// Средняя продолжительность серии
SeriesLength NullableFloat32 `json:"seriesLength,omitempty"`
// Признак сериала
IsSeries bool `json:"isSeries"`
Audience []Audience `json:"audience,omitempty"`
// Список коллекций, в которых находится тайтл.
Lists []string `json:"lists,omitempty"`
Networks []NetworksV14 `json:"networks"`
UpdatedAt time.Time `json:"updatedAt"`
CreatedAt time.Time `json:"createdAt"`
Facts []FactInMovie `json:"facts"`
ImagesInfo Images `json:"imagesInfo"`
}
// NewMovieDtoV14 instantiates a new MovieDtoV14 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 NewMovieDtoV14(id float32, externalId ExternalId, names []Name, type_ string, typeNumber float32, isSeries bool, networks []NetworksV14, updatedAt time.Time, createdAt time.Time, facts []FactInMovie, imagesInfo Images) *MovieDtoV14 {
this := MovieDtoV14{}
this.Id = id
this.ExternalId = externalId
this.Names = names
this.Type = type_
this.TypeNumber = typeNumber
this.IsSeries = isSeries
this.Networks = networks
this.UpdatedAt = updatedAt
this.CreatedAt = createdAt
this.Facts = facts
this.ImagesInfo = imagesInfo
return &this
}
// NewMovieDtoV14WithDefaults instantiates a new MovieDtoV14 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 NewMovieDtoV14WithDefaults() *MovieDtoV14 {
this := MovieDtoV14{}
return &this
}
// GetId returns the Id field value
func (o *MovieDtoV14) GetId() float32 {
if o == nil {
var ret float32
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetIdOk() (*float32, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *MovieDtoV14) SetId(v float32) {
o.Id = v
}
// GetExternalId returns the ExternalId field value
func (o *MovieDtoV14) GetExternalId() ExternalId {
if o == nil {
var ret ExternalId
return ret
}
return o.ExternalId
}
// GetExternalIdOk returns a tuple with the ExternalId field value
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetExternalIdOk() (*ExternalId, bool) {
if o == nil {
return nil, false
}
return &o.ExternalId, true
}
// SetExternalId sets field value
func (o *MovieDtoV14) SetExternalId(v ExternalId) {
o.ExternalId = v
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetName() string {
if o == nil || o.Name.Get() == nil {
var ret string
return ret
}
return *o.Name.Get()
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Name.Get(), o.Name.IsSet()
}
// HasName returns a boolean if a field has been set.
func (o *MovieDtoV14) HasName() bool {
if o != nil && o.Name.IsSet() {
return true
}
return false
}
// SetName gets a reference to the given NullableString and assigns it to the Name field.
func (o *MovieDtoV14) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *MovieDtoV14) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *MovieDtoV14) UnsetName() {
o.Name.Unset()
}
// GetAlternativeName returns the AlternativeName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetAlternativeName() string {
if o == nil || o.AlternativeName.Get() == nil {
var ret string
return ret
}
return *o.AlternativeName.Get()
}
// GetAlternativeNameOk returns a tuple with the AlternativeName field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetAlternativeNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.AlternativeName.Get(), o.AlternativeName.IsSet()
}
// HasAlternativeName returns a boolean if a field has been set.
func (o *MovieDtoV14) HasAlternativeName() bool {
if o != nil && o.AlternativeName.IsSet() {
return true
}
return false
}
// SetAlternativeName gets a reference to the given NullableString and assigns it to the AlternativeName field.
func (o *MovieDtoV14) SetAlternativeName(v string) {
o.AlternativeName.Set(&v)
}
// SetAlternativeNameNil sets the value for AlternativeName to be an explicit nil
func (o *MovieDtoV14) SetAlternativeNameNil() {
o.AlternativeName.Set(nil)
}
// UnsetAlternativeName ensures that no value is present for AlternativeName, not even an explicit nil
func (o *MovieDtoV14) UnsetAlternativeName() {
o.AlternativeName.Unset()
}
// GetEnName returns the EnName field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetEnName() string {
if o == nil || o.EnName.Get() == nil {
var ret string
return ret
}
return *o.EnName.Get()
}
// GetEnNameOk returns a tuple with the EnName field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetEnNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.EnName.Get(), o.EnName.IsSet()
}
// HasEnName returns a boolean if a field has been set.
func (o *MovieDtoV14) HasEnName() bool {
if o != nil && o.EnName.IsSet() {
return true
}
return false
}
// SetEnName gets a reference to the given NullableString and assigns it to the EnName field.
func (o *MovieDtoV14) SetEnName(v string) {
o.EnName.Set(&v)
}
// SetEnNameNil sets the value for EnName to be an explicit nil
func (o *MovieDtoV14) SetEnNameNil() {
o.EnName.Set(nil)
}
// UnsetEnName ensures that no value is present for EnName, not even an explicit nil
func (o *MovieDtoV14) UnsetEnName() {
o.EnName.Unset()
}
// GetNames returns the Names field value
func (o *MovieDtoV14) GetNames() []Name {
if o == nil {
var ret []Name
return ret
}
return o.Names
}
// GetNamesOk returns a tuple with the Names field value
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetNamesOk() ([]Name, bool) {
if o == nil {
return nil, false
}
return o.Names, true
}
// SetNames sets field value
func (o *MovieDtoV14) SetNames(v []Name) {
o.Names = v
}
// GetType returns the Type field value
func (o *MovieDtoV14) GetType() string {
if o == nil {
var ret string
return ret
}
return o.Type
}
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Type, true
}
// SetType sets field value
func (o *MovieDtoV14) SetType(v string) {
o.Type = v
}
// GetTypeNumber returns the TypeNumber field value
func (o *MovieDtoV14) GetTypeNumber() float32 {
if o == nil {
var ret float32
return ret
}
return o.TypeNumber
}
// GetTypeNumberOk returns a tuple with the TypeNumber field value
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetTypeNumberOk() (*float32, bool) {
if o == nil {
return nil, false
}
return &o.TypeNumber, true
}
// SetTypeNumber sets field value
func (o *MovieDtoV14) SetTypeNumber(v float32) {
o.TypeNumber = v
}
// GetYear returns the Year field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetYear() float32 {
if o == nil || o.Year.Get() == nil {
var ret float32
return ret
}
return *o.Year.Get()
}
// GetYearOk returns a tuple with the Year field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetYearOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.Year.Get(), o.Year.IsSet()
}
// HasYear returns a boolean if a field has been set.
func (o *MovieDtoV14) HasYear() bool {
if o != nil && o.Year.IsSet() {
return true
}
return false
}
// SetYear gets a reference to the given NullableFloat32 and assigns it to the Year field.
func (o *MovieDtoV14) SetYear(v float32) {
o.Year.Set(&v)
}
// SetYearNil sets the value for Year to be an explicit nil
func (o *MovieDtoV14) SetYearNil() {
o.Year.Set(nil)
}
// UnsetYear ensures that no value is present for Year, not even an explicit nil
func (o *MovieDtoV14) UnsetYear() {
o.Year.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetDescription() string {
if o == nil || o.Description.Get() == nil {
var ret string
return ret
}
return *o.Description.Get()
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Description.Get(), o.Description.IsSet()
}
// HasDescription returns a boolean if a field has been set.
func (o *MovieDtoV14) HasDescription() bool {
if o != nil && o.Description.IsSet() {
return true
}
return false
}
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
func (o *MovieDtoV14) SetDescription(v string) {
o.Description.Set(&v)
}
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *MovieDtoV14) SetDescriptionNil() {
o.Description.Set(nil)
}
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *MovieDtoV14) UnsetDescription() {
o.Description.Unset()
}
// GetShortDescription returns the ShortDescription field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetShortDescription() string {
if o == nil || o.ShortDescription.Get() == nil {
var ret string
return ret
}
return *o.ShortDescription.Get()
}
// GetShortDescriptionOk returns a tuple with the ShortDescription field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetShortDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ShortDescription.Get(), o.ShortDescription.IsSet()
}
// HasShortDescription returns a boolean if a field has been set.
func (o *MovieDtoV14) HasShortDescription() bool {
if o != nil && o.ShortDescription.IsSet() {
return true
}
return false
}
// SetShortDescription gets a reference to the given NullableString and assigns it to the ShortDescription field.
func (o *MovieDtoV14) SetShortDescription(v string) {
o.ShortDescription.Set(&v)
}
// SetShortDescriptionNil sets the value for ShortDescription to be an explicit nil
func (o *MovieDtoV14) SetShortDescriptionNil() {
o.ShortDescription.Set(nil)
}
// UnsetShortDescription ensures that no value is present for ShortDescription, not even an explicit nil
func (o *MovieDtoV14) UnsetShortDescription() {
o.ShortDescription.Unset()
}
// GetSlogan returns the Slogan field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetSlogan() string {
if o == nil || o.Slogan.Get() == nil {
var ret string
return ret
}
return *o.Slogan.Get()
}
// GetSloganOk returns a tuple with the Slogan field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetSloganOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Slogan.Get(), o.Slogan.IsSet()
}
// HasSlogan returns a boolean if a field has been set.
func (o *MovieDtoV14) HasSlogan() bool {
if o != nil && o.Slogan.IsSet() {
return true
}
return false
}
// SetSlogan gets a reference to the given NullableString and assigns it to the Slogan field.
func (o *MovieDtoV14) SetSlogan(v string) {
o.Slogan.Set(&v)
}
// SetSloganNil sets the value for Slogan to be an explicit nil
func (o *MovieDtoV14) SetSloganNil() {
o.Slogan.Set(nil)
}
// UnsetSlogan ensures that no value is present for Slogan, not even an explicit nil
func (o *MovieDtoV14) UnsetSlogan() {
o.Slogan.Unset()
}
// GetStatus returns the Status field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetStatus() string {
if o == nil || o.Status.Get() == nil {
var ret string
return ret
}
return *o.Status.Get()
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetStatusOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Status.Get(), o.Status.IsSet()
}
// HasStatus returns a boolean if a field has been set.
func (o *MovieDtoV14) HasStatus() bool {
if o != nil && o.Status.IsSet() {
return true
}
return false
}
// SetStatus gets a reference to the given NullableString and assigns it to the Status field.
func (o *MovieDtoV14) SetStatus(v string) {
o.Status.Set(&v)
}
// SetStatusNil sets the value for Status to be an explicit nil
func (o *MovieDtoV14) SetStatusNil() {
o.Status.Set(nil)
}
// UnsetStatus ensures that no value is present for Status, not even an explicit nil
func (o *MovieDtoV14) UnsetStatus() {
o.Status.Unset()
}
// GetRating returns the Rating field value if set, zero value otherwise.
func (o *MovieDtoV14) GetRating() Rating {
if o == nil || o.Rating == nil {
var ret Rating
return ret
}
return *o.Rating
}
// GetRatingOk returns a tuple with the Rating field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetRatingOk() (*Rating, bool) {
if o == nil || o.Rating == nil {
return nil, false
}
return o.Rating, true
}
// HasRating returns a boolean if a field has been set.
func (o *MovieDtoV14) HasRating() bool {
if o != nil && o.Rating != nil {
return true
}
return false
}
// SetRating gets a reference to the given Rating and assigns it to the Rating field.
func (o *MovieDtoV14) SetRating(v Rating) {
o.Rating = &v
}
// GetVotes returns the Votes field value if set, zero value otherwise.
func (o *MovieDtoV14) GetVotes() Votes {
if o == nil || o.Votes == nil {
var ret Votes
return ret
}
return *o.Votes
}
// GetVotesOk returns a tuple with the Votes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetVotesOk() (*Votes, bool) {
if o == nil || o.Votes == nil {
return nil, false
}
return o.Votes, true
}
// HasVotes returns a boolean if a field has been set.
func (o *MovieDtoV14) HasVotes() bool {
if o != nil && o.Votes != nil {
return true
}
return false
}
// SetVotes gets a reference to the given Votes and assigns it to the Votes field.
func (o *MovieDtoV14) SetVotes(v Votes) {
o.Votes = &v
}
// GetMovieLength returns the MovieLength field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetMovieLength() float32 {
if o == nil || o.MovieLength.Get() == nil {
var ret float32
return ret
}
return *o.MovieLength.Get()
}
// GetMovieLengthOk returns a tuple with the MovieLength field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetMovieLengthOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.MovieLength.Get(), o.MovieLength.IsSet()
}
// HasMovieLength returns a boolean if a field has been set.
func (o *MovieDtoV14) HasMovieLength() bool {
if o != nil && o.MovieLength.IsSet() {
return true
}
return false
}
// SetMovieLength gets a reference to the given NullableFloat32 and assigns it to the MovieLength field.
func (o *MovieDtoV14) SetMovieLength(v float32) {
o.MovieLength.Set(&v)
}
// SetMovieLengthNil sets the value for MovieLength to be an explicit nil
func (o *MovieDtoV14) SetMovieLengthNil() {
o.MovieLength.Set(nil)
}
// UnsetMovieLength ensures that no value is present for MovieLength, not even an explicit nil
func (o *MovieDtoV14) UnsetMovieLength() {
o.MovieLength.Unset()
}
// GetRatingMpaa returns the RatingMpaa field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetRatingMpaa() string {
if o == nil || o.RatingMpaa.Get() == nil {
var ret string
return ret
}
return *o.RatingMpaa.Get()
}
// GetRatingMpaaOk returns a tuple with the RatingMpaa field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetRatingMpaaOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.RatingMpaa.Get(), o.RatingMpaa.IsSet()
}
// HasRatingMpaa returns a boolean if a field has been set.
func (o *MovieDtoV14) HasRatingMpaa() bool {
if o != nil && o.RatingMpaa.IsSet() {
return true
}
return false
}
// SetRatingMpaa gets a reference to the given NullableString and assigns it to the RatingMpaa field.
func (o *MovieDtoV14) SetRatingMpaa(v string) {
o.RatingMpaa.Set(&v)
}
// SetRatingMpaaNil sets the value for RatingMpaa to be an explicit nil
func (o *MovieDtoV14) SetRatingMpaaNil() {
o.RatingMpaa.Set(nil)
}
// UnsetRatingMpaa ensures that no value is present for RatingMpaa, not even an explicit nil
func (o *MovieDtoV14) UnsetRatingMpaa() {
o.RatingMpaa.Unset()
}
// GetAgeRating returns the AgeRating field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *MovieDtoV14) GetAgeRating() float32 {
if o == nil || o.AgeRating.Get() == nil {
var ret float32
return ret
}
return *o.AgeRating.Get()
}
// GetAgeRatingOk returns a tuple with the AgeRating field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *MovieDtoV14) GetAgeRatingOk() (*float32, bool) {
if o == nil {
return nil, false
}
return o.AgeRating.Get(), o.AgeRating.IsSet()
}
// HasAgeRating returns a boolean if a field has been set.
func (o *MovieDtoV14) HasAgeRating() bool {
if o != nil && o.AgeRating.IsSet() {
return true
}
return false
}
// SetAgeRating gets a reference to the given NullableFloat32 and assigns it to the AgeRating field.
func (o *MovieDtoV14) SetAgeRating(v float32) {
o.AgeRating.Set(&v)
}
// SetAgeRatingNil sets the value for AgeRating to be an explicit nil
func (o *MovieDtoV14) SetAgeRatingNil() {
o.AgeRating.Set(nil)
}
// UnsetAgeRating ensures that no value is present for AgeRating, not even an explicit nil
func (o *MovieDtoV14) UnsetAgeRating() {
o.AgeRating.Unset()
}
// GetLogo returns the Logo field value if set, zero value otherwise.
func (o *MovieDtoV14) GetLogo() Logo {
if o == nil || o.Logo == nil {
var ret Logo
return ret
}
return *o.Logo
}
// GetLogoOk returns a tuple with the Logo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetLogoOk() (*Logo, bool) {
if o == nil || o.Logo == nil {
return nil, false
}
return o.Logo, true
}
// HasLogo returns a boolean if a field has been set.
func (o *MovieDtoV14) HasLogo() bool {
if o != nil && o.Logo != nil {
return true
}
return false
}
// SetLogo gets a reference to the given Logo and assigns it to the Logo field.
func (o *MovieDtoV14) SetLogo(v Logo) {
o.Logo = &v
}
// GetPoster returns the Poster field value if set, zero value otherwise.
func (o *MovieDtoV14) GetPoster() ShortImage {
if o == nil || o.Poster == nil {
var ret ShortImage
return ret
}
return *o.Poster
}
// GetPosterOk returns a tuple with the Poster field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetPosterOk() (*ShortImage, bool) {
if o == nil || o.Poster == nil {
return nil, false
}
return o.Poster, true
}
// HasPoster returns a boolean if a field has been set.
func (o *MovieDtoV14) HasPoster() bool {
if o != nil && o.Poster != nil {
return true
}
return false
}
// SetPoster gets a reference to the given ShortImage and assigns it to the Poster field.
func (o *MovieDtoV14) SetPoster(v ShortImage) {
o.Poster = &v
}
// GetBackdrop returns the Backdrop field value if set, zero value otherwise.
func (o *MovieDtoV14) GetBackdrop() ShortImage {
if o == nil || o.Backdrop == nil {
var ret ShortImage
return ret
}
return *o.Backdrop
}
// GetBackdropOk returns a tuple with the Backdrop field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetBackdropOk() (*ShortImage, bool) {
if o == nil || o.Backdrop == nil {
return nil, false
}
return o.Backdrop, true
}
// HasBackdrop returns a boolean if a field has been set.
func (o *MovieDtoV14) HasBackdrop() bool {
if o != nil && o.Backdrop != nil {
return true
}
return false
}
// SetBackdrop gets a reference to the given ShortImage and assigns it to the Backdrop field.
func (o *MovieDtoV14) SetBackdrop(v ShortImage) {
o.Backdrop = &v
}
// GetVideos returns the Videos field value if set, zero value otherwise.
func (o *MovieDtoV14) GetVideos() VideoTypes {
if o == nil || o.Videos == nil {
var ret VideoTypes
return ret
}
return *o.Videos
}
// GetVideosOk returns a tuple with the Videos field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetVideosOk() (*VideoTypes, bool) {
if o == nil || o.Videos == nil {
return nil, false
}
return o.Videos, true
}
// HasVideos returns a boolean if a field has been set.
func (o *MovieDtoV14) HasVideos() bool {
if o != nil && o.Videos != nil {
return true
}
return false
}
// SetVideos gets a reference to the given VideoTypes and assigns it to the Videos field.
func (o *MovieDtoV14) SetVideos(v VideoTypes) {
o.Videos = &v
}
// GetGenres returns the Genres field value if set, zero value otherwise.
func (o *MovieDtoV14) GetGenres() []ItemName {
if o == nil || o.Genres == nil {
var ret []ItemName
return ret
}
return o.Genres
}
// GetGenresOk returns a tuple with the Genres field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetGenresOk() ([]ItemName, bool) {
if o == nil || o.Genres == nil {
return nil, false
}
return o.Genres, true
}
// HasGenres returns a boolean if a field has been set.
func (o *MovieDtoV14) HasGenres() bool {
if o != nil && o.Genres != nil {
return true
}
return false
}
// SetGenres gets a reference to the given []ItemName and assigns it to the Genres field.
func (o *MovieDtoV14) SetGenres(v []ItemName) {
o.Genres = v
}
// GetCountries returns the Countries field value if set, zero value otherwise.
func (o *MovieDtoV14) GetCountries() []ItemName {
if o == nil || o.Countries == nil {
var ret []ItemName
return ret
}
return o.Countries
}
// GetCountriesOk returns a tuple with the Countries field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetCountriesOk() ([]ItemName, bool) {
if o == nil || o.Countries == nil {
return nil, false
}
return o.Countries, true
}
// HasCountries returns a boolean if a field has been set.
func (o *MovieDtoV14) HasCountries() bool {
if o != nil && o.Countries != nil {
return true
}
return false
}
// SetCountries gets a reference to the given []ItemName and assigns it to the Countries field.
func (o *MovieDtoV14) SetCountries(v []ItemName) {
o.Countries = v
}
// GetPersons returns the Persons field value if set, zero value otherwise.
func (o *MovieDtoV14) GetPersons() []PersonInMovie {
if o == nil || o.Persons == nil {
var ret []PersonInMovie
return ret
}
return o.Persons
}
// GetPersonsOk returns a tuple with the Persons field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetPersonsOk() ([]PersonInMovie, bool) {
if o == nil || o.Persons == nil {
return nil, false
}
return o.Persons, true
}
// HasPersons returns a boolean if a field has been set.
func (o *MovieDtoV14) HasPersons() bool {
if o != nil && o.Persons != nil {
return true
}
return false
}
// SetPersons gets a reference to the given []PersonInMovie and assigns it to the Persons field.
func (o *MovieDtoV14) SetPersons(v []PersonInMovie) {
o.Persons = v
}
// GetReviewInfo returns the ReviewInfo field value if set, zero value otherwise.
func (o *MovieDtoV14) GetReviewInfo() ReviewInfo {
if o == nil || o.ReviewInfo == nil {
var ret ReviewInfo
return ret
}
return *o.ReviewInfo
}
// GetReviewInfoOk returns a tuple with the ReviewInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *MovieDtoV14) GetReviewInfoOk() (*ReviewInfo, bool) {
if o == nil || o.ReviewInfo == nil {
return nil, false
}
return o.ReviewInfo, true