-
Notifications
You must be signed in to change notification settings - Fork 142
/
Copy pathJellyfinModels.dart
1794 lines (1691 loc) · 45.2 KB
/
JellyfinModels.dart
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
import 'package:hive/hive.dart';
import 'package:json_annotation/json_annotation.dart';
part 'JellyfinModels.g.dart';
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 9)
class UserDto {
UserDto(
this.name,
this.serverId,
this.serverName,
this.connectUserName,
this.connectLinkType,
this.id,
this.primaryImageTag,
this.hasPassword,
this.hasConfiguredPassword,
this.hasConfiguredEasyPassword,
this.enableAutoLogin,
this.lastLoginDate,
this.lastActivityDate,
this.configuration,
this.policy,
this.primaryImageAspectRatio);
@HiveField(0)
final String name;
@HiveField(1)
final String serverId;
@HiveField(2)
final String serverName;
@HiveField(3)
final String connectUserName;
@HiveField(4)
final String connectLinkType;
@HiveField(5)
final String id;
@HiveField(6)
final String primaryImageTag;
@HiveField(7)
final bool hasPassword;
@HiveField(8)
final bool hasConfiguredPassword;
@HiveField(9)
final bool hasConfiguredEasyPassword;
@HiveField(10)
final bool enableAutoLogin;
@HiveField(11)
final String lastLoginDate;
@HiveField(12)
final String lastActivityDate;
@HiveField(13)
final UserConfiguration configuration;
@HiveField(14)
final UserPolicy policy;
@HiveField(15)
final double primaryImageAspectRatio;
factory UserDto.fromJson(Map<String, dynamic> json) =>
_$UserDtoFromJson(json);
Map<String, dynamic> toJson() => _$UserDtoToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 11)
class UserConfiguration {
UserConfiguration(
this.audioLanguagePreference,
this.playDefaultAudioTrack,
this.subtitleLanguagePreference,
this.displayMissingEpisodes,
this.groupedFolders,
this.subtitleMode,
this.displayCollectionsView,
this.enableLocalPassword,
this.orderedViews,
this.latestItemsExcludes,
this.myMediaExcludes,
this.hidePlayedInLatest,
this.rememberAudioSelections,
this.rememberSubtitleSelections,
this.enableNextEpisodeAutoPlay);
@HiveField(0)
final String audioLanguagePreference;
@HiveField(1)
final bool playDefaultAudioTrack;
@HiveField(2)
final String subtitleLanguagePreference;
@HiveField(3)
final bool displayMissingEpisodes;
@HiveField(4)
final List<String> groupedFolders;
@HiveField(5)
final String subtitleMode;
@HiveField(6)
final bool displayCollectionsView;
@HiveField(7)
final bool enableLocalPassword;
@HiveField(8)
final List<String> orderedViews;
@HiveField(9)
final List<String> latestItemsExcludes;
@HiveField(10)
final List<String> myMediaExcludes;
@HiveField(11)
final bool hidePlayedInLatest;
@HiveField(12)
final bool rememberAudioSelections;
@HiveField(13)
final bool rememberSubtitleSelections;
@HiveField(14)
final bool enableNextEpisodeAutoPlay;
factory UserConfiguration.fromJson(Map<String, dynamic> json) =>
_$UserConfigurationFromJson(json);
Map<String, dynamic> toJson() => _$UserConfigurationToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 12)
class UserPolicy {
UserPolicy(
this.isAdministrator,
this.isHidden,
this.isHiddenRemotely,
this.isDisabled,
this.maxParentalRating,
this.blockedTags,
this.enableUserPreferenceAccess,
this.accessSchedules,
this.blockUnratedItems,
this.enableRemoteControlOfOtherUsers,
this.enableSharedDeviceControl,
this.enableRemoteAccess,
this.enableLiveTvManagement,
this.enableLiveTvAccess,
this.enableMediaPlayback,
this.enableAudioPlaybackTranscoding,
this.enableVideoPlaybackTranscoding,
this.enablePlaybackRemuxing,
this.enableContentDeletion,
this.enableContentDeletionFromFolders,
this.enableContentDownloading,
this.enableSubtitleDownloading,
this.enableSubtitleManagement,
this.enableSyncTranscoding,
this.enableMediaConversion,
this.enabledDevices,
this.enableAllDevices,
this.enabledChannels,
this.enableAllChannels,
this.enabledFolders,
this.enableAllFolders,
this.invalidLoginAttemptCount,
this.enablePublicSharing,
this.blockedMediaFolders,
this.blockedChannels,
this.remoteClientBitrateLimit,
this.authenticationProviderId,
this.excludedSubFolders,
this.disablePremiumFeatures);
@HiveField(0)
final bool isAdministrator;
@HiveField(1)
final bool isHidden;
@HiveField(2)
final bool isHiddenRemotely;
@HiveField(3)
final bool isDisabled;
@HiveField(4)
final int maxParentalRating;
@HiveField(5)
final List<String> blockedTags;
@HiveField(6)
final bool enableUserPreferenceAccess;
@HiveField(7)
final List<AccessSchedule> accessSchedules;
@HiveField(8)
final List<String> blockUnratedItems;
@HiveField(9)
final bool enableRemoteControlOfOtherUsers;
@HiveField(10)
final bool enableSharedDeviceControl;
@HiveField(11)
final bool enableRemoteAccess;
@HiveField(12)
final bool enableLiveTvManagement;
@HiveField(13)
final bool enableLiveTvAccess;
@HiveField(14)
final bool enableMediaPlayback;
@HiveField(15)
final bool enableAudioPlaybackTranscoding;
@HiveField(16)
final bool enableVideoPlaybackTranscoding;
@HiveField(17)
final bool enablePlaybackRemuxing;
@HiveField(18)
final bool enableContentDeletion;
@HiveField(19)
final List<String> enableContentDeletionFromFolders;
@HiveField(20)
final bool enableContentDownloading;
@HiveField(21)
final bool enableSubtitleDownloading;
@HiveField(22)
final bool enableSubtitleManagement;
@HiveField(23)
final bool enableSyncTranscoding;
@HiveField(24)
final bool enableMediaConversion;
@HiveField(25)
final List<String> enabledDevices;
@HiveField(26)
final bool enableAllDevices;
@HiveField(27)
final List<String> enabledChannels;
@HiveField(28)
final bool enableAllChannels;
@HiveField(29)
final List<String> enabledFolders;
@HiveField(30)
final bool enableAllFolders;
@HiveField(31)
final int invalidLoginAttemptCount;
@HiveField(32)
final bool enablePublicSharing;
@HiveField(33)
final List<String> blockedMediaFolders;
@HiveField(34)
final List<String> blockedChannels;
@HiveField(35)
final int remoteClientBitrateLimit;
@HiveField(36)
final String authenticationProviderId;
@HiveField(37)
final List<String> excludedSubFolders;
@HiveField(38)
final bool disablePremiumFeatures;
factory UserPolicy.fromJson(Map<String, dynamic> json) =>
_$UserPolicyFromJson(json);
Map<String, dynamic> toJson() => _$UserPolicyToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 13)
class AccessSchedule {
AccessSchedule(this.dayOfWeek, this.startHour, this.endHour);
@HiveField(0)
final String dayOfWeek;
@HiveField(1)
final double startHour;
@HiveField(2)
final double endHour;
factory AccessSchedule.fromJson(Map<String, dynamic> json) =>
_$AccessScheduleFromJson(json);
Map<String, dynamic> toJson() => _$AccessScheduleToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 7)
class AuthenticationResult {
AuthenticationResult(
this.user, this.sessionInfo, this.accessToken, this.serverId);
@HiveField(0)
final UserDto user;
@HiveField(1)
final SessionInfo sessionInfo;
@HiveField(2)
final String accessToken;
@HiveField(3)
final String serverId;
factory AuthenticationResult.fromJson(Map<String, dynamic> json) =>
_$AuthenticationResultFromJson(json);
Map<String, dynamic> toJson() => _$AuthenticationResultToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 10)
class SessionInfo {
SessionInfo(
this.playState,
this.additionalUsers,
this.capabilities,
this.remoteEndPoint,
this.playableMediaTypes,
this.playlistItemId,
this.id,
this.serverId,
this.userId,
this.userName,
this.userPrimaryImageTag,
this.client,
this.lastActivityDate,
this.deviceName,
this.deviceType,
this.nowPlayingItem,
this.deviceId,
this.appIconUrl,
this.supportedCommands,
this.transcodingInfo,
this.supportsRemoteControl);
@HiveField(0)
final PlayerStateInfo playState;
@HiveField(1)
final List<SessionUserInfo> additionalUsers;
@HiveField(2)
final ClientCapabilities capabilities;
@HiveField(3)
final String remoteEndPoint;
@HiveField(4)
final List<String> playableMediaTypes;
@HiveField(5)
final String playlistItemId;
@HiveField(6)
final String id;
@HiveField(7)
final String serverId;
@HiveField(8)
final String userId;
@HiveField(9)
final String userName;
@HiveField(10)
final String userPrimaryImageTag;
@HiveField(11)
final String client;
@HiveField(12)
final String lastActivityDate;
@HiveField(13)
final String deviceName;
@HiveField(14)
final String deviceType;
@HiveField(15)
final BaseItemDto nowPlayingItem;
@HiveField(16)
final String deviceId;
@HiveField(17)
final String appIconUrl;
@HiveField(18)
final List<String> supportedCommands;
@HiveField(19)
final TranscodingInfo transcodingInfo;
@HiveField(20)
final bool supportsRemoteControl;
factory SessionInfo.fromJson(Map<String, dynamic> json) =>
_$SessionInfoFromJson(json);
Map<String, dynamic> toJson() => _$SessionInfoToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
class TranscodingInfo {
TranscodingInfo(
this.audioCodec,
this.videoCodec,
this.container,
this.isVideoDirect,
this.isAudioDirect,
this.bitrate,
this.framerate,
this.completionPercentage,
this.transcodingPositionTicks,
this.transcodingStartPositionTicks,
this.width,
this.height,
this.audioChannels,
this.transcodeReasons,
this.currentCpuUsage,
this.averageCpuUsage,
this.cpuHistory,
this.currentThrottle,
this.videoDecoder,
this.videoDecoderIsHardware,
this.videoDecoderMediaType,
this.videoDecoderHwAccel,
this.videoEncoder,
this.videoEncoderIsHardware,
this.videoEncoderMediaType,
this.videoEncoderHwAccel);
final String audioCodec;
final String videoCodec;
final String container;
final bool isVideoDirect;
final bool isAudioDirect;
final int bitrate;
final double framerate;
final double completionPercentage;
final double transcodingPositionTicks;
final double transcodingStartPositionTicks;
final int width;
final int height;
final int audioChannels;
final List<String> transcodeReasons;
final double currentCpuUsage;
final double averageCpuUsage;
final List<Map<String, double>> cpuHistory;
final int currentThrottle;
final String videoDecoder;
final bool videoDecoderIsHardware;
final String videoDecoderMediaType;
final String videoDecoderHwAccel;
final String videoEncoder;
final bool videoEncoderIsHardware;
final String videoEncoderMediaType;
final String videoEncoderHwAccel;
factory TranscodingInfo.fromJson(Map<String, dynamic> json) =>
_$TranscodingInfoFromJson(json);
Map<String, dynamic> toJson() => _$TranscodingInfoToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 14)
class PlayerStateInfo {
PlayerStateInfo(
this.positionTicks,
this.canSeek,
this.isPaused,
this.isMuted,
this.volumeLevel,
this.audioStreamIndex,
this.subtitleStreamIndex,
this.mediaSourceId,
this.playMethod,
this.repeatMode);
@HiveField(0)
final int positionTicks;
@HiveField(1)
final bool canSeek;
@HiveField(2)
final bool isPaused;
@HiveField(3)
final bool isMuted;
@HiveField(4)
final int volumeLevel;
@HiveField(5)
final int audioStreamIndex;
@HiveField(6)
final int subtitleStreamIndex;
@HiveField(7)
final String mediaSourceId;
@HiveField(8)
final String playMethod;
@HiveField(9)
final String repeatMode;
factory PlayerStateInfo.fromJson(Map<String, dynamic> json) =>
_$PlayerStateInfoFromJson(json);
Map<String, dynamic> toJson() => _$PlayerStateInfoToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 15)
class SessionUserInfo {
SessionUserInfo(this.userId, this.userName, this.userInternalId);
@HiveField(0)
final String userId;
@HiveField(1)
final String userName;
@HiveField(2)
final int userInternalId;
factory SessionUserInfo.fromJson(Map<String, dynamic> json) =>
_$SessionUserInfoFromJson(json);
Map<String, dynamic> toJson() => _$SessionUserInfoToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 16)
class ClientCapabilities {
ClientCapabilities(
this.playableMediaTypes,
this.supportedCommands,
this.supportsMediaControl,
this.pushToken,
this.pushTokenType,
this.supportsPersistentIdentifier,
this.supportsSync,
this.deviceProfile,
this.iconUrl,
this.appId);
@HiveField(0)
final List<String> playableMediaTypes;
@HiveField(1)
final List<String> supportedCommands;
@HiveField(2)
final bool supportsMediaControl;
@HiveField(3)
final String pushToken;
@HiveField(4)
final String pushTokenType;
@HiveField(5)
final bool supportsPersistentIdentifier;
@HiveField(6)
final bool supportsSync;
@HiveField(7)
final DeviceProfile deviceProfile;
@HiveField(8)
final String iconUrl;
@HiveField(9)
final String appId;
factory ClientCapabilities.fromJson(Map<String, dynamic> json) =>
_$ClientCapabilitiesFromJson(json);
Map<String, dynamic> toJson() => _$ClientCapabilitiesToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 17)
class DeviceProfile {
DeviceProfile(
this.name,
this.id,
this.identification,
this.friendlyName,
this.manufacturer,
this.manufacturerUrl,
this.modelName,
this.modelDescription,
this.modelNumber,
this.modelUrl,
this.serialNumber,
this.enableAlbumArtInDidl,
this.enableSingleAlbumArtLimit,
this.enableSingleSubtitleLimit,
this.supportedMediaTypes,
this.userId,
this.albumArtPn,
this.maxAlbumArtWidth,
this.maxAlbumArtHeight,
this.maxIconWidth,
this.maxIconHeight,
this.maxStreamingBitrate,
this.maxStaticBitrate,
this.musicStreamingTranscodingBitrate,
this.maxStaticMusicBitrate,
this.sonyAggregationFlags,
this.protocolInfo,
this.timelineOffsetSeconds,
this.requiresPlainVideoItems,
this.requiresPlainFolders,
this.enableMSMediaReceiverRegistrar,
this.ignoreTranscodeByteRangeRequests,
this.xmlRootAttributes,
this.directPlayProfiles,
this.transcodingProfiles,
this.containerProfiles,
this.codecProfiles,
this.responseProfiles,
this.subtitleProfiles);
@HiveField(0)
final String name;
@HiveField(1)
final String id;
@HiveField(2)
final DeviceIdentification identification;
@HiveField(3)
final String friendlyName;
@HiveField(4)
final String manufacturer;
@HiveField(5)
final String manufacturerUrl;
@HiveField(6)
final String modelName;
@HiveField(7)
final String modelDescription;
@HiveField(8)
final String modelNumber;
@HiveField(9)
final String modelUrl;
@HiveField(10)
final String serialNumber;
@HiveField(11)
final bool enableAlbumArtInDidl;
@HiveField(12)
final bool enableSingleAlbumArtLimit;
@HiveField(13)
final bool enableSingleSubtitleLimit;
@HiveField(14)
final String supportedMediaTypes;
@HiveField(15)
final String userId;
@HiveField(16)
final String albumArtPn;
@HiveField(17)
final int maxAlbumArtWidth;
@HiveField(18)
final int maxAlbumArtHeight;
@HiveField(19)
final int maxIconWidth;
@HiveField(20)
final int maxIconHeight;
@HiveField(21)
final int maxStreamingBitrate;
@HiveField(22)
final int maxStaticBitrate;
@HiveField(23)
final int musicStreamingTranscodingBitrate;
@HiveField(24)
final int maxStaticMusicBitrate;
@HiveField(25)
final String sonyAggregationFlags;
@HiveField(26)
final String protocolInfo;
@HiveField(27)
final int timelineOffsetSeconds;
@HiveField(28)
final bool requiresPlainVideoItems;
@HiveField(29)
final bool requiresPlainFolders;
@HiveField(30)
final bool enableMSMediaReceiverRegistrar;
@HiveField(31)
final bool ignoreTranscodeByteRangeRequests;
@HiveField(32)
final List<XmlAttribute> xmlRootAttributes;
@HiveField(33)
final List<DirectPlayProfile> directPlayProfiles;
@HiveField(34)
final List<TranscodingProfile> transcodingProfiles;
@HiveField(35)
final List<ContainerProfile> containerProfiles;
@HiveField(36)
final List<CodecProfile> codecProfiles;
@HiveField(37)
final List<ResponseProfile> responseProfiles;
@HiveField(38)
final List<SubtitleProfile> subtitleProfiles;
factory DeviceProfile.fromJson(Map<String, dynamic> json) =>
_$DeviceProfileFromJson(json);
Map<String, dynamic> toJson() => _$DeviceProfileToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 18)
class DeviceIdentification {
DeviceIdentification(
this.friendlyName,
this.modelNumber,
this.serialNumber,
this.modelName,
this.modelDescription,
this.deviceDescription,
this.modelUrl,
this.manufacturer,
this.manufacturerUrl,
this.headers);
@HiveField(0)
final String friendlyName;
@HiveField(1)
final String modelNumber;
@HiveField(2)
final String serialNumber;
@HiveField(3)
final String modelName;
@HiveField(4)
final String modelDescription;
@HiveField(5)
final String deviceDescription;
@HiveField(6)
final String modelUrl;
@HiveField(7)
final String manufacturer;
@HiveField(8)
final String manufacturerUrl;
@HiveField(9)
final List<HttpHeaderInfo> headers;
factory DeviceIdentification.fromJson(Map<String, dynamic> json) =>
_$DeviceIdentificationFromJson(json);
Map<String, dynamic> toJson() => _$DeviceIdentificationToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 19)
class HttpHeaderInfo {
HttpHeaderInfo(this.name, this.value, this.match);
@HiveField(0)
final String name;
@HiveField(1)
final String value;
@HiveField(2)
final String match;
factory HttpHeaderInfo.fromJson(Map<String, dynamic> json) =>
_$HttpHeaderInfoFromJson(json);
Map<String, dynamic> toJson() => _$HttpHeaderInfoToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 20)
class XmlAttribute {
XmlAttribute(this.name, this.value);
@HiveField(0)
final String name;
@HiveField(1)
final String value;
factory XmlAttribute.fromJson(Map<String, dynamic> json) =>
_$XmlAttributeFromJson(json);
Map<String, dynamic> toJson() => _$XmlAttributeToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 21)
class DirectPlayProfile {
DirectPlayProfile(
this.container, this.audioCodec, this.videoCodec, this.type);
@HiveField(0)
final String container;
@HiveField(1)
final String audioCodec;
@HiveField(2)
final String videoCodec;
@HiveField(3)
final String type;
factory DirectPlayProfile.fromJson(Map<String, dynamic> json) =>
_$DirectPlayProfileFromJson(json);
Map<String, dynamic> toJson() => _$DirectPlayProfileToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 22)
class TranscodingProfile {
TranscodingProfile(
this.container,
this.type,
this.videoCodec,
this.audioCodec,
this.protocol,
this.estimateContentLength,
this.enableMpegtsM2TsMode,
this.transcodeSeekInfo,
this.copyTimestamps,
this.context,
this.maxAudioChannels,
this.minSegments,
this.segmentLength,
this.breakOnNonKeyFrames,
this.manifestSubtitles);
@HiveField(0)
final String container;
@HiveField(1)
final String type;
@HiveField(2)
final String videoCodec;
@HiveField(3)
final String audioCodec;
@HiveField(4)
final String protocol;
@HiveField(5)
final bool estimateContentLength;
@HiveField(6)
final bool enableMpegtsM2TsMode;
@HiveField(7)
final String transcodeSeekInfo;
@HiveField(8)
final bool copyTimestamps;
@HiveField(9)
final String context;
@HiveField(10)
final String maxAudioChannels;
@HiveField(11)
final int minSegments;
@HiveField(12)
final int segmentLength;
@HiveField(13)
final bool breakOnNonKeyFrames;
@HiveField(14)
final String manifestSubtitles;
factory TranscodingProfile.fromJson(Map<String, dynamic> json) =>
_$TranscodingProfileFromJson(json);
Map<String, dynamic> toJson() => _$TranscodingProfileToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 23)
class ContainerProfile {
ContainerProfile(this.type, this.conditions, this.container);
@HiveField(0)
final String type;
@HiveField(1)
final List<ProfileCondition> conditions;
@HiveField(2)
final String container;
factory ContainerProfile.fromJson(Map<String, dynamic> json) =>
_$ContainerProfileFromJson(json);
Map<String, dynamic> toJson() => _$ContainerProfileToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 24)
class ProfileCondition {
ProfileCondition(this.condition, this.property, this.value, this.isRequired);
@HiveField(0)
final String condition;
@HiveField(1)
final String property;
@HiveField(2)
final String value;
@HiveField(3)
final bool isRequired;
factory ProfileCondition.fromJson(Map<String, dynamic> json) =>
_$ProfileConditionFromJson(json);
Map<String, dynamic> toJson() => _$ProfileConditionToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 25)
class CodecProfile {
CodecProfile(this.type, this.conditions, this.applyConditions, this.codec,
this.container);
@HiveField(0)
final String type;
@HiveField(1)
final List<ProfileCondition> conditions;
@HiveField(2)
final List<ProfileCondition> applyConditions;
@HiveField(3)
final String codec;
@HiveField(4)
final String container;
factory CodecProfile.fromJson(Map<String, dynamic> json) =>
_$CodecProfileFromJson(json);
Map<String, dynamic> toJson() => _$CodecProfileToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 26)
class ResponseProfile {
ResponseProfile(this.container, this.audioCodec, this.videoCodec, this.type,
this.orgPn, this.mimeType, this.conditions);
@HiveField(0)
final String container;
@HiveField(1)
final String audioCodec;
@HiveField(2)
final String videoCodec;
@HiveField(3)
final String type;
@HiveField(4)
final String orgPn;
@HiveField(5)
final String mimeType;
@HiveField(6)
final List<ProfileCondition> conditions;
factory ResponseProfile.fromJson(Map<String, dynamic> json) =>
_$ResponseProfileFromJson(json);
Map<String, dynamic> toJson() => _$ResponseProfileToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 27)
class SubtitleProfile {
SubtitleProfile(
this.format, this.method, this.didlMode, this.language, this.container);
@HiveField(0)
final String format;
@HiveField(1)
final String method;
@HiveField(2)
final String didlMode;
@HiveField(3)
final String language;
@HiveField(4)
final String container;
factory SubtitleProfile.fromJson(Map<String, dynamic> json) =>
_$SubtitleProfileFromJson(json);
Map<String, dynamic> toJson() => _$SubtitleProfileToJson(this);
}
@JsonSerializable(fieldRename: FieldRename.pascal, explicitToJson: true)
@HiveType(typeId: 0)
class BaseItemDto {
BaseItemDto(
this.name,
this.originalTitle,
this.serverId,
this.id,
this.etag,
this.playlistItemId,
this.dateCreated,
this.extraType,
this.airsBeforeSeasonNumber,
this.airsAfterSeasonNumber,
this.airsBeforeEpisodeNumber,
this.displaySpecialsWithSeasons,
this.canDelete,
this.canDownload,
this.hasSubtitles,
this.supportsResume,
this.preferredMetadataLanguage,
this.preferredMetadataCountryCode,
this.supportsSync,
this.container,
this.sortName,
this.forcedSortName,
this.video3DFormat,
this.premiereDate,
this.externalUrls,
this.mediaSources,
this.criticRating,
this.gameSystemId,
this.gameSystem,
this.productionLocations,
this.path,
this.officialRating,
this.customRating,
this.channelId,
this.channelName,
this.overview,
this.taglines,
this.genres,
this.communityRating,
this.runTimeTicks,
this.playAccess,
this.aspectRatio,
this.productionYear,
this.number,
this.channelNumber,
this.indexNumber,
this.indexNumberEnd,
this.parentIndexNumber,
this.remoteTrailers,
this.providerIds,
this.isFolder,
this.parentId,
this.type,
this.people,
this.studios,
this.genreItems,
this.parentLogoItemId,
this.parentBackdropItemId,
this.parentBackdropImageTags,
this.localTrailerCount,
this.userData,
this.recursiveItemCount,
this.childCount,
this.seriesName,
this.seriesId,
this.seasonId,
this.specialFeatureCount,
this.displayPreferencesId,
this.status,
this.airTime,
this.airDays,
this.tags,
this.primaryImageAspectRatio,
this.artists,
this.artistItems,
this.album,
this.collectionType,
this.displayOrder,
this.albumId,
this.albumPrimaryImageTag,
this.seriesPrimaryImageTag,
this.albumArtist,
this.albumArtists,
this.seasonName,
this.mediaStreams,
this.partCount,
this.imageTags,
this.backdropImageTags,
this.parentLogoImageTag,
this.parentArtItemId,
this.parentArtImageTag,
this.seriesThumbImageTag,
this.seriesStudio,