googleyoutube.pp 602 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991
  1. unit googleyoutube;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TAccessPolicy = Class;
  9. TActivity = Class;
  10. TActivityContentDetails = Class;
  11. TActivityContentDetailsBulletin = Class;
  12. TActivityContentDetailsChannelItem = Class;
  13. TActivityContentDetailsComment = Class;
  14. TActivityContentDetailsFavorite = Class;
  15. TActivityContentDetailsLike = Class;
  16. TActivityContentDetailsPlaylistItem = Class;
  17. TActivityContentDetailsPromotedItem = Class;
  18. TActivityContentDetailsRecommendation = Class;
  19. TActivityContentDetailsSocial = Class;
  20. TActivityContentDetailsSubscription = Class;
  21. TActivityContentDetailsUpload = Class;
  22. TActivityListResponse = Class;
  23. TActivitySnippet = Class;
  24. TCaption = Class;
  25. TCaptionListResponse = Class;
  26. TCaptionSnippet = Class;
  27. TCdnSettings = Class;
  28. TChannel = Class;
  29. TChannelAuditDetails = Class;
  30. TChannelBannerResource = Class;
  31. TChannelBrandingSettings = Class;
  32. TChannelContentDetails = Class;
  33. TChannelContentOwnerDetails = Class;
  34. TChannelConversionPing = Class;
  35. TChannelConversionPings = Class;
  36. TChannelListResponse = Class;
  37. TChannelLocalization = Class;
  38. TChannelProfileDetails = Class;
  39. TChannelSection = Class;
  40. TChannelSectionContentDetails = Class;
  41. TChannelSectionListResponse = Class;
  42. TChannelSectionLocalization = Class;
  43. TChannelSectionSnippet = Class;
  44. TChannelSectionTargeting = Class;
  45. TChannelSettings = Class;
  46. TChannelSnippet = Class;
  47. TChannelStatistics = Class;
  48. TChannelStatus = Class;
  49. TChannelTopicDetails = Class;
  50. TComment = Class;
  51. TCommentListResponse = Class;
  52. TCommentSnippet = Class;
  53. TCommentThread = Class;
  54. TCommentThreadListResponse = Class;
  55. TCommentThreadReplies = Class;
  56. TCommentThreadSnippet = Class;
  57. TContentRating = Class;
  58. TFanFundingEvent = Class;
  59. TFanFundingEventListResponse = Class;
  60. TFanFundingEventSnippet = Class;
  61. TGeoPoint = Class;
  62. TGuideCategory = Class;
  63. TGuideCategoryListResponse = Class;
  64. TGuideCategorySnippet = Class;
  65. TI18nLanguage = Class;
  66. TI18nLanguageListResponse = Class;
  67. TI18nLanguageSnippet = Class;
  68. TI18nRegion = Class;
  69. TI18nRegionListResponse = Class;
  70. TI18nRegionSnippet = Class;
  71. TImageSettings = Class;
  72. TIngestionInfo = Class;
  73. TInvideoBranding = Class;
  74. TInvideoPosition = Class;
  75. TInvideoPromotion = Class;
  76. TInvideoTiming = Class;
  77. TLanguageTag = Class;
  78. TLiveBroadcast = Class;
  79. TLiveBroadcastContentDetails = Class;
  80. TLiveBroadcastListResponse = Class;
  81. TLiveBroadcastSnippet = Class;
  82. TLiveBroadcastStatistics = Class;
  83. TLiveBroadcastStatus = Class;
  84. TLiveBroadcastTopic = Class;
  85. TLiveBroadcastTopicDetails = Class;
  86. TLiveBroadcastTopicSnippet = Class;
  87. TLiveChatBan = Class;
  88. TLiveChatBanSnippet = Class;
  89. TLiveChatFanFundingEventDetails = Class;
  90. TLiveChatMessage = Class;
  91. TLiveChatMessageAuthorDetails = Class;
  92. TLiveChatMessageDeletedDetails = Class;
  93. TLiveChatMessageListResponse = Class;
  94. TLiveChatMessageRetractedDetails = Class;
  95. TLiveChatMessageSnippet = Class;
  96. TLiveChatModerator = Class;
  97. TLiveChatModeratorListResponse = Class;
  98. TLiveChatModeratorSnippet = Class;
  99. TLiveChatTextMessageDetails = Class;
  100. TLiveChatUserBannedMessageDetails = Class;
  101. TLiveStream = Class;
  102. TLiveStreamConfigurationIssue = Class;
  103. TLiveStreamContentDetails = Class;
  104. TLiveStreamHealthStatus = Class;
  105. TLiveStreamListResponse = Class;
  106. TLiveStreamSnippet = Class;
  107. TLiveStreamStatus = Class;
  108. TLocalizedProperty = Class;
  109. TLocalizedString = Class;
  110. TMonitorStreamInfo = Class;
  111. TPageInfo = Class;
  112. TPlaylist = Class;
  113. TPlaylistContentDetails = Class;
  114. TPlaylistItem = Class;
  115. TPlaylistItemContentDetails = Class;
  116. TPlaylistItemListResponse = Class;
  117. TPlaylistItemSnippet = Class;
  118. TPlaylistItemStatus = Class;
  119. TPlaylistListResponse = Class;
  120. TPlaylistLocalization = Class;
  121. TPlaylistPlayer = Class;
  122. TPlaylistSnippet = Class;
  123. TPlaylistStatus = Class;
  124. TPromotedItem = Class;
  125. TPromotedItemId = Class;
  126. TPropertyValue = Class;
  127. TResourceId = Class;
  128. TSearchListResponse = Class;
  129. TSearchResult = Class;
  130. TSearchResultSnippet = Class;
  131. TSponsor = Class;
  132. TSponsorListResponse = Class;
  133. TSponsorSnippet = Class;
  134. TSubscription = Class;
  135. TSubscriptionContentDetails = Class;
  136. TSubscriptionListResponse = Class;
  137. TSubscriptionSnippet = Class;
  138. TSubscriptionSubscriberSnippet = Class;
  139. TThumbnail = Class;
  140. TThumbnailDetails = Class;
  141. TThumbnailSetResponse = Class;
  142. TTokenPagination = Class;
  143. TVideo = Class;
  144. TVideoAbuseReport = Class;
  145. TVideoAbuseReportReason = Class;
  146. TVideoAbuseReportReasonListResponse = Class;
  147. TVideoAbuseReportReasonSnippet = Class;
  148. TVideoAbuseReportSecondaryReason = Class;
  149. TVideoAgeGating = Class;
  150. TVideoCategory = Class;
  151. TVideoCategoryListResponse = Class;
  152. TVideoCategorySnippet = Class;
  153. TVideoContentDetails = Class;
  154. TVideoContentDetailsRegionRestriction = Class;
  155. TVideoFileDetails = Class;
  156. TVideoFileDetailsAudioStream = Class;
  157. TVideoFileDetailsVideoStream = Class;
  158. TVideoGetRatingResponse = Class;
  159. TVideoListResponse = Class;
  160. TVideoLiveStreamingDetails = Class;
  161. TVideoLocalization = Class;
  162. TVideoMonetizationDetails = Class;
  163. TVideoPlayer = Class;
  164. TVideoProcessingDetails = Class;
  165. TVideoProcessingDetailsProcessingProgress = Class;
  166. TVideoProjectDetails = Class;
  167. TVideoRating = Class;
  168. TVideoRecordingDetails = Class;
  169. TVideoSnippet = Class;
  170. TVideoStatistics = Class;
  171. TVideoStatus = Class;
  172. TVideoSuggestions = Class;
  173. TVideoSuggestionsTagSuggestion = Class;
  174. TVideoTopicDetails = Class;
  175. TWatchSettings = Class;
  176. TAccessPolicyArray = Array of TAccessPolicy;
  177. TActivityArray = Array of TActivity;
  178. TActivityContentDetailsArray = Array of TActivityContentDetails;
  179. TActivityContentDetailsBulletinArray = Array of TActivityContentDetailsBulletin;
  180. TActivityContentDetailsChannelItemArray = Array of TActivityContentDetailsChannelItem;
  181. TActivityContentDetailsCommentArray = Array of TActivityContentDetailsComment;
  182. TActivityContentDetailsFavoriteArray = Array of TActivityContentDetailsFavorite;
  183. TActivityContentDetailsLikeArray = Array of TActivityContentDetailsLike;
  184. TActivityContentDetailsPlaylistItemArray = Array of TActivityContentDetailsPlaylistItem;
  185. TActivityContentDetailsPromotedItemArray = Array of TActivityContentDetailsPromotedItem;
  186. TActivityContentDetailsRecommendationArray = Array of TActivityContentDetailsRecommendation;
  187. TActivityContentDetailsSocialArray = Array of TActivityContentDetailsSocial;
  188. TActivityContentDetailsSubscriptionArray = Array of TActivityContentDetailsSubscription;
  189. TActivityContentDetailsUploadArray = Array of TActivityContentDetailsUpload;
  190. TActivityListResponseArray = Array of TActivityListResponse;
  191. TActivitySnippetArray = Array of TActivitySnippet;
  192. TCaptionArray = Array of TCaption;
  193. TCaptionListResponseArray = Array of TCaptionListResponse;
  194. TCaptionSnippetArray = Array of TCaptionSnippet;
  195. TCdnSettingsArray = Array of TCdnSettings;
  196. TChannelArray = Array of TChannel;
  197. TChannelAuditDetailsArray = Array of TChannelAuditDetails;
  198. TChannelBannerResourceArray = Array of TChannelBannerResource;
  199. TChannelBrandingSettingsArray = Array of TChannelBrandingSettings;
  200. TChannelContentDetailsArray = Array of TChannelContentDetails;
  201. TChannelContentOwnerDetailsArray = Array of TChannelContentOwnerDetails;
  202. TChannelConversionPingArray = Array of TChannelConversionPing;
  203. TChannelConversionPingsArray = Array of TChannelConversionPings;
  204. TChannelListResponseArray = Array of TChannelListResponse;
  205. TChannelLocalizationArray = Array of TChannelLocalization;
  206. TChannelProfileDetailsArray = Array of TChannelProfileDetails;
  207. TChannelSectionArray = Array of TChannelSection;
  208. TChannelSectionContentDetailsArray = Array of TChannelSectionContentDetails;
  209. TChannelSectionListResponseArray = Array of TChannelSectionListResponse;
  210. TChannelSectionLocalizationArray = Array of TChannelSectionLocalization;
  211. TChannelSectionSnippetArray = Array of TChannelSectionSnippet;
  212. TChannelSectionTargetingArray = Array of TChannelSectionTargeting;
  213. TChannelSettingsArray = Array of TChannelSettings;
  214. TChannelSnippetArray = Array of TChannelSnippet;
  215. TChannelStatisticsArray = Array of TChannelStatistics;
  216. TChannelStatusArray = Array of TChannelStatus;
  217. TChannelTopicDetailsArray = Array of TChannelTopicDetails;
  218. TCommentArray = Array of TComment;
  219. TCommentListResponseArray = Array of TCommentListResponse;
  220. TCommentSnippetArray = Array of TCommentSnippet;
  221. TCommentThreadArray = Array of TCommentThread;
  222. TCommentThreadListResponseArray = Array of TCommentThreadListResponse;
  223. TCommentThreadRepliesArray = Array of TCommentThreadReplies;
  224. TCommentThreadSnippetArray = Array of TCommentThreadSnippet;
  225. TContentRatingArray = Array of TContentRating;
  226. TFanFundingEventArray = Array of TFanFundingEvent;
  227. TFanFundingEventListResponseArray = Array of TFanFundingEventListResponse;
  228. TFanFundingEventSnippetArray = Array of TFanFundingEventSnippet;
  229. TGeoPointArray = Array of TGeoPoint;
  230. TGuideCategoryArray = Array of TGuideCategory;
  231. TGuideCategoryListResponseArray = Array of TGuideCategoryListResponse;
  232. TGuideCategorySnippetArray = Array of TGuideCategorySnippet;
  233. TI18nLanguageArray = Array of TI18nLanguage;
  234. TI18nLanguageListResponseArray = Array of TI18nLanguageListResponse;
  235. TI18nLanguageSnippetArray = Array of TI18nLanguageSnippet;
  236. TI18nRegionArray = Array of TI18nRegion;
  237. TI18nRegionListResponseArray = Array of TI18nRegionListResponse;
  238. TI18nRegionSnippetArray = Array of TI18nRegionSnippet;
  239. TImageSettingsArray = Array of TImageSettings;
  240. TIngestionInfoArray = Array of TIngestionInfo;
  241. TInvideoBrandingArray = Array of TInvideoBranding;
  242. TInvideoPositionArray = Array of TInvideoPosition;
  243. TInvideoPromotionArray = Array of TInvideoPromotion;
  244. TInvideoTimingArray = Array of TInvideoTiming;
  245. TLanguageTagArray = Array of TLanguageTag;
  246. TLiveBroadcastArray = Array of TLiveBroadcast;
  247. TLiveBroadcastContentDetailsArray = Array of TLiveBroadcastContentDetails;
  248. TLiveBroadcastListResponseArray = Array of TLiveBroadcastListResponse;
  249. TLiveBroadcastSnippetArray = Array of TLiveBroadcastSnippet;
  250. TLiveBroadcastStatisticsArray = Array of TLiveBroadcastStatistics;
  251. TLiveBroadcastStatusArray = Array of TLiveBroadcastStatus;
  252. TLiveBroadcastTopicArray = Array of TLiveBroadcastTopic;
  253. TLiveBroadcastTopicDetailsArray = Array of TLiveBroadcastTopicDetails;
  254. TLiveBroadcastTopicSnippetArray = Array of TLiveBroadcastTopicSnippet;
  255. TLiveChatBanArray = Array of TLiveChatBan;
  256. TLiveChatBanSnippetArray = Array of TLiveChatBanSnippet;
  257. TLiveChatFanFundingEventDetailsArray = Array of TLiveChatFanFundingEventDetails;
  258. TLiveChatMessageArray = Array of TLiveChatMessage;
  259. TLiveChatMessageAuthorDetailsArray = Array of TLiveChatMessageAuthorDetails;
  260. TLiveChatMessageDeletedDetailsArray = Array of TLiveChatMessageDeletedDetails;
  261. TLiveChatMessageListResponseArray = Array of TLiveChatMessageListResponse;
  262. TLiveChatMessageRetractedDetailsArray = Array of TLiveChatMessageRetractedDetails;
  263. TLiveChatMessageSnippetArray = Array of TLiveChatMessageSnippet;
  264. TLiveChatModeratorArray = Array of TLiveChatModerator;
  265. TLiveChatModeratorListResponseArray = Array of TLiveChatModeratorListResponse;
  266. TLiveChatModeratorSnippetArray = Array of TLiveChatModeratorSnippet;
  267. TLiveChatTextMessageDetailsArray = Array of TLiveChatTextMessageDetails;
  268. TLiveChatUserBannedMessageDetailsArray = Array of TLiveChatUserBannedMessageDetails;
  269. TLiveStreamArray = Array of TLiveStream;
  270. TLiveStreamConfigurationIssueArray = Array of TLiveStreamConfigurationIssue;
  271. TLiveStreamContentDetailsArray = Array of TLiveStreamContentDetails;
  272. TLiveStreamHealthStatusArray = Array of TLiveStreamHealthStatus;
  273. TLiveStreamListResponseArray = Array of TLiveStreamListResponse;
  274. TLiveStreamSnippetArray = Array of TLiveStreamSnippet;
  275. TLiveStreamStatusArray = Array of TLiveStreamStatus;
  276. TLocalizedPropertyArray = Array of TLocalizedProperty;
  277. TLocalizedStringArray = Array of TLocalizedString;
  278. TMonitorStreamInfoArray = Array of TMonitorStreamInfo;
  279. TPageInfoArray = Array of TPageInfo;
  280. TPlaylistArray = Array of TPlaylist;
  281. TPlaylistContentDetailsArray = Array of TPlaylistContentDetails;
  282. TPlaylistItemArray = Array of TPlaylistItem;
  283. TPlaylistItemContentDetailsArray = Array of TPlaylistItemContentDetails;
  284. TPlaylistItemListResponseArray = Array of TPlaylistItemListResponse;
  285. TPlaylistItemSnippetArray = Array of TPlaylistItemSnippet;
  286. TPlaylistItemStatusArray = Array of TPlaylistItemStatus;
  287. TPlaylistListResponseArray = Array of TPlaylistListResponse;
  288. TPlaylistLocalizationArray = Array of TPlaylistLocalization;
  289. TPlaylistPlayerArray = Array of TPlaylistPlayer;
  290. TPlaylistSnippetArray = Array of TPlaylistSnippet;
  291. TPlaylistStatusArray = Array of TPlaylistStatus;
  292. TPromotedItemArray = Array of TPromotedItem;
  293. TPromotedItemIdArray = Array of TPromotedItemId;
  294. TPropertyValueArray = Array of TPropertyValue;
  295. TResourceIdArray = Array of TResourceId;
  296. TSearchListResponseArray = Array of TSearchListResponse;
  297. TSearchResultArray = Array of TSearchResult;
  298. TSearchResultSnippetArray = Array of TSearchResultSnippet;
  299. TSponsorArray = Array of TSponsor;
  300. TSponsorListResponseArray = Array of TSponsorListResponse;
  301. TSponsorSnippetArray = Array of TSponsorSnippet;
  302. TSubscriptionArray = Array of TSubscription;
  303. TSubscriptionContentDetailsArray = Array of TSubscriptionContentDetails;
  304. TSubscriptionListResponseArray = Array of TSubscriptionListResponse;
  305. TSubscriptionSnippetArray = Array of TSubscriptionSnippet;
  306. TSubscriptionSubscriberSnippetArray = Array of TSubscriptionSubscriberSnippet;
  307. TThumbnailArray = Array of TThumbnail;
  308. TThumbnailDetailsArray = Array of TThumbnailDetails;
  309. TThumbnailSetResponseArray = Array of TThumbnailSetResponse;
  310. TTokenPaginationArray = Array of TTokenPagination;
  311. TVideoArray = Array of TVideo;
  312. TVideoAbuseReportArray = Array of TVideoAbuseReport;
  313. TVideoAbuseReportReasonArray = Array of TVideoAbuseReportReason;
  314. TVideoAbuseReportReasonListResponseArray = Array of TVideoAbuseReportReasonListResponse;
  315. TVideoAbuseReportReasonSnippetArray = Array of TVideoAbuseReportReasonSnippet;
  316. TVideoAbuseReportSecondaryReasonArray = Array of TVideoAbuseReportSecondaryReason;
  317. TVideoAgeGatingArray = Array of TVideoAgeGating;
  318. TVideoCategoryArray = Array of TVideoCategory;
  319. TVideoCategoryListResponseArray = Array of TVideoCategoryListResponse;
  320. TVideoCategorySnippetArray = Array of TVideoCategorySnippet;
  321. TVideoContentDetailsArray = Array of TVideoContentDetails;
  322. TVideoContentDetailsRegionRestrictionArray = Array of TVideoContentDetailsRegionRestriction;
  323. TVideoFileDetailsArray = Array of TVideoFileDetails;
  324. TVideoFileDetailsAudioStreamArray = Array of TVideoFileDetailsAudioStream;
  325. TVideoFileDetailsVideoStreamArray = Array of TVideoFileDetailsVideoStream;
  326. TVideoGetRatingResponseArray = Array of TVideoGetRatingResponse;
  327. TVideoListResponseArray = Array of TVideoListResponse;
  328. TVideoLiveStreamingDetailsArray = Array of TVideoLiveStreamingDetails;
  329. TVideoLocalizationArray = Array of TVideoLocalization;
  330. TVideoMonetizationDetailsArray = Array of TVideoMonetizationDetails;
  331. TVideoPlayerArray = Array of TVideoPlayer;
  332. TVideoProcessingDetailsArray = Array of TVideoProcessingDetails;
  333. TVideoProcessingDetailsProcessingProgressArray = Array of TVideoProcessingDetailsProcessingProgress;
  334. TVideoProjectDetailsArray = Array of TVideoProjectDetails;
  335. TVideoRatingArray = Array of TVideoRating;
  336. TVideoRecordingDetailsArray = Array of TVideoRecordingDetails;
  337. TVideoSnippetArray = Array of TVideoSnippet;
  338. TVideoStatisticsArray = Array of TVideoStatistics;
  339. TVideoStatusArray = Array of TVideoStatus;
  340. TVideoSuggestionsArray = Array of TVideoSuggestions;
  341. TVideoSuggestionsTagSuggestionArray = Array of TVideoSuggestionsTagSuggestion;
  342. TVideoTopicDetailsArray = Array of TVideoTopicDetails;
  343. TWatchSettingsArray = Array of TWatchSettings;
  344. //Anonymous types, using auto-generated names
  345. TChannelTypelocalizations = Class;
  346. TChannelContentDetailsTyperelatedPlaylists = Class;
  347. TChannelSectionTypelocalizations = Class;
  348. TPlaylistTypelocalizations = Class;
  349. TVideoTypelocalizations = Class;
  350. TActivityListResponseTypeitemsArray = Array of TActivity;
  351. TCaptionListResponseTypeitemsArray = Array of TCaption;
  352. TChannelBrandingSettingsTypehintsArray = Array of TPropertyValue;
  353. TChannelConversionPingsTypepingsArray = Array of TChannelConversionPing;
  354. TChannelListResponseTypeitemsArray = Array of TChannel;
  355. TChannelSectionListResponseTypeitemsArray = Array of TChannelSection;
  356. TCommentListResponseTypeitemsArray = Array of TComment;
  357. TCommentThreadListResponseTypeitemsArray = Array of TCommentThread;
  358. TCommentThreadRepliesTypecommentsArray = Array of TComment;
  359. TFanFundingEventListResponseTypeitemsArray = Array of TFanFundingEvent;
  360. TGuideCategoryListResponseTypeitemsArray = Array of TGuideCategory;
  361. TI18nLanguageListResponseTypeitemsArray = Array of TI18nLanguage;
  362. TI18nRegionListResponseTypeitemsArray = Array of TI18nRegion;
  363. TInvideoPromotionTypeitemsArray = Array of TPromotedItem;
  364. TLiveBroadcastListResponseTypeitemsArray = Array of TLiveBroadcast;
  365. TLiveBroadcastTopicDetailsTypetopicsArray = Array of TLiveBroadcastTopic;
  366. TLiveChatMessageListResponseTypeitemsArray = Array of TLiveChatMessage;
  367. TLiveChatModeratorListResponseTypeitemsArray = Array of TLiveChatModerator;
  368. TLiveStreamHealthStatusTypeconfigurationIssuesArray = Array of TLiveStreamConfigurationIssue;
  369. TLiveStreamListResponseTypeitemsArray = Array of TLiveStream;
  370. TLocalizedPropertyTypelocalizedArray = Array of TLocalizedString;
  371. TPlaylistItemListResponseTypeitemsArray = Array of TPlaylistItem;
  372. TPlaylistListResponseTypeitemsArray = Array of TPlaylist;
  373. TSearchListResponseTypeitemsArray = Array of TSearchResult;
  374. TSponsorListResponseTypeitemsArray = Array of TSponsor;
  375. TSubscriptionListResponseTypeitemsArray = Array of TSubscription;
  376. TThumbnailSetResponseTypeitemsArray = Array of TThumbnailDetails;
  377. TVideoAbuseReportReasonListResponseTypeitemsArray = Array of TVideoAbuseReportReason;
  378. TVideoAbuseReportReasonSnippetTypesecondaryReasonsArray = Array of TVideoAbuseReportSecondaryReason;
  379. TVideoCategoryListResponseTypeitemsArray = Array of TVideoCategory;
  380. TVideoFileDetailsTypeaudioStreamsArray = Array of TVideoFileDetailsAudioStream;
  381. TVideoFileDetailsTypevideoStreamsArray = Array of TVideoFileDetailsVideoStream;
  382. TVideoGetRatingResponseTypeitemsArray = Array of TVideoRating;
  383. TVideoListResponseTypeitemsArray = Array of TVideo;
  384. TVideoSuggestionsTypetagSuggestionsArray = Array of TVideoSuggestionsTagSuggestion;
  385. { --------------------------------------------------------------------
  386. TAccessPolicy
  387. --------------------------------------------------------------------}
  388. TAccessPolicy = Class(TGoogleBaseObject)
  389. Private
  390. Fallowed : boolean;
  391. Fexception : TStringArray;
  392. Protected
  393. //Property setters
  394. Procedure Setallowed(AIndex : Integer; const AValue : boolean); virtual;
  395. Procedure Setexception(AIndex : Integer; const AValue : TStringArray); virtual;
  396. //2.6.4. bug workaround
  397. {$IFDEF VER2_6}
  398. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  399. {$ENDIF VER2_6}
  400. Public
  401. Published
  402. Property allowed : boolean Index 0 Read Fallowed Write Setallowed;
  403. Property exception : TStringArray Index 8 Read Fexception Write Setexception;
  404. end;
  405. TAccessPolicyClass = Class of TAccessPolicy;
  406. { --------------------------------------------------------------------
  407. TActivity
  408. --------------------------------------------------------------------}
  409. TActivity = Class(TGoogleBaseObject)
  410. Private
  411. FcontentDetails : TActivityContentDetails;
  412. Fetag : String;
  413. Fid : String;
  414. Fkind : String;
  415. Fsnippet : TActivitySnippet;
  416. Protected
  417. //Property setters
  418. Procedure SetcontentDetails(AIndex : Integer; const AValue : TActivityContentDetails); virtual;
  419. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  420. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  421. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  422. Procedure Setsnippet(AIndex : Integer; const AValue : TActivitySnippet); virtual;
  423. Public
  424. Published
  425. Property contentDetails : TActivityContentDetails Index 0 Read FcontentDetails Write SetcontentDetails;
  426. Property etag : String Index 8 Read Fetag Write Setetag;
  427. Property id : String Index 16 Read Fid Write Setid;
  428. Property kind : String Index 24 Read Fkind Write Setkind;
  429. Property snippet : TActivitySnippet Index 32 Read Fsnippet Write Setsnippet;
  430. end;
  431. TActivityClass = Class of TActivity;
  432. { --------------------------------------------------------------------
  433. TActivityContentDetails
  434. --------------------------------------------------------------------}
  435. TActivityContentDetails = Class(TGoogleBaseObject)
  436. Private
  437. Fbulletin : TActivityContentDetailsBulletin;
  438. FchannelItem : TActivityContentDetailsChannelItem;
  439. Fcomment : TActivityContentDetailsComment;
  440. Ffavorite : TActivityContentDetailsFavorite;
  441. Flike : TActivityContentDetailsLike;
  442. FplaylistItem : TActivityContentDetailsPlaylistItem;
  443. FpromotedItem : TActivityContentDetailsPromotedItem;
  444. Frecommendation : TActivityContentDetailsRecommendation;
  445. Fsocial : TActivityContentDetailsSocial;
  446. Fsubscription : TActivityContentDetailsSubscription;
  447. Fupload : TActivityContentDetailsUpload;
  448. Protected
  449. //Property setters
  450. Procedure Setbulletin(AIndex : Integer; const AValue : TActivityContentDetailsBulletin); virtual;
  451. Procedure SetchannelItem(AIndex : Integer; const AValue : TActivityContentDetailsChannelItem); virtual;
  452. Procedure Setcomment(AIndex : Integer; const AValue : TActivityContentDetailsComment); virtual;
  453. Procedure Setfavorite(AIndex : Integer; const AValue : TActivityContentDetailsFavorite); virtual;
  454. Procedure Setlike(AIndex : Integer; const AValue : TActivityContentDetailsLike); virtual;
  455. Procedure SetplaylistItem(AIndex : Integer; const AValue : TActivityContentDetailsPlaylistItem); virtual;
  456. Procedure SetpromotedItem(AIndex : Integer; const AValue : TActivityContentDetailsPromotedItem); virtual;
  457. Procedure Setrecommendation(AIndex : Integer; const AValue : TActivityContentDetailsRecommendation); virtual;
  458. Procedure Setsocial(AIndex : Integer; const AValue : TActivityContentDetailsSocial); virtual;
  459. Procedure Setsubscription(AIndex : Integer; const AValue : TActivityContentDetailsSubscription); virtual;
  460. Procedure Setupload(AIndex : Integer; const AValue : TActivityContentDetailsUpload); virtual;
  461. Public
  462. Published
  463. Property bulletin : TActivityContentDetailsBulletin Index 0 Read Fbulletin Write Setbulletin;
  464. Property channelItem : TActivityContentDetailsChannelItem Index 8 Read FchannelItem Write SetchannelItem;
  465. Property comment : TActivityContentDetailsComment Index 16 Read Fcomment Write Setcomment;
  466. Property favorite : TActivityContentDetailsFavorite Index 24 Read Ffavorite Write Setfavorite;
  467. Property like : TActivityContentDetailsLike Index 32 Read Flike Write Setlike;
  468. Property playlistItem : TActivityContentDetailsPlaylistItem Index 40 Read FplaylistItem Write SetplaylistItem;
  469. Property promotedItem : TActivityContentDetailsPromotedItem Index 48 Read FpromotedItem Write SetpromotedItem;
  470. Property recommendation : TActivityContentDetailsRecommendation Index 56 Read Frecommendation Write Setrecommendation;
  471. Property social : TActivityContentDetailsSocial Index 64 Read Fsocial Write Setsocial;
  472. Property subscription : TActivityContentDetailsSubscription Index 72 Read Fsubscription Write Setsubscription;
  473. Property upload : TActivityContentDetailsUpload Index 80 Read Fupload Write Setupload;
  474. end;
  475. TActivityContentDetailsClass = Class of TActivityContentDetails;
  476. { --------------------------------------------------------------------
  477. TActivityContentDetailsBulletin
  478. --------------------------------------------------------------------}
  479. TActivityContentDetailsBulletin = Class(TGoogleBaseObject)
  480. Private
  481. FresourceId : TResourceId;
  482. Protected
  483. //Property setters
  484. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  485. Public
  486. Published
  487. Property resourceId : TResourceId Index 0 Read FresourceId Write SetresourceId;
  488. end;
  489. TActivityContentDetailsBulletinClass = Class of TActivityContentDetailsBulletin;
  490. { --------------------------------------------------------------------
  491. TActivityContentDetailsChannelItem
  492. --------------------------------------------------------------------}
  493. TActivityContentDetailsChannelItem = Class(TGoogleBaseObject)
  494. Private
  495. FresourceId : TResourceId;
  496. Protected
  497. //Property setters
  498. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  499. Public
  500. Published
  501. Property resourceId : TResourceId Index 0 Read FresourceId Write SetresourceId;
  502. end;
  503. TActivityContentDetailsChannelItemClass = Class of TActivityContentDetailsChannelItem;
  504. { --------------------------------------------------------------------
  505. TActivityContentDetailsComment
  506. --------------------------------------------------------------------}
  507. TActivityContentDetailsComment = Class(TGoogleBaseObject)
  508. Private
  509. FresourceId : TResourceId;
  510. Protected
  511. //Property setters
  512. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  513. Public
  514. Published
  515. Property resourceId : TResourceId Index 0 Read FresourceId Write SetresourceId;
  516. end;
  517. TActivityContentDetailsCommentClass = Class of TActivityContentDetailsComment;
  518. { --------------------------------------------------------------------
  519. TActivityContentDetailsFavorite
  520. --------------------------------------------------------------------}
  521. TActivityContentDetailsFavorite = Class(TGoogleBaseObject)
  522. Private
  523. FresourceId : TResourceId;
  524. Protected
  525. //Property setters
  526. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  527. Public
  528. Published
  529. Property resourceId : TResourceId Index 0 Read FresourceId Write SetresourceId;
  530. end;
  531. TActivityContentDetailsFavoriteClass = Class of TActivityContentDetailsFavorite;
  532. { --------------------------------------------------------------------
  533. TActivityContentDetailsLike
  534. --------------------------------------------------------------------}
  535. TActivityContentDetailsLike = Class(TGoogleBaseObject)
  536. Private
  537. FresourceId : TResourceId;
  538. Protected
  539. //Property setters
  540. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  541. Public
  542. Published
  543. Property resourceId : TResourceId Index 0 Read FresourceId Write SetresourceId;
  544. end;
  545. TActivityContentDetailsLikeClass = Class of TActivityContentDetailsLike;
  546. { --------------------------------------------------------------------
  547. TActivityContentDetailsPlaylistItem
  548. --------------------------------------------------------------------}
  549. TActivityContentDetailsPlaylistItem = Class(TGoogleBaseObject)
  550. Private
  551. FplaylistId : String;
  552. FplaylistItemId : String;
  553. FresourceId : TResourceId;
  554. Protected
  555. //Property setters
  556. Procedure SetplaylistId(AIndex : Integer; const AValue : String); virtual;
  557. Procedure SetplaylistItemId(AIndex : Integer; const AValue : String); virtual;
  558. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  559. Public
  560. Published
  561. Property playlistId : String Index 0 Read FplaylistId Write SetplaylistId;
  562. Property playlistItemId : String Index 8 Read FplaylistItemId Write SetplaylistItemId;
  563. Property resourceId : TResourceId Index 16 Read FresourceId Write SetresourceId;
  564. end;
  565. TActivityContentDetailsPlaylistItemClass = Class of TActivityContentDetailsPlaylistItem;
  566. { --------------------------------------------------------------------
  567. TActivityContentDetailsPromotedItem
  568. --------------------------------------------------------------------}
  569. TActivityContentDetailsPromotedItem = Class(TGoogleBaseObject)
  570. Private
  571. FadTag : String;
  572. FclickTrackingUrl : String;
  573. FcreativeViewUrl : String;
  574. FctaType : String;
  575. FcustomCtaButtonText : String;
  576. FdescriptionText : String;
  577. FdestinationUrl : String;
  578. FforecastingUrl : TStringArray;
  579. FimpressionUrl : TStringArray;
  580. FvideoId : String;
  581. Protected
  582. //Property setters
  583. Procedure SetadTag(AIndex : Integer; const AValue : String); virtual;
  584. Procedure SetclickTrackingUrl(AIndex : Integer; const AValue : String); virtual;
  585. Procedure SetcreativeViewUrl(AIndex : Integer; const AValue : String); virtual;
  586. Procedure SetctaType(AIndex : Integer; const AValue : String); virtual;
  587. Procedure SetcustomCtaButtonText(AIndex : Integer; const AValue : String); virtual;
  588. Procedure SetdescriptionText(AIndex : Integer; const AValue : String); virtual;
  589. Procedure SetdestinationUrl(AIndex : Integer; const AValue : String); virtual;
  590. Procedure SetforecastingUrl(AIndex : Integer; const AValue : TStringArray); virtual;
  591. Procedure SetimpressionUrl(AIndex : Integer; const AValue : TStringArray); virtual;
  592. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  593. //2.6.4. bug workaround
  594. {$IFDEF VER2_6}
  595. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  596. {$ENDIF VER2_6}
  597. Public
  598. Published
  599. Property adTag : String Index 0 Read FadTag Write SetadTag;
  600. Property clickTrackingUrl : String Index 8 Read FclickTrackingUrl Write SetclickTrackingUrl;
  601. Property creativeViewUrl : String Index 16 Read FcreativeViewUrl Write SetcreativeViewUrl;
  602. Property ctaType : String Index 24 Read FctaType Write SetctaType;
  603. Property customCtaButtonText : String Index 32 Read FcustomCtaButtonText Write SetcustomCtaButtonText;
  604. Property descriptionText : String Index 40 Read FdescriptionText Write SetdescriptionText;
  605. Property destinationUrl : String Index 48 Read FdestinationUrl Write SetdestinationUrl;
  606. Property forecastingUrl : TStringArray Index 56 Read FforecastingUrl Write SetforecastingUrl;
  607. Property impressionUrl : TStringArray Index 64 Read FimpressionUrl Write SetimpressionUrl;
  608. Property videoId : String Index 72 Read FvideoId Write SetvideoId;
  609. end;
  610. TActivityContentDetailsPromotedItemClass = Class of TActivityContentDetailsPromotedItem;
  611. { --------------------------------------------------------------------
  612. TActivityContentDetailsRecommendation
  613. --------------------------------------------------------------------}
  614. TActivityContentDetailsRecommendation = Class(TGoogleBaseObject)
  615. Private
  616. Freason : String;
  617. FresourceId : TResourceId;
  618. FseedResourceId : TResourceId;
  619. Protected
  620. //Property setters
  621. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  622. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  623. Procedure SetseedResourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  624. Public
  625. Published
  626. Property reason : String Index 0 Read Freason Write Setreason;
  627. Property resourceId : TResourceId Index 8 Read FresourceId Write SetresourceId;
  628. Property seedResourceId : TResourceId Index 16 Read FseedResourceId Write SetseedResourceId;
  629. end;
  630. TActivityContentDetailsRecommendationClass = Class of TActivityContentDetailsRecommendation;
  631. { --------------------------------------------------------------------
  632. TActivityContentDetailsSocial
  633. --------------------------------------------------------------------}
  634. TActivityContentDetailsSocial = Class(TGoogleBaseObject)
  635. Private
  636. Fauthor : String;
  637. FimageUrl : String;
  638. FreferenceUrl : String;
  639. FresourceId : TResourceId;
  640. F_type : String;
  641. Protected
  642. Class Function ExportPropertyName(Const AName : String) : string; override;
  643. //Property setters
  644. Procedure Setauthor(AIndex : Integer; const AValue : String); virtual;
  645. Procedure SetimageUrl(AIndex : Integer; const AValue : String); virtual;
  646. Procedure SetreferenceUrl(AIndex : Integer; const AValue : String); virtual;
  647. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  648. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  649. Public
  650. Published
  651. Property author : String Index 0 Read Fauthor Write Setauthor;
  652. Property imageUrl : String Index 8 Read FimageUrl Write SetimageUrl;
  653. Property referenceUrl : String Index 16 Read FreferenceUrl Write SetreferenceUrl;
  654. Property resourceId : TResourceId Index 24 Read FresourceId Write SetresourceId;
  655. Property _type : String Index 32 Read F_type Write Set_type;
  656. end;
  657. TActivityContentDetailsSocialClass = Class of TActivityContentDetailsSocial;
  658. { --------------------------------------------------------------------
  659. TActivityContentDetailsSubscription
  660. --------------------------------------------------------------------}
  661. TActivityContentDetailsSubscription = Class(TGoogleBaseObject)
  662. Private
  663. FresourceId : TResourceId;
  664. Protected
  665. //Property setters
  666. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  667. Public
  668. Published
  669. Property resourceId : TResourceId Index 0 Read FresourceId Write SetresourceId;
  670. end;
  671. TActivityContentDetailsSubscriptionClass = Class of TActivityContentDetailsSubscription;
  672. { --------------------------------------------------------------------
  673. TActivityContentDetailsUpload
  674. --------------------------------------------------------------------}
  675. TActivityContentDetailsUpload = Class(TGoogleBaseObject)
  676. Private
  677. FvideoId : String;
  678. Protected
  679. //Property setters
  680. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  681. Public
  682. Published
  683. Property videoId : String Index 0 Read FvideoId Write SetvideoId;
  684. end;
  685. TActivityContentDetailsUploadClass = Class of TActivityContentDetailsUpload;
  686. { --------------------------------------------------------------------
  687. TActivityListResponse
  688. --------------------------------------------------------------------}
  689. TActivityListResponse = Class(TGoogleBaseObject)
  690. Private
  691. Fetag : String;
  692. FeventId : String;
  693. Fitems : TActivityListResponseTypeitemsArray;
  694. Fkind : String;
  695. FnextPageToken : String;
  696. FpageInfo : TPageInfo;
  697. FprevPageToken : String;
  698. FtokenPagination : TTokenPagination;
  699. FvisitorId : String;
  700. Protected
  701. //Property setters
  702. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  703. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  704. Procedure Setitems(AIndex : Integer; const AValue : TActivityListResponseTypeitemsArray); virtual;
  705. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  706. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  707. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  708. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  709. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  710. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  711. //2.6.4. bug workaround
  712. {$IFDEF VER2_6}
  713. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  714. {$ENDIF VER2_6}
  715. Public
  716. Published
  717. Property etag : String Index 0 Read Fetag Write Setetag;
  718. Property eventId : String Index 8 Read FeventId Write SeteventId;
  719. Property items : TActivityListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  720. Property kind : String Index 24 Read Fkind Write Setkind;
  721. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  722. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  723. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  724. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  725. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  726. end;
  727. TActivityListResponseClass = Class of TActivityListResponse;
  728. { --------------------------------------------------------------------
  729. TActivitySnippet
  730. --------------------------------------------------------------------}
  731. TActivitySnippet = Class(TGoogleBaseObject)
  732. Private
  733. FchannelId : String;
  734. FchannelTitle : String;
  735. Fdescription : String;
  736. FgroupId : String;
  737. FpublishedAt : TDatetime;
  738. Fthumbnails : TThumbnailDetails;
  739. Ftitle : String;
  740. F_type : String;
  741. Protected
  742. Class Function ExportPropertyName(Const AName : String) : string; override;
  743. //Property setters
  744. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  745. Procedure SetchannelTitle(AIndex : Integer; const AValue : String); virtual;
  746. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  747. Procedure SetgroupId(AIndex : Integer; const AValue : String); virtual;
  748. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  749. Procedure Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails); virtual;
  750. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  751. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  752. Public
  753. Published
  754. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  755. Property channelTitle : String Index 8 Read FchannelTitle Write SetchannelTitle;
  756. Property description : String Index 16 Read Fdescription Write Setdescription;
  757. Property groupId : String Index 24 Read FgroupId Write SetgroupId;
  758. Property publishedAt : TDatetime Index 32 Read FpublishedAt Write SetpublishedAt;
  759. Property thumbnails : TThumbnailDetails Index 40 Read Fthumbnails Write Setthumbnails;
  760. Property title : String Index 48 Read Ftitle Write Settitle;
  761. Property _type : String Index 56 Read F_type Write Set_type;
  762. end;
  763. TActivitySnippetClass = Class of TActivitySnippet;
  764. { --------------------------------------------------------------------
  765. TCaption
  766. --------------------------------------------------------------------}
  767. TCaption = Class(TGoogleBaseObject)
  768. Private
  769. Fetag : String;
  770. Fid : String;
  771. Fkind : String;
  772. Fsnippet : TCaptionSnippet;
  773. Protected
  774. //Property setters
  775. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  776. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  777. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  778. Procedure Setsnippet(AIndex : Integer; const AValue : TCaptionSnippet); virtual;
  779. Public
  780. Published
  781. Property etag : String Index 0 Read Fetag Write Setetag;
  782. Property id : String Index 8 Read Fid Write Setid;
  783. Property kind : String Index 16 Read Fkind Write Setkind;
  784. Property snippet : TCaptionSnippet Index 24 Read Fsnippet Write Setsnippet;
  785. end;
  786. TCaptionClass = Class of TCaption;
  787. { --------------------------------------------------------------------
  788. TCaptionListResponse
  789. --------------------------------------------------------------------}
  790. TCaptionListResponse = Class(TGoogleBaseObject)
  791. Private
  792. Fetag : String;
  793. FeventId : String;
  794. Fitems : TCaptionListResponseTypeitemsArray;
  795. Fkind : String;
  796. FvisitorId : String;
  797. Protected
  798. //Property setters
  799. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  800. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  801. Procedure Setitems(AIndex : Integer; const AValue : TCaptionListResponseTypeitemsArray); virtual;
  802. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  803. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  804. //2.6.4. bug workaround
  805. {$IFDEF VER2_6}
  806. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  807. {$ENDIF VER2_6}
  808. Public
  809. Published
  810. Property etag : String Index 0 Read Fetag Write Setetag;
  811. Property eventId : String Index 8 Read FeventId Write SeteventId;
  812. Property items : TCaptionListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  813. Property kind : String Index 24 Read Fkind Write Setkind;
  814. Property visitorId : String Index 32 Read FvisitorId Write SetvisitorId;
  815. end;
  816. TCaptionListResponseClass = Class of TCaptionListResponse;
  817. { --------------------------------------------------------------------
  818. TCaptionSnippet
  819. --------------------------------------------------------------------}
  820. TCaptionSnippet = Class(TGoogleBaseObject)
  821. Private
  822. FaudioTrackType : String;
  823. FfailureReason : String;
  824. FisAutoSynced : boolean;
  825. FisCC : boolean;
  826. FisDraft : boolean;
  827. FisEasyReader : boolean;
  828. FisLarge : boolean;
  829. Flanguage : String;
  830. FlastUpdated : TDatetime;
  831. Fname : String;
  832. Fstatus : String;
  833. FtrackKind : String;
  834. FvideoId : String;
  835. Protected
  836. //Property setters
  837. Procedure SetaudioTrackType(AIndex : Integer; const AValue : String); virtual;
  838. Procedure SetfailureReason(AIndex : Integer; const AValue : String); virtual;
  839. Procedure SetisAutoSynced(AIndex : Integer; const AValue : boolean); virtual;
  840. Procedure SetisCC(AIndex : Integer; const AValue : boolean); virtual;
  841. Procedure SetisDraft(AIndex : Integer; const AValue : boolean); virtual;
  842. Procedure SetisEasyReader(AIndex : Integer; const AValue : boolean); virtual;
  843. Procedure SetisLarge(AIndex : Integer; const AValue : boolean); virtual;
  844. Procedure Setlanguage(AIndex : Integer; const AValue : String); virtual;
  845. Procedure SetlastUpdated(AIndex : Integer; const AValue : TDatetime); virtual;
  846. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  847. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  848. Procedure SettrackKind(AIndex : Integer; const AValue : String); virtual;
  849. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  850. Public
  851. Published
  852. Property audioTrackType : String Index 0 Read FaudioTrackType Write SetaudioTrackType;
  853. Property failureReason : String Index 8 Read FfailureReason Write SetfailureReason;
  854. Property isAutoSynced : boolean Index 16 Read FisAutoSynced Write SetisAutoSynced;
  855. Property isCC : boolean Index 24 Read FisCC Write SetisCC;
  856. Property isDraft : boolean Index 32 Read FisDraft Write SetisDraft;
  857. Property isEasyReader : boolean Index 40 Read FisEasyReader Write SetisEasyReader;
  858. Property isLarge : boolean Index 48 Read FisLarge Write SetisLarge;
  859. Property language : String Index 56 Read Flanguage Write Setlanguage;
  860. Property lastUpdated : TDatetime Index 64 Read FlastUpdated Write SetlastUpdated;
  861. Property name : String Index 72 Read Fname Write Setname;
  862. Property status : String Index 80 Read Fstatus Write Setstatus;
  863. Property trackKind : String Index 88 Read FtrackKind Write SettrackKind;
  864. Property videoId : String Index 96 Read FvideoId Write SetvideoId;
  865. end;
  866. TCaptionSnippetClass = Class of TCaptionSnippet;
  867. { --------------------------------------------------------------------
  868. TCdnSettings
  869. --------------------------------------------------------------------}
  870. TCdnSettings = Class(TGoogleBaseObject)
  871. Private
  872. Fformat : String;
  873. FframeRate : String;
  874. FingestionInfo : TIngestionInfo;
  875. FingestionType : String;
  876. Fresolution : String;
  877. Protected
  878. //Property setters
  879. Procedure Setformat(AIndex : Integer; const AValue : String); virtual;
  880. Procedure SetframeRate(AIndex : Integer; const AValue : String); virtual;
  881. Procedure SetingestionInfo(AIndex : Integer; const AValue : TIngestionInfo); virtual;
  882. Procedure SetingestionType(AIndex : Integer; const AValue : String); virtual;
  883. Procedure Setresolution(AIndex : Integer; const AValue : String); virtual;
  884. Public
  885. Published
  886. Property format : String Index 0 Read Fformat Write Setformat;
  887. Property frameRate : String Index 8 Read FframeRate Write SetframeRate;
  888. Property ingestionInfo : TIngestionInfo Index 16 Read FingestionInfo Write SetingestionInfo;
  889. Property ingestionType : String Index 24 Read FingestionType Write SetingestionType;
  890. Property resolution : String Index 32 Read Fresolution Write Setresolution;
  891. end;
  892. TCdnSettingsClass = Class of TCdnSettings;
  893. { --------------------------------------------------------------------
  894. TChannelTypelocalizations
  895. --------------------------------------------------------------------}
  896. TChannelTypelocalizations = Class(TGoogleBaseObject)
  897. Private
  898. Protected
  899. //Property setters
  900. Public
  901. Class Function AllowAdditionalProperties : Boolean; override;
  902. Published
  903. end;
  904. TChannelTypelocalizationsClass = Class of TChannelTypelocalizations;
  905. { --------------------------------------------------------------------
  906. TChannel
  907. --------------------------------------------------------------------}
  908. TChannel = Class(TGoogleBaseObject)
  909. Private
  910. FauditDetails : TChannelAuditDetails;
  911. FbrandingSettings : TChannelBrandingSettings;
  912. FcontentDetails : TChannelContentDetails;
  913. FcontentOwnerDetails : TChannelContentOwnerDetails;
  914. FconversionPings : TChannelConversionPings;
  915. Fetag : String;
  916. Fid : String;
  917. FinvideoPromotion : TInvideoPromotion;
  918. Fkind : String;
  919. Flocalizations : TChannelTypelocalizations;
  920. Fsnippet : TChannelSnippet;
  921. Fstatistics : TChannelStatistics;
  922. Fstatus : TChannelStatus;
  923. FtopicDetails : TChannelTopicDetails;
  924. Protected
  925. //Property setters
  926. Procedure SetauditDetails(AIndex : Integer; const AValue : TChannelAuditDetails); virtual;
  927. Procedure SetbrandingSettings(AIndex : Integer; const AValue : TChannelBrandingSettings); virtual;
  928. Procedure SetcontentDetails(AIndex : Integer; const AValue : TChannelContentDetails); virtual;
  929. Procedure SetcontentOwnerDetails(AIndex : Integer; const AValue : TChannelContentOwnerDetails); virtual;
  930. Procedure SetconversionPings(AIndex : Integer; const AValue : TChannelConversionPings); virtual;
  931. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  932. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  933. Procedure SetinvideoPromotion(AIndex : Integer; const AValue : TInvideoPromotion); virtual;
  934. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  935. Procedure Setlocalizations(AIndex : Integer; const AValue : TChannelTypelocalizations); virtual;
  936. Procedure Setsnippet(AIndex : Integer; const AValue : TChannelSnippet); virtual;
  937. Procedure Setstatistics(AIndex : Integer; const AValue : TChannelStatistics); virtual;
  938. Procedure Setstatus(AIndex : Integer; const AValue : TChannelStatus); virtual;
  939. Procedure SettopicDetails(AIndex : Integer; const AValue : TChannelTopicDetails); virtual;
  940. Public
  941. Published
  942. Property auditDetails : TChannelAuditDetails Index 0 Read FauditDetails Write SetauditDetails;
  943. Property brandingSettings : TChannelBrandingSettings Index 8 Read FbrandingSettings Write SetbrandingSettings;
  944. Property contentDetails : TChannelContentDetails Index 16 Read FcontentDetails Write SetcontentDetails;
  945. Property contentOwnerDetails : TChannelContentOwnerDetails Index 24 Read FcontentOwnerDetails Write SetcontentOwnerDetails;
  946. Property conversionPings : TChannelConversionPings Index 32 Read FconversionPings Write SetconversionPings;
  947. Property etag : String Index 40 Read Fetag Write Setetag;
  948. Property id : String Index 48 Read Fid Write Setid;
  949. Property invideoPromotion : TInvideoPromotion Index 56 Read FinvideoPromotion Write SetinvideoPromotion;
  950. Property kind : String Index 64 Read Fkind Write Setkind;
  951. Property localizations : TChannelTypelocalizations Index 72 Read Flocalizations Write Setlocalizations;
  952. Property snippet : TChannelSnippet Index 80 Read Fsnippet Write Setsnippet;
  953. Property statistics : TChannelStatistics Index 88 Read Fstatistics Write Setstatistics;
  954. Property status : TChannelStatus Index 96 Read Fstatus Write Setstatus;
  955. Property topicDetails : TChannelTopicDetails Index 104 Read FtopicDetails Write SettopicDetails;
  956. end;
  957. TChannelClass = Class of TChannel;
  958. { --------------------------------------------------------------------
  959. TChannelAuditDetails
  960. --------------------------------------------------------------------}
  961. TChannelAuditDetails = Class(TGoogleBaseObject)
  962. Private
  963. FcommunityGuidelinesGoodStanding : boolean;
  964. FcontentIdClaimsGoodStanding : boolean;
  965. FcopyrightStrikesGoodStanding : boolean;
  966. FoverallGoodStanding : boolean;
  967. Protected
  968. //Property setters
  969. Procedure SetcommunityGuidelinesGoodStanding(AIndex : Integer; const AValue : boolean); virtual;
  970. Procedure SetcontentIdClaimsGoodStanding(AIndex : Integer; const AValue : boolean); virtual;
  971. Procedure SetcopyrightStrikesGoodStanding(AIndex : Integer; const AValue : boolean); virtual;
  972. Procedure SetoverallGoodStanding(AIndex : Integer; const AValue : boolean); virtual;
  973. Public
  974. Published
  975. Property communityGuidelinesGoodStanding : boolean Index 0 Read FcommunityGuidelinesGoodStanding Write SetcommunityGuidelinesGoodStanding;
  976. Property contentIdClaimsGoodStanding : boolean Index 8 Read FcontentIdClaimsGoodStanding Write SetcontentIdClaimsGoodStanding;
  977. Property copyrightStrikesGoodStanding : boolean Index 16 Read FcopyrightStrikesGoodStanding Write SetcopyrightStrikesGoodStanding;
  978. Property overallGoodStanding : boolean Index 24 Read FoverallGoodStanding Write SetoverallGoodStanding;
  979. end;
  980. TChannelAuditDetailsClass = Class of TChannelAuditDetails;
  981. { --------------------------------------------------------------------
  982. TChannelBannerResource
  983. --------------------------------------------------------------------}
  984. TChannelBannerResource = Class(TGoogleBaseObject)
  985. Private
  986. Fetag : String;
  987. Fkind : String;
  988. Furl : String;
  989. Protected
  990. //Property setters
  991. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  992. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  993. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  994. Public
  995. Published
  996. Property etag : String Index 0 Read Fetag Write Setetag;
  997. Property kind : String Index 8 Read Fkind Write Setkind;
  998. Property url : String Index 16 Read Furl Write Seturl;
  999. end;
  1000. TChannelBannerResourceClass = Class of TChannelBannerResource;
  1001. { --------------------------------------------------------------------
  1002. TChannelBrandingSettings
  1003. --------------------------------------------------------------------}
  1004. TChannelBrandingSettings = Class(TGoogleBaseObject)
  1005. Private
  1006. Fchannel : TChannelSettings;
  1007. Fhints : TChannelBrandingSettingsTypehintsArray;
  1008. Fimage : TImageSettings;
  1009. Fwatch : TWatchSettings;
  1010. Protected
  1011. //Property setters
  1012. Procedure Setchannel(AIndex : Integer; const AValue : TChannelSettings); virtual;
  1013. Procedure Sethints(AIndex : Integer; const AValue : TChannelBrandingSettingsTypehintsArray); virtual;
  1014. Procedure Setimage(AIndex : Integer; const AValue : TImageSettings); virtual;
  1015. Procedure Setwatch(AIndex : Integer; const AValue : TWatchSettings); virtual;
  1016. //2.6.4. bug workaround
  1017. {$IFDEF VER2_6}
  1018. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1019. {$ENDIF VER2_6}
  1020. Public
  1021. Published
  1022. Property channel : TChannelSettings Index 0 Read Fchannel Write Setchannel;
  1023. Property hints : TChannelBrandingSettingsTypehintsArray Index 8 Read Fhints Write Sethints;
  1024. Property image : TImageSettings Index 16 Read Fimage Write Setimage;
  1025. Property watch : TWatchSettings Index 24 Read Fwatch Write Setwatch;
  1026. end;
  1027. TChannelBrandingSettingsClass = Class of TChannelBrandingSettings;
  1028. { --------------------------------------------------------------------
  1029. TChannelContentDetailsTyperelatedPlaylists
  1030. --------------------------------------------------------------------}
  1031. TChannelContentDetailsTyperelatedPlaylists = Class(TGoogleBaseObject)
  1032. Private
  1033. Ffavorites : String;
  1034. Flikes : String;
  1035. Fuploads : String;
  1036. FwatchHistory : String;
  1037. FwatchLater : String;
  1038. Protected
  1039. //Property setters
  1040. Procedure Setfavorites(AIndex : Integer; const AValue : String); virtual;
  1041. Procedure Setlikes(AIndex : Integer; const AValue : String); virtual;
  1042. Procedure Setuploads(AIndex : Integer; const AValue : String); virtual;
  1043. Procedure SetwatchHistory(AIndex : Integer; const AValue : String); virtual;
  1044. Procedure SetwatchLater(AIndex : Integer; const AValue : String); virtual;
  1045. Public
  1046. Published
  1047. Property favorites : String Index 0 Read Ffavorites Write Setfavorites;
  1048. Property likes : String Index 8 Read Flikes Write Setlikes;
  1049. Property uploads : String Index 16 Read Fuploads Write Setuploads;
  1050. Property watchHistory : String Index 24 Read FwatchHistory Write SetwatchHistory;
  1051. Property watchLater : String Index 32 Read FwatchLater Write SetwatchLater;
  1052. end;
  1053. TChannelContentDetailsTyperelatedPlaylistsClass = Class of TChannelContentDetailsTyperelatedPlaylists;
  1054. { --------------------------------------------------------------------
  1055. TChannelContentDetails
  1056. --------------------------------------------------------------------}
  1057. TChannelContentDetails = Class(TGoogleBaseObject)
  1058. Private
  1059. FgooglePlusUserId : String;
  1060. FrelatedPlaylists : TChannelContentDetailsTyperelatedPlaylists;
  1061. Protected
  1062. //Property setters
  1063. Procedure SetgooglePlusUserId(AIndex : Integer; const AValue : String); virtual;
  1064. Procedure SetrelatedPlaylists(AIndex : Integer; const AValue : TChannelContentDetailsTyperelatedPlaylists); virtual;
  1065. Public
  1066. Published
  1067. Property googlePlusUserId : String Index 0 Read FgooglePlusUserId Write SetgooglePlusUserId;
  1068. Property relatedPlaylists : TChannelContentDetailsTyperelatedPlaylists Index 8 Read FrelatedPlaylists Write SetrelatedPlaylists;
  1069. end;
  1070. TChannelContentDetailsClass = Class of TChannelContentDetails;
  1071. { --------------------------------------------------------------------
  1072. TChannelContentOwnerDetails
  1073. --------------------------------------------------------------------}
  1074. TChannelContentOwnerDetails = Class(TGoogleBaseObject)
  1075. Private
  1076. FcontentOwner : String;
  1077. FtimeLinked : TDatetime;
  1078. Protected
  1079. //Property setters
  1080. Procedure SetcontentOwner(AIndex : Integer; const AValue : String); virtual;
  1081. Procedure SettimeLinked(AIndex : Integer; const AValue : TDatetime); virtual;
  1082. Public
  1083. Published
  1084. Property contentOwner : String Index 0 Read FcontentOwner Write SetcontentOwner;
  1085. Property timeLinked : TDatetime Index 8 Read FtimeLinked Write SettimeLinked;
  1086. end;
  1087. TChannelContentOwnerDetailsClass = Class of TChannelContentOwnerDetails;
  1088. { --------------------------------------------------------------------
  1089. TChannelConversionPing
  1090. --------------------------------------------------------------------}
  1091. TChannelConversionPing = Class(TGoogleBaseObject)
  1092. Private
  1093. Fcontext : String;
  1094. FconversionUrl : String;
  1095. Protected
  1096. //Property setters
  1097. Procedure Setcontext(AIndex : Integer; const AValue : String); virtual;
  1098. Procedure SetconversionUrl(AIndex : Integer; const AValue : String); virtual;
  1099. Public
  1100. Published
  1101. Property context : String Index 0 Read Fcontext Write Setcontext;
  1102. Property conversionUrl : String Index 8 Read FconversionUrl Write SetconversionUrl;
  1103. end;
  1104. TChannelConversionPingClass = Class of TChannelConversionPing;
  1105. { --------------------------------------------------------------------
  1106. TChannelConversionPings
  1107. --------------------------------------------------------------------}
  1108. TChannelConversionPings = Class(TGoogleBaseObject)
  1109. Private
  1110. Fpings : TChannelConversionPingsTypepingsArray;
  1111. Protected
  1112. //Property setters
  1113. Procedure Setpings(AIndex : Integer; const AValue : TChannelConversionPingsTypepingsArray); virtual;
  1114. //2.6.4. bug workaround
  1115. {$IFDEF VER2_6}
  1116. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1117. {$ENDIF VER2_6}
  1118. Public
  1119. Published
  1120. Property pings : TChannelConversionPingsTypepingsArray Index 0 Read Fpings Write Setpings;
  1121. end;
  1122. TChannelConversionPingsClass = Class of TChannelConversionPings;
  1123. { --------------------------------------------------------------------
  1124. TChannelListResponse
  1125. --------------------------------------------------------------------}
  1126. TChannelListResponse = Class(TGoogleBaseObject)
  1127. Private
  1128. Fetag : String;
  1129. FeventId : String;
  1130. Fitems : TChannelListResponseTypeitemsArray;
  1131. Fkind : String;
  1132. FnextPageToken : String;
  1133. FpageInfo : TPageInfo;
  1134. FprevPageToken : String;
  1135. FtokenPagination : TTokenPagination;
  1136. FvisitorId : String;
  1137. Protected
  1138. //Property setters
  1139. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1140. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  1141. Procedure Setitems(AIndex : Integer; const AValue : TChannelListResponseTypeitemsArray); virtual;
  1142. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1143. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1144. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  1145. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  1146. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  1147. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  1148. //2.6.4. bug workaround
  1149. {$IFDEF VER2_6}
  1150. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1151. {$ENDIF VER2_6}
  1152. Public
  1153. Published
  1154. Property etag : String Index 0 Read Fetag Write Setetag;
  1155. Property eventId : String Index 8 Read FeventId Write SeteventId;
  1156. Property items : TChannelListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  1157. Property kind : String Index 24 Read Fkind Write Setkind;
  1158. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  1159. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  1160. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  1161. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  1162. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  1163. end;
  1164. TChannelListResponseClass = Class of TChannelListResponse;
  1165. { --------------------------------------------------------------------
  1166. TChannelLocalization
  1167. --------------------------------------------------------------------}
  1168. TChannelLocalization = Class(TGoogleBaseObject)
  1169. Private
  1170. Fdescription : String;
  1171. Ftitle : String;
  1172. Protected
  1173. //Property setters
  1174. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1175. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1176. Public
  1177. Published
  1178. Property description : String Index 0 Read Fdescription Write Setdescription;
  1179. Property title : String Index 8 Read Ftitle Write Settitle;
  1180. end;
  1181. TChannelLocalizationClass = Class of TChannelLocalization;
  1182. { --------------------------------------------------------------------
  1183. TChannelProfileDetails
  1184. --------------------------------------------------------------------}
  1185. TChannelProfileDetails = Class(TGoogleBaseObject)
  1186. Private
  1187. FchannelId : String;
  1188. FchannelUrl : String;
  1189. FdisplayName : String;
  1190. FprofileImageUrl : String;
  1191. Protected
  1192. //Property setters
  1193. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  1194. Procedure SetchannelUrl(AIndex : Integer; const AValue : String); virtual;
  1195. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  1196. Procedure SetprofileImageUrl(AIndex : Integer; const AValue : String); virtual;
  1197. Public
  1198. Published
  1199. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  1200. Property channelUrl : String Index 8 Read FchannelUrl Write SetchannelUrl;
  1201. Property displayName : String Index 16 Read FdisplayName Write SetdisplayName;
  1202. Property profileImageUrl : String Index 24 Read FprofileImageUrl Write SetprofileImageUrl;
  1203. end;
  1204. TChannelProfileDetailsClass = Class of TChannelProfileDetails;
  1205. { --------------------------------------------------------------------
  1206. TChannelSectionTypelocalizations
  1207. --------------------------------------------------------------------}
  1208. TChannelSectionTypelocalizations = Class(TGoogleBaseObject)
  1209. Private
  1210. Protected
  1211. //Property setters
  1212. Public
  1213. Class Function AllowAdditionalProperties : Boolean; override;
  1214. Published
  1215. end;
  1216. TChannelSectionTypelocalizationsClass = Class of TChannelSectionTypelocalizations;
  1217. { --------------------------------------------------------------------
  1218. TChannelSection
  1219. --------------------------------------------------------------------}
  1220. TChannelSection = Class(TGoogleBaseObject)
  1221. Private
  1222. FcontentDetails : TChannelSectionContentDetails;
  1223. Fetag : String;
  1224. Fid : String;
  1225. Fkind : String;
  1226. Flocalizations : TChannelSectionTypelocalizations;
  1227. Fsnippet : TChannelSectionSnippet;
  1228. Ftargeting : TChannelSectionTargeting;
  1229. Protected
  1230. //Property setters
  1231. Procedure SetcontentDetails(AIndex : Integer; const AValue : TChannelSectionContentDetails); virtual;
  1232. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1233. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1234. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1235. Procedure Setlocalizations(AIndex : Integer; const AValue : TChannelSectionTypelocalizations); virtual;
  1236. Procedure Setsnippet(AIndex : Integer; const AValue : TChannelSectionSnippet); virtual;
  1237. Procedure Settargeting(AIndex : Integer; const AValue : TChannelSectionTargeting); virtual;
  1238. Public
  1239. Published
  1240. Property contentDetails : TChannelSectionContentDetails Index 0 Read FcontentDetails Write SetcontentDetails;
  1241. Property etag : String Index 8 Read Fetag Write Setetag;
  1242. Property id : String Index 16 Read Fid Write Setid;
  1243. Property kind : String Index 24 Read Fkind Write Setkind;
  1244. Property localizations : TChannelSectionTypelocalizations Index 32 Read Flocalizations Write Setlocalizations;
  1245. Property snippet : TChannelSectionSnippet Index 40 Read Fsnippet Write Setsnippet;
  1246. Property targeting : TChannelSectionTargeting Index 48 Read Ftargeting Write Settargeting;
  1247. end;
  1248. TChannelSectionClass = Class of TChannelSection;
  1249. { --------------------------------------------------------------------
  1250. TChannelSectionContentDetails
  1251. --------------------------------------------------------------------}
  1252. TChannelSectionContentDetails = Class(TGoogleBaseObject)
  1253. Private
  1254. Fchannels : TStringArray;
  1255. Fplaylists : TStringArray;
  1256. Protected
  1257. //Property setters
  1258. Procedure Setchannels(AIndex : Integer; const AValue : TStringArray); virtual;
  1259. Procedure Setplaylists(AIndex : Integer; const AValue : TStringArray); virtual;
  1260. //2.6.4. bug workaround
  1261. {$IFDEF VER2_6}
  1262. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1263. {$ENDIF VER2_6}
  1264. Public
  1265. Published
  1266. Property channels : TStringArray Index 0 Read Fchannels Write Setchannels;
  1267. Property playlists : TStringArray Index 8 Read Fplaylists Write Setplaylists;
  1268. end;
  1269. TChannelSectionContentDetailsClass = Class of TChannelSectionContentDetails;
  1270. { --------------------------------------------------------------------
  1271. TChannelSectionListResponse
  1272. --------------------------------------------------------------------}
  1273. TChannelSectionListResponse = Class(TGoogleBaseObject)
  1274. Private
  1275. Fetag : String;
  1276. FeventId : String;
  1277. Fitems : TChannelSectionListResponseTypeitemsArray;
  1278. Fkind : String;
  1279. FvisitorId : String;
  1280. Protected
  1281. //Property setters
  1282. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1283. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  1284. Procedure Setitems(AIndex : Integer; const AValue : TChannelSectionListResponseTypeitemsArray); virtual;
  1285. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1286. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  1287. //2.6.4. bug workaround
  1288. {$IFDEF VER2_6}
  1289. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1290. {$ENDIF VER2_6}
  1291. Public
  1292. Published
  1293. Property etag : String Index 0 Read Fetag Write Setetag;
  1294. Property eventId : String Index 8 Read FeventId Write SeteventId;
  1295. Property items : TChannelSectionListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  1296. Property kind : String Index 24 Read Fkind Write Setkind;
  1297. Property visitorId : String Index 32 Read FvisitorId Write SetvisitorId;
  1298. end;
  1299. TChannelSectionListResponseClass = Class of TChannelSectionListResponse;
  1300. { --------------------------------------------------------------------
  1301. TChannelSectionLocalization
  1302. --------------------------------------------------------------------}
  1303. TChannelSectionLocalization = Class(TGoogleBaseObject)
  1304. Private
  1305. Ftitle : String;
  1306. Protected
  1307. //Property setters
  1308. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1309. Public
  1310. Published
  1311. Property title : String Index 0 Read Ftitle Write Settitle;
  1312. end;
  1313. TChannelSectionLocalizationClass = Class of TChannelSectionLocalization;
  1314. { --------------------------------------------------------------------
  1315. TChannelSectionSnippet
  1316. --------------------------------------------------------------------}
  1317. TChannelSectionSnippet = Class(TGoogleBaseObject)
  1318. Private
  1319. FchannelId : String;
  1320. FdefaultLanguage : String;
  1321. Flocalized : TChannelSectionLocalization;
  1322. Fposition : integer;
  1323. Fstyle : String;
  1324. Ftitle : String;
  1325. F_type : String;
  1326. Protected
  1327. Class Function ExportPropertyName(Const AName : String) : string; override;
  1328. //Property setters
  1329. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  1330. Procedure SetdefaultLanguage(AIndex : Integer; const AValue : String); virtual;
  1331. Procedure Setlocalized(AIndex : Integer; const AValue : TChannelSectionLocalization); virtual;
  1332. Procedure Setposition(AIndex : Integer; const AValue : integer); virtual;
  1333. Procedure Setstyle(AIndex : Integer; const AValue : String); virtual;
  1334. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1335. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1336. Public
  1337. Published
  1338. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  1339. Property defaultLanguage : String Index 8 Read FdefaultLanguage Write SetdefaultLanguage;
  1340. Property localized : TChannelSectionLocalization Index 16 Read Flocalized Write Setlocalized;
  1341. Property position : integer Index 24 Read Fposition Write Setposition;
  1342. Property style : String Index 32 Read Fstyle Write Setstyle;
  1343. Property title : String Index 40 Read Ftitle Write Settitle;
  1344. Property _type : String Index 48 Read F_type Write Set_type;
  1345. end;
  1346. TChannelSectionSnippetClass = Class of TChannelSectionSnippet;
  1347. { --------------------------------------------------------------------
  1348. TChannelSectionTargeting
  1349. --------------------------------------------------------------------}
  1350. TChannelSectionTargeting = Class(TGoogleBaseObject)
  1351. Private
  1352. Fcountries : TStringArray;
  1353. Flanguages : TStringArray;
  1354. Fregions : TStringArray;
  1355. Protected
  1356. //Property setters
  1357. Procedure Setcountries(AIndex : Integer; const AValue : TStringArray); virtual;
  1358. Procedure Setlanguages(AIndex : Integer; const AValue : TStringArray); virtual;
  1359. Procedure Setregions(AIndex : Integer; const AValue : TStringArray); virtual;
  1360. //2.6.4. bug workaround
  1361. {$IFDEF VER2_6}
  1362. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1363. {$ENDIF VER2_6}
  1364. Public
  1365. Published
  1366. Property countries : TStringArray Index 0 Read Fcountries Write Setcountries;
  1367. Property languages : TStringArray Index 8 Read Flanguages Write Setlanguages;
  1368. Property regions : TStringArray Index 16 Read Fregions Write Setregions;
  1369. end;
  1370. TChannelSectionTargetingClass = Class of TChannelSectionTargeting;
  1371. { --------------------------------------------------------------------
  1372. TChannelSettings
  1373. --------------------------------------------------------------------}
  1374. TChannelSettings = Class(TGoogleBaseObject)
  1375. Private
  1376. Fcountry : String;
  1377. FdefaultLanguage : String;
  1378. FdefaultTab : String;
  1379. Fdescription : String;
  1380. FfeaturedChannelsTitle : String;
  1381. FfeaturedChannelsUrls : TStringArray;
  1382. Fkeywords : String;
  1383. FmoderateComments : boolean;
  1384. FprofileColor : String;
  1385. FshowBrowseView : boolean;
  1386. FshowRelatedChannels : boolean;
  1387. Ftitle : String;
  1388. FtrackingAnalyticsAccountId : String;
  1389. FunsubscribedTrailer : String;
  1390. Protected
  1391. //Property setters
  1392. Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
  1393. Procedure SetdefaultLanguage(AIndex : Integer; const AValue : String); virtual;
  1394. Procedure SetdefaultTab(AIndex : Integer; const AValue : String); virtual;
  1395. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1396. Procedure SetfeaturedChannelsTitle(AIndex : Integer; const AValue : String); virtual;
  1397. Procedure SetfeaturedChannelsUrls(AIndex : Integer; const AValue : TStringArray); virtual;
  1398. Procedure Setkeywords(AIndex : Integer; const AValue : String); virtual;
  1399. Procedure SetmoderateComments(AIndex : Integer; const AValue : boolean); virtual;
  1400. Procedure SetprofileColor(AIndex : Integer; const AValue : String); virtual;
  1401. Procedure SetshowBrowseView(AIndex : Integer; const AValue : boolean); virtual;
  1402. Procedure SetshowRelatedChannels(AIndex : Integer; const AValue : boolean); virtual;
  1403. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1404. Procedure SettrackingAnalyticsAccountId(AIndex : Integer; const AValue : String); virtual;
  1405. Procedure SetunsubscribedTrailer(AIndex : Integer; const AValue : String); virtual;
  1406. //2.6.4. bug workaround
  1407. {$IFDEF VER2_6}
  1408. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1409. {$ENDIF VER2_6}
  1410. Public
  1411. Published
  1412. Property country : String Index 0 Read Fcountry Write Setcountry;
  1413. Property defaultLanguage : String Index 8 Read FdefaultLanguage Write SetdefaultLanguage;
  1414. Property defaultTab : String Index 16 Read FdefaultTab Write SetdefaultTab;
  1415. Property description : String Index 24 Read Fdescription Write Setdescription;
  1416. Property featuredChannelsTitle : String Index 32 Read FfeaturedChannelsTitle Write SetfeaturedChannelsTitle;
  1417. Property featuredChannelsUrls : TStringArray Index 40 Read FfeaturedChannelsUrls Write SetfeaturedChannelsUrls;
  1418. Property keywords : String Index 48 Read Fkeywords Write Setkeywords;
  1419. Property moderateComments : boolean Index 56 Read FmoderateComments Write SetmoderateComments;
  1420. Property profileColor : String Index 64 Read FprofileColor Write SetprofileColor;
  1421. Property showBrowseView : boolean Index 72 Read FshowBrowseView Write SetshowBrowseView;
  1422. Property showRelatedChannels : boolean Index 80 Read FshowRelatedChannels Write SetshowRelatedChannels;
  1423. Property title : String Index 88 Read Ftitle Write Settitle;
  1424. Property trackingAnalyticsAccountId : String Index 96 Read FtrackingAnalyticsAccountId Write SettrackingAnalyticsAccountId;
  1425. Property unsubscribedTrailer : String Index 104 Read FunsubscribedTrailer Write SetunsubscribedTrailer;
  1426. end;
  1427. TChannelSettingsClass = Class of TChannelSettings;
  1428. { --------------------------------------------------------------------
  1429. TChannelSnippet
  1430. --------------------------------------------------------------------}
  1431. TChannelSnippet = Class(TGoogleBaseObject)
  1432. Private
  1433. Fcountry : String;
  1434. FcustomUrl : String;
  1435. FdefaultLanguage : String;
  1436. Fdescription : String;
  1437. Flocalized : TChannelLocalization;
  1438. FpublishedAt : TDatetime;
  1439. Fthumbnails : TThumbnailDetails;
  1440. Ftitle : String;
  1441. Protected
  1442. //Property setters
  1443. Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
  1444. Procedure SetcustomUrl(AIndex : Integer; const AValue : String); virtual;
  1445. Procedure SetdefaultLanguage(AIndex : Integer; const AValue : String); virtual;
  1446. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1447. Procedure Setlocalized(AIndex : Integer; const AValue : TChannelLocalization); virtual;
  1448. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  1449. Procedure Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails); virtual;
  1450. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1451. Public
  1452. Published
  1453. Property country : String Index 0 Read Fcountry Write Setcountry;
  1454. Property customUrl : String Index 8 Read FcustomUrl Write SetcustomUrl;
  1455. Property defaultLanguage : String Index 16 Read FdefaultLanguage Write SetdefaultLanguage;
  1456. Property description : String Index 24 Read Fdescription Write Setdescription;
  1457. Property localized : TChannelLocalization Index 32 Read Flocalized Write Setlocalized;
  1458. Property publishedAt : TDatetime Index 40 Read FpublishedAt Write SetpublishedAt;
  1459. Property thumbnails : TThumbnailDetails Index 48 Read Fthumbnails Write Setthumbnails;
  1460. Property title : String Index 56 Read Ftitle Write Settitle;
  1461. end;
  1462. TChannelSnippetClass = Class of TChannelSnippet;
  1463. { --------------------------------------------------------------------
  1464. TChannelStatistics
  1465. --------------------------------------------------------------------}
  1466. TChannelStatistics = Class(TGoogleBaseObject)
  1467. Private
  1468. FcommentCount : String;
  1469. FhiddenSubscriberCount : boolean;
  1470. FsubscriberCount : String;
  1471. FvideoCount : String;
  1472. FviewCount : String;
  1473. Protected
  1474. //Property setters
  1475. Procedure SetcommentCount(AIndex : Integer; const AValue : String); virtual;
  1476. Procedure SethiddenSubscriberCount(AIndex : Integer; const AValue : boolean); virtual;
  1477. Procedure SetsubscriberCount(AIndex : Integer; const AValue : String); virtual;
  1478. Procedure SetvideoCount(AIndex : Integer; const AValue : String); virtual;
  1479. Procedure SetviewCount(AIndex : Integer; const AValue : String); virtual;
  1480. Public
  1481. Published
  1482. Property commentCount : String Index 0 Read FcommentCount Write SetcommentCount;
  1483. Property hiddenSubscriberCount : boolean Index 8 Read FhiddenSubscriberCount Write SethiddenSubscriberCount;
  1484. Property subscriberCount : String Index 16 Read FsubscriberCount Write SetsubscriberCount;
  1485. Property videoCount : String Index 24 Read FvideoCount Write SetvideoCount;
  1486. Property viewCount : String Index 32 Read FviewCount Write SetviewCount;
  1487. end;
  1488. TChannelStatisticsClass = Class of TChannelStatistics;
  1489. { --------------------------------------------------------------------
  1490. TChannelStatus
  1491. --------------------------------------------------------------------}
  1492. TChannelStatus = Class(TGoogleBaseObject)
  1493. Private
  1494. FisLinked : boolean;
  1495. FlongUploadsStatus : String;
  1496. FprivacyStatus : String;
  1497. Protected
  1498. //Property setters
  1499. Procedure SetisLinked(AIndex : Integer; const AValue : boolean); virtual;
  1500. Procedure SetlongUploadsStatus(AIndex : Integer; const AValue : String); virtual;
  1501. Procedure SetprivacyStatus(AIndex : Integer; const AValue : String); virtual;
  1502. Public
  1503. Published
  1504. Property isLinked : boolean Index 0 Read FisLinked Write SetisLinked;
  1505. Property longUploadsStatus : String Index 8 Read FlongUploadsStatus Write SetlongUploadsStatus;
  1506. Property privacyStatus : String Index 16 Read FprivacyStatus Write SetprivacyStatus;
  1507. end;
  1508. TChannelStatusClass = Class of TChannelStatus;
  1509. { --------------------------------------------------------------------
  1510. TChannelTopicDetails
  1511. --------------------------------------------------------------------}
  1512. TChannelTopicDetails = Class(TGoogleBaseObject)
  1513. Private
  1514. FtopicIds : TStringArray;
  1515. Protected
  1516. //Property setters
  1517. Procedure SettopicIds(AIndex : Integer; const AValue : TStringArray); virtual;
  1518. //2.6.4. bug workaround
  1519. {$IFDEF VER2_6}
  1520. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1521. {$ENDIF VER2_6}
  1522. Public
  1523. Published
  1524. Property topicIds : TStringArray Index 0 Read FtopicIds Write SettopicIds;
  1525. end;
  1526. TChannelTopicDetailsClass = Class of TChannelTopicDetails;
  1527. { --------------------------------------------------------------------
  1528. TComment
  1529. --------------------------------------------------------------------}
  1530. TComment = Class(TGoogleBaseObject)
  1531. Private
  1532. Fetag : String;
  1533. Fid : String;
  1534. Fkind : String;
  1535. Fsnippet : TCommentSnippet;
  1536. Protected
  1537. //Property setters
  1538. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1539. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1540. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1541. Procedure Setsnippet(AIndex : Integer; const AValue : TCommentSnippet); virtual;
  1542. Public
  1543. Published
  1544. Property etag : String Index 0 Read Fetag Write Setetag;
  1545. Property id : String Index 8 Read Fid Write Setid;
  1546. Property kind : String Index 16 Read Fkind Write Setkind;
  1547. Property snippet : TCommentSnippet Index 24 Read Fsnippet Write Setsnippet;
  1548. end;
  1549. TCommentClass = Class of TComment;
  1550. { --------------------------------------------------------------------
  1551. TCommentListResponse
  1552. --------------------------------------------------------------------}
  1553. TCommentListResponse = Class(TGoogleBaseObject)
  1554. Private
  1555. Fetag : String;
  1556. FeventId : String;
  1557. Fitems : TCommentListResponseTypeitemsArray;
  1558. Fkind : String;
  1559. FnextPageToken : String;
  1560. FpageInfo : TPageInfo;
  1561. FtokenPagination : TTokenPagination;
  1562. FvisitorId : String;
  1563. Protected
  1564. //Property setters
  1565. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1566. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  1567. Procedure Setitems(AIndex : Integer; const AValue : TCommentListResponseTypeitemsArray); virtual;
  1568. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1569. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1570. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  1571. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  1572. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  1573. //2.6.4. bug workaround
  1574. {$IFDEF VER2_6}
  1575. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1576. {$ENDIF VER2_6}
  1577. Public
  1578. Published
  1579. Property etag : String Index 0 Read Fetag Write Setetag;
  1580. Property eventId : String Index 8 Read FeventId Write SeteventId;
  1581. Property items : TCommentListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  1582. Property kind : String Index 24 Read Fkind Write Setkind;
  1583. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  1584. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  1585. Property tokenPagination : TTokenPagination Index 48 Read FtokenPagination Write SettokenPagination;
  1586. Property visitorId : String Index 56 Read FvisitorId Write SetvisitorId;
  1587. end;
  1588. TCommentListResponseClass = Class of TCommentListResponse;
  1589. { --------------------------------------------------------------------
  1590. TCommentSnippet
  1591. --------------------------------------------------------------------}
  1592. TCommentSnippet = Class(TGoogleBaseObject)
  1593. Private
  1594. FauthorChannelId : TJSONSchema;
  1595. FauthorChannelUrl : String;
  1596. FauthorDisplayName : String;
  1597. FauthorGoogleplusProfileUrl : String;
  1598. FauthorProfileImageUrl : String;
  1599. FcanRate : boolean;
  1600. FchannelId : String;
  1601. FlikeCount : integer;
  1602. FmoderationStatus : String;
  1603. FparentId : String;
  1604. FpublishedAt : TDatetime;
  1605. FtextDisplay : String;
  1606. FtextOriginal : String;
  1607. FupdatedAt : TDatetime;
  1608. FvideoId : String;
  1609. FviewerRating : String;
  1610. Protected
  1611. //Property setters
  1612. Procedure SetauthorChannelId(AIndex : Integer; const AValue : TJSONSchema); virtual;
  1613. Procedure SetauthorChannelUrl(AIndex : Integer; const AValue : String); virtual;
  1614. Procedure SetauthorDisplayName(AIndex : Integer; const AValue : String); virtual;
  1615. Procedure SetauthorGoogleplusProfileUrl(AIndex : Integer; const AValue : String); virtual;
  1616. Procedure SetauthorProfileImageUrl(AIndex : Integer; const AValue : String); virtual;
  1617. Procedure SetcanRate(AIndex : Integer; const AValue : boolean); virtual;
  1618. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  1619. Procedure SetlikeCount(AIndex : Integer; const AValue : integer); virtual;
  1620. Procedure SetmoderationStatus(AIndex : Integer; const AValue : String); virtual;
  1621. Procedure SetparentId(AIndex : Integer; const AValue : String); virtual;
  1622. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  1623. Procedure SettextDisplay(AIndex : Integer; const AValue : String); virtual;
  1624. Procedure SettextOriginal(AIndex : Integer; const AValue : String); virtual;
  1625. Procedure SetupdatedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  1626. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  1627. Procedure SetviewerRating(AIndex : Integer; const AValue : String); virtual;
  1628. Public
  1629. Published
  1630. Property authorChannelId : TJSONSchema Index 0 Read FauthorChannelId Write SetauthorChannelId;
  1631. Property authorChannelUrl : String Index 8 Read FauthorChannelUrl Write SetauthorChannelUrl;
  1632. Property authorDisplayName : String Index 16 Read FauthorDisplayName Write SetauthorDisplayName;
  1633. Property authorGoogleplusProfileUrl : String Index 24 Read FauthorGoogleplusProfileUrl Write SetauthorGoogleplusProfileUrl;
  1634. Property authorProfileImageUrl : String Index 32 Read FauthorProfileImageUrl Write SetauthorProfileImageUrl;
  1635. Property canRate : boolean Index 40 Read FcanRate Write SetcanRate;
  1636. Property channelId : String Index 48 Read FchannelId Write SetchannelId;
  1637. Property likeCount : integer Index 56 Read FlikeCount Write SetlikeCount;
  1638. Property moderationStatus : String Index 64 Read FmoderationStatus Write SetmoderationStatus;
  1639. Property parentId : String Index 72 Read FparentId Write SetparentId;
  1640. Property publishedAt : TDatetime Index 80 Read FpublishedAt Write SetpublishedAt;
  1641. Property textDisplay : String Index 88 Read FtextDisplay Write SettextDisplay;
  1642. Property textOriginal : String Index 96 Read FtextOriginal Write SettextOriginal;
  1643. Property updatedAt : TDatetime Index 104 Read FupdatedAt Write SetupdatedAt;
  1644. Property videoId : String Index 112 Read FvideoId Write SetvideoId;
  1645. Property viewerRating : String Index 120 Read FviewerRating Write SetviewerRating;
  1646. end;
  1647. TCommentSnippetClass = Class of TCommentSnippet;
  1648. { --------------------------------------------------------------------
  1649. TCommentThread
  1650. --------------------------------------------------------------------}
  1651. TCommentThread = Class(TGoogleBaseObject)
  1652. Private
  1653. Fetag : String;
  1654. Fid : String;
  1655. Fkind : String;
  1656. Freplies : TCommentThreadReplies;
  1657. Fsnippet : TCommentThreadSnippet;
  1658. Protected
  1659. //Property setters
  1660. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1661. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1662. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1663. Procedure Setreplies(AIndex : Integer; const AValue : TCommentThreadReplies); virtual;
  1664. Procedure Setsnippet(AIndex : Integer; const AValue : TCommentThreadSnippet); virtual;
  1665. Public
  1666. Published
  1667. Property etag : String Index 0 Read Fetag Write Setetag;
  1668. Property id : String Index 8 Read Fid Write Setid;
  1669. Property kind : String Index 16 Read Fkind Write Setkind;
  1670. Property replies : TCommentThreadReplies Index 24 Read Freplies Write Setreplies;
  1671. Property snippet : TCommentThreadSnippet Index 32 Read Fsnippet Write Setsnippet;
  1672. end;
  1673. TCommentThreadClass = Class of TCommentThread;
  1674. { --------------------------------------------------------------------
  1675. TCommentThreadListResponse
  1676. --------------------------------------------------------------------}
  1677. TCommentThreadListResponse = Class(TGoogleBaseObject)
  1678. Private
  1679. Fetag : String;
  1680. FeventId : String;
  1681. Fitems : TCommentThreadListResponseTypeitemsArray;
  1682. Fkind : String;
  1683. FnextPageToken : String;
  1684. FpageInfo : TPageInfo;
  1685. FtokenPagination : TTokenPagination;
  1686. FvisitorId : String;
  1687. Protected
  1688. //Property setters
  1689. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1690. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  1691. Procedure Setitems(AIndex : Integer; const AValue : TCommentThreadListResponseTypeitemsArray); virtual;
  1692. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1693. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1694. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  1695. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  1696. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  1697. //2.6.4. bug workaround
  1698. {$IFDEF VER2_6}
  1699. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1700. {$ENDIF VER2_6}
  1701. Public
  1702. Published
  1703. Property etag : String Index 0 Read Fetag Write Setetag;
  1704. Property eventId : String Index 8 Read FeventId Write SeteventId;
  1705. Property items : TCommentThreadListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  1706. Property kind : String Index 24 Read Fkind Write Setkind;
  1707. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  1708. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  1709. Property tokenPagination : TTokenPagination Index 48 Read FtokenPagination Write SettokenPagination;
  1710. Property visitorId : String Index 56 Read FvisitorId Write SetvisitorId;
  1711. end;
  1712. TCommentThreadListResponseClass = Class of TCommentThreadListResponse;
  1713. { --------------------------------------------------------------------
  1714. TCommentThreadReplies
  1715. --------------------------------------------------------------------}
  1716. TCommentThreadReplies = Class(TGoogleBaseObject)
  1717. Private
  1718. Fcomments : TCommentThreadRepliesTypecommentsArray;
  1719. Protected
  1720. //Property setters
  1721. Procedure Setcomments(AIndex : Integer; const AValue : TCommentThreadRepliesTypecommentsArray); virtual;
  1722. //2.6.4. bug workaround
  1723. {$IFDEF VER2_6}
  1724. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1725. {$ENDIF VER2_6}
  1726. Public
  1727. Published
  1728. Property comments : TCommentThreadRepliesTypecommentsArray Index 0 Read Fcomments Write Setcomments;
  1729. end;
  1730. TCommentThreadRepliesClass = Class of TCommentThreadReplies;
  1731. { --------------------------------------------------------------------
  1732. TCommentThreadSnippet
  1733. --------------------------------------------------------------------}
  1734. TCommentThreadSnippet = Class(TGoogleBaseObject)
  1735. Private
  1736. FcanReply : boolean;
  1737. FchannelId : String;
  1738. FisPublic : boolean;
  1739. FtopLevelComment : TComment;
  1740. FtotalReplyCount : integer;
  1741. FvideoId : String;
  1742. Protected
  1743. //Property setters
  1744. Procedure SetcanReply(AIndex : Integer; const AValue : boolean); virtual;
  1745. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  1746. Procedure SetisPublic(AIndex : Integer; const AValue : boolean); virtual;
  1747. Procedure SettopLevelComment(AIndex : Integer; const AValue : TComment); virtual;
  1748. Procedure SettotalReplyCount(AIndex : Integer; const AValue : integer); virtual;
  1749. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  1750. Public
  1751. Published
  1752. Property canReply : boolean Index 0 Read FcanReply Write SetcanReply;
  1753. Property channelId : String Index 8 Read FchannelId Write SetchannelId;
  1754. Property isPublic : boolean Index 16 Read FisPublic Write SetisPublic;
  1755. Property topLevelComment : TComment Index 24 Read FtopLevelComment Write SettopLevelComment;
  1756. Property totalReplyCount : integer Index 32 Read FtotalReplyCount Write SettotalReplyCount;
  1757. Property videoId : String Index 40 Read FvideoId Write SetvideoId;
  1758. end;
  1759. TCommentThreadSnippetClass = Class of TCommentThreadSnippet;
  1760. { --------------------------------------------------------------------
  1761. TContentRating
  1762. --------------------------------------------------------------------}
  1763. TContentRating = Class(TGoogleBaseObject)
  1764. Private
  1765. FacbRating : String;
  1766. FagcomRating : String;
  1767. FanatelRating : String;
  1768. FbbfcRating : String;
  1769. FbfvcRating : String;
  1770. FbmukkRating : String;
  1771. FcatvRating : String;
  1772. FcatvfrRating : String;
  1773. FcbfcRating : String;
  1774. FcccRating : String;
  1775. FcceRating : String;
  1776. FchfilmRating : String;
  1777. FchvrsRating : String;
  1778. FcicfRating : String;
  1779. FcnaRating : String;
  1780. FcncRating : String;
  1781. FcsaRating : String;
  1782. FcscfRating : String;
  1783. FczfilmRating : String;
  1784. FdjctqRating : String;
  1785. FdjctqRatingReasons : TStringArray;
  1786. FecbmctRating : String;
  1787. FeefilmRating : String;
  1788. FegfilmRating : String;
  1789. FeirinRating : String;
  1790. FfcbmRating : String;
  1791. FfcoRating : String;
  1792. FfmocRating : String;
  1793. FfpbRating : String;
  1794. FfskRating : String;
  1795. FgrfilmRating : String;
  1796. FicaaRating : String;
  1797. FifcoRating : String;
  1798. FilfilmRating : String;
  1799. FincaaRating : String;
  1800. FkfcbRating : String;
  1801. FkijkwijzerRating : String;
  1802. FkmrbRating : String;
  1803. FlsfRating : String;
  1804. FmccaaRating : String;
  1805. FmccypRating : String;
  1806. FmdaRating : String;
  1807. FmedietilsynetRating : String;
  1808. FmekuRating : String;
  1809. FmibacRating : String;
  1810. F_mocRating : String;
  1811. FmoctwRating : String;
  1812. FmpaaRating : String;
  1813. FmtrcbRating : String;
  1814. FnbcRating : String;
  1815. FnbcplRating : String;
  1816. FnfrcRating : String;
  1817. FnfvcbRating : String;
  1818. FnkclvRating : String;
  1819. FoflcRating : String;
  1820. FpefilmRating : String;
  1821. FrcnofRating : String;
  1822. FresorteviolenciaRating : String;
  1823. FrtcRating : String;
  1824. FrteRating : String;
  1825. FrussiaRating : String;
  1826. FskfilmRating : String;
  1827. FsmaisRating : String;
  1828. FsmsaRating : String;
  1829. FtvpgRating : String;
  1830. FytRating : String;
  1831. Protected
  1832. Class Function ExportPropertyName(Const AName : String) : string; override;
  1833. //Property setters
  1834. Procedure SetacbRating(AIndex : Integer; const AValue : String); virtual;
  1835. Procedure SetagcomRating(AIndex : Integer; const AValue : String); virtual;
  1836. Procedure SetanatelRating(AIndex : Integer; const AValue : String); virtual;
  1837. Procedure SetbbfcRating(AIndex : Integer; const AValue : String); virtual;
  1838. Procedure SetbfvcRating(AIndex : Integer; const AValue : String); virtual;
  1839. Procedure SetbmukkRating(AIndex : Integer; const AValue : String); virtual;
  1840. Procedure SetcatvRating(AIndex : Integer; const AValue : String); virtual;
  1841. Procedure SetcatvfrRating(AIndex : Integer; const AValue : String); virtual;
  1842. Procedure SetcbfcRating(AIndex : Integer; const AValue : String); virtual;
  1843. Procedure SetcccRating(AIndex : Integer; const AValue : String); virtual;
  1844. Procedure SetcceRating(AIndex : Integer; const AValue : String); virtual;
  1845. Procedure SetchfilmRating(AIndex : Integer; const AValue : String); virtual;
  1846. Procedure SetchvrsRating(AIndex : Integer; const AValue : String); virtual;
  1847. Procedure SetcicfRating(AIndex : Integer; const AValue : String); virtual;
  1848. Procedure SetcnaRating(AIndex : Integer; const AValue : String); virtual;
  1849. Procedure SetcncRating(AIndex : Integer; const AValue : String); virtual;
  1850. Procedure SetcsaRating(AIndex : Integer; const AValue : String); virtual;
  1851. Procedure SetcscfRating(AIndex : Integer; const AValue : String); virtual;
  1852. Procedure SetczfilmRating(AIndex : Integer; const AValue : String); virtual;
  1853. Procedure SetdjctqRating(AIndex : Integer; const AValue : String); virtual;
  1854. Procedure SetdjctqRatingReasons(AIndex : Integer; const AValue : TStringArray); virtual;
  1855. Procedure SetecbmctRating(AIndex : Integer; const AValue : String); virtual;
  1856. Procedure SeteefilmRating(AIndex : Integer; const AValue : String); virtual;
  1857. Procedure SetegfilmRating(AIndex : Integer; const AValue : String); virtual;
  1858. Procedure SeteirinRating(AIndex : Integer; const AValue : String); virtual;
  1859. Procedure SetfcbmRating(AIndex : Integer; const AValue : String); virtual;
  1860. Procedure SetfcoRating(AIndex : Integer; const AValue : String); virtual;
  1861. Procedure SetfmocRating(AIndex : Integer; const AValue : String); virtual;
  1862. Procedure SetfpbRating(AIndex : Integer; const AValue : String); virtual;
  1863. Procedure SetfskRating(AIndex : Integer; const AValue : String); virtual;
  1864. Procedure SetgrfilmRating(AIndex : Integer; const AValue : String); virtual;
  1865. Procedure SeticaaRating(AIndex : Integer; const AValue : String); virtual;
  1866. Procedure SetifcoRating(AIndex : Integer; const AValue : String); virtual;
  1867. Procedure SetilfilmRating(AIndex : Integer; const AValue : String); virtual;
  1868. Procedure SetincaaRating(AIndex : Integer; const AValue : String); virtual;
  1869. Procedure SetkfcbRating(AIndex : Integer; const AValue : String); virtual;
  1870. Procedure SetkijkwijzerRating(AIndex : Integer; const AValue : String); virtual;
  1871. Procedure SetkmrbRating(AIndex : Integer; const AValue : String); virtual;
  1872. Procedure SetlsfRating(AIndex : Integer; const AValue : String); virtual;
  1873. Procedure SetmccaaRating(AIndex : Integer; const AValue : String); virtual;
  1874. Procedure SetmccypRating(AIndex : Integer; const AValue : String); virtual;
  1875. Procedure SetmdaRating(AIndex : Integer; const AValue : String); virtual;
  1876. Procedure SetmedietilsynetRating(AIndex : Integer; const AValue : String); virtual;
  1877. Procedure SetmekuRating(AIndex : Integer; const AValue : String); virtual;
  1878. Procedure SetmibacRating(AIndex : Integer; const AValue : String); virtual;
  1879. Procedure Set_mocRating(AIndex : Integer; const AValue : String); virtual;
  1880. Procedure SetmoctwRating(AIndex : Integer; const AValue : String); virtual;
  1881. Procedure SetmpaaRating(AIndex : Integer; const AValue : String); virtual;
  1882. Procedure SetmtrcbRating(AIndex : Integer; const AValue : String); virtual;
  1883. Procedure SetnbcRating(AIndex : Integer; const AValue : String); virtual;
  1884. Procedure SetnbcplRating(AIndex : Integer; const AValue : String); virtual;
  1885. Procedure SetnfrcRating(AIndex : Integer; const AValue : String); virtual;
  1886. Procedure SetnfvcbRating(AIndex : Integer; const AValue : String); virtual;
  1887. Procedure SetnkclvRating(AIndex : Integer; const AValue : String); virtual;
  1888. Procedure SetoflcRating(AIndex : Integer; const AValue : String); virtual;
  1889. Procedure SetpefilmRating(AIndex : Integer; const AValue : String); virtual;
  1890. Procedure SetrcnofRating(AIndex : Integer; const AValue : String); virtual;
  1891. Procedure SetresorteviolenciaRating(AIndex : Integer; const AValue : String); virtual;
  1892. Procedure SetrtcRating(AIndex : Integer; const AValue : String); virtual;
  1893. Procedure SetrteRating(AIndex : Integer; const AValue : String); virtual;
  1894. Procedure SetrussiaRating(AIndex : Integer; const AValue : String); virtual;
  1895. Procedure SetskfilmRating(AIndex : Integer; const AValue : String); virtual;
  1896. Procedure SetsmaisRating(AIndex : Integer; const AValue : String); virtual;
  1897. Procedure SetsmsaRating(AIndex : Integer; const AValue : String); virtual;
  1898. Procedure SettvpgRating(AIndex : Integer; const AValue : String); virtual;
  1899. Procedure SetytRating(AIndex : Integer; const AValue : String); virtual;
  1900. //2.6.4. bug workaround
  1901. {$IFDEF VER2_6}
  1902. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1903. {$ENDIF VER2_6}
  1904. Public
  1905. Published
  1906. Property acbRating : String Index 0 Read FacbRating Write SetacbRating;
  1907. Property agcomRating : String Index 8 Read FagcomRating Write SetagcomRating;
  1908. Property anatelRating : String Index 16 Read FanatelRating Write SetanatelRating;
  1909. Property bbfcRating : String Index 24 Read FbbfcRating Write SetbbfcRating;
  1910. Property bfvcRating : String Index 32 Read FbfvcRating Write SetbfvcRating;
  1911. Property bmukkRating : String Index 40 Read FbmukkRating Write SetbmukkRating;
  1912. Property catvRating : String Index 48 Read FcatvRating Write SetcatvRating;
  1913. Property catvfrRating : String Index 56 Read FcatvfrRating Write SetcatvfrRating;
  1914. Property cbfcRating : String Index 64 Read FcbfcRating Write SetcbfcRating;
  1915. Property cccRating : String Index 72 Read FcccRating Write SetcccRating;
  1916. Property cceRating : String Index 80 Read FcceRating Write SetcceRating;
  1917. Property chfilmRating : String Index 88 Read FchfilmRating Write SetchfilmRating;
  1918. Property chvrsRating : String Index 96 Read FchvrsRating Write SetchvrsRating;
  1919. Property cicfRating : String Index 104 Read FcicfRating Write SetcicfRating;
  1920. Property cnaRating : String Index 112 Read FcnaRating Write SetcnaRating;
  1921. Property cncRating : String Index 120 Read FcncRating Write SetcncRating;
  1922. Property csaRating : String Index 128 Read FcsaRating Write SetcsaRating;
  1923. Property cscfRating : String Index 136 Read FcscfRating Write SetcscfRating;
  1924. Property czfilmRating : String Index 144 Read FczfilmRating Write SetczfilmRating;
  1925. Property djctqRating : String Index 152 Read FdjctqRating Write SetdjctqRating;
  1926. Property djctqRatingReasons : TStringArray Index 160 Read FdjctqRatingReasons Write SetdjctqRatingReasons;
  1927. Property ecbmctRating : String Index 168 Read FecbmctRating Write SetecbmctRating;
  1928. Property eefilmRating : String Index 176 Read FeefilmRating Write SeteefilmRating;
  1929. Property egfilmRating : String Index 184 Read FegfilmRating Write SetegfilmRating;
  1930. Property eirinRating : String Index 192 Read FeirinRating Write SeteirinRating;
  1931. Property fcbmRating : String Index 200 Read FfcbmRating Write SetfcbmRating;
  1932. Property fcoRating : String Index 208 Read FfcoRating Write SetfcoRating;
  1933. Property fmocRating : String Index 216 Read FfmocRating Write SetfmocRating;
  1934. Property fpbRating : String Index 224 Read FfpbRating Write SetfpbRating;
  1935. Property fskRating : String Index 232 Read FfskRating Write SetfskRating;
  1936. Property grfilmRating : String Index 240 Read FgrfilmRating Write SetgrfilmRating;
  1937. Property icaaRating : String Index 248 Read FicaaRating Write SeticaaRating;
  1938. Property ifcoRating : String Index 256 Read FifcoRating Write SetifcoRating;
  1939. Property ilfilmRating : String Index 264 Read FilfilmRating Write SetilfilmRating;
  1940. Property incaaRating : String Index 272 Read FincaaRating Write SetincaaRating;
  1941. Property kfcbRating : String Index 280 Read FkfcbRating Write SetkfcbRating;
  1942. Property kijkwijzerRating : String Index 288 Read FkijkwijzerRating Write SetkijkwijzerRating;
  1943. Property kmrbRating : String Index 296 Read FkmrbRating Write SetkmrbRating;
  1944. Property lsfRating : String Index 304 Read FlsfRating Write SetlsfRating;
  1945. Property mccaaRating : String Index 312 Read FmccaaRating Write SetmccaaRating;
  1946. Property mccypRating : String Index 320 Read FmccypRating Write SetmccypRating;
  1947. Property mdaRating : String Index 328 Read FmdaRating Write SetmdaRating;
  1948. Property medietilsynetRating : String Index 336 Read FmedietilsynetRating Write SetmedietilsynetRating;
  1949. Property mekuRating : String Index 344 Read FmekuRating Write SetmekuRating;
  1950. Property mibacRating : String Index 352 Read FmibacRating Write SetmibacRating;
  1951. Property _mocRating : String Index 360 Read F_mocRating Write Set_mocRating;
  1952. Property moctwRating : String Index 368 Read FmoctwRating Write SetmoctwRating;
  1953. Property mpaaRating : String Index 376 Read FmpaaRating Write SetmpaaRating;
  1954. Property mtrcbRating : String Index 384 Read FmtrcbRating Write SetmtrcbRating;
  1955. Property nbcRating : String Index 392 Read FnbcRating Write SetnbcRating;
  1956. Property nbcplRating : String Index 400 Read FnbcplRating Write SetnbcplRating;
  1957. Property nfrcRating : String Index 408 Read FnfrcRating Write SetnfrcRating;
  1958. Property nfvcbRating : String Index 416 Read FnfvcbRating Write SetnfvcbRating;
  1959. Property nkclvRating : String Index 424 Read FnkclvRating Write SetnkclvRating;
  1960. Property oflcRating : String Index 432 Read FoflcRating Write SetoflcRating;
  1961. Property pefilmRating : String Index 440 Read FpefilmRating Write SetpefilmRating;
  1962. Property rcnofRating : String Index 448 Read FrcnofRating Write SetrcnofRating;
  1963. Property resorteviolenciaRating : String Index 456 Read FresorteviolenciaRating Write SetresorteviolenciaRating;
  1964. Property rtcRating : String Index 464 Read FrtcRating Write SetrtcRating;
  1965. Property rteRating : String Index 472 Read FrteRating Write SetrteRating;
  1966. Property russiaRating : String Index 480 Read FrussiaRating Write SetrussiaRating;
  1967. Property skfilmRating : String Index 488 Read FskfilmRating Write SetskfilmRating;
  1968. Property smaisRating : String Index 496 Read FsmaisRating Write SetsmaisRating;
  1969. Property smsaRating : String Index 504 Read FsmsaRating Write SetsmsaRating;
  1970. Property tvpgRating : String Index 512 Read FtvpgRating Write SettvpgRating;
  1971. Property ytRating : String Index 520 Read FytRating Write SetytRating;
  1972. end;
  1973. TContentRatingClass = Class of TContentRating;
  1974. { --------------------------------------------------------------------
  1975. TFanFundingEvent
  1976. --------------------------------------------------------------------}
  1977. TFanFundingEvent = Class(TGoogleBaseObject)
  1978. Private
  1979. Fetag : String;
  1980. Fid : String;
  1981. Fkind : String;
  1982. Fsnippet : TFanFundingEventSnippet;
  1983. Protected
  1984. //Property setters
  1985. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1986. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1987. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1988. Procedure Setsnippet(AIndex : Integer; const AValue : TFanFundingEventSnippet); virtual;
  1989. Public
  1990. Published
  1991. Property etag : String Index 0 Read Fetag Write Setetag;
  1992. Property id : String Index 8 Read Fid Write Setid;
  1993. Property kind : String Index 16 Read Fkind Write Setkind;
  1994. Property snippet : TFanFundingEventSnippet Index 24 Read Fsnippet Write Setsnippet;
  1995. end;
  1996. TFanFundingEventClass = Class of TFanFundingEvent;
  1997. { --------------------------------------------------------------------
  1998. TFanFundingEventListResponse
  1999. --------------------------------------------------------------------}
  2000. TFanFundingEventListResponse = Class(TGoogleBaseObject)
  2001. Private
  2002. Fetag : String;
  2003. FeventId : String;
  2004. Fitems : TFanFundingEventListResponseTypeitemsArray;
  2005. Fkind : String;
  2006. FnextPageToken : String;
  2007. FpageInfo : TPageInfo;
  2008. FtokenPagination : TTokenPagination;
  2009. FvisitorId : String;
  2010. Protected
  2011. //Property setters
  2012. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2013. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  2014. Procedure Setitems(AIndex : Integer; const AValue : TFanFundingEventListResponseTypeitemsArray); virtual;
  2015. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2016. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  2017. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  2018. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  2019. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  2020. //2.6.4. bug workaround
  2021. {$IFDEF VER2_6}
  2022. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2023. {$ENDIF VER2_6}
  2024. Public
  2025. Published
  2026. Property etag : String Index 0 Read Fetag Write Setetag;
  2027. Property eventId : String Index 8 Read FeventId Write SeteventId;
  2028. Property items : TFanFundingEventListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  2029. Property kind : String Index 24 Read Fkind Write Setkind;
  2030. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  2031. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  2032. Property tokenPagination : TTokenPagination Index 48 Read FtokenPagination Write SettokenPagination;
  2033. Property visitorId : String Index 56 Read FvisitorId Write SetvisitorId;
  2034. end;
  2035. TFanFundingEventListResponseClass = Class of TFanFundingEventListResponse;
  2036. { --------------------------------------------------------------------
  2037. TFanFundingEventSnippet
  2038. --------------------------------------------------------------------}
  2039. TFanFundingEventSnippet = Class(TGoogleBaseObject)
  2040. Private
  2041. FamountMicros : String;
  2042. FchannelId : String;
  2043. FcommentText : String;
  2044. FcreatedAt : TDatetime;
  2045. Fcurrency : String;
  2046. FdisplayString : String;
  2047. FsupporterDetails : TChannelProfileDetails;
  2048. Protected
  2049. //Property setters
  2050. Procedure SetamountMicros(AIndex : Integer; const AValue : String); virtual;
  2051. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  2052. Procedure SetcommentText(AIndex : Integer; const AValue : String); virtual;
  2053. Procedure SetcreatedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  2054. Procedure Setcurrency(AIndex : Integer; const AValue : String); virtual;
  2055. Procedure SetdisplayString(AIndex : Integer; const AValue : String); virtual;
  2056. Procedure SetsupporterDetails(AIndex : Integer; const AValue : TChannelProfileDetails); virtual;
  2057. Public
  2058. Published
  2059. Property amountMicros : String Index 0 Read FamountMicros Write SetamountMicros;
  2060. Property channelId : String Index 8 Read FchannelId Write SetchannelId;
  2061. Property commentText : String Index 16 Read FcommentText Write SetcommentText;
  2062. Property createdAt : TDatetime Index 24 Read FcreatedAt Write SetcreatedAt;
  2063. Property currency : String Index 32 Read Fcurrency Write Setcurrency;
  2064. Property displayString : String Index 40 Read FdisplayString Write SetdisplayString;
  2065. Property supporterDetails : TChannelProfileDetails Index 48 Read FsupporterDetails Write SetsupporterDetails;
  2066. end;
  2067. TFanFundingEventSnippetClass = Class of TFanFundingEventSnippet;
  2068. { --------------------------------------------------------------------
  2069. TGeoPoint
  2070. --------------------------------------------------------------------}
  2071. TGeoPoint = Class(TGoogleBaseObject)
  2072. Private
  2073. Faltitude : double;
  2074. Flatitude : double;
  2075. Flongitude : double;
  2076. Protected
  2077. //Property setters
  2078. Procedure Setaltitude(AIndex : Integer; const AValue : double); virtual;
  2079. Procedure Setlatitude(AIndex : Integer; const AValue : double); virtual;
  2080. Procedure Setlongitude(AIndex : Integer; const AValue : double); virtual;
  2081. Public
  2082. Published
  2083. Property altitude : double Index 0 Read Faltitude Write Setaltitude;
  2084. Property latitude : double Index 8 Read Flatitude Write Setlatitude;
  2085. Property longitude : double Index 16 Read Flongitude Write Setlongitude;
  2086. end;
  2087. TGeoPointClass = Class of TGeoPoint;
  2088. { --------------------------------------------------------------------
  2089. TGuideCategory
  2090. --------------------------------------------------------------------}
  2091. TGuideCategory = Class(TGoogleBaseObject)
  2092. Private
  2093. Fetag : String;
  2094. Fid : String;
  2095. Fkind : String;
  2096. Fsnippet : TGuideCategorySnippet;
  2097. Protected
  2098. //Property setters
  2099. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2100. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2101. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2102. Procedure Setsnippet(AIndex : Integer; const AValue : TGuideCategorySnippet); virtual;
  2103. Public
  2104. Published
  2105. Property etag : String Index 0 Read Fetag Write Setetag;
  2106. Property id : String Index 8 Read Fid Write Setid;
  2107. Property kind : String Index 16 Read Fkind Write Setkind;
  2108. Property snippet : TGuideCategorySnippet Index 24 Read Fsnippet Write Setsnippet;
  2109. end;
  2110. TGuideCategoryClass = Class of TGuideCategory;
  2111. { --------------------------------------------------------------------
  2112. TGuideCategoryListResponse
  2113. --------------------------------------------------------------------}
  2114. TGuideCategoryListResponse = Class(TGoogleBaseObject)
  2115. Private
  2116. Fetag : String;
  2117. FeventId : String;
  2118. Fitems : TGuideCategoryListResponseTypeitemsArray;
  2119. Fkind : String;
  2120. FnextPageToken : String;
  2121. FpageInfo : TPageInfo;
  2122. FprevPageToken : String;
  2123. FtokenPagination : TTokenPagination;
  2124. FvisitorId : String;
  2125. Protected
  2126. //Property setters
  2127. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2128. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  2129. Procedure Setitems(AIndex : Integer; const AValue : TGuideCategoryListResponseTypeitemsArray); virtual;
  2130. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2131. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  2132. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  2133. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  2134. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  2135. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  2136. //2.6.4. bug workaround
  2137. {$IFDEF VER2_6}
  2138. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2139. {$ENDIF VER2_6}
  2140. Public
  2141. Published
  2142. Property etag : String Index 0 Read Fetag Write Setetag;
  2143. Property eventId : String Index 8 Read FeventId Write SeteventId;
  2144. Property items : TGuideCategoryListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  2145. Property kind : String Index 24 Read Fkind Write Setkind;
  2146. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  2147. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  2148. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  2149. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  2150. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  2151. end;
  2152. TGuideCategoryListResponseClass = Class of TGuideCategoryListResponse;
  2153. { --------------------------------------------------------------------
  2154. TGuideCategorySnippet
  2155. --------------------------------------------------------------------}
  2156. TGuideCategorySnippet = Class(TGoogleBaseObject)
  2157. Private
  2158. FchannelId : String;
  2159. Ftitle : String;
  2160. Protected
  2161. //Property setters
  2162. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  2163. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  2164. Public
  2165. Published
  2166. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  2167. Property title : String Index 8 Read Ftitle Write Settitle;
  2168. end;
  2169. TGuideCategorySnippetClass = Class of TGuideCategorySnippet;
  2170. { --------------------------------------------------------------------
  2171. TI18nLanguage
  2172. --------------------------------------------------------------------}
  2173. TI18nLanguage = Class(TGoogleBaseObject)
  2174. Private
  2175. Fetag : String;
  2176. Fid : String;
  2177. Fkind : String;
  2178. Fsnippet : TI18nLanguageSnippet;
  2179. Protected
  2180. //Property setters
  2181. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2182. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2183. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2184. Procedure Setsnippet(AIndex : Integer; const AValue : TI18nLanguageSnippet); virtual;
  2185. Public
  2186. Published
  2187. Property etag : String Index 0 Read Fetag Write Setetag;
  2188. Property id : String Index 8 Read Fid Write Setid;
  2189. Property kind : String Index 16 Read Fkind Write Setkind;
  2190. Property snippet : TI18nLanguageSnippet Index 24 Read Fsnippet Write Setsnippet;
  2191. end;
  2192. TI18nLanguageClass = Class of TI18nLanguage;
  2193. { --------------------------------------------------------------------
  2194. TI18nLanguageListResponse
  2195. --------------------------------------------------------------------}
  2196. TI18nLanguageListResponse = Class(TGoogleBaseObject)
  2197. Private
  2198. Fetag : String;
  2199. FeventId : String;
  2200. Fitems : TI18nLanguageListResponseTypeitemsArray;
  2201. Fkind : String;
  2202. FvisitorId : String;
  2203. Protected
  2204. //Property setters
  2205. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2206. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  2207. Procedure Setitems(AIndex : Integer; const AValue : TI18nLanguageListResponseTypeitemsArray); virtual;
  2208. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2209. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  2210. //2.6.4. bug workaround
  2211. {$IFDEF VER2_6}
  2212. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2213. {$ENDIF VER2_6}
  2214. Public
  2215. Published
  2216. Property etag : String Index 0 Read Fetag Write Setetag;
  2217. Property eventId : String Index 8 Read FeventId Write SeteventId;
  2218. Property items : TI18nLanguageListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  2219. Property kind : String Index 24 Read Fkind Write Setkind;
  2220. Property visitorId : String Index 32 Read FvisitorId Write SetvisitorId;
  2221. end;
  2222. TI18nLanguageListResponseClass = Class of TI18nLanguageListResponse;
  2223. { --------------------------------------------------------------------
  2224. TI18nLanguageSnippet
  2225. --------------------------------------------------------------------}
  2226. TI18nLanguageSnippet = Class(TGoogleBaseObject)
  2227. Private
  2228. Fhl : String;
  2229. Fname : String;
  2230. Protected
  2231. //Property setters
  2232. Procedure Sethl(AIndex : Integer; const AValue : String); virtual;
  2233. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2234. Public
  2235. Published
  2236. Property hl : String Index 0 Read Fhl Write Sethl;
  2237. Property name : String Index 8 Read Fname Write Setname;
  2238. end;
  2239. TI18nLanguageSnippetClass = Class of TI18nLanguageSnippet;
  2240. { --------------------------------------------------------------------
  2241. TI18nRegion
  2242. --------------------------------------------------------------------}
  2243. TI18nRegion = Class(TGoogleBaseObject)
  2244. Private
  2245. Fetag : String;
  2246. Fid : String;
  2247. Fkind : String;
  2248. Fsnippet : TI18nRegionSnippet;
  2249. Protected
  2250. //Property setters
  2251. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2252. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2253. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2254. Procedure Setsnippet(AIndex : Integer; const AValue : TI18nRegionSnippet); virtual;
  2255. Public
  2256. Published
  2257. Property etag : String Index 0 Read Fetag Write Setetag;
  2258. Property id : String Index 8 Read Fid Write Setid;
  2259. Property kind : String Index 16 Read Fkind Write Setkind;
  2260. Property snippet : TI18nRegionSnippet Index 24 Read Fsnippet Write Setsnippet;
  2261. end;
  2262. TI18nRegionClass = Class of TI18nRegion;
  2263. { --------------------------------------------------------------------
  2264. TI18nRegionListResponse
  2265. --------------------------------------------------------------------}
  2266. TI18nRegionListResponse = Class(TGoogleBaseObject)
  2267. Private
  2268. Fetag : String;
  2269. FeventId : String;
  2270. Fitems : TI18nRegionListResponseTypeitemsArray;
  2271. Fkind : String;
  2272. FvisitorId : String;
  2273. Protected
  2274. //Property setters
  2275. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2276. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  2277. Procedure Setitems(AIndex : Integer; const AValue : TI18nRegionListResponseTypeitemsArray); virtual;
  2278. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2279. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  2280. //2.6.4. bug workaround
  2281. {$IFDEF VER2_6}
  2282. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2283. {$ENDIF VER2_6}
  2284. Public
  2285. Published
  2286. Property etag : String Index 0 Read Fetag Write Setetag;
  2287. Property eventId : String Index 8 Read FeventId Write SeteventId;
  2288. Property items : TI18nRegionListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  2289. Property kind : String Index 24 Read Fkind Write Setkind;
  2290. Property visitorId : String Index 32 Read FvisitorId Write SetvisitorId;
  2291. end;
  2292. TI18nRegionListResponseClass = Class of TI18nRegionListResponse;
  2293. { --------------------------------------------------------------------
  2294. TI18nRegionSnippet
  2295. --------------------------------------------------------------------}
  2296. TI18nRegionSnippet = Class(TGoogleBaseObject)
  2297. Private
  2298. Fgl : String;
  2299. Fname : String;
  2300. Protected
  2301. //Property setters
  2302. Procedure Setgl(AIndex : Integer; const AValue : String); virtual;
  2303. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2304. Public
  2305. Published
  2306. Property gl : String Index 0 Read Fgl Write Setgl;
  2307. Property name : String Index 8 Read Fname Write Setname;
  2308. end;
  2309. TI18nRegionSnippetClass = Class of TI18nRegionSnippet;
  2310. { --------------------------------------------------------------------
  2311. TImageSettings
  2312. --------------------------------------------------------------------}
  2313. TImageSettings = Class(TGoogleBaseObject)
  2314. Private
  2315. FbackgroundImageUrl : TLocalizedProperty;
  2316. FbannerExternalUrl : String;
  2317. FbannerImageUrl : String;
  2318. FbannerMobileExtraHdImageUrl : String;
  2319. FbannerMobileHdImageUrl : String;
  2320. FbannerMobileImageUrl : String;
  2321. FbannerMobileLowImageUrl : String;
  2322. FbannerMobileMediumHdImageUrl : String;
  2323. FbannerTabletExtraHdImageUrl : String;
  2324. FbannerTabletHdImageUrl : String;
  2325. FbannerTabletImageUrl : String;
  2326. FbannerTabletLowImageUrl : String;
  2327. FbannerTvHighImageUrl : String;
  2328. FbannerTvImageUrl : String;
  2329. FbannerTvLowImageUrl : String;
  2330. FbannerTvMediumImageUrl : String;
  2331. FlargeBrandedBannerImageImapScript : TLocalizedProperty;
  2332. FlargeBrandedBannerImageUrl : TLocalizedProperty;
  2333. FsmallBrandedBannerImageImapScript : TLocalizedProperty;
  2334. FsmallBrandedBannerImageUrl : TLocalizedProperty;
  2335. FtrackingImageUrl : String;
  2336. FwatchIconImageUrl : String;
  2337. Protected
  2338. //Property setters
  2339. Procedure SetbackgroundImageUrl(AIndex : Integer; const AValue : TLocalizedProperty); virtual;
  2340. Procedure SetbannerExternalUrl(AIndex : Integer; const AValue : String); virtual;
  2341. Procedure SetbannerImageUrl(AIndex : Integer; const AValue : String); virtual;
  2342. Procedure SetbannerMobileExtraHdImageUrl(AIndex : Integer; const AValue : String); virtual;
  2343. Procedure SetbannerMobileHdImageUrl(AIndex : Integer; const AValue : String); virtual;
  2344. Procedure SetbannerMobileImageUrl(AIndex : Integer; const AValue : String); virtual;
  2345. Procedure SetbannerMobileLowImageUrl(AIndex : Integer; const AValue : String); virtual;
  2346. Procedure SetbannerMobileMediumHdImageUrl(AIndex : Integer; const AValue : String); virtual;
  2347. Procedure SetbannerTabletExtraHdImageUrl(AIndex : Integer; const AValue : String); virtual;
  2348. Procedure SetbannerTabletHdImageUrl(AIndex : Integer; const AValue : String); virtual;
  2349. Procedure SetbannerTabletImageUrl(AIndex : Integer; const AValue : String); virtual;
  2350. Procedure SetbannerTabletLowImageUrl(AIndex : Integer; const AValue : String); virtual;
  2351. Procedure SetbannerTvHighImageUrl(AIndex : Integer; const AValue : String); virtual;
  2352. Procedure SetbannerTvImageUrl(AIndex : Integer; const AValue : String); virtual;
  2353. Procedure SetbannerTvLowImageUrl(AIndex : Integer; const AValue : String); virtual;
  2354. Procedure SetbannerTvMediumImageUrl(AIndex : Integer; const AValue : String); virtual;
  2355. Procedure SetlargeBrandedBannerImageImapScript(AIndex : Integer; const AValue : TLocalizedProperty); virtual;
  2356. Procedure SetlargeBrandedBannerImageUrl(AIndex : Integer; const AValue : TLocalizedProperty); virtual;
  2357. Procedure SetsmallBrandedBannerImageImapScript(AIndex : Integer; const AValue : TLocalizedProperty); virtual;
  2358. Procedure SetsmallBrandedBannerImageUrl(AIndex : Integer; const AValue : TLocalizedProperty); virtual;
  2359. Procedure SettrackingImageUrl(AIndex : Integer; const AValue : String); virtual;
  2360. Procedure SetwatchIconImageUrl(AIndex : Integer; const AValue : String); virtual;
  2361. Public
  2362. Published
  2363. Property backgroundImageUrl : TLocalizedProperty Index 0 Read FbackgroundImageUrl Write SetbackgroundImageUrl;
  2364. Property bannerExternalUrl : String Index 8 Read FbannerExternalUrl Write SetbannerExternalUrl;
  2365. Property bannerImageUrl : String Index 16 Read FbannerImageUrl Write SetbannerImageUrl;
  2366. Property bannerMobileExtraHdImageUrl : String Index 24 Read FbannerMobileExtraHdImageUrl Write SetbannerMobileExtraHdImageUrl;
  2367. Property bannerMobileHdImageUrl : String Index 32 Read FbannerMobileHdImageUrl Write SetbannerMobileHdImageUrl;
  2368. Property bannerMobileImageUrl : String Index 40 Read FbannerMobileImageUrl Write SetbannerMobileImageUrl;
  2369. Property bannerMobileLowImageUrl : String Index 48 Read FbannerMobileLowImageUrl Write SetbannerMobileLowImageUrl;
  2370. Property bannerMobileMediumHdImageUrl : String Index 56 Read FbannerMobileMediumHdImageUrl Write SetbannerMobileMediumHdImageUrl;
  2371. Property bannerTabletExtraHdImageUrl : String Index 64 Read FbannerTabletExtraHdImageUrl Write SetbannerTabletExtraHdImageUrl;
  2372. Property bannerTabletHdImageUrl : String Index 72 Read FbannerTabletHdImageUrl Write SetbannerTabletHdImageUrl;
  2373. Property bannerTabletImageUrl : String Index 80 Read FbannerTabletImageUrl Write SetbannerTabletImageUrl;
  2374. Property bannerTabletLowImageUrl : String Index 88 Read FbannerTabletLowImageUrl Write SetbannerTabletLowImageUrl;
  2375. Property bannerTvHighImageUrl : String Index 96 Read FbannerTvHighImageUrl Write SetbannerTvHighImageUrl;
  2376. Property bannerTvImageUrl : String Index 104 Read FbannerTvImageUrl Write SetbannerTvImageUrl;
  2377. Property bannerTvLowImageUrl : String Index 112 Read FbannerTvLowImageUrl Write SetbannerTvLowImageUrl;
  2378. Property bannerTvMediumImageUrl : String Index 120 Read FbannerTvMediumImageUrl Write SetbannerTvMediumImageUrl;
  2379. Property largeBrandedBannerImageImapScript : TLocalizedProperty Index 128 Read FlargeBrandedBannerImageImapScript Write SetlargeBrandedBannerImageImapScript;
  2380. Property largeBrandedBannerImageUrl : TLocalizedProperty Index 136 Read FlargeBrandedBannerImageUrl Write SetlargeBrandedBannerImageUrl;
  2381. Property smallBrandedBannerImageImapScript : TLocalizedProperty Index 144 Read FsmallBrandedBannerImageImapScript Write SetsmallBrandedBannerImageImapScript;
  2382. Property smallBrandedBannerImageUrl : TLocalizedProperty Index 152 Read FsmallBrandedBannerImageUrl Write SetsmallBrandedBannerImageUrl;
  2383. Property trackingImageUrl : String Index 160 Read FtrackingImageUrl Write SettrackingImageUrl;
  2384. Property watchIconImageUrl : String Index 168 Read FwatchIconImageUrl Write SetwatchIconImageUrl;
  2385. end;
  2386. TImageSettingsClass = Class of TImageSettings;
  2387. { --------------------------------------------------------------------
  2388. TIngestionInfo
  2389. --------------------------------------------------------------------}
  2390. TIngestionInfo = Class(TGoogleBaseObject)
  2391. Private
  2392. FbackupIngestionAddress : String;
  2393. FingestionAddress : String;
  2394. FstreamName : String;
  2395. Protected
  2396. //Property setters
  2397. Procedure SetbackupIngestionAddress(AIndex : Integer; const AValue : String); virtual;
  2398. Procedure SetingestionAddress(AIndex : Integer; const AValue : String); virtual;
  2399. Procedure SetstreamName(AIndex : Integer; const AValue : String); virtual;
  2400. Public
  2401. Published
  2402. Property backupIngestionAddress : String Index 0 Read FbackupIngestionAddress Write SetbackupIngestionAddress;
  2403. Property ingestionAddress : String Index 8 Read FingestionAddress Write SetingestionAddress;
  2404. Property streamName : String Index 16 Read FstreamName Write SetstreamName;
  2405. end;
  2406. TIngestionInfoClass = Class of TIngestionInfo;
  2407. { --------------------------------------------------------------------
  2408. TInvideoBranding
  2409. --------------------------------------------------------------------}
  2410. TInvideoBranding = Class(TGoogleBaseObject)
  2411. Private
  2412. FimageBytes : String;
  2413. FimageUrl : String;
  2414. Fposition : TInvideoPosition;
  2415. FtargetChannelId : String;
  2416. Ftiming : TInvideoTiming;
  2417. Protected
  2418. //Property setters
  2419. Procedure SetimageBytes(AIndex : Integer; const AValue : String); virtual;
  2420. Procedure SetimageUrl(AIndex : Integer; const AValue : String); virtual;
  2421. Procedure Setposition(AIndex : Integer; const AValue : TInvideoPosition); virtual;
  2422. Procedure SettargetChannelId(AIndex : Integer; const AValue : String); virtual;
  2423. Procedure Settiming(AIndex : Integer; const AValue : TInvideoTiming); virtual;
  2424. Public
  2425. Published
  2426. Property imageBytes : String Index 0 Read FimageBytes Write SetimageBytes;
  2427. Property imageUrl : String Index 8 Read FimageUrl Write SetimageUrl;
  2428. Property position : TInvideoPosition Index 16 Read Fposition Write Setposition;
  2429. Property targetChannelId : String Index 24 Read FtargetChannelId Write SettargetChannelId;
  2430. Property timing : TInvideoTiming Index 32 Read Ftiming Write Settiming;
  2431. end;
  2432. TInvideoBrandingClass = Class of TInvideoBranding;
  2433. { --------------------------------------------------------------------
  2434. TInvideoPosition
  2435. --------------------------------------------------------------------}
  2436. TInvideoPosition = Class(TGoogleBaseObject)
  2437. Private
  2438. FcornerPosition : String;
  2439. F_type : String;
  2440. Protected
  2441. Class Function ExportPropertyName(Const AName : String) : string; override;
  2442. //Property setters
  2443. Procedure SetcornerPosition(AIndex : Integer; const AValue : String); virtual;
  2444. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2445. Public
  2446. Published
  2447. Property cornerPosition : String Index 0 Read FcornerPosition Write SetcornerPosition;
  2448. Property _type : String Index 8 Read F_type Write Set_type;
  2449. end;
  2450. TInvideoPositionClass = Class of TInvideoPosition;
  2451. { --------------------------------------------------------------------
  2452. TInvideoPromotion
  2453. --------------------------------------------------------------------}
  2454. TInvideoPromotion = Class(TGoogleBaseObject)
  2455. Private
  2456. FdefaultTiming : TInvideoTiming;
  2457. Fitems : TInvideoPromotionTypeitemsArray;
  2458. Fposition : TInvideoPosition;
  2459. FuseSmartTiming : boolean;
  2460. Protected
  2461. //Property setters
  2462. Procedure SetdefaultTiming(AIndex : Integer; const AValue : TInvideoTiming); virtual;
  2463. Procedure Setitems(AIndex : Integer; const AValue : TInvideoPromotionTypeitemsArray); virtual;
  2464. Procedure Setposition(AIndex : Integer; const AValue : TInvideoPosition); virtual;
  2465. Procedure SetuseSmartTiming(AIndex : Integer; const AValue : boolean); virtual;
  2466. //2.6.4. bug workaround
  2467. {$IFDEF VER2_6}
  2468. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2469. {$ENDIF VER2_6}
  2470. Public
  2471. Published
  2472. Property defaultTiming : TInvideoTiming Index 0 Read FdefaultTiming Write SetdefaultTiming;
  2473. Property items : TInvideoPromotionTypeitemsArray Index 8 Read Fitems Write Setitems;
  2474. Property position : TInvideoPosition Index 16 Read Fposition Write Setposition;
  2475. Property useSmartTiming : boolean Index 24 Read FuseSmartTiming Write SetuseSmartTiming;
  2476. end;
  2477. TInvideoPromotionClass = Class of TInvideoPromotion;
  2478. { --------------------------------------------------------------------
  2479. TInvideoTiming
  2480. --------------------------------------------------------------------}
  2481. TInvideoTiming = Class(TGoogleBaseObject)
  2482. Private
  2483. FdurationMs : String;
  2484. FoffsetMs : String;
  2485. F_type : String;
  2486. Protected
  2487. Class Function ExportPropertyName(Const AName : String) : string; override;
  2488. //Property setters
  2489. Procedure SetdurationMs(AIndex : Integer; const AValue : String); virtual;
  2490. Procedure SetoffsetMs(AIndex : Integer; const AValue : String); virtual;
  2491. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2492. Public
  2493. Published
  2494. Property durationMs : String Index 0 Read FdurationMs Write SetdurationMs;
  2495. Property offsetMs : String Index 8 Read FoffsetMs Write SetoffsetMs;
  2496. Property _type : String Index 16 Read F_type Write Set_type;
  2497. end;
  2498. TInvideoTimingClass = Class of TInvideoTiming;
  2499. { --------------------------------------------------------------------
  2500. TLanguageTag
  2501. --------------------------------------------------------------------}
  2502. TLanguageTag = Class(TGoogleBaseObject)
  2503. Private
  2504. Fvalue : String;
  2505. Protected
  2506. //Property setters
  2507. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  2508. Public
  2509. Published
  2510. Property value : String Index 0 Read Fvalue Write Setvalue;
  2511. end;
  2512. TLanguageTagClass = Class of TLanguageTag;
  2513. { --------------------------------------------------------------------
  2514. TLiveBroadcast
  2515. --------------------------------------------------------------------}
  2516. TLiveBroadcast = Class(TGoogleBaseObject)
  2517. Private
  2518. FcontentDetails : TLiveBroadcastContentDetails;
  2519. Fetag : String;
  2520. Fid : String;
  2521. Fkind : String;
  2522. Fsnippet : TLiveBroadcastSnippet;
  2523. Fstatistics : TLiveBroadcastStatistics;
  2524. Fstatus : TLiveBroadcastStatus;
  2525. FtopicDetails : TLiveBroadcastTopicDetails;
  2526. Protected
  2527. //Property setters
  2528. Procedure SetcontentDetails(AIndex : Integer; const AValue : TLiveBroadcastContentDetails); virtual;
  2529. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2530. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2531. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2532. Procedure Setsnippet(AIndex : Integer; const AValue : TLiveBroadcastSnippet); virtual;
  2533. Procedure Setstatistics(AIndex : Integer; const AValue : TLiveBroadcastStatistics); virtual;
  2534. Procedure Setstatus(AIndex : Integer; const AValue : TLiveBroadcastStatus); virtual;
  2535. Procedure SettopicDetails(AIndex : Integer; const AValue : TLiveBroadcastTopicDetails); virtual;
  2536. Public
  2537. Published
  2538. Property contentDetails : TLiveBroadcastContentDetails Index 0 Read FcontentDetails Write SetcontentDetails;
  2539. Property etag : String Index 8 Read Fetag Write Setetag;
  2540. Property id : String Index 16 Read Fid Write Setid;
  2541. Property kind : String Index 24 Read Fkind Write Setkind;
  2542. Property snippet : TLiveBroadcastSnippet Index 32 Read Fsnippet Write Setsnippet;
  2543. Property statistics : TLiveBroadcastStatistics Index 40 Read Fstatistics Write Setstatistics;
  2544. Property status : TLiveBroadcastStatus Index 48 Read Fstatus Write Setstatus;
  2545. Property topicDetails : TLiveBroadcastTopicDetails Index 56 Read FtopicDetails Write SettopicDetails;
  2546. end;
  2547. TLiveBroadcastClass = Class of TLiveBroadcast;
  2548. { --------------------------------------------------------------------
  2549. TLiveBroadcastContentDetails
  2550. --------------------------------------------------------------------}
  2551. TLiveBroadcastContentDetails = Class(TGoogleBaseObject)
  2552. Private
  2553. FboundStreamId : String;
  2554. FboundStreamLastUpdateTimeMs : TDatetime;
  2555. FclosedCaptionsType : String;
  2556. FenableClosedCaptions : boolean;
  2557. FenableContentEncryption : boolean;
  2558. FenableDvr : boolean;
  2559. FenableEmbed : boolean;
  2560. FenableLowLatency : boolean;
  2561. FmonitorStream : TMonitorStreamInfo;
  2562. Fprojection : String;
  2563. FrecordFromStart : boolean;
  2564. FstartWithSlate : boolean;
  2565. Protected
  2566. //Property setters
  2567. Procedure SetboundStreamId(AIndex : Integer; const AValue : String); virtual;
  2568. Procedure SetboundStreamLastUpdateTimeMs(AIndex : Integer; const AValue : TDatetime); virtual;
  2569. Procedure SetclosedCaptionsType(AIndex : Integer; const AValue : String); virtual;
  2570. Procedure SetenableClosedCaptions(AIndex : Integer; const AValue : boolean); virtual;
  2571. Procedure SetenableContentEncryption(AIndex : Integer; const AValue : boolean); virtual;
  2572. Procedure SetenableDvr(AIndex : Integer; const AValue : boolean); virtual;
  2573. Procedure SetenableEmbed(AIndex : Integer; const AValue : boolean); virtual;
  2574. Procedure SetenableLowLatency(AIndex : Integer; const AValue : boolean); virtual;
  2575. Procedure SetmonitorStream(AIndex : Integer; const AValue : TMonitorStreamInfo); virtual;
  2576. Procedure Setprojection(AIndex : Integer; const AValue : String); virtual;
  2577. Procedure SetrecordFromStart(AIndex : Integer; const AValue : boolean); virtual;
  2578. Procedure SetstartWithSlate(AIndex : Integer; const AValue : boolean); virtual;
  2579. Public
  2580. Published
  2581. Property boundStreamId : String Index 0 Read FboundStreamId Write SetboundStreamId;
  2582. Property boundStreamLastUpdateTimeMs : TDatetime Index 8 Read FboundStreamLastUpdateTimeMs Write SetboundStreamLastUpdateTimeMs;
  2583. Property closedCaptionsType : String Index 16 Read FclosedCaptionsType Write SetclosedCaptionsType;
  2584. Property enableClosedCaptions : boolean Index 24 Read FenableClosedCaptions Write SetenableClosedCaptions;
  2585. Property enableContentEncryption : boolean Index 32 Read FenableContentEncryption Write SetenableContentEncryption;
  2586. Property enableDvr : boolean Index 40 Read FenableDvr Write SetenableDvr;
  2587. Property enableEmbed : boolean Index 48 Read FenableEmbed Write SetenableEmbed;
  2588. Property enableLowLatency : boolean Index 56 Read FenableLowLatency Write SetenableLowLatency;
  2589. Property monitorStream : TMonitorStreamInfo Index 64 Read FmonitorStream Write SetmonitorStream;
  2590. Property projection : String Index 72 Read Fprojection Write Setprojection;
  2591. Property recordFromStart : boolean Index 80 Read FrecordFromStart Write SetrecordFromStart;
  2592. Property startWithSlate : boolean Index 88 Read FstartWithSlate Write SetstartWithSlate;
  2593. end;
  2594. TLiveBroadcastContentDetailsClass = Class of TLiveBroadcastContentDetails;
  2595. { --------------------------------------------------------------------
  2596. TLiveBroadcastListResponse
  2597. --------------------------------------------------------------------}
  2598. TLiveBroadcastListResponse = Class(TGoogleBaseObject)
  2599. Private
  2600. Fetag : String;
  2601. FeventId : String;
  2602. Fitems : TLiveBroadcastListResponseTypeitemsArray;
  2603. Fkind : String;
  2604. FnextPageToken : String;
  2605. FpageInfo : TPageInfo;
  2606. FprevPageToken : String;
  2607. FtokenPagination : TTokenPagination;
  2608. FvisitorId : String;
  2609. Protected
  2610. //Property setters
  2611. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2612. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  2613. Procedure Setitems(AIndex : Integer; const AValue : TLiveBroadcastListResponseTypeitemsArray); virtual;
  2614. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2615. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  2616. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  2617. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  2618. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  2619. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  2620. //2.6.4. bug workaround
  2621. {$IFDEF VER2_6}
  2622. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2623. {$ENDIF VER2_6}
  2624. Public
  2625. Published
  2626. Property etag : String Index 0 Read Fetag Write Setetag;
  2627. Property eventId : String Index 8 Read FeventId Write SeteventId;
  2628. Property items : TLiveBroadcastListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  2629. Property kind : String Index 24 Read Fkind Write Setkind;
  2630. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  2631. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  2632. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  2633. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  2634. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  2635. end;
  2636. TLiveBroadcastListResponseClass = Class of TLiveBroadcastListResponse;
  2637. { --------------------------------------------------------------------
  2638. TLiveBroadcastSnippet
  2639. --------------------------------------------------------------------}
  2640. TLiveBroadcastSnippet = Class(TGoogleBaseObject)
  2641. Private
  2642. FactualEndTime : TDatetime;
  2643. FactualStartTime : TDatetime;
  2644. FchannelId : String;
  2645. Fdescription : String;
  2646. FisDefaultBroadcast : boolean;
  2647. FliveChatId : String;
  2648. FpublishedAt : TDatetime;
  2649. FscheduledEndTime : TDatetime;
  2650. FscheduledStartTime : TDatetime;
  2651. Fthumbnails : TThumbnailDetails;
  2652. Ftitle : String;
  2653. Protected
  2654. //Property setters
  2655. Procedure SetactualEndTime(AIndex : Integer; const AValue : TDatetime); virtual;
  2656. Procedure SetactualStartTime(AIndex : Integer; const AValue : TDatetime); virtual;
  2657. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  2658. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  2659. Procedure SetisDefaultBroadcast(AIndex : Integer; const AValue : boolean); virtual;
  2660. Procedure SetliveChatId(AIndex : Integer; const AValue : String); virtual;
  2661. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  2662. Procedure SetscheduledEndTime(AIndex : Integer; const AValue : TDatetime); virtual;
  2663. Procedure SetscheduledStartTime(AIndex : Integer; const AValue : TDatetime); virtual;
  2664. Procedure Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails); virtual;
  2665. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  2666. Public
  2667. Published
  2668. Property actualEndTime : TDatetime Index 0 Read FactualEndTime Write SetactualEndTime;
  2669. Property actualStartTime : TDatetime Index 8 Read FactualStartTime Write SetactualStartTime;
  2670. Property channelId : String Index 16 Read FchannelId Write SetchannelId;
  2671. Property description : String Index 24 Read Fdescription Write Setdescription;
  2672. Property isDefaultBroadcast : boolean Index 32 Read FisDefaultBroadcast Write SetisDefaultBroadcast;
  2673. Property liveChatId : String Index 40 Read FliveChatId Write SetliveChatId;
  2674. Property publishedAt : TDatetime Index 48 Read FpublishedAt Write SetpublishedAt;
  2675. Property scheduledEndTime : TDatetime Index 56 Read FscheduledEndTime Write SetscheduledEndTime;
  2676. Property scheduledStartTime : TDatetime Index 64 Read FscheduledStartTime Write SetscheduledStartTime;
  2677. Property thumbnails : TThumbnailDetails Index 72 Read Fthumbnails Write Setthumbnails;
  2678. Property title : String Index 80 Read Ftitle Write Settitle;
  2679. end;
  2680. TLiveBroadcastSnippetClass = Class of TLiveBroadcastSnippet;
  2681. { --------------------------------------------------------------------
  2682. TLiveBroadcastStatistics
  2683. --------------------------------------------------------------------}
  2684. TLiveBroadcastStatistics = Class(TGoogleBaseObject)
  2685. Private
  2686. FconcurrentViewers : String;
  2687. FtotalChatCount : String;
  2688. Protected
  2689. //Property setters
  2690. Procedure SetconcurrentViewers(AIndex : Integer; const AValue : String); virtual;
  2691. Procedure SettotalChatCount(AIndex : Integer; const AValue : String); virtual;
  2692. Public
  2693. Published
  2694. Property concurrentViewers : String Index 0 Read FconcurrentViewers Write SetconcurrentViewers;
  2695. Property totalChatCount : String Index 8 Read FtotalChatCount Write SettotalChatCount;
  2696. end;
  2697. TLiveBroadcastStatisticsClass = Class of TLiveBroadcastStatistics;
  2698. { --------------------------------------------------------------------
  2699. TLiveBroadcastStatus
  2700. --------------------------------------------------------------------}
  2701. TLiveBroadcastStatus = Class(TGoogleBaseObject)
  2702. Private
  2703. FlifeCycleStatus : String;
  2704. FliveBroadcastPriority : String;
  2705. FprivacyStatus : String;
  2706. FrecordingStatus : String;
  2707. Protected
  2708. //Property setters
  2709. Procedure SetlifeCycleStatus(AIndex : Integer; const AValue : String); virtual;
  2710. Procedure SetliveBroadcastPriority(AIndex : Integer; const AValue : String); virtual;
  2711. Procedure SetprivacyStatus(AIndex : Integer; const AValue : String); virtual;
  2712. Procedure SetrecordingStatus(AIndex : Integer; const AValue : String); virtual;
  2713. Public
  2714. Published
  2715. Property lifeCycleStatus : String Index 0 Read FlifeCycleStatus Write SetlifeCycleStatus;
  2716. Property liveBroadcastPriority : String Index 8 Read FliveBroadcastPriority Write SetliveBroadcastPriority;
  2717. Property privacyStatus : String Index 16 Read FprivacyStatus Write SetprivacyStatus;
  2718. Property recordingStatus : String Index 24 Read FrecordingStatus Write SetrecordingStatus;
  2719. end;
  2720. TLiveBroadcastStatusClass = Class of TLiveBroadcastStatus;
  2721. { --------------------------------------------------------------------
  2722. TLiveBroadcastTopic
  2723. --------------------------------------------------------------------}
  2724. TLiveBroadcastTopic = Class(TGoogleBaseObject)
  2725. Private
  2726. Fsnippet : TLiveBroadcastTopicSnippet;
  2727. F_type : String;
  2728. Funmatched : boolean;
  2729. Protected
  2730. Class Function ExportPropertyName(Const AName : String) : string; override;
  2731. //Property setters
  2732. Procedure Setsnippet(AIndex : Integer; const AValue : TLiveBroadcastTopicSnippet); virtual;
  2733. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2734. Procedure Setunmatched(AIndex : Integer; const AValue : boolean); virtual;
  2735. Public
  2736. Published
  2737. Property snippet : TLiveBroadcastTopicSnippet Index 0 Read Fsnippet Write Setsnippet;
  2738. Property _type : String Index 8 Read F_type Write Set_type;
  2739. Property unmatched : boolean Index 16 Read Funmatched Write Setunmatched;
  2740. end;
  2741. TLiveBroadcastTopicClass = Class of TLiveBroadcastTopic;
  2742. { --------------------------------------------------------------------
  2743. TLiveBroadcastTopicDetails
  2744. --------------------------------------------------------------------}
  2745. TLiveBroadcastTopicDetails = Class(TGoogleBaseObject)
  2746. Private
  2747. Ftopics : TLiveBroadcastTopicDetailsTypetopicsArray;
  2748. Protected
  2749. //Property setters
  2750. Procedure Settopics(AIndex : Integer; const AValue : TLiveBroadcastTopicDetailsTypetopicsArray); virtual;
  2751. //2.6.4. bug workaround
  2752. {$IFDEF VER2_6}
  2753. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2754. {$ENDIF VER2_6}
  2755. Public
  2756. Published
  2757. Property topics : TLiveBroadcastTopicDetailsTypetopicsArray Index 0 Read Ftopics Write Settopics;
  2758. end;
  2759. TLiveBroadcastTopicDetailsClass = Class of TLiveBroadcastTopicDetails;
  2760. { --------------------------------------------------------------------
  2761. TLiveBroadcastTopicSnippet
  2762. --------------------------------------------------------------------}
  2763. TLiveBroadcastTopicSnippet = Class(TGoogleBaseObject)
  2764. Private
  2765. Fname : String;
  2766. FreleaseDate : String;
  2767. Protected
  2768. //Property setters
  2769. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2770. Procedure SetreleaseDate(AIndex : Integer; const AValue : String); virtual;
  2771. Public
  2772. Published
  2773. Property name : String Index 0 Read Fname Write Setname;
  2774. Property releaseDate : String Index 8 Read FreleaseDate Write SetreleaseDate;
  2775. end;
  2776. TLiveBroadcastTopicSnippetClass = Class of TLiveBroadcastTopicSnippet;
  2777. { --------------------------------------------------------------------
  2778. TLiveChatBan
  2779. --------------------------------------------------------------------}
  2780. TLiveChatBan = Class(TGoogleBaseObject)
  2781. Private
  2782. Fetag : String;
  2783. Fid : String;
  2784. Fkind : String;
  2785. Fsnippet : TLiveChatBanSnippet;
  2786. Protected
  2787. //Property setters
  2788. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2789. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2790. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2791. Procedure Setsnippet(AIndex : Integer; const AValue : TLiveChatBanSnippet); virtual;
  2792. Public
  2793. Published
  2794. Property etag : String Index 0 Read Fetag Write Setetag;
  2795. Property id : String Index 8 Read Fid Write Setid;
  2796. Property kind : String Index 16 Read Fkind Write Setkind;
  2797. Property snippet : TLiveChatBanSnippet Index 24 Read Fsnippet Write Setsnippet;
  2798. end;
  2799. TLiveChatBanClass = Class of TLiveChatBan;
  2800. { --------------------------------------------------------------------
  2801. TLiveChatBanSnippet
  2802. --------------------------------------------------------------------}
  2803. TLiveChatBanSnippet = Class(TGoogleBaseObject)
  2804. Private
  2805. FbanDurationSeconds : String;
  2806. FbannedUserDetails : TChannelProfileDetails;
  2807. FliveChatId : String;
  2808. F_type : String;
  2809. Protected
  2810. Class Function ExportPropertyName(Const AName : String) : string; override;
  2811. //Property setters
  2812. Procedure SetbanDurationSeconds(AIndex : Integer; const AValue : String); virtual;
  2813. Procedure SetbannedUserDetails(AIndex : Integer; const AValue : TChannelProfileDetails); virtual;
  2814. Procedure SetliveChatId(AIndex : Integer; const AValue : String); virtual;
  2815. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2816. Public
  2817. Published
  2818. Property banDurationSeconds : String Index 0 Read FbanDurationSeconds Write SetbanDurationSeconds;
  2819. Property bannedUserDetails : TChannelProfileDetails Index 8 Read FbannedUserDetails Write SetbannedUserDetails;
  2820. Property liveChatId : String Index 16 Read FliveChatId Write SetliveChatId;
  2821. Property _type : String Index 24 Read F_type Write Set_type;
  2822. end;
  2823. TLiveChatBanSnippetClass = Class of TLiveChatBanSnippet;
  2824. { --------------------------------------------------------------------
  2825. TLiveChatFanFundingEventDetails
  2826. --------------------------------------------------------------------}
  2827. TLiveChatFanFundingEventDetails = Class(TGoogleBaseObject)
  2828. Private
  2829. FamountDisplayString : String;
  2830. FamountMicros : String;
  2831. Fcurrency : String;
  2832. FuserComment : String;
  2833. Protected
  2834. //Property setters
  2835. Procedure SetamountDisplayString(AIndex : Integer; const AValue : String); virtual;
  2836. Procedure SetamountMicros(AIndex : Integer; const AValue : String); virtual;
  2837. Procedure Setcurrency(AIndex : Integer; const AValue : String); virtual;
  2838. Procedure SetuserComment(AIndex : Integer; const AValue : String); virtual;
  2839. Public
  2840. Published
  2841. Property amountDisplayString : String Index 0 Read FamountDisplayString Write SetamountDisplayString;
  2842. Property amountMicros : String Index 8 Read FamountMicros Write SetamountMicros;
  2843. Property currency : String Index 16 Read Fcurrency Write Setcurrency;
  2844. Property userComment : String Index 24 Read FuserComment Write SetuserComment;
  2845. end;
  2846. TLiveChatFanFundingEventDetailsClass = Class of TLiveChatFanFundingEventDetails;
  2847. { --------------------------------------------------------------------
  2848. TLiveChatMessage
  2849. --------------------------------------------------------------------}
  2850. TLiveChatMessage = Class(TGoogleBaseObject)
  2851. Private
  2852. FauthorDetails : TLiveChatMessageAuthorDetails;
  2853. Fetag : String;
  2854. Fid : String;
  2855. Fkind : String;
  2856. Fsnippet : TLiveChatMessageSnippet;
  2857. Protected
  2858. //Property setters
  2859. Procedure SetauthorDetails(AIndex : Integer; const AValue : TLiveChatMessageAuthorDetails); virtual;
  2860. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2861. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2862. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2863. Procedure Setsnippet(AIndex : Integer; const AValue : TLiveChatMessageSnippet); virtual;
  2864. Public
  2865. Published
  2866. Property authorDetails : TLiveChatMessageAuthorDetails Index 0 Read FauthorDetails Write SetauthorDetails;
  2867. Property etag : String Index 8 Read Fetag Write Setetag;
  2868. Property id : String Index 16 Read Fid Write Setid;
  2869. Property kind : String Index 24 Read Fkind Write Setkind;
  2870. Property snippet : TLiveChatMessageSnippet Index 32 Read Fsnippet Write Setsnippet;
  2871. end;
  2872. TLiveChatMessageClass = Class of TLiveChatMessage;
  2873. { --------------------------------------------------------------------
  2874. TLiveChatMessageAuthorDetails
  2875. --------------------------------------------------------------------}
  2876. TLiveChatMessageAuthorDetails = Class(TGoogleBaseObject)
  2877. Private
  2878. FchannelId : String;
  2879. FchannelUrl : String;
  2880. FdisplayName : String;
  2881. FisChatModerator : boolean;
  2882. FisChatOwner : boolean;
  2883. FisChatSponsor : boolean;
  2884. FisVerified : boolean;
  2885. FprofileImageUrl : String;
  2886. Protected
  2887. //Property setters
  2888. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  2889. Procedure SetchannelUrl(AIndex : Integer; const AValue : String); virtual;
  2890. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  2891. Procedure SetisChatModerator(AIndex : Integer; const AValue : boolean); virtual;
  2892. Procedure SetisChatOwner(AIndex : Integer; const AValue : boolean); virtual;
  2893. Procedure SetisChatSponsor(AIndex : Integer; const AValue : boolean); virtual;
  2894. Procedure SetisVerified(AIndex : Integer; const AValue : boolean); virtual;
  2895. Procedure SetprofileImageUrl(AIndex : Integer; const AValue : String); virtual;
  2896. Public
  2897. Published
  2898. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  2899. Property channelUrl : String Index 8 Read FchannelUrl Write SetchannelUrl;
  2900. Property displayName : String Index 16 Read FdisplayName Write SetdisplayName;
  2901. Property isChatModerator : boolean Index 24 Read FisChatModerator Write SetisChatModerator;
  2902. Property isChatOwner : boolean Index 32 Read FisChatOwner Write SetisChatOwner;
  2903. Property isChatSponsor : boolean Index 40 Read FisChatSponsor Write SetisChatSponsor;
  2904. Property isVerified : boolean Index 48 Read FisVerified Write SetisVerified;
  2905. Property profileImageUrl : String Index 56 Read FprofileImageUrl Write SetprofileImageUrl;
  2906. end;
  2907. TLiveChatMessageAuthorDetailsClass = Class of TLiveChatMessageAuthorDetails;
  2908. { --------------------------------------------------------------------
  2909. TLiveChatMessageDeletedDetails
  2910. --------------------------------------------------------------------}
  2911. TLiveChatMessageDeletedDetails = Class(TGoogleBaseObject)
  2912. Private
  2913. FdeletedMessageId : String;
  2914. Protected
  2915. //Property setters
  2916. Procedure SetdeletedMessageId(AIndex : Integer; const AValue : String); virtual;
  2917. Public
  2918. Published
  2919. Property deletedMessageId : String Index 0 Read FdeletedMessageId Write SetdeletedMessageId;
  2920. end;
  2921. TLiveChatMessageDeletedDetailsClass = Class of TLiveChatMessageDeletedDetails;
  2922. { --------------------------------------------------------------------
  2923. TLiveChatMessageListResponse
  2924. --------------------------------------------------------------------}
  2925. TLiveChatMessageListResponse = Class(TGoogleBaseObject)
  2926. Private
  2927. Fetag : String;
  2928. FeventId : String;
  2929. Fitems : TLiveChatMessageListResponseTypeitemsArray;
  2930. Fkind : String;
  2931. FnextPageToken : String;
  2932. FofflineAt : TDatetime;
  2933. FpageInfo : TPageInfo;
  2934. FpollingIntervalMillis : integer;
  2935. FtokenPagination : TTokenPagination;
  2936. FvisitorId : String;
  2937. Protected
  2938. //Property setters
  2939. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  2940. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  2941. Procedure Setitems(AIndex : Integer; const AValue : TLiveChatMessageListResponseTypeitemsArray); virtual;
  2942. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2943. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  2944. Procedure SetofflineAt(AIndex : Integer; const AValue : TDatetime); virtual;
  2945. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  2946. Procedure SetpollingIntervalMillis(AIndex : Integer; const AValue : integer); virtual;
  2947. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  2948. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  2949. //2.6.4. bug workaround
  2950. {$IFDEF VER2_6}
  2951. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2952. {$ENDIF VER2_6}
  2953. Public
  2954. Published
  2955. Property etag : String Index 0 Read Fetag Write Setetag;
  2956. Property eventId : String Index 8 Read FeventId Write SeteventId;
  2957. Property items : TLiveChatMessageListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  2958. Property kind : String Index 24 Read Fkind Write Setkind;
  2959. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  2960. Property offlineAt : TDatetime Index 40 Read FofflineAt Write SetofflineAt;
  2961. Property pageInfo : TPageInfo Index 48 Read FpageInfo Write SetpageInfo;
  2962. Property pollingIntervalMillis : integer Index 56 Read FpollingIntervalMillis Write SetpollingIntervalMillis;
  2963. Property tokenPagination : TTokenPagination Index 64 Read FtokenPagination Write SettokenPagination;
  2964. Property visitorId : String Index 72 Read FvisitorId Write SetvisitorId;
  2965. end;
  2966. TLiveChatMessageListResponseClass = Class of TLiveChatMessageListResponse;
  2967. { --------------------------------------------------------------------
  2968. TLiveChatMessageRetractedDetails
  2969. --------------------------------------------------------------------}
  2970. TLiveChatMessageRetractedDetails = Class(TGoogleBaseObject)
  2971. Private
  2972. FretractedMessageId : String;
  2973. Protected
  2974. //Property setters
  2975. Procedure SetretractedMessageId(AIndex : Integer; const AValue : String); virtual;
  2976. Public
  2977. Published
  2978. Property retractedMessageId : String Index 0 Read FretractedMessageId Write SetretractedMessageId;
  2979. end;
  2980. TLiveChatMessageRetractedDetailsClass = Class of TLiveChatMessageRetractedDetails;
  2981. { --------------------------------------------------------------------
  2982. TLiveChatMessageSnippet
  2983. --------------------------------------------------------------------}
  2984. TLiveChatMessageSnippet = Class(TGoogleBaseObject)
  2985. Private
  2986. FauthorChannelId : String;
  2987. FdisplayMessage : String;
  2988. FfanFundingEventDetails : TLiveChatFanFundingEventDetails;
  2989. FhasDisplayContent : boolean;
  2990. FliveChatId : String;
  2991. FmessageDeletedDetails : TLiveChatMessageDeletedDetails;
  2992. FmessageRetractedDetails : TLiveChatMessageRetractedDetails;
  2993. FpublishedAt : TDatetime;
  2994. FtextMessageDetails : TLiveChatTextMessageDetails;
  2995. F_type : String;
  2996. FuserBannedDetails : TLiveChatUserBannedMessageDetails;
  2997. Protected
  2998. Class Function ExportPropertyName(Const AName : String) : string; override;
  2999. //Property setters
  3000. Procedure SetauthorChannelId(AIndex : Integer; const AValue : String); virtual;
  3001. Procedure SetdisplayMessage(AIndex : Integer; const AValue : String); virtual;
  3002. Procedure SetfanFundingEventDetails(AIndex : Integer; const AValue : TLiveChatFanFundingEventDetails); virtual;
  3003. Procedure SethasDisplayContent(AIndex : Integer; const AValue : boolean); virtual;
  3004. Procedure SetliveChatId(AIndex : Integer; const AValue : String); virtual;
  3005. Procedure SetmessageDeletedDetails(AIndex : Integer; const AValue : TLiveChatMessageDeletedDetails); virtual;
  3006. Procedure SetmessageRetractedDetails(AIndex : Integer; const AValue : TLiveChatMessageRetractedDetails); virtual;
  3007. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  3008. Procedure SettextMessageDetails(AIndex : Integer; const AValue : TLiveChatTextMessageDetails); virtual;
  3009. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  3010. Procedure SetuserBannedDetails(AIndex : Integer; const AValue : TLiveChatUserBannedMessageDetails); virtual;
  3011. Public
  3012. Published
  3013. Property authorChannelId : String Index 0 Read FauthorChannelId Write SetauthorChannelId;
  3014. Property displayMessage : String Index 8 Read FdisplayMessage Write SetdisplayMessage;
  3015. Property fanFundingEventDetails : TLiveChatFanFundingEventDetails Index 16 Read FfanFundingEventDetails Write SetfanFundingEventDetails;
  3016. Property hasDisplayContent : boolean Index 24 Read FhasDisplayContent Write SethasDisplayContent;
  3017. Property liveChatId : String Index 32 Read FliveChatId Write SetliveChatId;
  3018. Property messageDeletedDetails : TLiveChatMessageDeletedDetails Index 40 Read FmessageDeletedDetails Write SetmessageDeletedDetails;
  3019. Property messageRetractedDetails : TLiveChatMessageRetractedDetails Index 48 Read FmessageRetractedDetails Write SetmessageRetractedDetails;
  3020. Property publishedAt : TDatetime Index 56 Read FpublishedAt Write SetpublishedAt;
  3021. Property textMessageDetails : TLiveChatTextMessageDetails Index 64 Read FtextMessageDetails Write SettextMessageDetails;
  3022. Property _type : String Index 72 Read F_type Write Set_type;
  3023. Property userBannedDetails : TLiveChatUserBannedMessageDetails Index 80 Read FuserBannedDetails Write SetuserBannedDetails;
  3024. end;
  3025. TLiveChatMessageSnippetClass = Class of TLiveChatMessageSnippet;
  3026. { --------------------------------------------------------------------
  3027. TLiveChatModerator
  3028. --------------------------------------------------------------------}
  3029. TLiveChatModerator = Class(TGoogleBaseObject)
  3030. Private
  3031. Fetag : String;
  3032. Fid : String;
  3033. Fkind : String;
  3034. Fsnippet : TLiveChatModeratorSnippet;
  3035. Protected
  3036. //Property setters
  3037. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3038. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3039. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3040. Procedure Setsnippet(AIndex : Integer; const AValue : TLiveChatModeratorSnippet); virtual;
  3041. Public
  3042. Published
  3043. Property etag : String Index 0 Read Fetag Write Setetag;
  3044. Property id : String Index 8 Read Fid Write Setid;
  3045. Property kind : String Index 16 Read Fkind Write Setkind;
  3046. Property snippet : TLiveChatModeratorSnippet Index 24 Read Fsnippet Write Setsnippet;
  3047. end;
  3048. TLiveChatModeratorClass = Class of TLiveChatModerator;
  3049. { --------------------------------------------------------------------
  3050. TLiveChatModeratorListResponse
  3051. --------------------------------------------------------------------}
  3052. TLiveChatModeratorListResponse = Class(TGoogleBaseObject)
  3053. Private
  3054. Fetag : String;
  3055. FeventId : String;
  3056. Fitems : TLiveChatModeratorListResponseTypeitemsArray;
  3057. Fkind : String;
  3058. FnextPageToken : String;
  3059. FpageInfo : TPageInfo;
  3060. FprevPageToken : String;
  3061. FtokenPagination : TTokenPagination;
  3062. FvisitorId : String;
  3063. Protected
  3064. //Property setters
  3065. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3066. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  3067. Procedure Setitems(AIndex : Integer; const AValue : TLiveChatModeratorListResponseTypeitemsArray); virtual;
  3068. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3069. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  3070. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  3071. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  3072. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  3073. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  3074. //2.6.4. bug workaround
  3075. {$IFDEF VER2_6}
  3076. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3077. {$ENDIF VER2_6}
  3078. Public
  3079. Published
  3080. Property etag : String Index 0 Read Fetag Write Setetag;
  3081. Property eventId : String Index 8 Read FeventId Write SeteventId;
  3082. Property items : TLiveChatModeratorListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  3083. Property kind : String Index 24 Read Fkind Write Setkind;
  3084. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  3085. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  3086. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  3087. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  3088. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  3089. end;
  3090. TLiveChatModeratorListResponseClass = Class of TLiveChatModeratorListResponse;
  3091. { --------------------------------------------------------------------
  3092. TLiveChatModeratorSnippet
  3093. --------------------------------------------------------------------}
  3094. TLiveChatModeratorSnippet = Class(TGoogleBaseObject)
  3095. Private
  3096. FliveChatId : String;
  3097. FmoderatorDetails : TChannelProfileDetails;
  3098. Protected
  3099. //Property setters
  3100. Procedure SetliveChatId(AIndex : Integer; const AValue : String); virtual;
  3101. Procedure SetmoderatorDetails(AIndex : Integer; const AValue : TChannelProfileDetails); virtual;
  3102. Public
  3103. Published
  3104. Property liveChatId : String Index 0 Read FliveChatId Write SetliveChatId;
  3105. Property moderatorDetails : TChannelProfileDetails Index 8 Read FmoderatorDetails Write SetmoderatorDetails;
  3106. end;
  3107. TLiveChatModeratorSnippetClass = Class of TLiveChatModeratorSnippet;
  3108. { --------------------------------------------------------------------
  3109. TLiveChatTextMessageDetails
  3110. --------------------------------------------------------------------}
  3111. TLiveChatTextMessageDetails = Class(TGoogleBaseObject)
  3112. Private
  3113. FmessageText : String;
  3114. Protected
  3115. //Property setters
  3116. Procedure SetmessageText(AIndex : Integer; const AValue : String); virtual;
  3117. Public
  3118. Published
  3119. Property messageText : String Index 0 Read FmessageText Write SetmessageText;
  3120. end;
  3121. TLiveChatTextMessageDetailsClass = Class of TLiveChatTextMessageDetails;
  3122. { --------------------------------------------------------------------
  3123. TLiveChatUserBannedMessageDetails
  3124. --------------------------------------------------------------------}
  3125. TLiveChatUserBannedMessageDetails = Class(TGoogleBaseObject)
  3126. Private
  3127. FbanDurationSeconds : String;
  3128. FbanType : String;
  3129. FbannedUserDetails : TChannelProfileDetails;
  3130. Protected
  3131. //Property setters
  3132. Procedure SetbanDurationSeconds(AIndex : Integer; const AValue : String); virtual;
  3133. Procedure SetbanType(AIndex : Integer; const AValue : String); virtual;
  3134. Procedure SetbannedUserDetails(AIndex : Integer; const AValue : TChannelProfileDetails); virtual;
  3135. Public
  3136. Published
  3137. Property banDurationSeconds : String Index 0 Read FbanDurationSeconds Write SetbanDurationSeconds;
  3138. Property banType : String Index 8 Read FbanType Write SetbanType;
  3139. Property bannedUserDetails : TChannelProfileDetails Index 16 Read FbannedUserDetails Write SetbannedUserDetails;
  3140. end;
  3141. TLiveChatUserBannedMessageDetailsClass = Class of TLiveChatUserBannedMessageDetails;
  3142. { --------------------------------------------------------------------
  3143. TLiveStream
  3144. --------------------------------------------------------------------}
  3145. TLiveStream = Class(TGoogleBaseObject)
  3146. Private
  3147. Fcdn : TCdnSettings;
  3148. FcontentDetails : TLiveStreamContentDetails;
  3149. Fetag : String;
  3150. Fid : String;
  3151. Fkind : String;
  3152. Fsnippet : TLiveStreamSnippet;
  3153. Fstatus : TLiveStreamStatus;
  3154. Protected
  3155. //Property setters
  3156. Procedure Setcdn(AIndex : Integer; const AValue : TCdnSettings); virtual;
  3157. Procedure SetcontentDetails(AIndex : Integer; const AValue : TLiveStreamContentDetails); virtual;
  3158. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3159. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3160. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3161. Procedure Setsnippet(AIndex : Integer; const AValue : TLiveStreamSnippet); virtual;
  3162. Procedure Setstatus(AIndex : Integer; const AValue : TLiveStreamStatus); virtual;
  3163. Public
  3164. Published
  3165. Property cdn : TCdnSettings Index 0 Read Fcdn Write Setcdn;
  3166. Property contentDetails : TLiveStreamContentDetails Index 8 Read FcontentDetails Write SetcontentDetails;
  3167. Property etag : String Index 16 Read Fetag Write Setetag;
  3168. Property id : String Index 24 Read Fid Write Setid;
  3169. Property kind : String Index 32 Read Fkind Write Setkind;
  3170. Property snippet : TLiveStreamSnippet Index 40 Read Fsnippet Write Setsnippet;
  3171. Property status : TLiveStreamStatus Index 48 Read Fstatus Write Setstatus;
  3172. end;
  3173. TLiveStreamClass = Class of TLiveStream;
  3174. { --------------------------------------------------------------------
  3175. TLiveStreamConfigurationIssue
  3176. --------------------------------------------------------------------}
  3177. TLiveStreamConfigurationIssue = Class(TGoogleBaseObject)
  3178. Private
  3179. Fdescription : String;
  3180. Freason : String;
  3181. Fseverity : String;
  3182. F_type : String;
  3183. Protected
  3184. Class Function ExportPropertyName(Const AName : String) : string; override;
  3185. //Property setters
  3186. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  3187. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  3188. Procedure Setseverity(AIndex : Integer; const AValue : String); virtual;
  3189. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  3190. Public
  3191. Published
  3192. Property description : String Index 0 Read Fdescription Write Setdescription;
  3193. Property reason : String Index 8 Read Freason Write Setreason;
  3194. Property severity : String Index 16 Read Fseverity Write Setseverity;
  3195. Property _type : String Index 24 Read F_type Write Set_type;
  3196. end;
  3197. TLiveStreamConfigurationIssueClass = Class of TLiveStreamConfigurationIssue;
  3198. { --------------------------------------------------------------------
  3199. TLiveStreamContentDetails
  3200. --------------------------------------------------------------------}
  3201. TLiveStreamContentDetails = Class(TGoogleBaseObject)
  3202. Private
  3203. FclosedCaptionsIngestionUrl : String;
  3204. FisReusable : boolean;
  3205. Protected
  3206. //Property setters
  3207. Procedure SetclosedCaptionsIngestionUrl(AIndex : Integer; const AValue : String); virtual;
  3208. Procedure SetisReusable(AIndex : Integer; const AValue : boolean); virtual;
  3209. Public
  3210. Published
  3211. Property closedCaptionsIngestionUrl : String Index 0 Read FclosedCaptionsIngestionUrl Write SetclosedCaptionsIngestionUrl;
  3212. Property isReusable : boolean Index 8 Read FisReusable Write SetisReusable;
  3213. end;
  3214. TLiveStreamContentDetailsClass = Class of TLiveStreamContentDetails;
  3215. { --------------------------------------------------------------------
  3216. TLiveStreamHealthStatus
  3217. --------------------------------------------------------------------}
  3218. TLiveStreamHealthStatus = Class(TGoogleBaseObject)
  3219. Private
  3220. FconfigurationIssues : TLiveStreamHealthStatusTypeconfigurationIssuesArray;
  3221. FlastUpdateTimeSeconds : String;
  3222. Fstatus : String;
  3223. Protected
  3224. //Property setters
  3225. Procedure SetconfigurationIssues(AIndex : Integer; const AValue : TLiveStreamHealthStatusTypeconfigurationIssuesArray); virtual;
  3226. Procedure SetlastUpdateTimeSeconds(AIndex : Integer; const AValue : String); virtual;
  3227. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  3228. //2.6.4. bug workaround
  3229. {$IFDEF VER2_6}
  3230. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3231. {$ENDIF VER2_6}
  3232. Public
  3233. Published
  3234. Property configurationIssues : TLiveStreamHealthStatusTypeconfigurationIssuesArray Index 0 Read FconfigurationIssues Write SetconfigurationIssues;
  3235. Property lastUpdateTimeSeconds : String Index 8 Read FlastUpdateTimeSeconds Write SetlastUpdateTimeSeconds;
  3236. Property status : String Index 16 Read Fstatus Write Setstatus;
  3237. end;
  3238. TLiveStreamHealthStatusClass = Class of TLiveStreamHealthStatus;
  3239. { --------------------------------------------------------------------
  3240. TLiveStreamListResponse
  3241. --------------------------------------------------------------------}
  3242. TLiveStreamListResponse = Class(TGoogleBaseObject)
  3243. Private
  3244. Fetag : String;
  3245. FeventId : String;
  3246. Fitems : TLiveStreamListResponseTypeitemsArray;
  3247. Fkind : String;
  3248. FnextPageToken : String;
  3249. FpageInfo : TPageInfo;
  3250. FprevPageToken : String;
  3251. FtokenPagination : TTokenPagination;
  3252. FvisitorId : String;
  3253. Protected
  3254. //Property setters
  3255. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3256. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  3257. Procedure Setitems(AIndex : Integer; const AValue : TLiveStreamListResponseTypeitemsArray); virtual;
  3258. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3259. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  3260. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  3261. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  3262. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  3263. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  3264. //2.6.4. bug workaround
  3265. {$IFDEF VER2_6}
  3266. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3267. {$ENDIF VER2_6}
  3268. Public
  3269. Published
  3270. Property etag : String Index 0 Read Fetag Write Setetag;
  3271. Property eventId : String Index 8 Read FeventId Write SeteventId;
  3272. Property items : TLiveStreamListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  3273. Property kind : String Index 24 Read Fkind Write Setkind;
  3274. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  3275. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  3276. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  3277. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  3278. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  3279. end;
  3280. TLiveStreamListResponseClass = Class of TLiveStreamListResponse;
  3281. { --------------------------------------------------------------------
  3282. TLiveStreamSnippet
  3283. --------------------------------------------------------------------}
  3284. TLiveStreamSnippet = Class(TGoogleBaseObject)
  3285. Private
  3286. FchannelId : String;
  3287. Fdescription : String;
  3288. FisDefaultStream : boolean;
  3289. FpublishedAt : TDatetime;
  3290. Ftitle : String;
  3291. Protected
  3292. //Property setters
  3293. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  3294. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  3295. Procedure SetisDefaultStream(AIndex : Integer; const AValue : boolean); virtual;
  3296. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  3297. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  3298. Public
  3299. Published
  3300. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  3301. Property description : String Index 8 Read Fdescription Write Setdescription;
  3302. Property isDefaultStream : boolean Index 16 Read FisDefaultStream Write SetisDefaultStream;
  3303. Property publishedAt : TDatetime Index 24 Read FpublishedAt Write SetpublishedAt;
  3304. Property title : String Index 32 Read Ftitle Write Settitle;
  3305. end;
  3306. TLiveStreamSnippetClass = Class of TLiveStreamSnippet;
  3307. { --------------------------------------------------------------------
  3308. TLiveStreamStatus
  3309. --------------------------------------------------------------------}
  3310. TLiveStreamStatus = Class(TGoogleBaseObject)
  3311. Private
  3312. FhealthStatus : TLiveStreamHealthStatus;
  3313. FstreamStatus : String;
  3314. Protected
  3315. //Property setters
  3316. Procedure SethealthStatus(AIndex : Integer; const AValue : TLiveStreamHealthStatus); virtual;
  3317. Procedure SetstreamStatus(AIndex : Integer; const AValue : String); virtual;
  3318. Public
  3319. Published
  3320. Property healthStatus : TLiveStreamHealthStatus Index 0 Read FhealthStatus Write SethealthStatus;
  3321. Property streamStatus : String Index 8 Read FstreamStatus Write SetstreamStatus;
  3322. end;
  3323. TLiveStreamStatusClass = Class of TLiveStreamStatus;
  3324. { --------------------------------------------------------------------
  3325. TLocalizedProperty
  3326. --------------------------------------------------------------------}
  3327. TLocalizedProperty = Class(TGoogleBaseObject)
  3328. Private
  3329. Fdefault : String;
  3330. FdefaultLanguage : TLanguageTag;
  3331. Flocalized : TLocalizedPropertyTypelocalizedArray;
  3332. Protected
  3333. //Property setters
  3334. Procedure Setdefault(AIndex : Integer; const AValue : String); virtual;
  3335. Procedure SetdefaultLanguage(AIndex : Integer; const AValue : TLanguageTag); virtual;
  3336. Procedure Setlocalized(AIndex : Integer; const AValue : TLocalizedPropertyTypelocalizedArray); virtual;
  3337. //2.6.4. bug workaround
  3338. {$IFDEF VER2_6}
  3339. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3340. {$ENDIF VER2_6}
  3341. Public
  3342. Published
  3343. Property default : String Index 0 Read Fdefault Write Setdefault;
  3344. Property defaultLanguage : TLanguageTag Index 8 Read FdefaultLanguage Write SetdefaultLanguage;
  3345. Property localized : TLocalizedPropertyTypelocalizedArray Index 16 Read Flocalized Write Setlocalized;
  3346. end;
  3347. TLocalizedPropertyClass = Class of TLocalizedProperty;
  3348. { --------------------------------------------------------------------
  3349. TLocalizedString
  3350. --------------------------------------------------------------------}
  3351. TLocalizedString = Class(TGoogleBaseObject)
  3352. Private
  3353. Flanguage : String;
  3354. Fvalue : String;
  3355. Protected
  3356. //Property setters
  3357. Procedure Setlanguage(AIndex : Integer; const AValue : String); virtual;
  3358. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  3359. Public
  3360. Published
  3361. Property language : String Index 0 Read Flanguage Write Setlanguage;
  3362. Property value : String Index 8 Read Fvalue Write Setvalue;
  3363. end;
  3364. TLocalizedStringClass = Class of TLocalizedString;
  3365. { --------------------------------------------------------------------
  3366. TMonitorStreamInfo
  3367. --------------------------------------------------------------------}
  3368. TMonitorStreamInfo = Class(TGoogleBaseObject)
  3369. Private
  3370. FbroadcastStreamDelayMs : integer;
  3371. FembedHtml : String;
  3372. FenableMonitorStream : boolean;
  3373. Protected
  3374. //Property setters
  3375. Procedure SetbroadcastStreamDelayMs(AIndex : Integer; const AValue : integer); virtual;
  3376. Procedure SetembedHtml(AIndex : Integer; const AValue : String); virtual;
  3377. Procedure SetenableMonitorStream(AIndex : Integer; const AValue : boolean); virtual;
  3378. Public
  3379. Published
  3380. Property broadcastStreamDelayMs : integer Index 0 Read FbroadcastStreamDelayMs Write SetbroadcastStreamDelayMs;
  3381. Property embedHtml : String Index 8 Read FembedHtml Write SetembedHtml;
  3382. Property enableMonitorStream : boolean Index 16 Read FenableMonitorStream Write SetenableMonitorStream;
  3383. end;
  3384. TMonitorStreamInfoClass = Class of TMonitorStreamInfo;
  3385. { --------------------------------------------------------------------
  3386. TPageInfo
  3387. --------------------------------------------------------------------}
  3388. TPageInfo = Class(TGoogleBaseObject)
  3389. Private
  3390. FresultsPerPage : integer;
  3391. FtotalResults : integer;
  3392. Protected
  3393. //Property setters
  3394. Procedure SetresultsPerPage(AIndex : Integer; const AValue : integer); virtual;
  3395. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  3396. Public
  3397. Published
  3398. Property resultsPerPage : integer Index 0 Read FresultsPerPage Write SetresultsPerPage;
  3399. Property totalResults : integer Index 8 Read FtotalResults Write SettotalResults;
  3400. end;
  3401. TPageInfoClass = Class of TPageInfo;
  3402. { --------------------------------------------------------------------
  3403. TPlaylistTypelocalizations
  3404. --------------------------------------------------------------------}
  3405. TPlaylistTypelocalizations = Class(TGoogleBaseObject)
  3406. Private
  3407. Protected
  3408. //Property setters
  3409. Public
  3410. Class Function AllowAdditionalProperties : Boolean; override;
  3411. Published
  3412. end;
  3413. TPlaylistTypelocalizationsClass = Class of TPlaylistTypelocalizations;
  3414. { --------------------------------------------------------------------
  3415. TPlaylist
  3416. --------------------------------------------------------------------}
  3417. TPlaylist = Class(TGoogleBaseObject)
  3418. Private
  3419. FcontentDetails : TPlaylistContentDetails;
  3420. Fetag : String;
  3421. Fid : String;
  3422. Fkind : String;
  3423. Flocalizations : TPlaylistTypelocalizations;
  3424. Fplayer : TPlaylistPlayer;
  3425. Fsnippet : TPlaylistSnippet;
  3426. Fstatus : TPlaylistStatus;
  3427. Protected
  3428. //Property setters
  3429. Procedure SetcontentDetails(AIndex : Integer; const AValue : TPlaylistContentDetails); virtual;
  3430. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3431. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3432. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3433. Procedure Setlocalizations(AIndex : Integer; const AValue : TPlaylistTypelocalizations); virtual;
  3434. Procedure Setplayer(AIndex : Integer; const AValue : TPlaylistPlayer); virtual;
  3435. Procedure Setsnippet(AIndex : Integer; const AValue : TPlaylistSnippet); virtual;
  3436. Procedure Setstatus(AIndex : Integer; const AValue : TPlaylistStatus); virtual;
  3437. Public
  3438. Published
  3439. Property contentDetails : TPlaylistContentDetails Index 0 Read FcontentDetails Write SetcontentDetails;
  3440. Property etag : String Index 8 Read Fetag Write Setetag;
  3441. Property id : String Index 16 Read Fid Write Setid;
  3442. Property kind : String Index 24 Read Fkind Write Setkind;
  3443. Property localizations : TPlaylistTypelocalizations Index 32 Read Flocalizations Write Setlocalizations;
  3444. Property player : TPlaylistPlayer Index 40 Read Fplayer Write Setplayer;
  3445. Property snippet : TPlaylistSnippet Index 48 Read Fsnippet Write Setsnippet;
  3446. Property status : TPlaylistStatus Index 56 Read Fstatus Write Setstatus;
  3447. end;
  3448. TPlaylistClass = Class of TPlaylist;
  3449. { --------------------------------------------------------------------
  3450. TPlaylistContentDetails
  3451. --------------------------------------------------------------------}
  3452. TPlaylistContentDetails = Class(TGoogleBaseObject)
  3453. Private
  3454. FitemCount : integer;
  3455. Protected
  3456. //Property setters
  3457. Procedure SetitemCount(AIndex : Integer; const AValue : integer); virtual;
  3458. Public
  3459. Published
  3460. Property itemCount : integer Index 0 Read FitemCount Write SetitemCount;
  3461. end;
  3462. TPlaylistContentDetailsClass = Class of TPlaylistContentDetails;
  3463. { --------------------------------------------------------------------
  3464. TPlaylistItem
  3465. --------------------------------------------------------------------}
  3466. TPlaylistItem = Class(TGoogleBaseObject)
  3467. Private
  3468. FcontentDetails : TPlaylistItemContentDetails;
  3469. Fetag : String;
  3470. Fid : String;
  3471. Fkind : String;
  3472. Fsnippet : TPlaylistItemSnippet;
  3473. Fstatus : TPlaylistItemStatus;
  3474. Protected
  3475. //Property setters
  3476. Procedure SetcontentDetails(AIndex : Integer; const AValue : TPlaylistItemContentDetails); virtual;
  3477. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3478. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3479. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3480. Procedure Setsnippet(AIndex : Integer; const AValue : TPlaylistItemSnippet); virtual;
  3481. Procedure Setstatus(AIndex : Integer; const AValue : TPlaylistItemStatus); virtual;
  3482. Public
  3483. Published
  3484. Property contentDetails : TPlaylistItemContentDetails Index 0 Read FcontentDetails Write SetcontentDetails;
  3485. Property etag : String Index 8 Read Fetag Write Setetag;
  3486. Property id : String Index 16 Read Fid Write Setid;
  3487. Property kind : String Index 24 Read Fkind Write Setkind;
  3488. Property snippet : TPlaylistItemSnippet Index 32 Read Fsnippet Write Setsnippet;
  3489. Property status : TPlaylistItemStatus Index 40 Read Fstatus Write Setstatus;
  3490. end;
  3491. TPlaylistItemClass = Class of TPlaylistItem;
  3492. { --------------------------------------------------------------------
  3493. TPlaylistItemContentDetails
  3494. --------------------------------------------------------------------}
  3495. TPlaylistItemContentDetails = Class(TGoogleBaseObject)
  3496. Private
  3497. FendAt : String;
  3498. Fnote : String;
  3499. FstartAt : String;
  3500. FvideoId : String;
  3501. Protected
  3502. //Property setters
  3503. Procedure SetendAt(AIndex : Integer; const AValue : String); virtual;
  3504. Procedure Setnote(AIndex : Integer; const AValue : String); virtual;
  3505. Procedure SetstartAt(AIndex : Integer; const AValue : String); virtual;
  3506. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  3507. Public
  3508. Published
  3509. Property endAt : String Index 0 Read FendAt Write SetendAt;
  3510. Property note : String Index 8 Read Fnote Write Setnote;
  3511. Property startAt : String Index 16 Read FstartAt Write SetstartAt;
  3512. Property videoId : String Index 24 Read FvideoId Write SetvideoId;
  3513. end;
  3514. TPlaylistItemContentDetailsClass = Class of TPlaylistItemContentDetails;
  3515. { --------------------------------------------------------------------
  3516. TPlaylistItemListResponse
  3517. --------------------------------------------------------------------}
  3518. TPlaylistItemListResponse = Class(TGoogleBaseObject)
  3519. Private
  3520. Fetag : String;
  3521. FeventId : String;
  3522. Fitems : TPlaylistItemListResponseTypeitemsArray;
  3523. Fkind : String;
  3524. FnextPageToken : String;
  3525. FpageInfo : TPageInfo;
  3526. FprevPageToken : String;
  3527. FtokenPagination : TTokenPagination;
  3528. FvisitorId : String;
  3529. Protected
  3530. //Property setters
  3531. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3532. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  3533. Procedure Setitems(AIndex : Integer; const AValue : TPlaylistItemListResponseTypeitemsArray); virtual;
  3534. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3535. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  3536. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  3537. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  3538. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  3539. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  3540. //2.6.4. bug workaround
  3541. {$IFDEF VER2_6}
  3542. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3543. {$ENDIF VER2_6}
  3544. Public
  3545. Published
  3546. Property etag : String Index 0 Read Fetag Write Setetag;
  3547. Property eventId : String Index 8 Read FeventId Write SeteventId;
  3548. Property items : TPlaylistItemListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  3549. Property kind : String Index 24 Read Fkind Write Setkind;
  3550. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  3551. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  3552. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  3553. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  3554. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  3555. end;
  3556. TPlaylistItemListResponseClass = Class of TPlaylistItemListResponse;
  3557. { --------------------------------------------------------------------
  3558. TPlaylistItemSnippet
  3559. --------------------------------------------------------------------}
  3560. TPlaylistItemSnippet = Class(TGoogleBaseObject)
  3561. Private
  3562. FchannelId : String;
  3563. FchannelTitle : String;
  3564. Fdescription : String;
  3565. FplaylistId : String;
  3566. Fposition : integer;
  3567. FpublishedAt : TDatetime;
  3568. FresourceId : TResourceId;
  3569. Fthumbnails : TThumbnailDetails;
  3570. Ftitle : String;
  3571. Protected
  3572. //Property setters
  3573. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  3574. Procedure SetchannelTitle(AIndex : Integer; const AValue : String); virtual;
  3575. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  3576. Procedure SetplaylistId(AIndex : Integer; const AValue : String); virtual;
  3577. Procedure Setposition(AIndex : Integer; const AValue : integer); virtual;
  3578. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  3579. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  3580. Procedure Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails); virtual;
  3581. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  3582. Public
  3583. Published
  3584. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  3585. Property channelTitle : String Index 8 Read FchannelTitle Write SetchannelTitle;
  3586. Property description : String Index 16 Read Fdescription Write Setdescription;
  3587. Property playlistId : String Index 24 Read FplaylistId Write SetplaylistId;
  3588. Property position : integer Index 32 Read Fposition Write Setposition;
  3589. Property publishedAt : TDatetime Index 40 Read FpublishedAt Write SetpublishedAt;
  3590. Property resourceId : TResourceId Index 48 Read FresourceId Write SetresourceId;
  3591. Property thumbnails : TThumbnailDetails Index 56 Read Fthumbnails Write Setthumbnails;
  3592. Property title : String Index 64 Read Ftitle Write Settitle;
  3593. end;
  3594. TPlaylistItemSnippetClass = Class of TPlaylistItemSnippet;
  3595. { --------------------------------------------------------------------
  3596. TPlaylistItemStatus
  3597. --------------------------------------------------------------------}
  3598. TPlaylistItemStatus = Class(TGoogleBaseObject)
  3599. Private
  3600. FprivacyStatus : String;
  3601. Protected
  3602. //Property setters
  3603. Procedure SetprivacyStatus(AIndex : Integer; const AValue : String); virtual;
  3604. Public
  3605. Published
  3606. Property privacyStatus : String Index 0 Read FprivacyStatus Write SetprivacyStatus;
  3607. end;
  3608. TPlaylistItemStatusClass = Class of TPlaylistItemStatus;
  3609. { --------------------------------------------------------------------
  3610. TPlaylistListResponse
  3611. --------------------------------------------------------------------}
  3612. TPlaylistListResponse = Class(TGoogleBaseObject)
  3613. Private
  3614. Fetag : String;
  3615. FeventId : String;
  3616. Fitems : TPlaylistListResponseTypeitemsArray;
  3617. Fkind : String;
  3618. FnextPageToken : String;
  3619. FpageInfo : TPageInfo;
  3620. FprevPageToken : String;
  3621. FtokenPagination : TTokenPagination;
  3622. FvisitorId : String;
  3623. Protected
  3624. //Property setters
  3625. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3626. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  3627. Procedure Setitems(AIndex : Integer; const AValue : TPlaylistListResponseTypeitemsArray); virtual;
  3628. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3629. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  3630. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  3631. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  3632. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  3633. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  3634. //2.6.4. bug workaround
  3635. {$IFDEF VER2_6}
  3636. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3637. {$ENDIF VER2_6}
  3638. Public
  3639. Published
  3640. Property etag : String Index 0 Read Fetag Write Setetag;
  3641. Property eventId : String Index 8 Read FeventId Write SeteventId;
  3642. Property items : TPlaylistListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  3643. Property kind : String Index 24 Read Fkind Write Setkind;
  3644. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  3645. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  3646. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  3647. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  3648. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  3649. end;
  3650. TPlaylistListResponseClass = Class of TPlaylistListResponse;
  3651. { --------------------------------------------------------------------
  3652. TPlaylistLocalization
  3653. --------------------------------------------------------------------}
  3654. TPlaylistLocalization = Class(TGoogleBaseObject)
  3655. Private
  3656. Fdescription : String;
  3657. Ftitle : String;
  3658. Protected
  3659. //Property setters
  3660. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  3661. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  3662. Public
  3663. Published
  3664. Property description : String Index 0 Read Fdescription Write Setdescription;
  3665. Property title : String Index 8 Read Ftitle Write Settitle;
  3666. end;
  3667. TPlaylistLocalizationClass = Class of TPlaylistLocalization;
  3668. { --------------------------------------------------------------------
  3669. TPlaylistPlayer
  3670. --------------------------------------------------------------------}
  3671. TPlaylistPlayer = Class(TGoogleBaseObject)
  3672. Private
  3673. FembedHtml : String;
  3674. Protected
  3675. //Property setters
  3676. Procedure SetembedHtml(AIndex : Integer; const AValue : String); virtual;
  3677. Public
  3678. Published
  3679. Property embedHtml : String Index 0 Read FembedHtml Write SetembedHtml;
  3680. end;
  3681. TPlaylistPlayerClass = Class of TPlaylistPlayer;
  3682. { --------------------------------------------------------------------
  3683. TPlaylistSnippet
  3684. --------------------------------------------------------------------}
  3685. TPlaylistSnippet = Class(TGoogleBaseObject)
  3686. Private
  3687. FchannelId : String;
  3688. FchannelTitle : String;
  3689. FdefaultLanguage : String;
  3690. Fdescription : String;
  3691. Flocalized : TPlaylistLocalization;
  3692. FpublishedAt : TDatetime;
  3693. Ftags : TStringArray;
  3694. Fthumbnails : TThumbnailDetails;
  3695. Ftitle : String;
  3696. Protected
  3697. //Property setters
  3698. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  3699. Procedure SetchannelTitle(AIndex : Integer; const AValue : String); virtual;
  3700. Procedure SetdefaultLanguage(AIndex : Integer; const AValue : String); virtual;
  3701. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  3702. Procedure Setlocalized(AIndex : Integer; const AValue : TPlaylistLocalization); virtual;
  3703. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  3704. Procedure Settags(AIndex : Integer; const AValue : TStringArray); virtual;
  3705. Procedure Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails); virtual;
  3706. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  3707. //2.6.4. bug workaround
  3708. {$IFDEF VER2_6}
  3709. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3710. {$ENDIF VER2_6}
  3711. Public
  3712. Published
  3713. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  3714. Property channelTitle : String Index 8 Read FchannelTitle Write SetchannelTitle;
  3715. Property defaultLanguage : String Index 16 Read FdefaultLanguage Write SetdefaultLanguage;
  3716. Property description : String Index 24 Read Fdescription Write Setdescription;
  3717. Property localized : TPlaylistLocalization Index 32 Read Flocalized Write Setlocalized;
  3718. Property publishedAt : TDatetime Index 40 Read FpublishedAt Write SetpublishedAt;
  3719. Property tags : TStringArray Index 48 Read Ftags Write Settags;
  3720. Property thumbnails : TThumbnailDetails Index 56 Read Fthumbnails Write Setthumbnails;
  3721. Property title : String Index 64 Read Ftitle Write Settitle;
  3722. end;
  3723. TPlaylistSnippetClass = Class of TPlaylistSnippet;
  3724. { --------------------------------------------------------------------
  3725. TPlaylistStatus
  3726. --------------------------------------------------------------------}
  3727. TPlaylistStatus = Class(TGoogleBaseObject)
  3728. Private
  3729. FprivacyStatus : String;
  3730. Protected
  3731. //Property setters
  3732. Procedure SetprivacyStatus(AIndex : Integer; const AValue : String); virtual;
  3733. Public
  3734. Published
  3735. Property privacyStatus : String Index 0 Read FprivacyStatus Write SetprivacyStatus;
  3736. end;
  3737. TPlaylistStatusClass = Class of TPlaylistStatus;
  3738. { --------------------------------------------------------------------
  3739. TPromotedItem
  3740. --------------------------------------------------------------------}
  3741. TPromotedItem = Class(TGoogleBaseObject)
  3742. Private
  3743. FcustomMessage : String;
  3744. Fid : TPromotedItemId;
  3745. FpromotedByContentOwner : boolean;
  3746. Ftiming : TInvideoTiming;
  3747. Protected
  3748. //Property setters
  3749. Procedure SetcustomMessage(AIndex : Integer; const AValue : String); virtual;
  3750. Procedure Setid(AIndex : Integer; const AValue : TPromotedItemId); virtual;
  3751. Procedure SetpromotedByContentOwner(AIndex : Integer; const AValue : boolean); virtual;
  3752. Procedure Settiming(AIndex : Integer; const AValue : TInvideoTiming); virtual;
  3753. Public
  3754. Published
  3755. Property customMessage : String Index 0 Read FcustomMessage Write SetcustomMessage;
  3756. Property id : TPromotedItemId Index 8 Read Fid Write Setid;
  3757. Property promotedByContentOwner : boolean Index 16 Read FpromotedByContentOwner Write SetpromotedByContentOwner;
  3758. Property timing : TInvideoTiming Index 24 Read Ftiming Write Settiming;
  3759. end;
  3760. TPromotedItemClass = Class of TPromotedItem;
  3761. { --------------------------------------------------------------------
  3762. TPromotedItemId
  3763. --------------------------------------------------------------------}
  3764. TPromotedItemId = Class(TGoogleBaseObject)
  3765. Private
  3766. FrecentlyUploadedBy : String;
  3767. F_type : String;
  3768. FvideoId : String;
  3769. FwebsiteUrl : String;
  3770. Protected
  3771. Class Function ExportPropertyName(Const AName : String) : string; override;
  3772. //Property setters
  3773. Procedure SetrecentlyUploadedBy(AIndex : Integer; const AValue : String); virtual;
  3774. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  3775. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  3776. Procedure SetwebsiteUrl(AIndex : Integer; const AValue : String); virtual;
  3777. Public
  3778. Published
  3779. Property recentlyUploadedBy : String Index 0 Read FrecentlyUploadedBy Write SetrecentlyUploadedBy;
  3780. Property _type : String Index 8 Read F_type Write Set_type;
  3781. Property videoId : String Index 16 Read FvideoId Write SetvideoId;
  3782. Property websiteUrl : String Index 24 Read FwebsiteUrl Write SetwebsiteUrl;
  3783. end;
  3784. TPromotedItemIdClass = Class of TPromotedItemId;
  3785. { --------------------------------------------------------------------
  3786. TPropertyValue
  3787. --------------------------------------------------------------------}
  3788. TPropertyValue = Class(TGoogleBaseObject)
  3789. Private
  3790. F_property : String;
  3791. Fvalue : String;
  3792. Protected
  3793. Class Function ExportPropertyName(Const AName : String) : string; override;
  3794. //Property setters
  3795. Procedure Set_property(AIndex : Integer; const AValue : String); virtual;
  3796. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  3797. Public
  3798. Published
  3799. Property _property : String Index 0 Read F_property Write Set_property;
  3800. Property value : String Index 8 Read Fvalue Write Setvalue;
  3801. end;
  3802. TPropertyValueClass = Class of TPropertyValue;
  3803. { --------------------------------------------------------------------
  3804. TResourceId
  3805. --------------------------------------------------------------------}
  3806. TResourceId = Class(TGoogleBaseObject)
  3807. Private
  3808. FchannelId : String;
  3809. Fkind : String;
  3810. FplaylistId : String;
  3811. FvideoId : String;
  3812. Protected
  3813. //Property setters
  3814. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  3815. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3816. Procedure SetplaylistId(AIndex : Integer; const AValue : String); virtual;
  3817. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  3818. Public
  3819. Published
  3820. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  3821. Property kind : String Index 8 Read Fkind Write Setkind;
  3822. Property playlistId : String Index 16 Read FplaylistId Write SetplaylistId;
  3823. Property videoId : String Index 24 Read FvideoId Write SetvideoId;
  3824. end;
  3825. TResourceIdClass = Class of TResourceId;
  3826. { --------------------------------------------------------------------
  3827. TSearchListResponse
  3828. --------------------------------------------------------------------}
  3829. TSearchListResponse = Class(TGoogleBaseObject)
  3830. Private
  3831. Fetag : String;
  3832. FeventId : String;
  3833. Fitems : TSearchListResponseTypeitemsArray;
  3834. Fkind : String;
  3835. FnextPageToken : String;
  3836. FpageInfo : TPageInfo;
  3837. FprevPageToken : String;
  3838. FregionCode : String;
  3839. FtokenPagination : TTokenPagination;
  3840. FvisitorId : String;
  3841. Protected
  3842. //Property setters
  3843. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3844. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  3845. Procedure Setitems(AIndex : Integer; const AValue : TSearchListResponseTypeitemsArray); virtual;
  3846. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3847. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  3848. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  3849. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  3850. Procedure SetregionCode(AIndex : Integer; const AValue : String); virtual;
  3851. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  3852. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  3853. //2.6.4. bug workaround
  3854. {$IFDEF VER2_6}
  3855. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3856. {$ENDIF VER2_6}
  3857. Public
  3858. Published
  3859. Property etag : String Index 0 Read Fetag Write Setetag;
  3860. Property eventId : String Index 8 Read FeventId Write SeteventId;
  3861. Property items : TSearchListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  3862. Property kind : String Index 24 Read Fkind Write Setkind;
  3863. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  3864. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  3865. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  3866. Property regionCode : String Index 56 Read FregionCode Write SetregionCode;
  3867. Property tokenPagination : TTokenPagination Index 64 Read FtokenPagination Write SettokenPagination;
  3868. Property visitorId : String Index 72 Read FvisitorId Write SetvisitorId;
  3869. end;
  3870. TSearchListResponseClass = Class of TSearchListResponse;
  3871. { --------------------------------------------------------------------
  3872. TSearchResult
  3873. --------------------------------------------------------------------}
  3874. TSearchResult = Class(TGoogleBaseObject)
  3875. Private
  3876. Fetag : String;
  3877. Fid : TResourceId;
  3878. Fkind : String;
  3879. Fsnippet : TSearchResultSnippet;
  3880. Protected
  3881. //Property setters
  3882. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3883. Procedure Setid(AIndex : Integer; const AValue : TResourceId); virtual;
  3884. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3885. Procedure Setsnippet(AIndex : Integer; const AValue : TSearchResultSnippet); virtual;
  3886. Public
  3887. Published
  3888. Property etag : String Index 0 Read Fetag Write Setetag;
  3889. Property id : TResourceId Index 8 Read Fid Write Setid;
  3890. Property kind : String Index 16 Read Fkind Write Setkind;
  3891. Property snippet : TSearchResultSnippet Index 24 Read Fsnippet Write Setsnippet;
  3892. end;
  3893. TSearchResultClass = Class of TSearchResult;
  3894. { --------------------------------------------------------------------
  3895. TSearchResultSnippet
  3896. --------------------------------------------------------------------}
  3897. TSearchResultSnippet = Class(TGoogleBaseObject)
  3898. Private
  3899. FchannelId : String;
  3900. FchannelTitle : String;
  3901. Fdescription : String;
  3902. FliveBroadcastContent : String;
  3903. FpublishedAt : TDatetime;
  3904. Fthumbnails : TThumbnailDetails;
  3905. Ftitle : String;
  3906. Protected
  3907. //Property setters
  3908. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  3909. Procedure SetchannelTitle(AIndex : Integer; const AValue : String); virtual;
  3910. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  3911. Procedure SetliveBroadcastContent(AIndex : Integer; const AValue : String); virtual;
  3912. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  3913. Procedure Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails); virtual;
  3914. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  3915. Public
  3916. Published
  3917. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  3918. Property channelTitle : String Index 8 Read FchannelTitle Write SetchannelTitle;
  3919. Property description : String Index 16 Read Fdescription Write Setdescription;
  3920. Property liveBroadcastContent : String Index 24 Read FliveBroadcastContent Write SetliveBroadcastContent;
  3921. Property publishedAt : TDatetime Index 32 Read FpublishedAt Write SetpublishedAt;
  3922. Property thumbnails : TThumbnailDetails Index 40 Read Fthumbnails Write Setthumbnails;
  3923. Property title : String Index 48 Read Ftitle Write Settitle;
  3924. end;
  3925. TSearchResultSnippetClass = Class of TSearchResultSnippet;
  3926. { --------------------------------------------------------------------
  3927. TSponsor
  3928. --------------------------------------------------------------------}
  3929. TSponsor = Class(TGoogleBaseObject)
  3930. Private
  3931. Fetag : String;
  3932. Fid : String;
  3933. Fkind : String;
  3934. Fsnippet : TSponsorSnippet;
  3935. Protected
  3936. //Property setters
  3937. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3938. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3939. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3940. Procedure Setsnippet(AIndex : Integer; const AValue : TSponsorSnippet); virtual;
  3941. Public
  3942. Published
  3943. Property etag : String Index 0 Read Fetag Write Setetag;
  3944. Property id : String Index 8 Read Fid Write Setid;
  3945. Property kind : String Index 16 Read Fkind Write Setkind;
  3946. Property snippet : TSponsorSnippet Index 24 Read Fsnippet Write Setsnippet;
  3947. end;
  3948. TSponsorClass = Class of TSponsor;
  3949. { --------------------------------------------------------------------
  3950. TSponsorListResponse
  3951. --------------------------------------------------------------------}
  3952. TSponsorListResponse = Class(TGoogleBaseObject)
  3953. Private
  3954. Fetag : String;
  3955. FeventId : String;
  3956. Fitems : TSponsorListResponseTypeitemsArray;
  3957. Fkind : String;
  3958. FnextPageToken : String;
  3959. FpageInfo : TPageInfo;
  3960. FtokenPagination : TTokenPagination;
  3961. FvisitorId : String;
  3962. Protected
  3963. //Property setters
  3964. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  3965. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  3966. Procedure Setitems(AIndex : Integer; const AValue : TSponsorListResponseTypeitemsArray); virtual;
  3967. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3968. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  3969. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  3970. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  3971. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  3972. //2.6.4. bug workaround
  3973. {$IFDEF VER2_6}
  3974. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3975. {$ENDIF VER2_6}
  3976. Public
  3977. Published
  3978. Property etag : String Index 0 Read Fetag Write Setetag;
  3979. Property eventId : String Index 8 Read FeventId Write SeteventId;
  3980. Property items : TSponsorListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  3981. Property kind : String Index 24 Read Fkind Write Setkind;
  3982. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  3983. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  3984. Property tokenPagination : TTokenPagination Index 48 Read FtokenPagination Write SettokenPagination;
  3985. Property visitorId : String Index 56 Read FvisitorId Write SetvisitorId;
  3986. end;
  3987. TSponsorListResponseClass = Class of TSponsorListResponse;
  3988. { --------------------------------------------------------------------
  3989. TSponsorSnippet
  3990. --------------------------------------------------------------------}
  3991. TSponsorSnippet = Class(TGoogleBaseObject)
  3992. Private
  3993. FchannelId : String;
  3994. FsponsorDetails : TChannelProfileDetails;
  3995. FsponsorSince : TDatetime;
  3996. Protected
  3997. //Property setters
  3998. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  3999. Procedure SetsponsorDetails(AIndex : Integer; const AValue : TChannelProfileDetails); virtual;
  4000. Procedure SetsponsorSince(AIndex : Integer; const AValue : TDatetime); virtual;
  4001. Public
  4002. Published
  4003. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  4004. Property sponsorDetails : TChannelProfileDetails Index 8 Read FsponsorDetails Write SetsponsorDetails;
  4005. Property sponsorSince : TDatetime Index 16 Read FsponsorSince Write SetsponsorSince;
  4006. end;
  4007. TSponsorSnippetClass = Class of TSponsorSnippet;
  4008. { --------------------------------------------------------------------
  4009. TSubscription
  4010. --------------------------------------------------------------------}
  4011. TSubscription = Class(TGoogleBaseObject)
  4012. Private
  4013. FcontentDetails : TSubscriptionContentDetails;
  4014. Fetag : String;
  4015. Fid : String;
  4016. Fkind : String;
  4017. Fsnippet : TSubscriptionSnippet;
  4018. FsubscriberSnippet : TSubscriptionSubscriberSnippet;
  4019. Protected
  4020. //Property setters
  4021. Procedure SetcontentDetails(AIndex : Integer; const AValue : TSubscriptionContentDetails); virtual;
  4022. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4023. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  4024. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4025. Procedure Setsnippet(AIndex : Integer; const AValue : TSubscriptionSnippet); virtual;
  4026. Procedure SetsubscriberSnippet(AIndex : Integer; const AValue : TSubscriptionSubscriberSnippet); virtual;
  4027. Public
  4028. Published
  4029. Property contentDetails : TSubscriptionContentDetails Index 0 Read FcontentDetails Write SetcontentDetails;
  4030. Property etag : String Index 8 Read Fetag Write Setetag;
  4031. Property id : String Index 16 Read Fid Write Setid;
  4032. Property kind : String Index 24 Read Fkind Write Setkind;
  4033. Property snippet : TSubscriptionSnippet Index 32 Read Fsnippet Write Setsnippet;
  4034. Property subscriberSnippet : TSubscriptionSubscriberSnippet Index 40 Read FsubscriberSnippet Write SetsubscriberSnippet;
  4035. end;
  4036. TSubscriptionClass = Class of TSubscription;
  4037. { --------------------------------------------------------------------
  4038. TSubscriptionContentDetails
  4039. --------------------------------------------------------------------}
  4040. TSubscriptionContentDetails = Class(TGoogleBaseObject)
  4041. Private
  4042. FactivityType : String;
  4043. FnewItemCount : integer;
  4044. FtotalItemCount : integer;
  4045. Protected
  4046. //Property setters
  4047. Procedure SetactivityType(AIndex : Integer; const AValue : String); virtual;
  4048. Procedure SetnewItemCount(AIndex : Integer; const AValue : integer); virtual;
  4049. Procedure SettotalItemCount(AIndex : Integer; const AValue : integer); virtual;
  4050. Public
  4051. Published
  4052. Property activityType : String Index 0 Read FactivityType Write SetactivityType;
  4053. Property newItemCount : integer Index 8 Read FnewItemCount Write SetnewItemCount;
  4054. Property totalItemCount : integer Index 16 Read FtotalItemCount Write SettotalItemCount;
  4055. end;
  4056. TSubscriptionContentDetailsClass = Class of TSubscriptionContentDetails;
  4057. { --------------------------------------------------------------------
  4058. TSubscriptionListResponse
  4059. --------------------------------------------------------------------}
  4060. TSubscriptionListResponse = Class(TGoogleBaseObject)
  4061. Private
  4062. Fetag : String;
  4063. FeventId : String;
  4064. Fitems : TSubscriptionListResponseTypeitemsArray;
  4065. Fkind : String;
  4066. FnextPageToken : String;
  4067. FpageInfo : TPageInfo;
  4068. FprevPageToken : String;
  4069. FtokenPagination : TTokenPagination;
  4070. FvisitorId : String;
  4071. Protected
  4072. //Property setters
  4073. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4074. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  4075. Procedure Setitems(AIndex : Integer; const AValue : TSubscriptionListResponseTypeitemsArray); virtual;
  4076. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4077. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  4078. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  4079. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  4080. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  4081. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  4082. //2.6.4. bug workaround
  4083. {$IFDEF VER2_6}
  4084. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4085. {$ENDIF VER2_6}
  4086. Public
  4087. Published
  4088. Property etag : String Index 0 Read Fetag Write Setetag;
  4089. Property eventId : String Index 8 Read FeventId Write SeteventId;
  4090. Property items : TSubscriptionListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  4091. Property kind : String Index 24 Read Fkind Write Setkind;
  4092. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  4093. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  4094. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  4095. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  4096. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  4097. end;
  4098. TSubscriptionListResponseClass = Class of TSubscriptionListResponse;
  4099. { --------------------------------------------------------------------
  4100. TSubscriptionSnippet
  4101. --------------------------------------------------------------------}
  4102. TSubscriptionSnippet = Class(TGoogleBaseObject)
  4103. Private
  4104. FchannelId : String;
  4105. FchannelTitle : String;
  4106. Fdescription : String;
  4107. FpublishedAt : TDatetime;
  4108. FresourceId : TResourceId;
  4109. Fthumbnails : TThumbnailDetails;
  4110. Ftitle : String;
  4111. Protected
  4112. //Property setters
  4113. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  4114. Procedure SetchannelTitle(AIndex : Integer; const AValue : String); virtual;
  4115. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  4116. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  4117. Procedure SetresourceId(AIndex : Integer; const AValue : TResourceId); virtual;
  4118. Procedure Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails); virtual;
  4119. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  4120. Public
  4121. Published
  4122. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  4123. Property channelTitle : String Index 8 Read FchannelTitle Write SetchannelTitle;
  4124. Property description : String Index 16 Read Fdescription Write Setdescription;
  4125. Property publishedAt : TDatetime Index 24 Read FpublishedAt Write SetpublishedAt;
  4126. Property resourceId : TResourceId Index 32 Read FresourceId Write SetresourceId;
  4127. Property thumbnails : TThumbnailDetails Index 40 Read Fthumbnails Write Setthumbnails;
  4128. Property title : String Index 48 Read Ftitle Write Settitle;
  4129. end;
  4130. TSubscriptionSnippetClass = Class of TSubscriptionSnippet;
  4131. { --------------------------------------------------------------------
  4132. TSubscriptionSubscriberSnippet
  4133. --------------------------------------------------------------------}
  4134. TSubscriptionSubscriberSnippet = Class(TGoogleBaseObject)
  4135. Private
  4136. FchannelId : String;
  4137. Fdescription : String;
  4138. Fthumbnails : TThumbnailDetails;
  4139. Ftitle : String;
  4140. Protected
  4141. //Property setters
  4142. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  4143. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  4144. Procedure Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails); virtual;
  4145. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  4146. Public
  4147. Published
  4148. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  4149. Property description : String Index 8 Read Fdescription Write Setdescription;
  4150. Property thumbnails : TThumbnailDetails Index 16 Read Fthumbnails Write Setthumbnails;
  4151. Property title : String Index 24 Read Ftitle Write Settitle;
  4152. end;
  4153. TSubscriptionSubscriberSnippetClass = Class of TSubscriptionSubscriberSnippet;
  4154. { --------------------------------------------------------------------
  4155. TThumbnail
  4156. --------------------------------------------------------------------}
  4157. TThumbnail = Class(TGoogleBaseObject)
  4158. Private
  4159. Fheight : integer;
  4160. Furl : String;
  4161. Fwidth : integer;
  4162. Protected
  4163. //Property setters
  4164. Procedure Setheight(AIndex : Integer; const AValue : integer); virtual;
  4165. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  4166. Procedure Setwidth(AIndex : Integer; const AValue : integer); virtual;
  4167. Public
  4168. Published
  4169. Property height : integer Index 0 Read Fheight Write Setheight;
  4170. Property url : String Index 8 Read Furl Write Seturl;
  4171. Property width : integer Index 16 Read Fwidth Write Setwidth;
  4172. end;
  4173. TThumbnailClass = Class of TThumbnail;
  4174. { --------------------------------------------------------------------
  4175. TThumbnailDetails
  4176. --------------------------------------------------------------------}
  4177. TThumbnailDetails = Class(TGoogleBaseObject)
  4178. Private
  4179. Fdefault : TThumbnail;
  4180. Fhigh : TThumbnail;
  4181. Fmaxres : TThumbnail;
  4182. Fmedium : TThumbnail;
  4183. Fstandard : TThumbnail;
  4184. Protected
  4185. //Property setters
  4186. Procedure Setdefault(AIndex : Integer; const AValue : TThumbnail); virtual;
  4187. Procedure Sethigh(AIndex : Integer; const AValue : TThumbnail); virtual;
  4188. Procedure Setmaxres(AIndex : Integer; const AValue : TThumbnail); virtual;
  4189. Procedure Setmedium(AIndex : Integer; const AValue : TThumbnail); virtual;
  4190. Procedure Setstandard(AIndex : Integer; const AValue : TThumbnail); virtual;
  4191. Public
  4192. Published
  4193. Property default : TThumbnail Index 0 Read Fdefault Write Setdefault;
  4194. Property high : TThumbnail Index 8 Read Fhigh Write Sethigh;
  4195. Property maxres : TThumbnail Index 16 Read Fmaxres Write Setmaxres;
  4196. Property medium : TThumbnail Index 24 Read Fmedium Write Setmedium;
  4197. Property standard : TThumbnail Index 32 Read Fstandard Write Setstandard;
  4198. end;
  4199. TThumbnailDetailsClass = Class of TThumbnailDetails;
  4200. { --------------------------------------------------------------------
  4201. TThumbnailSetResponse
  4202. --------------------------------------------------------------------}
  4203. TThumbnailSetResponse = Class(TGoogleBaseObject)
  4204. Private
  4205. Fetag : String;
  4206. FeventId : String;
  4207. Fitems : TThumbnailSetResponseTypeitemsArray;
  4208. Fkind : String;
  4209. FvisitorId : String;
  4210. Protected
  4211. //Property setters
  4212. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4213. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  4214. Procedure Setitems(AIndex : Integer; const AValue : TThumbnailSetResponseTypeitemsArray); virtual;
  4215. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4216. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  4217. //2.6.4. bug workaround
  4218. {$IFDEF VER2_6}
  4219. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4220. {$ENDIF VER2_6}
  4221. Public
  4222. Published
  4223. Property etag : String Index 0 Read Fetag Write Setetag;
  4224. Property eventId : String Index 8 Read FeventId Write SeteventId;
  4225. Property items : TThumbnailSetResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  4226. Property kind : String Index 24 Read Fkind Write Setkind;
  4227. Property visitorId : String Index 32 Read FvisitorId Write SetvisitorId;
  4228. end;
  4229. TThumbnailSetResponseClass = Class of TThumbnailSetResponse;
  4230. { --------------------------------------------------------------------
  4231. TTokenPagination
  4232. --------------------------------------------------------------------}
  4233. TTokenPagination = Class(TGoogleBaseObject)
  4234. Private
  4235. Protected
  4236. //Property setters
  4237. Public
  4238. Published
  4239. end;
  4240. TTokenPaginationClass = Class of TTokenPagination;
  4241. { --------------------------------------------------------------------
  4242. TVideoTypelocalizations
  4243. --------------------------------------------------------------------}
  4244. TVideoTypelocalizations = Class(TGoogleBaseObject)
  4245. Private
  4246. Protected
  4247. //Property setters
  4248. Public
  4249. Class Function AllowAdditionalProperties : Boolean; override;
  4250. Published
  4251. end;
  4252. TVideoTypelocalizationsClass = Class of TVideoTypelocalizations;
  4253. { --------------------------------------------------------------------
  4254. TVideo
  4255. --------------------------------------------------------------------}
  4256. TVideo = Class(TGoogleBaseObject)
  4257. Private
  4258. FageGating : TVideoAgeGating;
  4259. FcontentDetails : TVideoContentDetails;
  4260. Fetag : String;
  4261. FfileDetails : TVideoFileDetails;
  4262. Fid : String;
  4263. Fkind : String;
  4264. FliveStreamingDetails : TVideoLiveStreamingDetails;
  4265. Flocalizations : TVideoTypelocalizations;
  4266. FmonetizationDetails : TVideoMonetizationDetails;
  4267. Fplayer : TVideoPlayer;
  4268. FprocessingDetails : TVideoProcessingDetails;
  4269. FprojectDetails : TVideoProjectDetails;
  4270. FrecordingDetails : TVideoRecordingDetails;
  4271. Fsnippet : TVideoSnippet;
  4272. Fstatistics : TVideoStatistics;
  4273. Fstatus : TVideoStatus;
  4274. Fsuggestions : TVideoSuggestions;
  4275. FtopicDetails : TVideoTopicDetails;
  4276. Protected
  4277. //Property setters
  4278. Procedure SetageGating(AIndex : Integer; const AValue : TVideoAgeGating); virtual;
  4279. Procedure SetcontentDetails(AIndex : Integer; const AValue : TVideoContentDetails); virtual;
  4280. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4281. Procedure SetfileDetails(AIndex : Integer; const AValue : TVideoFileDetails); virtual;
  4282. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  4283. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4284. Procedure SetliveStreamingDetails(AIndex : Integer; const AValue : TVideoLiveStreamingDetails); virtual;
  4285. Procedure Setlocalizations(AIndex : Integer; const AValue : TVideoTypelocalizations); virtual;
  4286. Procedure SetmonetizationDetails(AIndex : Integer; const AValue : TVideoMonetizationDetails); virtual;
  4287. Procedure Setplayer(AIndex : Integer; const AValue : TVideoPlayer); virtual;
  4288. Procedure SetprocessingDetails(AIndex : Integer; const AValue : TVideoProcessingDetails); virtual;
  4289. Procedure SetprojectDetails(AIndex : Integer; const AValue : TVideoProjectDetails); virtual;
  4290. Procedure SetrecordingDetails(AIndex : Integer; const AValue : TVideoRecordingDetails); virtual;
  4291. Procedure Setsnippet(AIndex : Integer; const AValue : TVideoSnippet); virtual;
  4292. Procedure Setstatistics(AIndex : Integer; const AValue : TVideoStatistics); virtual;
  4293. Procedure Setstatus(AIndex : Integer; const AValue : TVideoStatus); virtual;
  4294. Procedure Setsuggestions(AIndex : Integer; const AValue : TVideoSuggestions); virtual;
  4295. Procedure SettopicDetails(AIndex : Integer; const AValue : TVideoTopicDetails); virtual;
  4296. Public
  4297. Published
  4298. Property ageGating : TVideoAgeGating Index 0 Read FageGating Write SetageGating;
  4299. Property contentDetails : TVideoContentDetails Index 8 Read FcontentDetails Write SetcontentDetails;
  4300. Property etag : String Index 16 Read Fetag Write Setetag;
  4301. Property fileDetails : TVideoFileDetails Index 24 Read FfileDetails Write SetfileDetails;
  4302. Property id : String Index 32 Read Fid Write Setid;
  4303. Property kind : String Index 40 Read Fkind Write Setkind;
  4304. Property liveStreamingDetails : TVideoLiveStreamingDetails Index 48 Read FliveStreamingDetails Write SetliveStreamingDetails;
  4305. Property localizations : TVideoTypelocalizations Index 56 Read Flocalizations Write Setlocalizations;
  4306. Property monetizationDetails : TVideoMonetizationDetails Index 64 Read FmonetizationDetails Write SetmonetizationDetails;
  4307. Property player : TVideoPlayer Index 72 Read Fplayer Write Setplayer;
  4308. Property processingDetails : TVideoProcessingDetails Index 80 Read FprocessingDetails Write SetprocessingDetails;
  4309. Property projectDetails : TVideoProjectDetails Index 88 Read FprojectDetails Write SetprojectDetails;
  4310. Property recordingDetails : TVideoRecordingDetails Index 96 Read FrecordingDetails Write SetrecordingDetails;
  4311. Property snippet : TVideoSnippet Index 104 Read Fsnippet Write Setsnippet;
  4312. Property statistics : TVideoStatistics Index 112 Read Fstatistics Write Setstatistics;
  4313. Property status : TVideoStatus Index 120 Read Fstatus Write Setstatus;
  4314. Property suggestions : TVideoSuggestions Index 128 Read Fsuggestions Write Setsuggestions;
  4315. Property topicDetails : TVideoTopicDetails Index 136 Read FtopicDetails Write SettopicDetails;
  4316. end;
  4317. TVideoClass = Class of TVideo;
  4318. { --------------------------------------------------------------------
  4319. TVideoAbuseReport
  4320. --------------------------------------------------------------------}
  4321. TVideoAbuseReport = Class(TGoogleBaseObject)
  4322. Private
  4323. Fcomments : String;
  4324. Flanguage : String;
  4325. FreasonId : String;
  4326. FsecondaryReasonId : String;
  4327. FvideoId : String;
  4328. Protected
  4329. //Property setters
  4330. Procedure Setcomments(AIndex : Integer; const AValue : String); virtual;
  4331. Procedure Setlanguage(AIndex : Integer; const AValue : String); virtual;
  4332. Procedure SetreasonId(AIndex : Integer; const AValue : String); virtual;
  4333. Procedure SetsecondaryReasonId(AIndex : Integer; const AValue : String); virtual;
  4334. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  4335. Public
  4336. Published
  4337. Property comments : String Index 0 Read Fcomments Write Setcomments;
  4338. Property language : String Index 8 Read Flanguage Write Setlanguage;
  4339. Property reasonId : String Index 16 Read FreasonId Write SetreasonId;
  4340. Property secondaryReasonId : String Index 24 Read FsecondaryReasonId Write SetsecondaryReasonId;
  4341. Property videoId : String Index 32 Read FvideoId Write SetvideoId;
  4342. end;
  4343. TVideoAbuseReportClass = Class of TVideoAbuseReport;
  4344. { --------------------------------------------------------------------
  4345. TVideoAbuseReportReason
  4346. --------------------------------------------------------------------}
  4347. TVideoAbuseReportReason = Class(TGoogleBaseObject)
  4348. Private
  4349. Fetag : String;
  4350. Fid : String;
  4351. Fkind : String;
  4352. Fsnippet : TVideoAbuseReportReasonSnippet;
  4353. Protected
  4354. //Property setters
  4355. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4356. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  4357. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4358. Procedure Setsnippet(AIndex : Integer; const AValue : TVideoAbuseReportReasonSnippet); virtual;
  4359. Public
  4360. Published
  4361. Property etag : String Index 0 Read Fetag Write Setetag;
  4362. Property id : String Index 8 Read Fid Write Setid;
  4363. Property kind : String Index 16 Read Fkind Write Setkind;
  4364. Property snippet : TVideoAbuseReportReasonSnippet Index 24 Read Fsnippet Write Setsnippet;
  4365. end;
  4366. TVideoAbuseReportReasonClass = Class of TVideoAbuseReportReason;
  4367. { --------------------------------------------------------------------
  4368. TVideoAbuseReportReasonListResponse
  4369. --------------------------------------------------------------------}
  4370. TVideoAbuseReportReasonListResponse = Class(TGoogleBaseObject)
  4371. Private
  4372. Fetag : String;
  4373. FeventId : String;
  4374. Fitems : TVideoAbuseReportReasonListResponseTypeitemsArray;
  4375. Fkind : String;
  4376. FvisitorId : String;
  4377. Protected
  4378. //Property setters
  4379. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4380. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  4381. Procedure Setitems(AIndex : Integer; const AValue : TVideoAbuseReportReasonListResponseTypeitemsArray); virtual;
  4382. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4383. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  4384. //2.6.4. bug workaround
  4385. {$IFDEF VER2_6}
  4386. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4387. {$ENDIF VER2_6}
  4388. Public
  4389. Published
  4390. Property etag : String Index 0 Read Fetag Write Setetag;
  4391. Property eventId : String Index 8 Read FeventId Write SeteventId;
  4392. Property items : TVideoAbuseReportReasonListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  4393. Property kind : String Index 24 Read Fkind Write Setkind;
  4394. Property visitorId : String Index 32 Read FvisitorId Write SetvisitorId;
  4395. end;
  4396. TVideoAbuseReportReasonListResponseClass = Class of TVideoAbuseReportReasonListResponse;
  4397. { --------------------------------------------------------------------
  4398. TVideoAbuseReportReasonSnippet
  4399. --------------------------------------------------------------------}
  4400. TVideoAbuseReportReasonSnippet = Class(TGoogleBaseObject)
  4401. Private
  4402. F_label : String;
  4403. FsecondaryReasons : TVideoAbuseReportReasonSnippetTypesecondaryReasonsArray;
  4404. Protected
  4405. Class Function ExportPropertyName(Const AName : String) : string; override;
  4406. //Property setters
  4407. Procedure Set_label(AIndex : Integer; const AValue : String); virtual;
  4408. Procedure SetsecondaryReasons(AIndex : Integer; const AValue : TVideoAbuseReportReasonSnippetTypesecondaryReasonsArray); virtual;
  4409. //2.6.4. bug workaround
  4410. {$IFDEF VER2_6}
  4411. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4412. {$ENDIF VER2_6}
  4413. Public
  4414. Published
  4415. Property _label : String Index 0 Read F_label Write Set_label;
  4416. Property secondaryReasons : TVideoAbuseReportReasonSnippetTypesecondaryReasonsArray Index 8 Read FsecondaryReasons Write SetsecondaryReasons;
  4417. end;
  4418. TVideoAbuseReportReasonSnippetClass = Class of TVideoAbuseReportReasonSnippet;
  4419. { --------------------------------------------------------------------
  4420. TVideoAbuseReportSecondaryReason
  4421. --------------------------------------------------------------------}
  4422. TVideoAbuseReportSecondaryReason = Class(TGoogleBaseObject)
  4423. Private
  4424. Fid : String;
  4425. F_label : String;
  4426. Protected
  4427. Class Function ExportPropertyName(Const AName : String) : string; override;
  4428. //Property setters
  4429. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  4430. Procedure Set_label(AIndex : Integer; const AValue : String); virtual;
  4431. Public
  4432. Published
  4433. Property id : String Index 0 Read Fid Write Setid;
  4434. Property _label : String Index 8 Read F_label Write Set_label;
  4435. end;
  4436. TVideoAbuseReportSecondaryReasonClass = Class of TVideoAbuseReportSecondaryReason;
  4437. { --------------------------------------------------------------------
  4438. TVideoAgeGating
  4439. --------------------------------------------------------------------}
  4440. TVideoAgeGating = Class(TGoogleBaseObject)
  4441. Private
  4442. FalcoholContent : boolean;
  4443. Frestricted : boolean;
  4444. FvideoGameRating : String;
  4445. Protected
  4446. //Property setters
  4447. Procedure SetalcoholContent(AIndex : Integer; const AValue : boolean); virtual;
  4448. Procedure Setrestricted(AIndex : Integer; const AValue : boolean); virtual;
  4449. Procedure SetvideoGameRating(AIndex : Integer; const AValue : String); virtual;
  4450. Public
  4451. Published
  4452. Property alcoholContent : boolean Index 0 Read FalcoholContent Write SetalcoholContent;
  4453. Property restricted : boolean Index 8 Read Frestricted Write Setrestricted;
  4454. Property videoGameRating : String Index 16 Read FvideoGameRating Write SetvideoGameRating;
  4455. end;
  4456. TVideoAgeGatingClass = Class of TVideoAgeGating;
  4457. { --------------------------------------------------------------------
  4458. TVideoCategory
  4459. --------------------------------------------------------------------}
  4460. TVideoCategory = Class(TGoogleBaseObject)
  4461. Private
  4462. Fetag : String;
  4463. Fid : String;
  4464. Fkind : String;
  4465. Fsnippet : TVideoCategorySnippet;
  4466. Protected
  4467. //Property setters
  4468. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4469. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  4470. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4471. Procedure Setsnippet(AIndex : Integer; const AValue : TVideoCategorySnippet); virtual;
  4472. Public
  4473. Published
  4474. Property etag : String Index 0 Read Fetag Write Setetag;
  4475. Property id : String Index 8 Read Fid Write Setid;
  4476. Property kind : String Index 16 Read Fkind Write Setkind;
  4477. Property snippet : TVideoCategorySnippet Index 24 Read Fsnippet Write Setsnippet;
  4478. end;
  4479. TVideoCategoryClass = Class of TVideoCategory;
  4480. { --------------------------------------------------------------------
  4481. TVideoCategoryListResponse
  4482. --------------------------------------------------------------------}
  4483. TVideoCategoryListResponse = Class(TGoogleBaseObject)
  4484. Private
  4485. Fetag : String;
  4486. FeventId : String;
  4487. Fitems : TVideoCategoryListResponseTypeitemsArray;
  4488. Fkind : String;
  4489. FnextPageToken : String;
  4490. FpageInfo : TPageInfo;
  4491. FprevPageToken : String;
  4492. FtokenPagination : TTokenPagination;
  4493. FvisitorId : String;
  4494. Protected
  4495. //Property setters
  4496. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4497. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  4498. Procedure Setitems(AIndex : Integer; const AValue : TVideoCategoryListResponseTypeitemsArray); virtual;
  4499. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4500. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  4501. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  4502. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  4503. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  4504. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  4505. //2.6.4. bug workaround
  4506. {$IFDEF VER2_6}
  4507. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4508. {$ENDIF VER2_6}
  4509. Public
  4510. Published
  4511. Property etag : String Index 0 Read Fetag Write Setetag;
  4512. Property eventId : String Index 8 Read FeventId Write SeteventId;
  4513. Property items : TVideoCategoryListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  4514. Property kind : String Index 24 Read Fkind Write Setkind;
  4515. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  4516. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  4517. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  4518. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  4519. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  4520. end;
  4521. TVideoCategoryListResponseClass = Class of TVideoCategoryListResponse;
  4522. { --------------------------------------------------------------------
  4523. TVideoCategorySnippet
  4524. --------------------------------------------------------------------}
  4525. TVideoCategorySnippet = Class(TGoogleBaseObject)
  4526. Private
  4527. Fassignable : boolean;
  4528. FchannelId : String;
  4529. Ftitle : String;
  4530. Protected
  4531. //Property setters
  4532. Procedure Setassignable(AIndex : Integer; const AValue : boolean); virtual;
  4533. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  4534. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  4535. Public
  4536. Published
  4537. Property assignable : boolean Index 0 Read Fassignable Write Setassignable;
  4538. Property channelId : String Index 8 Read FchannelId Write SetchannelId;
  4539. Property title : String Index 16 Read Ftitle Write Settitle;
  4540. end;
  4541. TVideoCategorySnippetClass = Class of TVideoCategorySnippet;
  4542. { --------------------------------------------------------------------
  4543. TVideoContentDetails
  4544. --------------------------------------------------------------------}
  4545. TVideoContentDetails = Class(TGoogleBaseObject)
  4546. Private
  4547. Fcaption : String;
  4548. FcontentRating : TContentRating;
  4549. FcountryRestriction : TAccessPolicy;
  4550. Fdefinition : String;
  4551. Fdimension : String;
  4552. Fduration : String;
  4553. FlicensedContent : boolean;
  4554. Fprojection : String;
  4555. FregionRestriction : TVideoContentDetailsRegionRestriction;
  4556. Protected
  4557. //Property setters
  4558. Procedure Setcaption(AIndex : Integer; const AValue : String); virtual;
  4559. Procedure SetcontentRating(AIndex : Integer; const AValue : TContentRating); virtual;
  4560. Procedure SetcountryRestriction(AIndex : Integer; const AValue : TAccessPolicy); virtual;
  4561. Procedure Setdefinition(AIndex : Integer; const AValue : String); virtual;
  4562. Procedure Setdimension(AIndex : Integer; const AValue : String); virtual;
  4563. Procedure Setduration(AIndex : Integer; const AValue : String); virtual;
  4564. Procedure SetlicensedContent(AIndex : Integer; const AValue : boolean); virtual;
  4565. Procedure Setprojection(AIndex : Integer; const AValue : String); virtual;
  4566. Procedure SetregionRestriction(AIndex : Integer; const AValue : TVideoContentDetailsRegionRestriction); virtual;
  4567. Public
  4568. Published
  4569. Property caption : String Index 0 Read Fcaption Write Setcaption;
  4570. Property contentRating : TContentRating Index 8 Read FcontentRating Write SetcontentRating;
  4571. Property countryRestriction : TAccessPolicy Index 16 Read FcountryRestriction Write SetcountryRestriction;
  4572. Property definition : String Index 24 Read Fdefinition Write Setdefinition;
  4573. Property dimension : String Index 32 Read Fdimension Write Setdimension;
  4574. Property duration : String Index 40 Read Fduration Write Setduration;
  4575. Property licensedContent : boolean Index 48 Read FlicensedContent Write SetlicensedContent;
  4576. Property projection : String Index 56 Read Fprojection Write Setprojection;
  4577. Property regionRestriction : TVideoContentDetailsRegionRestriction Index 64 Read FregionRestriction Write SetregionRestriction;
  4578. end;
  4579. TVideoContentDetailsClass = Class of TVideoContentDetails;
  4580. { --------------------------------------------------------------------
  4581. TVideoContentDetailsRegionRestriction
  4582. --------------------------------------------------------------------}
  4583. TVideoContentDetailsRegionRestriction = Class(TGoogleBaseObject)
  4584. Private
  4585. Fallowed : TStringArray;
  4586. Fblocked : TStringArray;
  4587. Protected
  4588. //Property setters
  4589. Procedure Setallowed(AIndex : Integer; const AValue : TStringArray); virtual;
  4590. Procedure Setblocked(AIndex : Integer; const AValue : TStringArray); virtual;
  4591. //2.6.4. bug workaround
  4592. {$IFDEF VER2_6}
  4593. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4594. {$ENDIF VER2_6}
  4595. Public
  4596. Published
  4597. Property allowed : TStringArray Index 0 Read Fallowed Write Setallowed;
  4598. Property blocked : TStringArray Index 8 Read Fblocked Write Setblocked;
  4599. end;
  4600. TVideoContentDetailsRegionRestrictionClass = Class of TVideoContentDetailsRegionRestriction;
  4601. { --------------------------------------------------------------------
  4602. TVideoFileDetails
  4603. --------------------------------------------------------------------}
  4604. TVideoFileDetails = Class(TGoogleBaseObject)
  4605. Private
  4606. FaudioStreams : TVideoFileDetailsTypeaudioStreamsArray;
  4607. FbitrateBps : String;
  4608. Fcontainer : String;
  4609. FcreationTime : String;
  4610. FdurationMs : String;
  4611. FfileName : String;
  4612. FfileSize : String;
  4613. FfileType : String;
  4614. FrecordingLocation : TGeoPoint;
  4615. FvideoStreams : TVideoFileDetailsTypevideoStreamsArray;
  4616. Protected
  4617. //Property setters
  4618. Procedure SetaudioStreams(AIndex : Integer; const AValue : TVideoFileDetailsTypeaudioStreamsArray); virtual;
  4619. Procedure SetbitrateBps(AIndex : Integer; const AValue : String); virtual;
  4620. Procedure Setcontainer(AIndex : Integer; const AValue : String); virtual;
  4621. Procedure SetcreationTime(AIndex : Integer; const AValue : String); virtual;
  4622. Procedure SetdurationMs(AIndex : Integer; const AValue : String); virtual;
  4623. Procedure SetfileName(AIndex : Integer; const AValue : String); virtual;
  4624. Procedure SetfileSize(AIndex : Integer; const AValue : String); virtual;
  4625. Procedure SetfileType(AIndex : Integer; const AValue : String); virtual;
  4626. Procedure SetrecordingLocation(AIndex : Integer; const AValue : TGeoPoint); virtual;
  4627. Procedure SetvideoStreams(AIndex : Integer; const AValue : TVideoFileDetailsTypevideoStreamsArray); virtual;
  4628. //2.6.4. bug workaround
  4629. {$IFDEF VER2_6}
  4630. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4631. {$ENDIF VER2_6}
  4632. Public
  4633. Published
  4634. Property audioStreams : TVideoFileDetailsTypeaudioStreamsArray Index 0 Read FaudioStreams Write SetaudioStreams;
  4635. Property bitrateBps : String Index 8 Read FbitrateBps Write SetbitrateBps;
  4636. Property container : String Index 16 Read Fcontainer Write Setcontainer;
  4637. Property creationTime : String Index 24 Read FcreationTime Write SetcreationTime;
  4638. Property durationMs : String Index 32 Read FdurationMs Write SetdurationMs;
  4639. Property fileName : String Index 40 Read FfileName Write SetfileName;
  4640. Property fileSize : String Index 48 Read FfileSize Write SetfileSize;
  4641. Property fileType : String Index 56 Read FfileType Write SetfileType;
  4642. Property recordingLocation : TGeoPoint Index 64 Read FrecordingLocation Write SetrecordingLocation;
  4643. Property videoStreams : TVideoFileDetailsTypevideoStreamsArray Index 72 Read FvideoStreams Write SetvideoStreams;
  4644. end;
  4645. TVideoFileDetailsClass = Class of TVideoFileDetails;
  4646. { --------------------------------------------------------------------
  4647. TVideoFileDetailsAudioStream
  4648. --------------------------------------------------------------------}
  4649. TVideoFileDetailsAudioStream = Class(TGoogleBaseObject)
  4650. Private
  4651. FbitrateBps : String;
  4652. FchannelCount : integer;
  4653. Fcodec : String;
  4654. Fvendor : String;
  4655. Protected
  4656. //Property setters
  4657. Procedure SetbitrateBps(AIndex : Integer; const AValue : String); virtual;
  4658. Procedure SetchannelCount(AIndex : Integer; const AValue : integer); virtual;
  4659. Procedure Setcodec(AIndex : Integer; const AValue : String); virtual;
  4660. Procedure Setvendor(AIndex : Integer; const AValue : String); virtual;
  4661. Public
  4662. Published
  4663. Property bitrateBps : String Index 0 Read FbitrateBps Write SetbitrateBps;
  4664. Property channelCount : integer Index 8 Read FchannelCount Write SetchannelCount;
  4665. Property codec : String Index 16 Read Fcodec Write Setcodec;
  4666. Property vendor : String Index 24 Read Fvendor Write Setvendor;
  4667. end;
  4668. TVideoFileDetailsAudioStreamClass = Class of TVideoFileDetailsAudioStream;
  4669. { --------------------------------------------------------------------
  4670. TVideoFileDetailsVideoStream
  4671. --------------------------------------------------------------------}
  4672. TVideoFileDetailsVideoStream = Class(TGoogleBaseObject)
  4673. Private
  4674. FaspectRatio : double;
  4675. FbitrateBps : String;
  4676. Fcodec : String;
  4677. FframeRateFps : double;
  4678. FheightPixels : integer;
  4679. Frotation : String;
  4680. Fvendor : String;
  4681. FwidthPixels : integer;
  4682. Protected
  4683. //Property setters
  4684. Procedure SetaspectRatio(AIndex : Integer; const AValue : double); virtual;
  4685. Procedure SetbitrateBps(AIndex : Integer; const AValue : String); virtual;
  4686. Procedure Setcodec(AIndex : Integer; const AValue : String); virtual;
  4687. Procedure SetframeRateFps(AIndex : Integer; const AValue : double); virtual;
  4688. Procedure SetheightPixels(AIndex : Integer; const AValue : integer); virtual;
  4689. Procedure Setrotation(AIndex : Integer; const AValue : String); virtual;
  4690. Procedure Setvendor(AIndex : Integer; const AValue : String); virtual;
  4691. Procedure SetwidthPixels(AIndex : Integer; const AValue : integer); virtual;
  4692. Public
  4693. Published
  4694. Property aspectRatio : double Index 0 Read FaspectRatio Write SetaspectRatio;
  4695. Property bitrateBps : String Index 8 Read FbitrateBps Write SetbitrateBps;
  4696. Property codec : String Index 16 Read Fcodec Write Setcodec;
  4697. Property frameRateFps : double Index 24 Read FframeRateFps Write SetframeRateFps;
  4698. Property heightPixels : integer Index 32 Read FheightPixels Write SetheightPixels;
  4699. Property rotation : String Index 40 Read Frotation Write Setrotation;
  4700. Property vendor : String Index 48 Read Fvendor Write Setvendor;
  4701. Property widthPixels : integer Index 56 Read FwidthPixels Write SetwidthPixels;
  4702. end;
  4703. TVideoFileDetailsVideoStreamClass = Class of TVideoFileDetailsVideoStream;
  4704. { --------------------------------------------------------------------
  4705. TVideoGetRatingResponse
  4706. --------------------------------------------------------------------}
  4707. TVideoGetRatingResponse = Class(TGoogleBaseObject)
  4708. Private
  4709. Fetag : String;
  4710. FeventId : String;
  4711. Fitems : TVideoGetRatingResponseTypeitemsArray;
  4712. Fkind : String;
  4713. FvisitorId : String;
  4714. Protected
  4715. //Property setters
  4716. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4717. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  4718. Procedure Setitems(AIndex : Integer; const AValue : TVideoGetRatingResponseTypeitemsArray); virtual;
  4719. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4720. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  4721. //2.6.4. bug workaround
  4722. {$IFDEF VER2_6}
  4723. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4724. {$ENDIF VER2_6}
  4725. Public
  4726. Published
  4727. Property etag : String Index 0 Read Fetag Write Setetag;
  4728. Property eventId : String Index 8 Read FeventId Write SeteventId;
  4729. Property items : TVideoGetRatingResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  4730. Property kind : String Index 24 Read Fkind Write Setkind;
  4731. Property visitorId : String Index 32 Read FvisitorId Write SetvisitorId;
  4732. end;
  4733. TVideoGetRatingResponseClass = Class of TVideoGetRatingResponse;
  4734. { --------------------------------------------------------------------
  4735. TVideoListResponse
  4736. --------------------------------------------------------------------}
  4737. TVideoListResponse = Class(TGoogleBaseObject)
  4738. Private
  4739. Fetag : String;
  4740. FeventId : String;
  4741. Fitems : TVideoListResponseTypeitemsArray;
  4742. Fkind : String;
  4743. FnextPageToken : String;
  4744. FpageInfo : TPageInfo;
  4745. FprevPageToken : String;
  4746. FtokenPagination : TTokenPagination;
  4747. FvisitorId : String;
  4748. Protected
  4749. //Property setters
  4750. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  4751. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  4752. Procedure Setitems(AIndex : Integer; const AValue : TVideoListResponseTypeitemsArray); virtual;
  4753. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  4754. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  4755. Procedure SetpageInfo(AIndex : Integer; const AValue : TPageInfo); virtual;
  4756. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  4757. Procedure SettokenPagination(AIndex : Integer; const AValue : TTokenPagination); virtual;
  4758. Procedure SetvisitorId(AIndex : Integer; const AValue : String); virtual;
  4759. //2.6.4. bug workaround
  4760. {$IFDEF VER2_6}
  4761. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4762. {$ENDIF VER2_6}
  4763. Public
  4764. Published
  4765. Property etag : String Index 0 Read Fetag Write Setetag;
  4766. Property eventId : String Index 8 Read FeventId Write SeteventId;
  4767. Property items : TVideoListResponseTypeitemsArray Index 16 Read Fitems Write Setitems;
  4768. Property kind : String Index 24 Read Fkind Write Setkind;
  4769. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  4770. Property pageInfo : TPageInfo Index 40 Read FpageInfo Write SetpageInfo;
  4771. Property prevPageToken : String Index 48 Read FprevPageToken Write SetprevPageToken;
  4772. Property tokenPagination : TTokenPagination Index 56 Read FtokenPagination Write SettokenPagination;
  4773. Property visitorId : String Index 64 Read FvisitorId Write SetvisitorId;
  4774. end;
  4775. TVideoListResponseClass = Class of TVideoListResponse;
  4776. { --------------------------------------------------------------------
  4777. TVideoLiveStreamingDetails
  4778. --------------------------------------------------------------------}
  4779. TVideoLiveStreamingDetails = Class(TGoogleBaseObject)
  4780. Private
  4781. FactiveLiveChatId : String;
  4782. FactualEndTime : TDatetime;
  4783. FactualStartTime : TDatetime;
  4784. FconcurrentViewers : String;
  4785. FscheduledEndTime : TDatetime;
  4786. FscheduledStartTime : TDatetime;
  4787. Protected
  4788. //Property setters
  4789. Procedure SetactiveLiveChatId(AIndex : Integer; const AValue : String); virtual;
  4790. Procedure SetactualEndTime(AIndex : Integer; const AValue : TDatetime); virtual;
  4791. Procedure SetactualStartTime(AIndex : Integer; const AValue : TDatetime); virtual;
  4792. Procedure SetconcurrentViewers(AIndex : Integer; const AValue : String); virtual;
  4793. Procedure SetscheduledEndTime(AIndex : Integer; const AValue : TDatetime); virtual;
  4794. Procedure SetscheduledStartTime(AIndex : Integer; const AValue : TDatetime); virtual;
  4795. Public
  4796. Published
  4797. Property activeLiveChatId : String Index 0 Read FactiveLiveChatId Write SetactiveLiveChatId;
  4798. Property actualEndTime : TDatetime Index 8 Read FactualEndTime Write SetactualEndTime;
  4799. Property actualStartTime : TDatetime Index 16 Read FactualStartTime Write SetactualStartTime;
  4800. Property concurrentViewers : String Index 24 Read FconcurrentViewers Write SetconcurrentViewers;
  4801. Property scheduledEndTime : TDatetime Index 32 Read FscheduledEndTime Write SetscheduledEndTime;
  4802. Property scheduledStartTime : TDatetime Index 40 Read FscheduledStartTime Write SetscheduledStartTime;
  4803. end;
  4804. TVideoLiveStreamingDetailsClass = Class of TVideoLiveStreamingDetails;
  4805. { --------------------------------------------------------------------
  4806. TVideoLocalization
  4807. --------------------------------------------------------------------}
  4808. TVideoLocalization = Class(TGoogleBaseObject)
  4809. Private
  4810. Fdescription : String;
  4811. Ftitle : String;
  4812. Protected
  4813. //Property setters
  4814. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  4815. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  4816. Public
  4817. Published
  4818. Property description : String Index 0 Read Fdescription Write Setdescription;
  4819. Property title : String Index 8 Read Ftitle Write Settitle;
  4820. end;
  4821. TVideoLocalizationClass = Class of TVideoLocalization;
  4822. { --------------------------------------------------------------------
  4823. TVideoMonetizationDetails
  4824. --------------------------------------------------------------------}
  4825. TVideoMonetizationDetails = Class(TGoogleBaseObject)
  4826. Private
  4827. Faccess : TAccessPolicy;
  4828. Protected
  4829. //Property setters
  4830. Procedure Setaccess(AIndex : Integer; const AValue : TAccessPolicy); virtual;
  4831. Public
  4832. Published
  4833. Property access : TAccessPolicy Index 0 Read Faccess Write Setaccess;
  4834. end;
  4835. TVideoMonetizationDetailsClass = Class of TVideoMonetizationDetails;
  4836. { --------------------------------------------------------------------
  4837. TVideoPlayer
  4838. --------------------------------------------------------------------}
  4839. TVideoPlayer = Class(TGoogleBaseObject)
  4840. Private
  4841. FembedHtml : String;
  4842. Protected
  4843. //Property setters
  4844. Procedure SetembedHtml(AIndex : Integer; const AValue : String); virtual;
  4845. Public
  4846. Published
  4847. Property embedHtml : String Index 0 Read FembedHtml Write SetembedHtml;
  4848. end;
  4849. TVideoPlayerClass = Class of TVideoPlayer;
  4850. { --------------------------------------------------------------------
  4851. TVideoProcessingDetails
  4852. --------------------------------------------------------------------}
  4853. TVideoProcessingDetails = Class(TGoogleBaseObject)
  4854. Private
  4855. FeditorSuggestionsAvailability : String;
  4856. FfileDetailsAvailability : String;
  4857. FprocessingFailureReason : String;
  4858. FprocessingIssuesAvailability : String;
  4859. FprocessingProgress : TVideoProcessingDetailsProcessingProgress;
  4860. FprocessingStatus : String;
  4861. FtagSuggestionsAvailability : String;
  4862. FthumbnailsAvailability : String;
  4863. Protected
  4864. //Property setters
  4865. Procedure SeteditorSuggestionsAvailability(AIndex : Integer; const AValue : String); virtual;
  4866. Procedure SetfileDetailsAvailability(AIndex : Integer; const AValue : String); virtual;
  4867. Procedure SetprocessingFailureReason(AIndex : Integer; const AValue : String); virtual;
  4868. Procedure SetprocessingIssuesAvailability(AIndex : Integer; const AValue : String); virtual;
  4869. Procedure SetprocessingProgress(AIndex : Integer; const AValue : TVideoProcessingDetailsProcessingProgress); virtual;
  4870. Procedure SetprocessingStatus(AIndex : Integer; const AValue : String); virtual;
  4871. Procedure SettagSuggestionsAvailability(AIndex : Integer; const AValue : String); virtual;
  4872. Procedure SetthumbnailsAvailability(AIndex : Integer; const AValue : String); virtual;
  4873. Public
  4874. Published
  4875. Property editorSuggestionsAvailability : String Index 0 Read FeditorSuggestionsAvailability Write SeteditorSuggestionsAvailability;
  4876. Property fileDetailsAvailability : String Index 8 Read FfileDetailsAvailability Write SetfileDetailsAvailability;
  4877. Property processingFailureReason : String Index 16 Read FprocessingFailureReason Write SetprocessingFailureReason;
  4878. Property processingIssuesAvailability : String Index 24 Read FprocessingIssuesAvailability Write SetprocessingIssuesAvailability;
  4879. Property processingProgress : TVideoProcessingDetailsProcessingProgress Index 32 Read FprocessingProgress Write SetprocessingProgress;
  4880. Property processingStatus : String Index 40 Read FprocessingStatus Write SetprocessingStatus;
  4881. Property tagSuggestionsAvailability : String Index 48 Read FtagSuggestionsAvailability Write SettagSuggestionsAvailability;
  4882. Property thumbnailsAvailability : String Index 56 Read FthumbnailsAvailability Write SetthumbnailsAvailability;
  4883. end;
  4884. TVideoProcessingDetailsClass = Class of TVideoProcessingDetails;
  4885. { --------------------------------------------------------------------
  4886. TVideoProcessingDetailsProcessingProgress
  4887. --------------------------------------------------------------------}
  4888. TVideoProcessingDetailsProcessingProgress = Class(TGoogleBaseObject)
  4889. Private
  4890. FpartsProcessed : String;
  4891. FpartsTotal : String;
  4892. FtimeLeftMs : String;
  4893. Protected
  4894. //Property setters
  4895. Procedure SetpartsProcessed(AIndex : Integer; const AValue : String); virtual;
  4896. Procedure SetpartsTotal(AIndex : Integer; const AValue : String); virtual;
  4897. Procedure SettimeLeftMs(AIndex : Integer; const AValue : String); virtual;
  4898. Public
  4899. Published
  4900. Property partsProcessed : String Index 0 Read FpartsProcessed Write SetpartsProcessed;
  4901. Property partsTotal : String Index 8 Read FpartsTotal Write SetpartsTotal;
  4902. Property timeLeftMs : String Index 16 Read FtimeLeftMs Write SettimeLeftMs;
  4903. end;
  4904. TVideoProcessingDetailsProcessingProgressClass = Class of TVideoProcessingDetailsProcessingProgress;
  4905. { --------------------------------------------------------------------
  4906. TVideoProjectDetails
  4907. --------------------------------------------------------------------}
  4908. TVideoProjectDetails = Class(TGoogleBaseObject)
  4909. Private
  4910. Ftags : TStringArray;
  4911. Protected
  4912. //Property setters
  4913. Procedure Settags(AIndex : Integer; const AValue : TStringArray); virtual;
  4914. //2.6.4. bug workaround
  4915. {$IFDEF VER2_6}
  4916. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4917. {$ENDIF VER2_6}
  4918. Public
  4919. Published
  4920. Property tags : TStringArray Index 0 Read Ftags Write Settags;
  4921. end;
  4922. TVideoProjectDetailsClass = Class of TVideoProjectDetails;
  4923. { --------------------------------------------------------------------
  4924. TVideoRating
  4925. --------------------------------------------------------------------}
  4926. TVideoRating = Class(TGoogleBaseObject)
  4927. Private
  4928. Frating : String;
  4929. FvideoId : String;
  4930. Protected
  4931. //Property setters
  4932. Procedure Setrating(AIndex : Integer; const AValue : String); virtual;
  4933. Procedure SetvideoId(AIndex : Integer; const AValue : String); virtual;
  4934. Public
  4935. Published
  4936. Property rating : String Index 0 Read Frating Write Setrating;
  4937. Property videoId : String Index 8 Read FvideoId Write SetvideoId;
  4938. end;
  4939. TVideoRatingClass = Class of TVideoRating;
  4940. { --------------------------------------------------------------------
  4941. TVideoRecordingDetails
  4942. --------------------------------------------------------------------}
  4943. TVideoRecordingDetails = Class(TGoogleBaseObject)
  4944. Private
  4945. Flocation : TGeoPoint;
  4946. FlocationDescription : String;
  4947. FrecordingDate : TDatetime;
  4948. Protected
  4949. //Property setters
  4950. Procedure Setlocation(AIndex : Integer; const AValue : TGeoPoint); virtual;
  4951. Procedure SetlocationDescription(AIndex : Integer; const AValue : String); virtual;
  4952. Procedure SetrecordingDate(AIndex : Integer; const AValue : TDatetime); virtual;
  4953. Public
  4954. Published
  4955. Property location : TGeoPoint Index 0 Read Flocation Write Setlocation;
  4956. Property locationDescription : String Index 8 Read FlocationDescription Write SetlocationDescription;
  4957. Property recordingDate : TDatetime Index 16 Read FrecordingDate Write SetrecordingDate;
  4958. end;
  4959. TVideoRecordingDetailsClass = Class of TVideoRecordingDetails;
  4960. { --------------------------------------------------------------------
  4961. TVideoSnippet
  4962. --------------------------------------------------------------------}
  4963. TVideoSnippet = Class(TGoogleBaseObject)
  4964. Private
  4965. FcategoryId : String;
  4966. FchannelId : String;
  4967. FchannelTitle : String;
  4968. FdefaultAudioLanguage : String;
  4969. FdefaultLanguage : String;
  4970. Fdescription : String;
  4971. FliveBroadcastContent : String;
  4972. Flocalized : TVideoLocalization;
  4973. FpublishedAt : TDatetime;
  4974. Ftags : TStringArray;
  4975. Fthumbnails : TThumbnailDetails;
  4976. Ftitle : String;
  4977. Protected
  4978. //Property setters
  4979. Procedure SetcategoryId(AIndex : Integer; const AValue : String); virtual;
  4980. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  4981. Procedure SetchannelTitle(AIndex : Integer; const AValue : String); virtual;
  4982. Procedure SetdefaultAudioLanguage(AIndex : Integer; const AValue : String); virtual;
  4983. Procedure SetdefaultLanguage(AIndex : Integer; const AValue : String); virtual;
  4984. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  4985. Procedure SetliveBroadcastContent(AIndex : Integer; const AValue : String); virtual;
  4986. Procedure Setlocalized(AIndex : Integer; const AValue : TVideoLocalization); virtual;
  4987. Procedure SetpublishedAt(AIndex : Integer; const AValue : TDatetime); virtual;
  4988. Procedure Settags(AIndex : Integer; const AValue : TStringArray); virtual;
  4989. Procedure Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails); virtual;
  4990. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  4991. //2.6.4. bug workaround
  4992. {$IFDEF VER2_6}
  4993. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  4994. {$ENDIF VER2_6}
  4995. Public
  4996. Published
  4997. Property categoryId : String Index 0 Read FcategoryId Write SetcategoryId;
  4998. Property channelId : String Index 8 Read FchannelId Write SetchannelId;
  4999. Property channelTitle : String Index 16 Read FchannelTitle Write SetchannelTitle;
  5000. Property defaultAudioLanguage : String Index 24 Read FdefaultAudioLanguage Write SetdefaultAudioLanguage;
  5001. Property defaultLanguage : String Index 32 Read FdefaultLanguage Write SetdefaultLanguage;
  5002. Property description : String Index 40 Read Fdescription Write Setdescription;
  5003. Property liveBroadcastContent : String Index 48 Read FliveBroadcastContent Write SetliveBroadcastContent;
  5004. Property localized : TVideoLocalization Index 56 Read Flocalized Write Setlocalized;
  5005. Property publishedAt : TDatetime Index 64 Read FpublishedAt Write SetpublishedAt;
  5006. Property tags : TStringArray Index 72 Read Ftags Write Settags;
  5007. Property thumbnails : TThumbnailDetails Index 80 Read Fthumbnails Write Setthumbnails;
  5008. Property title : String Index 88 Read Ftitle Write Settitle;
  5009. end;
  5010. TVideoSnippetClass = Class of TVideoSnippet;
  5011. { --------------------------------------------------------------------
  5012. TVideoStatistics
  5013. --------------------------------------------------------------------}
  5014. TVideoStatistics = Class(TGoogleBaseObject)
  5015. Private
  5016. FcommentCount : String;
  5017. FdislikeCount : String;
  5018. FfavoriteCount : String;
  5019. FlikeCount : String;
  5020. FviewCount : String;
  5021. Protected
  5022. //Property setters
  5023. Procedure SetcommentCount(AIndex : Integer; const AValue : String); virtual;
  5024. Procedure SetdislikeCount(AIndex : Integer; const AValue : String); virtual;
  5025. Procedure SetfavoriteCount(AIndex : Integer; const AValue : String); virtual;
  5026. Procedure SetlikeCount(AIndex : Integer; const AValue : String); virtual;
  5027. Procedure SetviewCount(AIndex : Integer; const AValue : String); virtual;
  5028. Public
  5029. Published
  5030. Property commentCount : String Index 0 Read FcommentCount Write SetcommentCount;
  5031. Property dislikeCount : String Index 8 Read FdislikeCount Write SetdislikeCount;
  5032. Property favoriteCount : String Index 16 Read FfavoriteCount Write SetfavoriteCount;
  5033. Property likeCount : String Index 24 Read FlikeCount Write SetlikeCount;
  5034. Property viewCount : String Index 32 Read FviewCount Write SetviewCount;
  5035. end;
  5036. TVideoStatisticsClass = Class of TVideoStatistics;
  5037. { --------------------------------------------------------------------
  5038. TVideoStatus
  5039. --------------------------------------------------------------------}
  5040. TVideoStatus = Class(TGoogleBaseObject)
  5041. Private
  5042. Fembeddable : boolean;
  5043. FfailureReason : String;
  5044. Flicense : String;
  5045. FprivacyStatus : String;
  5046. FpublicStatsViewable : boolean;
  5047. FpublishAt : TDatetime;
  5048. FrejectionReason : String;
  5049. FuploadStatus : String;
  5050. Protected
  5051. //Property setters
  5052. Procedure Setembeddable(AIndex : Integer; const AValue : boolean); virtual;
  5053. Procedure SetfailureReason(AIndex : Integer; const AValue : String); virtual;
  5054. Procedure Setlicense(AIndex : Integer; const AValue : String); virtual;
  5055. Procedure SetprivacyStatus(AIndex : Integer; const AValue : String); virtual;
  5056. Procedure SetpublicStatsViewable(AIndex : Integer; const AValue : boolean); virtual;
  5057. Procedure SetpublishAt(AIndex : Integer; const AValue : TDatetime); virtual;
  5058. Procedure SetrejectionReason(AIndex : Integer; const AValue : String); virtual;
  5059. Procedure SetuploadStatus(AIndex : Integer; const AValue : String); virtual;
  5060. Public
  5061. Published
  5062. Property embeddable : boolean Index 0 Read Fembeddable Write Setembeddable;
  5063. Property failureReason : String Index 8 Read FfailureReason Write SetfailureReason;
  5064. Property license : String Index 16 Read Flicense Write Setlicense;
  5065. Property privacyStatus : String Index 24 Read FprivacyStatus Write SetprivacyStatus;
  5066. Property publicStatsViewable : boolean Index 32 Read FpublicStatsViewable Write SetpublicStatsViewable;
  5067. Property publishAt : TDatetime Index 40 Read FpublishAt Write SetpublishAt;
  5068. Property rejectionReason : String Index 48 Read FrejectionReason Write SetrejectionReason;
  5069. Property uploadStatus : String Index 56 Read FuploadStatus Write SetuploadStatus;
  5070. end;
  5071. TVideoStatusClass = Class of TVideoStatus;
  5072. { --------------------------------------------------------------------
  5073. TVideoSuggestions
  5074. --------------------------------------------------------------------}
  5075. TVideoSuggestions = Class(TGoogleBaseObject)
  5076. Private
  5077. FeditorSuggestions : TStringArray;
  5078. FprocessingErrors : TStringArray;
  5079. FprocessingHints : TStringArray;
  5080. FprocessingWarnings : TStringArray;
  5081. FtagSuggestions : TVideoSuggestionsTypetagSuggestionsArray;
  5082. Protected
  5083. //Property setters
  5084. Procedure SeteditorSuggestions(AIndex : Integer; const AValue : TStringArray); virtual;
  5085. Procedure SetprocessingErrors(AIndex : Integer; const AValue : TStringArray); virtual;
  5086. Procedure SetprocessingHints(AIndex : Integer; const AValue : TStringArray); virtual;
  5087. Procedure SetprocessingWarnings(AIndex : Integer; const AValue : TStringArray); virtual;
  5088. Procedure SettagSuggestions(AIndex : Integer; const AValue : TVideoSuggestionsTypetagSuggestionsArray); virtual;
  5089. //2.6.4. bug workaround
  5090. {$IFDEF VER2_6}
  5091. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  5092. {$ENDIF VER2_6}
  5093. Public
  5094. Published
  5095. Property editorSuggestions : TStringArray Index 0 Read FeditorSuggestions Write SeteditorSuggestions;
  5096. Property processingErrors : TStringArray Index 8 Read FprocessingErrors Write SetprocessingErrors;
  5097. Property processingHints : TStringArray Index 16 Read FprocessingHints Write SetprocessingHints;
  5098. Property processingWarnings : TStringArray Index 24 Read FprocessingWarnings Write SetprocessingWarnings;
  5099. Property tagSuggestions : TVideoSuggestionsTypetagSuggestionsArray Index 32 Read FtagSuggestions Write SettagSuggestions;
  5100. end;
  5101. TVideoSuggestionsClass = Class of TVideoSuggestions;
  5102. { --------------------------------------------------------------------
  5103. TVideoSuggestionsTagSuggestion
  5104. --------------------------------------------------------------------}
  5105. TVideoSuggestionsTagSuggestion = Class(TGoogleBaseObject)
  5106. Private
  5107. FcategoryRestricts : TStringArray;
  5108. Ftag : String;
  5109. Protected
  5110. //Property setters
  5111. Procedure SetcategoryRestricts(AIndex : Integer; const AValue : TStringArray); virtual;
  5112. Procedure Settag(AIndex : Integer; const AValue : String); virtual;
  5113. //2.6.4. bug workaround
  5114. {$IFDEF VER2_6}
  5115. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  5116. {$ENDIF VER2_6}
  5117. Public
  5118. Published
  5119. Property categoryRestricts : TStringArray Index 0 Read FcategoryRestricts Write SetcategoryRestricts;
  5120. Property tag : String Index 8 Read Ftag Write Settag;
  5121. end;
  5122. TVideoSuggestionsTagSuggestionClass = Class of TVideoSuggestionsTagSuggestion;
  5123. { --------------------------------------------------------------------
  5124. TVideoTopicDetails
  5125. --------------------------------------------------------------------}
  5126. TVideoTopicDetails = Class(TGoogleBaseObject)
  5127. Private
  5128. FrelevantTopicIds : TStringArray;
  5129. FtopicIds : TStringArray;
  5130. Protected
  5131. //Property setters
  5132. Procedure SetrelevantTopicIds(AIndex : Integer; const AValue : TStringArray); virtual;
  5133. Procedure SettopicIds(AIndex : Integer; const AValue : TStringArray); virtual;
  5134. //2.6.4. bug workaround
  5135. {$IFDEF VER2_6}
  5136. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  5137. {$ENDIF VER2_6}
  5138. Public
  5139. Published
  5140. Property relevantTopicIds : TStringArray Index 0 Read FrelevantTopicIds Write SetrelevantTopicIds;
  5141. Property topicIds : TStringArray Index 8 Read FtopicIds Write SettopicIds;
  5142. end;
  5143. TVideoTopicDetailsClass = Class of TVideoTopicDetails;
  5144. { --------------------------------------------------------------------
  5145. TWatchSettings
  5146. --------------------------------------------------------------------}
  5147. TWatchSettings = Class(TGoogleBaseObject)
  5148. Private
  5149. FbackgroundColor : String;
  5150. FfeaturedPlaylistId : String;
  5151. FtextColor : String;
  5152. Protected
  5153. //Property setters
  5154. Procedure SetbackgroundColor(AIndex : Integer; const AValue : String); virtual;
  5155. Procedure SetfeaturedPlaylistId(AIndex : Integer; const AValue : String); virtual;
  5156. Procedure SettextColor(AIndex : Integer; const AValue : String); virtual;
  5157. Public
  5158. Published
  5159. Property backgroundColor : String Index 0 Read FbackgroundColor Write SetbackgroundColor;
  5160. Property featuredPlaylistId : String Index 8 Read FfeaturedPlaylistId Write SetfeaturedPlaylistId;
  5161. Property textColor : String Index 16 Read FtextColor Write SettextColor;
  5162. end;
  5163. TWatchSettingsClass = Class of TWatchSettings;
  5164. { --------------------------------------------------------------------
  5165. TActivitiesResource
  5166. --------------------------------------------------------------------}
  5167. //Optional query Options for TActivitiesResource, method Insert
  5168. TActivitiesInsertOptions = Record
  5169. part : String;
  5170. end;
  5171. //Optional query Options for TActivitiesResource, method List
  5172. TActivitiesListOptions = Record
  5173. channelId : String;
  5174. home : boolean;
  5175. maxResults : integer;
  5176. mine : boolean;
  5177. pageToken : String;
  5178. part : String;
  5179. publishedAfter : TDatetime;
  5180. publishedBefore : TDatetime;
  5181. regionCode : String;
  5182. end;
  5183. TActivitiesResource = Class(TGoogleResource)
  5184. Public
  5185. Class Function ResourceName : String; override;
  5186. Class Function DefaultAPI : TGoogleAPIClass; override;
  5187. Function Insert(aActivity : TActivity; AQuery : string = '') : TActivity;
  5188. Function Insert(aActivity : TActivity; AQuery : TActivitiesinsertOptions) : TActivity;
  5189. Function List(AQuery : string = '') : TActivityListResponse;
  5190. Function List(AQuery : TActivitieslistOptions) : TActivityListResponse;
  5191. end;
  5192. { --------------------------------------------------------------------
  5193. TCaptionsResource
  5194. --------------------------------------------------------------------}
  5195. //Optional query Options for TCaptionsResource, method Delete
  5196. TCaptionsDeleteOptions = Record
  5197. id : String;
  5198. onBehalfOf : String;
  5199. onBehalfOfContentOwner : String;
  5200. end;
  5201. //Optional query Options for TCaptionsResource, method Download
  5202. TCaptionsDownloadOptions = Record
  5203. onBehalfOf : String;
  5204. onBehalfOfContentOwner : String;
  5205. tfmt : String;
  5206. tlang : String;
  5207. end;
  5208. //Optional query Options for TCaptionsResource, method Insert
  5209. TCaptionsInsertOptions = Record
  5210. onBehalfOf : String;
  5211. onBehalfOfContentOwner : String;
  5212. part : String;
  5213. sync : boolean;
  5214. end;
  5215. //Optional query Options for TCaptionsResource, method List
  5216. TCaptionsListOptions = Record
  5217. id : String;
  5218. onBehalfOf : String;
  5219. onBehalfOfContentOwner : String;
  5220. part : String;
  5221. videoId : String;
  5222. end;
  5223. //Optional query Options for TCaptionsResource, method Update
  5224. TCaptionsUpdateOptions = Record
  5225. onBehalfOf : String;
  5226. onBehalfOfContentOwner : String;
  5227. part : String;
  5228. sync : boolean;
  5229. end;
  5230. TCaptionsResource = Class(TGoogleResource)
  5231. Public
  5232. Class Function ResourceName : String; override;
  5233. Class Function DefaultAPI : TGoogleAPIClass; override;
  5234. Procedure Delete(AQuery : string = '');
  5235. Procedure Delete(AQuery : TCaptionsdeleteOptions);
  5236. Procedure Download(id: string; AQuery : string = '');
  5237. Procedure Download(id: string; AQuery : TCaptionsdownloadOptions);
  5238. Function Insert(aCaption : TCaption; AQuery : string = '') : TCaption;
  5239. Function Insert(aCaption : TCaption; AQuery : TCaptionsinsertOptions) : TCaption;
  5240. Function List(AQuery : string = '') : TCaptionListResponse;
  5241. Function List(AQuery : TCaptionslistOptions) : TCaptionListResponse;
  5242. Function Update(aCaption : TCaption; AQuery : string = '') : TCaption;
  5243. Function Update(aCaption : TCaption; AQuery : TCaptionsupdateOptions) : TCaption;
  5244. end;
  5245. { --------------------------------------------------------------------
  5246. TChannelBannersResource
  5247. --------------------------------------------------------------------}
  5248. //Optional query Options for TChannelBannersResource, method Insert
  5249. TChannelBannersInsertOptions = Record
  5250. onBehalfOfContentOwner : String;
  5251. end;
  5252. TChannelBannersResource = Class(TGoogleResource)
  5253. Public
  5254. Class Function ResourceName : String; override;
  5255. Class Function DefaultAPI : TGoogleAPIClass; override;
  5256. Function Insert(aChannelBannerResource : TChannelBannerResource; AQuery : string = '') : TChannelBannerResource;
  5257. Function Insert(aChannelBannerResource : TChannelBannerResource; AQuery : TChannelBannersinsertOptions) : TChannelBannerResource;
  5258. end;
  5259. { --------------------------------------------------------------------
  5260. TChannelSectionsResource
  5261. --------------------------------------------------------------------}
  5262. //Optional query Options for TChannelSectionsResource, method Delete
  5263. TChannelSectionsDeleteOptions = Record
  5264. id : String;
  5265. onBehalfOfContentOwner : String;
  5266. end;
  5267. //Optional query Options for TChannelSectionsResource, method Insert
  5268. TChannelSectionsInsertOptions = Record
  5269. onBehalfOfContentOwner : String;
  5270. onBehalfOfContentOwnerChannel : String;
  5271. part : String;
  5272. end;
  5273. //Optional query Options for TChannelSectionsResource, method List
  5274. TChannelSectionsListOptions = Record
  5275. channelId : String;
  5276. hl : String;
  5277. id : String;
  5278. mine : boolean;
  5279. onBehalfOfContentOwner : String;
  5280. part : String;
  5281. end;
  5282. //Optional query Options for TChannelSectionsResource, method Update
  5283. TChannelSectionsUpdateOptions = Record
  5284. onBehalfOfContentOwner : String;
  5285. part : String;
  5286. end;
  5287. TChannelSectionsResource = Class(TGoogleResource)
  5288. Public
  5289. Class Function ResourceName : String; override;
  5290. Class Function DefaultAPI : TGoogleAPIClass; override;
  5291. Procedure Delete(AQuery : string = '');
  5292. Procedure Delete(AQuery : TChannelSectionsdeleteOptions);
  5293. Function Insert(aChannelSection : TChannelSection; AQuery : string = '') : TChannelSection;
  5294. Function Insert(aChannelSection : TChannelSection; AQuery : TChannelSectionsinsertOptions) : TChannelSection;
  5295. Function List(AQuery : string = '') : TChannelSectionListResponse;
  5296. Function List(AQuery : TChannelSectionslistOptions) : TChannelSectionListResponse;
  5297. Function Update(aChannelSection : TChannelSection; AQuery : string = '') : TChannelSection;
  5298. Function Update(aChannelSection : TChannelSection; AQuery : TChannelSectionsupdateOptions) : TChannelSection;
  5299. end;
  5300. { --------------------------------------------------------------------
  5301. TChannelsResource
  5302. --------------------------------------------------------------------}
  5303. //Optional query Options for TChannelsResource, method List
  5304. TChannelsListOptions = Record
  5305. categoryId : String;
  5306. forUsername : String;
  5307. hl : String;
  5308. id : String;
  5309. managedByMe : boolean;
  5310. maxResults : integer;
  5311. mine : boolean;
  5312. mySubscribers : boolean;
  5313. onBehalfOfContentOwner : String;
  5314. pageToken : String;
  5315. part : String;
  5316. end;
  5317. //Optional query Options for TChannelsResource, method Update
  5318. TChannelsUpdateOptions = Record
  5319. onBehalfOfContentOwner : String;
  5320. part : String;
  5321. end;
  5322. TChannelsResource = Class(TGoogleResource)
  5323. Public
  5324. Class Function ResourceName : String; override;
  5325. Class Function DefaultAPI : TGoogleAPIClass; override;
  5326. Function List(AQuery : string = '') : TChannelListResponse;
  5327. Function List(AQuery : TChannelslistOptions) : TChannelListResponse;
  5328. Function Update(aChannel : TChannel; AQuery : string = '') : TChannel;
  5329. Function Update(aChannel : TChannel; AQuery : TChannelsupdateOptions) : TChannel;
  5330. end;
  5331. { --------------------------------------------------------------------
  5332. TCommentThreadsResource
  5333. --------------------------------------------------------------------}
  5334. //Optional query Options for TCommentThreadsResource, method Insert
  5335. TCommentThreadsInsertOptions = Record
  5336. part : String;
  5337. end;
  5338. //Optional query Options for TCommentThreadsResource, method List
  5339. TCommentThreadsListOptions = Record
  5340. allThreadsRelatedToChannelId : String;
  5341. channelId : String;
  5342. id : String;
  5343. maxResults : integer;
  5344. moderationStatus : String;
  5345. order : String;
  5346. pageToken : String;
  5347. part : String;
  5348. searchTerms : String;
  5349. textFormat : String;
  5350. videoId : String;
  5351. end;
  5352. //Optional query Options for TCommentThreadsResource, method Update
  5353. TCommentThreadsUpdateOptions = Record
  5354. part : String;
  5355. end;
  5356. TCommentThreadsResource = Class(TGoogleResource)
  5357. Public
  5358. Class Function ResourceName : String; override;
  5359. Class Function DefaultAPI : TGoogleAPIClass; override;
  5360. Function Insert(aCommentThread : TCommentThread; AQuery : string = '') : TCommentThread;
  5361. Function Insert(aCommentThread : TCommentThread; AQuery : TCommentThreadsinsertOptions) : TCommentThread;
  5362. Function List(AQuery : string = '') : TCommentThreadListResponse;
  5363. Function List(AQuery : TCommentThreadslistOptions) : TCommentThreadListResponse;
  5364. Function Update(aCommentThread : TCommentThread; AQuery : string = '') : TCommentThread;
  5365. Function Update(aCommentThread : TCommentThread; AQuery : TCommentThreadsupdateOptions) : TCommentThread;
  5366. end;
  5367. { --------------------------------------------------------------------
  5368. TCommentsResource
  5369. --------------------------------------------------------------------}
  5370. //Optional query Options for TCommentsResource, method Delete
  5371. TCommentsDeleteOptions = Record
  5372. id : String;
  5373. end;
  5374. //Optional query Options for TCommentsResource, method Insert
  5375. TCommentsInsertOptions = Record
  5376. part : String;
  5377. end;
  5378. //Optional query Options for TCommentsResource, method List
  5379. TCommentsListOptions = Record
  5380. id : String;
  5381. maxResults : integer;
  5382. pageToken : String;
  5383. parentId : String;
  5384. part : String;
  5385. textFormat : String;
  5386. end;
  5387. //Optional query Options for TCommentsResource, method MarkAsSpam
  5388. TCommentsMarkAsSpamOptions = Record
  5389. id : String;
  5390. end;
  5391. //Optional query Options for TCommentsResource, method SetModerationStatus
  5392. TCommentsSetModerationStatusOptions = Record
  5393. banAuthor : boolean;
  5394. id : String;
  5395. moderationStatus : String;
  5396. end;
  5397. //Optional query Options for TCommentsResource, method Update
  5398. TCommentsUpdateOptions = Record
  5399. part : String;
  5400. end;
  5401. TCommentsResource = Class(TGoogleResource)
  5402. Public
  5403. Class Function ResourceName : String; override;
  5404. Class Function DefaultAPI : TGoogleAPIClass; override;
  5405. Procedure Delete(AQuery : string = '');
  5406. Procedure Delete(AQuery : TCommentsdeleteOptions);
  5407. Function Insert(aComment : TComment; AQuery : string = '') : TComment;
  5408. Function Insert(aComment : TComment; AQuery : TCommentsinsertOptions) : TComment;
  5409. Function List(AQuery : string = '') : TCommentListResponse;
  5410. Function List(AQuery : TCommentslistOptions) : TCommentListResponse;
  5411. Procedure MarkAsSpam(AQuery : string = '');
  5412. Procedure MarkAsSpam(AQuery : TCommentsmarkAsSpamOptions);
  5413. Procedure SetModerationStatus(AQuery : string = '');
  5414. Procedure SetModerationStatus(AQuery : TCommentssetModerationStatusOptions);
  5415. Function Update(aComment : TComment; AQuery : string = '') : TComment;
  5416. Function Update(aComment : TComment; AQuery : TCommentsupdateOptions) : TComment;
  5417. end;
  5418. { --------------------------------------------------------------------
  5419. TFanFundingEventsResource
  5420. --------------------------------------------------------------------}
  5421. //Optional query Options for TFanFundingEventsResource, method List
  5422. TFanFundingEventsListOptions = Record
  5423. hl : String;
  5424. maxResults : integer;
  5425. pageToken : String;
  5426. part : String;
  5427. end;
  5428. TFanFundingEventsResource = Class(TGoogleResource)
  5429. Public
  5430. Class Function ResourceName : String; override;
  5431. Class Function DefaultAPI : TGoogleAPIClass; override;
  5432. Function List(AQuery : string = '') : TFanFundingEventListResponse;
  5433. Function List(AQuery : TFanFundingEventslistOptions) : TFanFundingEventListResponse;
  5434. end;
  5435. { --------------------------------------------------------------------
  5436. TGuideCategoriesResource
  5437. --------------------------------------------------------------------}
  5438. //Optional query Options for TGuideCategoriesResource, method List
  5439. TGuideCategoriesListOptions = Record
  5440. hl : String;
  5441. id : String;
  5442. part : String;
  5443. regionCode : String;
  5444. end;
  5445. TGuideCategoriesResource = Class(TGoogleResource)
  5446. Public
  5447. Class Function ResourceName : String; override;
  5448. Class Function DefaultAPI : TGoogleAPIClass; override;
  5449. Function List(AQuery : string = '') : TGuideCategoryListResponse;
  5450. Function List(AQuery : TGuideCategorieslistOptions) : TGuideCategoryListResponse;
  5451. end;
  5452. { --------------------------------------------------------------------
  5453. TI18nLanguagesResource
  5454. --------------------------------------------------------------------}
  5455. //Optional query Options for TI18nLanguagesResource, method List
  5456. TI18nLanguagesListOptions = Record
  5457. hl : String;
  5458. part : String;
  5459. end;
  5460. TI18nLanguagesResource = Class(TGoogleResource)
  5461. Public
  5462. Class Function ResourceName : String; override;
  5463. Class Function DefaultAPI : TGoogleAPIClass; override;
  5464. Function List(AQuery : string = '') : TI18nLanguageListResponse;
  5465. Function List(AQuery : TI18nLanguageslistOptions) : TI18nLanguageListResponse;
  5466. end;
  5467. { --------------------------------------------------------------------
  5468. TI18nRegionsResource
  5469. --------------------------------------------------------------------}
  5470. //Optional query Options for TI18nRegionsResource, method List
  5471. TI18nRegionsListOptions = Record
  5472. hl : String;
  5473. part : String;
  5474. end;
  5475. TI18nRegionsResource = Class(TGoogleResource)
  5476. Public
  5477. Class Function ResourceName : String; override;
  5478. Class Function DefaultAPI : TGoogleAPIClass; override;
  5479. Function List(AQuery : string = '') : TI18nRegionListResponse;
  5480. Function List(AQuery : TI18nRegionslistOptions) : TI18nRegionListResponse;
  5481. end;
  5482. { --------------------------------------------------------------------
  5483. TLiveBroadcastsResource
  5484. --------------------------------------------------------------------}
  5485. //Optional query Options for TLiveBroadcastsResource, method Bind
  5486. TLiveBroadcastsBindOptions = Record
  5487. id : String;
  5488. onBehalfOfContentOwner : String;
  5489. onBehalfOfContentOwnerChannel : String;
  5490. part : String;
  5491. streamId : String;
  5492. end;
  5493. //Optional query Options for TLiveBroadcastsResource, method Control
  5494. TLiveBroadcastsControlOptions = Record
  5495. displaySlate : boolean;
  5496. id : String;
  5497. offsetTimeMs : String;
  5498. onBehalfOfContentOwner : String;
  5499. onBehalfOfContentOwnerChannel : String;
  5500. part : String;
  5501. walltime : TDatetime;
  5502. end;
  5503. //Optional query Options for TLiveBroadcastsResource, method Delete
  5504. TLiveBroadcastsDeleteOptions = Record
  5505. id : String;
  5506. onBehalfOfContentOwner : String;
  5507. onBehalfOfContentOwnerChannel : String;
  5508. end;
  5509. //Optional query Options for TLiveBroadcastsResource, method Insert
  5510. TLiveBroadcastsInsertOptions = Record
  5511. onBehalfOfContentOwner : String;
  5512. onBehalfOfContentOwnerChannel : String;
  5513. part : String;
  5514. end;
  5515. //Optional query Options for TLiveBroadcastsResource, method List
  5516. TLiveBroadcastsListOptions = Record
  5517. broadcastStatus : String;
  5518. broadcastType : String;
  5519. id : String;
  5520. maxResults : integer;
  5521. mine : boolean;
  5522. onBehalfOfContentOwner : String;
  5523. onBehalfOfContentOwnerChannel : String;
  5524. pageToken : String;
  5525. part : String;
  5526. end;
  5527. //Optional query Options for TLiveBroadcastsResource, method Transition
  5528. TLiveBroadcastsTransitionOptions = Record
  5529. broadcastStatus : String;
  5530. id : String;
  5531. onBehalfOfContentOwner : String;
  5532. onBehalfOfContentOwnerChannel : String;
  5533. part : String;
  5534. end;
  5535. //Optional query Options for TLiveBroadcastsResource, method Update
  5536. TLiveBroadcastsUpdateOptions = Record
  5537. onBehalfOfContentOwner : String;
  5538. onBehalfOfContentOwnerChannel : String;
  5539. part : String;
  5540. end;
  5541. TLiveBroadcastsResource = Class(TGoogleResource)
  5542. Public
  5543. Class Function ResourceName : String; override;
  5544. Class Function DefaultAPI : TGoogleAPIClass; override;
  5545. Function Bind(AQuery : string = '') : TLiveBroadcast;
  5546. Function Bind(AQuery : TLiveBroadcastsbindOptions) : TLiveBroadcast;
  5547. Function Control(AQuery : string = '') : TLiveBroadcast;
  5548. Function Control(AQuery : TLiveBroadcastscontrolOptions) : TLiveBroadcast;
  5549. Procedure Delete(AQuery : string = '');
  5550. Procedure Delete(AQuery : TLiveBroadcastsdeleteOptions);
  5551. Function Insert(aLiveBroadcast : TLiveBroadcast; AQuery : string = '') : TLiveBroadcast;
  5552. Function Insert(aLiveBroadcast : TLiveBroadcast; AQuery : TLiveBroadcastsinsertOptions) : TLiveBroadcast;
  5553. Function List(AQuery : string = '') : TLiveBroadcastListResponse;
  5554. Function List(AQuery : TLiveBroadcastslistOptions) : TLiveBroadcastListResponse;
  5555. Function Transition(AQuery : string = '') : TLiveBroadcast;
  5556. Function Transition(AQuery : TLiveBroadcaststransitionOptions) : TLiveBroadcast;
  5557. Function Update(aLiveBroadcast : TLiveBroadcast; AQuery : string = '') : TLiveBroadcast;
  5558. Function Update(aLiveBroadcast : TLiveBroadcast; AQuery : TLiveBroadcastsupdateOptions) : TLiveBroadcast;
  5559. end;
  5560. { --------------------------------------------------------------------
  5561. TLiveChatBansResource
  5562. --------------------------------------------------------------------}
  5563. //Optional query Options for TLiveChatBansResource, method Delete
  5564. TLiveChatBansDeleteOptions = Record
  5565. id : String;
  5566. end;
  5567. //Optional query Options for TLiveChatBansResource, method Insert
  5568. TLiveChatBansInsertOptions = Record
  5569. part : String;
  5570. end;
  5571. TLiveChatBansResource = Class(TGoogleResource)
  5572. Public
  5573. Class Function ResourceName : String; override;
  5574. Class Function DefaultAPI : TGoogleAPIClass; override;
  5575. Procedure Delete(AQuery : string = '');
  5576. Procedure Delete(AQuery : TLiveChatBansdeleteOptions);
  5577. Function Insert(aLiveChatBan : TLiveChatBan; AQuery : string = '') : TLiveChatBan;
  5578. Function Insert(aLiveChatBan : TLiveChatBan; AQuery : TLiveChatBansinsertOptions) : TLiveChatBan;
  5579. end;
  5580. { --------------------------------------------------------------------
  5581. TLiveChatMessagesResource
  5582. --------------------------------------------------------------------}
  5583. //Optional query Options for TLiveChatMessagesResource, method Delete
  5584. TLiveChatMessagesDeleteOptions = Record
  5585. id : String;
  5586. end;
  5587. //Optional query Options for TLiveChatMessagesResource, method Insert
  5588. TLiveChatMessagesInsertOptions = Record
  5589. part : String;
  5590. end;
  5591. //Optional query Options for TLiveChatMessagesResource, method List
  5592. TLiveChatMessagesListOptions = Record
  5593. hl : String;
  5594. liveChatId : String;
  5595. maxResults : integer;
  5596. pageToken : String;
  5597. part : String;
  5598. profileImageSize : integer;
  5599. end;
  5600. TLiveChatMessagesResource = Class(TGoogleResource)
  5601. Public
  5602. Class Function ResourceName : String; override;
  5603. Class Function DefaultAPI : TGoogleAPIClass; override;
  5604. Procedure Delete(AQuery : string = '');
  5605. Procedure Delete(AQuery : TLiveChatMessagesdeleteOptions);
  5606. Function Insert(aLiveChatMessage : TLiveChatMessage; AQuery : string = '') : TLiveChatMessage;
  5607. Function Insert(aLiveChatMessage : TLiveChatMessage; AQuery : TLiveChatMessagesinsertOptions) : TLiveChatMessage;
  5608. Function List(AQuery : string = '') : TLiveChatMessageListResponse;
  5609. Function List(AQuery : TLiveChatMessageslistOptions) : TLiveChatMessageListResponse;
  5610. end;
  5611. { --------------------------------------------------------------------
  5612. TLiveChatModeratorsResource
  5613. --------------------------------------------------------------------}
  5614. //Optional query Options for TLiveChatModeratorsResource, method Delete
  5615. TLiveChatModeratorsDeleteOptions = Record
  5616. id : String;
  5617. end;
  5618. //Optional query Options for TLiveChatModeratorsResource, method Insert
  5619. TLiveChatModeratorsInsertOptions = Record
  5620. part : String;
  5621. end;
  5622. //Optional query Options for TLiveChatModeratorsResource, method List
  5623. TLiveChatModeratorsListOptions = Record
  5624. liveChatId : String;
  5625. maxResults : integer;
  5626. pageToken : String;
  5627. part : String;
  5628. end;
  5629. TLiveChatModeratorsResource = Class(TGoogleResource)
  5630. Public
  5631. Class Function ResourceName : String; override;
  5632. Class Function DefaultAPI : TGoogleAPIClass; override;
  5633. Procedure Delete(AQuery : string = '');
  5634. Procedure Delete(AQuery : TLiveChatModeratorsdeleteOptions);
  5635. Function Insert(aLiveChatModerator : TLiveChatModerator; AQuery : string = '') : TLiveChatModerator;
  5636. Function Insert(aLiveChatModerator : TLiveChatModerator; AQuery : TLiveChatModeratorsinsertOptions) : TLiveChatModerator;
  5637. Function List(AQuery : string = '') : TLiveChatModeratorListResponse;
  5638. Function List(AQuery : TLiveChatModeratorslistOptions) : TLiveChatModeratorListResponse;
  5639. end;
  5640. { --------------------------------------------------------------------
  5641. TLiveStreamsResource
  5642. --------------------------------------------------------------------}
  5643. //Optional query Options for TLiveStreamsResource, method Delete
  5644. TLiveStreamsDeleteOptions = Record
  5645. id : String;
  5646. onBehalfOfContentOwner : String;
  5647. onBehalfOfContentOwnerChannel : String;
  5648. end;
  5649. //Optional query Options for TLiveStreamsResource, method Insert
  5650. TLiveStreamsInsertOptions = Record
  5651. onBehalfOfContentOwner : String;
  5652. onBehalfOfContentOwnerChannel : String;
  5653. part : String;
  5654. end;
  5655. //Optional query Options for TLiveStreamsResource, method List
  5656. TLiveStreamsListOptions = Record
  5657. id : String;
  5658. maxResults : integer;
  5659. mine : boolean;
  5660. onBehalfOfContentOwner : String;
  5661. onBehalfOfContentOwnerChannel : String;
  5662. pageToken : String;
  5663. part : String;
  5664. end;
  5665. //Optional query Options for TLiveStreamsResource, method Update
  5666. TLiveStreamsUpdateOptions = Record
  5667. onBehalfOfContentOwner : String;
  5668. onBehalfOfContentOwnerChannel : String;
  5669. part : String;
  5670. end;
  5671. TLiveStreamsResource = Class(TGoogleResource)
  5672. Public
  5673. Class Function ResourceName : String; override;
  5674. Class Function DefaultAPI : TGoogleAPIClass; override;
  5675. Procedure Delete(AQuery : string = '');
  5676. Procedure Delete(AQuery : TLiveStreamsdeleteOptions);
  5677. Function Insert(aLiveStream : TLiveStream; AQuery : string = '') : TLiveStream;
  5678. Function Insert(aLiveStream : TLiveStream; AQuery : TLiveStreamsinsertOptions) : TLiveStream;
  5679. Function List(AQuery : string = '') : TLiveStreamListResponse;
  5680. Function List(AQuery : TLiveStreamslistOptions) : TLiveStreamListResponse;
  5681. Function Update(aLiveStream : TLiveStream; AQuery : string = '') : TLiveStream;
  5682. Function Update(aLiveStream : TLiveStream; AQuery : TLiveStreamsupdateOptions) : TLiveStream;
  5683. end;
  5684. { --------------------------------------------------------------------
  5685. TPlaylistItemsResource
  5686. --------------------------------------------------------------------}
  5687. //Optional query Options for TPlaylistItemsResource, method Delete
  5688. TPlaylistItemsDeleteOptions = Record
  5689. id : String;
  5690. end;
  5691. //Optional query Options for TPlaylistItemsResource, method Insert
  5692. TPlaylistItemsInsertOptions = Record
  5693. onBehalfOfContentOwner : String;
  5694. part : String;
  5695. end;
  5696. //Optional query Options for TPlaylistItemsResource, method List
  5697. TPlaylistItemsListOptions = Record
  5698. id : String;
  5699. maxResults : integer;
  5700. onBehalfOfContentOwner : String;
  5701. pageToken : String;
  5702. part : String;
  5703. playlistId : String;
  5704. videoId : String;
  5705. end;
  5706. //Optional query Options for TPlaylistItemsResource, method Update
  5707. TPlaylistItemsUpdateOptions = Record
  5708. part : String;
  5709. end;
  5710. TPlaylistItemsResource = Class(TGoogleResource)
  5711. Public
  5712. Class Function ResourceName : String; override;
  5713. Class Function DefaultAPI : TGoogleAPIClass; override;
  5714. Procedure Delete(AQuery : string = '');
  5715. Procedure Delete(AQuery : TPlaylistItemsdeleteOptions);
  5716. Function Insert(aPlaylistItem : TPlaylistItem; AQuery : string = '') : TPlaylistItem;
  5717. Function Insert(aPlaylistItem : TPlaylistItem; AQuery : TPlaylistItemsinsertOptions) : TPlaylistItem;
  5718. Function List(AQuery : string = '') : TPlaylistItemListResponse;
  5719. Function List(AQuery : TPlaylistItemslistOptions) : TPlaylistItemListResponse;
  5720. Function Update(aPlaylistItem : TPlaylistItem; AQuery : string = '') : TPlaylistItem;
  5721. Function Update(aPlaylistItem : TPlaylistItem; AQuery : TPlaylistItemsupdateOptions) : TPlaylistItem;
  5722. end;
  5723. { --------------------------------------------------------------------
  5724. TPlaylistsResource
  5725. --------------------------------------------------------------------}
  5726. //Optional query Options for TPlaylistsResource, method Delete
  5727. TPlaylistsDeleteOptions = Record
  5728. id : String;
  5729. onBehalfOfContentOwner : String;
  5730. end;
  5731. //Optional query Options for TPlaylistsResource, method Insert
  5732. TPlaylistsInsertOptions = Record
  5733. onBehalfOfContentOwner : String;
  5734. onBehalfOfContentOwnerChannel : String;
  5735. part : String;
  5736. end;
  5737. //Optional query Options for TPlaylistsResource, method List
  5738. TPlaylistsListOptions = Record
  5739. channelId : String;
  5740. hl : String;
  5741. id : String;
  5742. maxResults : integer;
  5743. mine : boolean;
  5744. onBehalfOfContentOwner : String;
  5745. onBehalfOfContentOwnerChannel : String;
  5746. pageToken : String;
  5747. part : String;
  5748. end;
  5749. //Optional query Options for TPlaylistsResource, method Update
  5750. TPlaylistsUpdateOptions = Record
  5751. onBehalfOfContentOwner : String;
  5752. part : String;
  5753. end;
  5754. TPlaylistsResource = Class(TGoogleResource)
  5755. Public
  5756. Class Function ResourceName : String; override;
  5757. Class Function DefaultAPI : TGoogleAPIClass; override;
  5758. Procedure Delete(AQuery : string = '');
  5759. Procedure Delete(AQuery : TPlaylistsdeleteOptions);
  5760. Function Insert(aPlaylist : TPlaylist; AQuery : string = '') : TPlaylist;
  5761. Function Insert(aPlaylist : TPlaylist; AQuery : TPlaylistsinsertOptions) : TPlaylist;
  5762. Function List(AQuery : string = '') : TPlaylistListResponse;
  5763. Function List(AQuery : TPlaylistslistOptions) : TPlaylistListResponse;
  5764. Function Update(aPlaylist : TPlaylist; AQuery : string = '') : TPlaylist;
  5765. Function Update(aPlaylist : TPlaylist; AQuery : TPlaylistsupdateOptions) : TPlaylist;
  5766. end;
  5767. { --------------------------------------------------------------------
  5768. TSearchResource
  5769. --------------------------------------------------------------------}
  5770. //Optional query Options for TSearchResource, method List
  5771. TSearchListOptions = Record
  5772. channelId : String;
  5773. channelType : String;
  5774. eventType : String;
  5775. forContentOwner : boolean;
  5776. forDeveloper : boolean;
  5777. forMine : boolean;
  5778. location : String;
  5779. locationRadius : String;
  5780. maxResults : integer;
  5781. onBehalfOfContentOwner : String;
  5782. order : String;
  5783. pageToken : String;
  5784. part : String;
  5785. publishedAfter : TDatetime;
  5786. publishedBefore : TDatetime;
  5787. q : String;
  5788. regionCode : String;
  5789. relatedToVideoId : String;
  5790. relevanceLanguage : String;
  5791. safeSearch : String;
  5792. topicId : String;
  5793. _type : String;
  5794. videoCaption : String;
  5795. videoCategoryId : String;
  5796. videoDefinition : String;
  5797. videoDimension : String;
  5798. videoDuration : String;
  5799. videoEmbeddable : String;
  5800. videoLicense : String;
  5801. videoSyndicated : String;
  5802. videoType : String;
  5803. end;
  5804. TSearchResource = Class(TGoogleResource)
  5805. Public
  5806. Class Function ResourceName : String; override;
  5807. Class Function DefaultAPI : TGoogleAPIClass; override;
  5808. Function List(AQuery : string = '') : TSearchListResponse;
  5809. Function List(AQuery : TSearchlistOptions) : TSearchListResponse;
  5810. end;
  5811. { --------------------------------------------------------------------
  5812. TSponsorsResource
  5813. --------------------------------------------------------------------}
  5814. //Optional query Options for TSponsorsResource, method List
  5815. TSponsorsListOptions = Record
  5816. filter : String;
  5817. maxResults : integer;
  5818. pageToken : String;
  5819. part : String;
  5820. end;
  5821. TSponsorsResource = Class(TGoogleResource)
  5822. Public
  5823. Class Function ResourceName : String; override;
  5824. Class Function DefaultAPI : TGoogleAPIClass; override;
  5825. Function List(AQuery : string = '') : TSponsorListResponse;
  5826. Function List(AQuery : TSponsorslistOptions) : TSponsorListResponse;
  5827. end;
  5828. { --------------------------------------------------------------------
  5829. TSubscriptionsResource
  5830. --------------------------------------------------------------------}
  5831. //Optional query Options for TSubscriptionsResource, method Delete
  5832. TSubscriptionsDeleteOptions = Record
  5833. id : String;
  5834. end;
  5835. //Optional query Options for TSubscriptionsResource, method Insert
  5836. TSubscriptionsInsertOptions = Record
  5837. part : String;
  5838. end;
  5839. //Optional query Options for TSubscriptionsResource, method List
  5840. TSubscriptionsListOptions = Record
  5841. channelId : String;
  5842. forChannelId : String;
  5843. id : String;
  5844. maxResults : integer;
  5845. mine : boolean;
  5846. mySubscribers : boolean;
  5847. onBehalfOfContentOwner : String;
  5848. onBehalfOfContentOwnerChannel : String;
  5849. order : String;
  5850. pageToken : String;
  5851. part : String;
  5852. end;
  5853. TSubscriptionsResource = Class(TGoogleResource)
  5854. Public
  5855. Class Function ResourceName : String; override;
  5856. Class Function DefaultAPI : TGoogleAPIClass; override;
  5857. Procedure Delete(AQuery : string = '');
  5858. Procedure Delete(AQuery : TSubscriptionsdeleteOptions);
  5859. Function Insert(aSubscription : TSubscription; AQuery : string = '') : TSubscription;
  5860. Function Insert(aSubscription : TSubscription; AQuery : TSubscriptionsinsertOptions) : TSubscription;
  5861. Function List(AQuery : string = '') : TSubscriptionListResponse;
  5862. Function List(AQuery : TSubscriptionslistOptions) : TSubscriptionListResponse;
  5863. end;
  5864. { --------------------------------------------------------------------
  5865. TThumbnailsResource
  5866. --------------------------------------------------------------------}
  5867. //Optional query Options for TThumbnailsResource, method Set
  5868. TThumbnailsSetOptions = Record
  5869. onBehalfOfContentOwner : String;
  5870. videoId : String;
  5871. end;
  5872. TThumbnailsResource = Class(TGoogleResource)
  5873. Public
  5874. Class Function ResourceName : String; override;
  5875. Class Function DefaultAPI : TGoogleAPIClass; override;
  5876. Function _set(AQuery : string = '') : TThumbnailSetResponse;
  5877. Function _set(AQuery : TThumbnailssetOptions) : TThumbnailSetResponse;
  5878. end;
  5879. { --------------------------------------------------------------------
  5880. TVideoAbuseReportReasonsResource
  5881. --------------------------------------------------------------------}
  5882. //Optional query Options for TVideoAbuseReportReasonsResource, method List
  5883. TVideoAbuseReportReasonsListOptions = Record
  5884. hl : String;
  5885. part : String;
  5886. end;
  5887. TVideoAbuseReportReasonsResource = Class(TGoogleResource)
  5888. Public
  5889. Class Function ResourceName : String; override;
  5890. Class Function DefaultAPI : TGoogleAPIClass; override;
  5891. Function List(AQuery : string = '') : TVideoAbuseReportReasonListResponse;
  5892. Function List(AQuery : TVideoAbuseReportReasonslistOptions) : TVideoAbuseReportReasonListResponse;
  5893. end;
  5894. { --------------------------------------------------------------------
  5895. TVideoCategoriesResource
  5896. --------------------------------------------------------------------}
  5897. //Optional query Options for TVideoCategoriesResource, method List
  5898. TVideoCategoriesListOptions = Record
  5899. hl : String;
  5900. id : String;
  5901. part : String;
  5902. regionCode : String;
  5903. end;
  5904. TVideoCategoriesResource = Class(TGoogleResource)
  5905. Public
  5906. Class Function ResourceName : String; override;
  5907. Class Function DefaultAPI : TGoogleAPIClass; override;
  5908. Function List(AQuery : string = '') : TVideoCategoryListResponse;
  5909. Function List(AQuery : TVideoCategorieslistOptions) : TVideoCategoryListResponse;
  5910. end;
  5911. { --------------------------------------------------------------------
  5912. TVideosResource
  5913. --------------------------------------------------------------------}
  5914. //Optional query Options for TVideosResource, method Delete
  5915. TVideosDeleteOptions = Record
  5916. id : String;
  5917. onBehalfOfContentOwner : String;
  5918. end;
  5919. //Optional query Options for TVideosResource, method GetRating
  5920. TVideosGetRatingOptions = Record
  5921. id : String;
  5922. onBehalfOfContentOwner : String;
  5923. end;
  5924. //Optional query Options for TVideosResource, method Insert
  5925. TVideosInsertOptions = Record
  5926. autoLevels : boolean;
  5927. notifySubscribers : boolean;
  5928. onBehalfOfContentOwner : String;
  5929. onBehalfOfContentOwnerChannel : String;
  5930. part : String;
  5931. stabilize : boolean;
  5932. end;
  5933. //Optional query Options for TVideosResource, method List
  5934. TVideosListOptions = Record
  5935. chart : String;
  5936. hl : String;
  5937. id : String;
  5938. locale : String;
  5939. maxResults : integer;
  5940. myRating : String;
  5941. onBehalfOfContentOwner : String;
  5942. pageToken : String;
  5943. part : String;
  5944. regionCode : String;
  5945. videoCategoryId : String;
  5946. end;
  5947. //Optional query Options for TVideosResource, method Rate
  5948. TVideosRateOptions = Record
  5949. id : String;
  5950. rating : String;
  5951. end;
  5952. //Optional query Options for TVideosResource, method ReportAbuse
  5953. TVideosReportAbuseOptions = Record
  5954. onBehalfOfContentOwner : String;
  5955. end;
  5956. //Optional query Options for TVideosResource, method Update
  5957. TVideosUpdateOptions = Record
  5958. onBehalfOfContentOwner : String;
  5959. part : String;
  5960. end;
  5961. TVideosResource = Class(TGoogleResource)
  5962. Public
  5963. Class Function ResourceName : String; override;
  5964. Class Function DefaultAPI : TGoogleAPIClass; override;
  5965. Procedure Delete(AQuery : string = '');
  5966. Procedure Delete(AQuery : TVideosdeleteOptions);
  5967. Function GetRating(AQuery : string = '') : TVideoGetRatingResponse;
  5968. Function GetRating(AQuery : TVideosgetRatingOptions) : TVideoGetRatingResponse;
  5969. Function Insert(aVideo : TVideo; AQuery : string = '') : TVideo;
  5970. Function Insert(aVideo : TVideo; AQuery : TVideosinsertOptions) : TVideo;
  5971. Function List(AQuery : string = '') : TVideoListResponse;
  5972. Function List(AQuery : TVideoslistOptions) : TVideoListResponse;
  5973. Procedure Rate(AQuery : string = '');
  5974. Procedure Rate(AQuery : TVideosrateOptions);
  5975. Procedure ReportAbuse(aVideoAbuseReport : TVideoAbuseReport; AQuery : string = '');
  5976. Procedure ReportAbuse(aVideoAbuseReport : TVideoAbuseReport; AQuery : TVideosreportAbuseOptions);
  5977. Function Update(aVideo : TVideo; AQuery : string = '') : TVideo;
  5978. Function Update(aVideo : TVideo; AQuery : TVideosupdateOptions) : TVideo;
  5979. end;
  5980. { --------------------------------------------------------------------
  5981. TWatermarksResource
  5982. --------------------------------------------------------------------}
  5983. //Optional query Options for TWatermarksResource, method Set
  5984. TWatermarksSetOptions = Record
  5985. channelId : String;
  5986. onBehalfOfContentOwner : String;
  5987. end;
  5988. //Optional query Options for TWatermarksResource, method Unset
  5989. TWatermarksUnsetOptions = Record
  5990. channelId : String;
  5991. onBehalfOfContentOwner : String;
  5992. end;
  5993. TWatermarksResource = Class(TGoogleResource)
  5994. Public
  5995. Class Function ResourceName : String; override;
  5996. Class Function DefaultAPI : TGoogleAPIClass; override;
  5997. Procedure _set(aInvideoBranding : TInvideoBranding; AQuery : string = '');
  5998. Procedure _set(aInvideoBranding : TInvideoBranding; AQuery : TWatermarkssetOptions);
  5999. Procedure Unset(AQuery : string = '');
  6000. Procedure Unset(AQuery : TWatermarksunsetOptions);
  6001. end;
  6002. { --------------------------------------------------------------------
  6003. TYoutubeAPI
  6004. --------------------------------------------------------------------}
  6005. TYoutubeAPI = Class(TGoogleAPI)
  6006. Private
  6007. FActivitiesInstance : TActivitiesResource;
  6008. FCaptionsInstance : TCaptionsResource;
  6009. FChannelBannersInstance : TChannelBannersResource;
  6010. FChannelSectionsInstance : TChannelSectionsResource;
  6011. FChannelsInstance : TChannelsResource;
  6012. FCommentThreadsInstance : TCommentThreadsResource;
  6013. FCommentsInstance : TCommentsResource;
  6014. FFanFundingEventsInstance : TFanFundingEventsResource;
  6015. FGuideCategoriesInstance : TGuideCategoriesResource;
  6016. FI18nLanguagesInstance : TI18nLanguagesResource;
  6017. FI18nRegionsInstance : TI18nRegionsResource;
  6018. FLiveBroadcastsInstance : TLiveBroadcastsResource;
  6019. FLiveChatBansInstance : TLiveChatBansResource;
  6020. FLiveChatMessagesInstance : TLiveChatMessagesResource;
  6021. FLiveChatModeratorsInstance : TLiveChatModeratorsResource;
  6022. FLiveStreamsInstance : TLiveStreamsResource;
  6023. FPlaylistItemsInstance : TPlaylistItemsResource;
  6024. FPlaylistsInstance : TPlaylistsResource;
  6025. FSearchInstance : TSearchResource;
  6026. FSponsorsInstance : TSponsorsResource;
  6027. FSubscriptionsInstance : TSubscriptionsResource;
  6028. FThumbnailsInstance : TThumbnailsResource;
  6029. FVideoAbuseReportReasonsInstance : TVideoAbuseReportReasonsResource;
  6030. FVideoCategoriesInstance : TVideoCategoriesResource;
  6031. FVideosInstance : TVideosResource;
  6032. FWatermarksInstance : TWatermarksResource;
  6033. Function GetActivitiesInstance : TActivitiesResource;virtual;
  6034. Function GetCaptionsInstance : TCaptionsResource;virtual;
  6035. Function GetChannelBannersInstance : TChannelBannersResource;virtual;
  6036. Function GetChannelSectionsInstance : TChannelSectionsResource;virtual;
  6037. Function GetChannelsInstance : TChannelsResource;virtual;
  6038. Function GetCommentThreadsInstance : TCommentThreadsResource;virtual;
  6039. Function GetCommentsInstance : TCommentsResource;virtual;
  6040. Function GetFanFundingEventsInstance : TFanFundingEventsResource;virtual;
  6041. Function GetGuideCategoriesInstance : TGuideCategoriesResource;virtual;
  6042. Function GetI18nLanguagesInstance : TI18nLanguagesResource;virtual;
  6043. Function GetI18nRegionsInstance : TI18nRegionsResource;virtual;
  6044. Function GetLiveBroadcastsInstance : TLiveBroadcastsResource;virtual;
  6045. Function GetLiveChatBansInstance : TLiveChatBansResource;virtual;
  6046. Function GetLiveChatMessagesInstance : TLiveChatMessagesResource;virtual;
  6047. Function GetLiveChatModeratorsInstance : TLiveChatModeratorsResource;virtual;
  6048. Function GetLiveStreamsInstance : TLiveStreamsResource;virtual;
  6049. Function GetPlaylistItemsInstance : TPlaylistItemsResource;virtual;
  6050. Function GetPlaylistsInstance : TPlaylistsResource;virtual;
  6051. Function GetSearchInstance : TSearchResource;virtual;
  6052. Function GetSponsorsInstance : TSponsorsResource;virtual;
  6053. Function GetSubscriptionsInstance : TSubscriptionsResource;virtual;
  6054. Function GetThumbnailsInstance : TThumbnailsResource;virtual;
  6055. Function GetVideoAbuseReportReasonsInstance : TVideoAbuseReportReasonsResource;virtual;
  6056. Function GetVideoCategoriesInstance : TVideoCategoriesResource;virtual;
  6057. Function GetVideosInstance : TVideosResource;virtual;
  6058. Function GetWatermarksInstance : TWatermarksResource;virtual;
  6059. Public
  6060. //Override class functions with API info
  6061. Class Function APIName : String; override;
  6062. Class Function APIVersion : String; override;
  6063. Class Function APIRevision : String; override;
  6064. Class Function APIID : String; override;
  6065. Class Function APITitle : String; override;
  6066. Class Function APIDescription : String; override;
  6067. Class Function APIOwnerDomain : String; override;
  6068. Class Function APIOwnerName : String; override;
  6069. Class Function APIIcon16 : String; override;
  6070. Class Function APIIcon32 : String; override;
  6071. Class Function APIdocumentationLink : String; override;
  6072. Class Function APIrootUrl : string; override;
  6073. Class Function APIbasePath : string;override;
  6074. Class Function APIbaseURL : String;override;
  6075. Class Function APIProtocol : string;override;
  6076. Class Function APIservicePath : string;override;
  6077. Class Function APIbatchPath : String;override;
  6078. Class Function APIAuthScopes : TScopeInfoArray;override;
  6079. Class Function APINeedsAuth : Boolean;override;
  6080. Class Procedure RegisterAPIResources; override;
  6081. //Add create function for resources
  6082. Function CreateActivitiesResource(AOwner : TComponent) : TActivitiesResource;virtual;overload;
  6083. Function CreateActivitiesResource : TActivitiesResource;virtual;overload;
  6084. Function CreateCaptionsResource(AOwner : TComponent) : TCaptionsResource;virtual;overload;
  6085. Function CreateCaptionsResource : TCaptionsResource;virtual;overload;
  6086. Function CreateChannelBannersResource(AOwner : TComponent) : TChannelBannersResource;virtual;overload;
  6087. Function CreateChannelBannersResource : TChannelBannersResource;virtual;overload;
  6088. Function CreateChannelSectionsResource(AOwner : TComponent) : TChannelSectionsResource;virtual;overload;
  6089. Function CreateChannelSectionsResource : TChannelSectionsResource;virtual;overload;
  6090. Function CreateChannelsResource(AOwner : TComponent) : TChannelsResource;virtual;overload;
  6091. Function CreateChannelsResource : TChannelsResource;virtual;overload;
  6092. Function CreateCommentThreadsResource(AOwner : TComponent) : TCommentThreadsResource;virtual;overload;
  6093. Function CreateCommentThreadsResource : TCommentThreadsResource;virtual;overload;
  6094. Function CreateCommentsResource(AOwner : TComponent) : TCommentsResource;virtual;overload;
  6095. Function CreateCommentsResource : TCommentsResource;virtual;overload;
  6096. Function CreateFanFundingEventsResource(AOwner : TComponent) : TFanFundingEventsResource;virtual;overload;
  6097. Function CreateFanFundingEventsResource : TFanFundingEventsResource;virtual;overload;
  6098. Function CreateGuideCategoriesResource(AOwner : TComponent) : TGuideCategoriesResource;virtual;overload;
  6099. Function CreateGuideCategoriesResource : TGuideCategoriesResource;virtual;overload;
  6100. Function CreateI18nLanguagesResource(AOwner : TComponent) : TI18nLanguagesResource;virtual;overload;
  6101. Function CreateI18nLanguagesResource : TI18nLanguagesResource;virtual;overload;
  6102. Function CreateI18nRegionsResource(AOwner : TComponent) : TI18nRegionsResource;virtual;overload;
  6103. Function CreateI18nRegionsResource : TI18nRegionsResource;virtual;overload;
  6104. Function CreateLiveBroadcastsResource(AOwner : TComponent) : TLiveBroadcastsResource;virtual;overload;
  6105. Function CreateLiveBroadcastsResource : TLiveBroadcastsResource;virtual;overload;
  6106. Function CreateLiveChatBansResource(AOwner : TComponent) : TLiveChatBansResource;virtual;overload;
  6107. Function CreateLiveChatBansResource : TLiveChatBansResource;virtual;overload;
  6108. Function CreateLiveChatMessagesResource(AOwner : TComponent) : TLiveChatMessagesResource;virtual;overload;
  6109. Function CreateLiveChatMessagesResource : TLiveChatMessagesResource;virtual;overload;
  6110. Function CreateLiveChatModeratorsResource(AOwner : TComponent) : TLiveChatModeratorsResource;virtual;overload;
  6111. Function CreateLiveChatModeratorsResource : TLiveChatModeratorsResource;virtual;overload;
  6112. Function CreateLiveStreamsResource(AOwner : TComponent) : TLiveStreamsResource;virtual;overload;
  6113. Function CreateLiveStreamsResource : TLiveStreamsResource;virtual;overload;
  6114. Function CreatePlaylistItemsResource(AOwner : TComponent) : TPlaylistItemsResource;virtual;overload;
  6115. Function CreatePlaylistItemsResource : TPlaylistItemsResource;virtual;overload;
  6116. Function CreatePlaylistsResource(AOwner : TComponent) : TPlaylistsResource;virtual;overload;
  6117. Function CreatePlaylistsResource : TPlaylistsResource;virtual;overload;
  6118. Function CreateSearchResource(AOwner : TComponent) : TSearchResource;virtual;overload;
  6119. Function CreateSearchResource : TSearchResource;virtual;overload;
  6120. Function CreateSponsorsResource(AOwner : TComponent) : TSponsorsResource;virtual;overload;
  6121. Function CreateSponsorsResource : TSponsorsResource;virtual;overload;
  6122. Function CreateSubscriptionsResource(AOwner : TComponent) : TSubscriptionsResource;virtual;overload;
  6123. Function CreateSubscriptionsResource : TSubscriptionsResource;virtual;overload;
  6124. Function CreateThumbnailsResource(AOwner : TComponent) : TThumbnailsResource;virtual;overload;
  6125. Function CreateThumbnailsResource : TThumbnailsResource;virtual;overload;
  6126. Function CreateVideoAbuseReportReasonsResource(AOwner : TComponent) : TVideoAbuseReportReasonsResource;virtual;overload;
  6127. Function CreateVideoAbuseReportReasonsResource : TVideoAbuseReportReasonsResource;virtual;overload;
  6128. Function CreateVideoCategoriesResource(AOwner : TComponent) : TVideoCategoriesResource;virtual;overload;
  6129. Function CreateVideoCategoriesResource : TVideoCategoriesResource;virtual;overload;
  6130. Function CreateVideosResource(AOwner : TComponent) : TVideosResource;virtual;overload;
  6131. Function CreateVideosResource : TVideosResource;virtual;overload;
  6132. Function CreateWatermarksResource(AOwner : TComponent) : TWatermarksResource;virtual;overload;
  6133. Function CreateWatermarksResource : TWatermarksResource;virtual;overload;
  6134. //Add default on-demand instances for resources
  6135. Property ActivitiesResource : TActivitiesResource Read GetActivitiesInstance;
  6136. Property CaptionsResource : TCaptionsResource Read GetCaptionsInstance;
  6137. Property ChannelBannersResource : TChannelBannersResource Read GetChannelBannersInstance;
  6138. Property ChannelSectionsResource : TChannelSectionsResource Read GetChannelSectionsInstance;
  6139. Property ChannelsResource : TChannelsResource Read GetChannelsInstance;
  6140. Property CommentThreadsResource : TCommentThreadsResource Read GetCommentThreadsInstance;
  6141. Property CommentsResource : TCommentsResource Read GetCommentsInstance;
  6142. Property FanFundingEventsResource : TFanFundingEventsResource Read GetFanFundingEventsInstance;
  6143. Property GuideCategoriesResource : TGuideCategoriesResource Read GetGuideCategoriesInstance;
  6144. Property I18nLanguagesResource : TI18nLanguagesResource Read GetI18nLanguagesInstance;
  6145. Property I18nRegionsResource : TI18nRegionsResource Read GetI18nRegionsInstance;
  6146. Property LiveBroadcastsResource : TLiveBroadcastsResource Read GetLiveBroadcastsInstance;
  6147. Property LiveChatBansResource : TLiveChatBansResource Read GetLiveChatBansInstance;
  6148. Property LiveChatMessagesResource : TLiveChatMessagesResource Read GetLiveChatMessagesInstance;
  6149. Property LiveChatModeratorsResource : TLiveChatModeratorsResource Read GetLiveChatModeratorsInstance;
  6150. Property LiveStreamsResource : TLiveStreamsResource Read GetLiveStreamsInstance;
  6151. Property PlaylistItemsResource : TPlaylistItemsResource Read GetPlaylistItemsInstance;
  6152. Property PlaylistsResource : TPlaylistsResource Read GetPlaylistsInstance;
  6153. Property SearchResource : TSearchResource Read GetSearchInstance;
  6154. Property SponsorsResource : TSponsorsResource Read GetSponsorsInstance;
  6155. Property SubscriptionsResource : TSubscriptionsResource Read GetSubscriptionsInstance;
  6156. Property ThumbnailsResource : TThumbnailsResource Read GetThumbnailsInstance;
  6157. Property VideoAbuseReportReasonsResource : TVideoAbuseReportReasonsResource Read GetVideoAbuseReportReasonsInstance;
  6158. Property VideoCategoriesResource : TVideoCategoriesResource Read GetVideoCategoriesInstance;
  6159. Property VideosResource : TVideosResource Read GetVideosInstance;
  6160. Property WatermarksResource : TWatermarksResource Read GetWatermarksInstance;
  6161. end;
  6162. implementation
  6163. { --------------------------------------------------------------------
  6164. TAccessPolicy
  6165. --------------------------------------------------------------------}
  6166. Procedure TAccessPolicy.Setallowed(AIndex : Integer; const AValue : boolean);
  6167. begin
  6168. If (Fallowed=AValue) then exit;
  6169. Fallowed:=AValue;
  6170. MarkPropertyChanged(AIndex);
  6171. end;
  6172. Procedure TAccessPolicy.Setexception(AIndex : Integer; const AValue : TStringArray);
  6173. begin
  6174. If (Fexception=AValue) then exit;
  6175. Fexception:=AValue;
  6176. MarkPropertyChanged(AIndex);
  6177. end;
  6178. //2.6.4. bug workaround
  6179. {$IFDEF VER2_6}
  6180. Procedure TAccessPolicy.SetArrayLength(Const AName : String; ALength : Longint);
  6181. begin
  6182. Case AName of
  6183. 'exception' : SetLength(Fexception,ALength);
  6184. else
  6185. Inherited SetArrayLength(AName,ALength);
  6186. end;
  6187. end;
  6188. {$ENDIF VER2_6}
  6189. { --------------------------------------------------------------------
  6190. TActivity
  6191. --------------------------------------------------------------------}
  6192. Procedure TActivity.SetcontentDetails(AIndex : Integer; const AValue : TActivityContentDetails);
  6193. begin
  6194. If (FcontentDetails=AValue) then exit;
  6195. FcontentDetails:=AValue;
  6196. MarkPropertyChanged(AIndex);
  6197. end;
  6198. Procedure TActivity.Setetag(AIndex : Integer; const AValue : String);
  6199. begin
  6200. If (Fetag=AValue) then exit;
  6201. Fetag:=AValue;
  6202. MarkPropertyChanged(AIndex);
  6203. end;
  6204. Procedure TActivity.Setid(AIndex : Integer; const AValue : String);
  6205. begin
  6206. If (Fid=AValue) then exit;
  6207. Fid:=AValue;
  6208. MarkPropertyChanged(AIndex);
  6209. end;
  6210. Procedure TActivity.Setkind(AIndex : Integer; const AValue : String);
  6211. begin
  6212. If (Fkind=AValue) then exit;
  6213. Fkind:=AValue;
  6214. MarkPropertyChanged(AIndex);
  6215. end;
  6216. Procedure TActivity.Setsnippet(AIndex : Integer; const AValue : TActivitySnippet);
  6217. begin
  6218. If (Fsnippet=AValue) then exit;
  6219. Fsnippet:=AValue;
  6220. MarkPropertyChanged(AIndex);
  6221. end;
  6222. { --------------------------------------------------------------------
  6223. TActivityContentDetails
  6224. --------------------------------------------------------------------}
  6225. Procedure TActivityContentDetails.Setbulletin(AIndex : Integer; const AValue : TActivityContentDetailsBulletin);
  6226. begin
  6227. If (Fbulletin=AValue) then exit;
  6228. Fbulletin:=AValue;
  6229. MarkPropertyChanged(AIndex);
  6230. end;
  6231. Procedure TActivityContentDetails.SetchannelItem(AIndex : Integer; const AValue : TActivityContentDetailsChannelItem);
  6232. begin
  6233. If (FchannelItem=AValue) then exit;
  6234. FchannelItem:=AValue;
  6235. MarkPropertyChanged(AIndex);
  6236. end;
  6237. Procedure TActivityContentDetails.Setcomment(AIndex : Integer; const AValue : TActivityContentDetailsComment);
  6238. begin
  6239. If (Fcomment=AValue) then exit;
  6240. Fcomment:=AValue;
  6241. MarkPropertyChanged(AIndex);
  6242. end;
  6243. Procedure TActivityContentDetails.Setfavorite(AIndex : Integer; const AValue : TActivityContentDetailsFavorite);
  6244. begin
  6245. If (Ffavorite=AValue) then exit;
  6246. Ffavorite:=AValue;
  6247. MarkPropertyChanged(AIndex);
  6248. end;
  6249. Procedure TActivityContentDetails.Setlike(AIndex : Integer; const AValue : TActivityContentDetailsLike);
  6250. begin
  6251. If (Flike=AValue) then exit;
  6252. Flike:=AValue;
  6253. MarkPropertyChanged(AIndex);
  6254. end;
  6255. Procedure TActivityContentDetails.SetplaylistItem(AIndex : Integer; const AValue : TActivityContentDetailsPlaylistItem);
  6256. begin
  6257. If (FplaylistItem=AValue) then exit;
  6258. FplaylistItem:=AValue;
  6259. MarkPropertyChanged(AIndex);
  6260. end;
  6261. Procedure TActivityContentDetails.SetpromotedItem(AIndex : Integer; const AValue : TActivityContentDetailsPromotedItem);
  6262. begin
  6263. If (FpromotedItem=AValue) then exit;
  6264. FpromotedItem:=AValue;
  6265. MarkPropertyChanged(AIndex);
  6266. end;
  6267. Procedure TActivityContentDetails.Setrecommendation(AIndex : Integer; const AValue : TActivityContentDetailsRecommendation);
  6268. begin
  6269. If (Frecommendation=AValue) then exit;
  6270. Frecommendation:=AValue;
  6271. MarkPropertyChanged(AIndex);
  6272. end;
  6273. Procedure TActivityContentDetails.Setsocial(AIndex : Integer; const AValue : TActivityContentDetailsSocial);
  6274. begin
  6275. If (Fsocial=AValue) then exit;
  6276. Fsocial:=AValue;
  6277. MarkPropertyChanged(AIndex);
  6278. end;
  6279. Procedure TActivityContentDetails.Setsubscription(AIndex : Integer; const AValue : TActivityContentDetailsSubscription);
  6280. begin
  6281. If (Fsubscription=AValue) then exit;
  6282. Fsubscription:=AValue;
  6283. MarkPropertyChanged(AIndex);
  6284. end;
  6285. Procedure TActivityContentDetails.Setupload(AIndex : Integer; const AValue : TActivityContentDetailsUpload);
  6286. begin
  6287. If (Fupload=AValue) then exit;
  6288. Fupload:=AValue;
  6289. MarkPropertyChanged(AIndex);
  6290. end;
  6291. { --------------------------------------------------------------------
  6292. TActivityContentDetailsBulletin
  6293. --------------------------------------------------------------------}
  6294. Procedure TActivityContentDetailsBulletin.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  6295. begin
  6296. If (FresourceId=AValue) then exit;
  6297. FresourceId:=AValue;
  6298. MarkPropertyChanged(AIndex);
  6299. end;
  6300. { --------------------------------------------------------------------
  6301. TActivityContentDetailsChannelItem
  6302. --------------------------------------------------------------------}
  6303. Procedure TActivityContentDetailsChannelItem.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  6304. begin
  6305. If (FresourceId=AValue) then exit;
  6306. FresourceId:=AValue;
  6307. MarkPropertyChanged(AIndex);
  6308. end;
  6309. { --------------------------------------------------------------------
  6310. TActivityContentDetailsComment
  6311. --------------------------------------------------------------------}
  6312. Procedure TActivityContentDetailsComment.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  6313. begin
  6314. If (FresourceId=AValue) then exit;
  6315. FresourceId:=AValue;
  6316. MarkPropertyChanged(AIndex);
  6317. end;
  6318. { --------------------------------------------------------------------
  6319. TActivityContentDetailsFavorite
  6320. --------------------------------------------------------------------}
  6321. Procedure TActivityContentDetailsFavorite.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  6322. begin
  6323. If (FresourceId=AValue) then exit;
  6324. FresourceId:=AValue;
  6325. MarkPropertyChanged(AIndex);
  6326. end;
  6327. { --------------------------------------------------------------------
  6328. TActivityContentDetailsLike
  6329. --------------------------------------------------------------------}
  6330. Procedure TActivityContentDetailsLike.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  6331. begin
  6332. If (FresourceId=AValue) then exit;
  6333. FresourceId:=AValue;
  6334. MarkPropertyChanged(AIndex);
  6335. end;
  6336. { --------------------------------------------------------------------
  6337. TActivityContentDetailsPlaylistItem
  6338. --------------------------------------------------------------------}
  6339. Procedure TActivityContentDetailsPlaylistItem.SetplaylistId(AIndex : Integer; const AValue : String);
  6340. begin
  6341. If (FplaylistId=AValue) then exit;
  6342. FplaylistId:=AValue;
  6343. MarkPropertyChanged(AIndex);
  6344. end;
  6345. Procedure TActivityContentDetailsPlaylistItem.SetplaylistItemId(AIndex : Integer; const AValue : String);
  6346. begin
  6347. If (FplaylistItemId=AValue) then exit;
  6348. FplaylistItemId:=AValue;
  6349. MarkPropertyChanged(AIndex);
  6350. end;
  6351. Procedure TActivityContentDetailsPlaylistItem.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  6352. begin
  6353. If (FresourceId=AValue) then exit;
  6354. FresourceId:=AValue;
  6355. MarkPropertyChanged(AIndex);
  6356. end;
  6357. { --------------------------------------------------------------------
  6358. TActivityContentDetailsPromotedItem
  6359. --------------------------------------------------------------------}
  6360. Procedure TActivityContentDetailsPromotedItem.SetadTag(AIndex : Integer; const AValue : String);
  6361. begin
  6362. If (FadTag=AValue) then exit;
  6363. FadTag:=AValue;
  6364. MarkPropertyChanged(AIndex);
  6365. end;
  6366. Procedure TActivityContentDetailsPromotedItem.SetclickTrackingUrl(AIndex : Integer; const AValue : String);
  6367. begin
  6368. If (FclickTrackingUrl=AValue) then exit;
  6369. FclickTrackingUrl:=AValue;
  6370. MarkPropertyChanged(AIndex);
  6371. end;
  6372. Procedure TActivityContentDetailsPromotedItem.SetcreativeViewUrl(AIndex : Integer; const AValue : String);
  6373. begin
  6374. If (FcreativeViewUrl=AValue) then exit;
  6375. FcreativeViewUrl:=AValue;
  6376. MarkPropertyChanged(AIndex);
  6377. end;
  6378. Procedure TActivityContentDetailsPromotedItem.SetctaType(AIndex : Integer; const AValue : String);
  6379. begin
  6380. If (FctaType=AValue) then exit;
  6381. FctaType:=AValue;
  6382. MarkPropertyChanged(AIndex);
  6383. end;
  6384. Procedure TActivityContentDetailsPromotedItem.SetcustomCtaButtonText(AIndex : Integer; const AValue : String);
  6385. begin
  6386. If (FcustomCtaButtonText=AValue) then exit;
  6387. FcustomCtaButtonText:=AValue;
  6388. MarkPropertyChanged(AIndex);
  6389. end;
  6390. Procedure TActivityContentDetailsPromotedItem.SetdescriptionText(AIndex : Integer; const AValue : String);
  6391. begin
  6392. If (FdescriptionText=AValue) then exit;
  6393. FdescriptionText:=AValue;
  6394. MarkPropertyChanged(AIndex);
  6395. end;
  6396. Procedure TActivityContentDetailsPromotedItem.SetdestinationUrl(AIndex : Integer; const AValue : String);
  6397. begin
  6398. If (FdestinationUrl=AValue) then exit;
  6399. FdestinationUrl:=AValue;
  6400. MarkPropertyChanged(AIndex);
  6401. end;
  6402. Procedure TActivityContentDetailsPromotedItem.SetforecastingUrl(AIndex : Integer; const AValue : TStringArray);
  6403. begin
  6404. If (FforecastingUrl=AValue) then exit;
  6405. FforecastingUrl:=AValue;
  6406. MarkPropertyChanged(AIndex);
  6407. end;
  6408. Procedure TActivityContentDetailsPromotedItem.SetimpressionUrl(AIndex : Integer; const AValue : TStringArray);
  6409. begin
  6410. If (FimpressionUrl=AValue) then exit;
  6411. FimpressionUrl:=AValue;
  6412. MarkPropertyChanged(AIndex);
  6413. end;
  6414. Procedure TActivityContentDetailsPromotedItem.SetvideoId(AIndex : Integer; const AValue : String);
  6415. begin
  6416. If (FvideoId=AValue) then exit;
  6417. FvideoId:=AValue;
  6418. MarkPropertyChanged(AIndex);
  6419. end;
  6420. //2.6.4. bug workaround
  6421. {$IFDEF VER2_6}
  6422. Procedure TActivityContentDetailsPromotedItem.SetArrayLength(Const AName : String; ALength : Longint);
  6423. begin
  6424. Case AName of
  6425. 'forecastingurl' : SetLength(FforecastingUrl,ALength);
  6426. 'impressionurl' : SetLength(FimpressionUrl,ALength);
  6427. else
  6428. Inherited SetArrayLength(AName,ALength);
  6429. end;
  6430. end;
  6431. {$ENDIF VER2_6}
  6432. { --------------------------------------------------------------------
  6433. TActivityContentDetailsRecommendation
  6434. --------------------------------------------------------------------}
  6435. Procedure TActivityContentDetailsRecommendation.Setreason(AIndex : Integer; const AValue : String);
  6436. begin
  6437. If (Freason=AValue) then exit;
  6438. Freason:=AValue;
  6439. MarkPropertyChanged(AIndex);
  6440. end;
  6441. Procedure TActivityContentDetailsRecommendation.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  6442. begin
  6443. If (FresourceId=AValue) then exit;
  6444. FresourceId:=AValue;
  6445. MarkPropertyChanged(AIndex);
  6446. end;
  6447. Procedure TActivityContentDetailsRecommendation.SetseedResourceId(AIndex : Integer; const AValue : TResourceId);
  6448. begin
  6449. If (FseedResourceId=AValue) then exit;
  6450. FseedResourceId:=AValue;
  6451. MarkPropertyChanged(AIndex);
  6452. end;
  6453. { --------------------------------------------------------------------
  6454. TActivityContentDetailsSocial
  6455. --------------------------------------------------------------------}
  6456. Procedure TActivityContentDetailsSocial.Setauthor(AIndex : Integer; const AValue : String);
  6457. begin
  6458. If (Fauthor=AValue) then exit;
  6459. Fauthor:=AValue;
  6460. MarkPropertyChanged(AIndex);
  6461. end;
  6462. Procedure TActivityContentDetailsSocial.SetimageUrl(AIndex : Integer; const AValue : String);
  6463. begin
  6464. If (FimageUrl=AValue) then exit;
  6465. FimageUrl:=AValue;
  6466. MarkPropertyChanged(AIndex);
  6467. end;
  6468. Procedure TActivityContentDetailsSocial.SetreferenceUrl(AIndex : Integer; const AValue : String);
  6469. begin
  6470. If (FreferenceUrl=AValue) then exit;
  6471. FreferenceUrl:=AValue;
  6472. MarkPropertyChanged(AIndex);
  6473. end;
  6474. Procedure TActivityContentDetailsSocial.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  6475. begin
  6476. If (FresourceId=AValue) then exit;
  6477. FresourceId:=AValue;
  6478. MarkPropertyChanged(AIndex);
  6479. end;
  6480. Procedure TActivityContentDetailsSocial.Set_type(AIndex : Integer; const AValue : String);
  6481. begin
  6482. If (F_type=AValue) then exit;
  6483. F_type:=AValue;
  6484. MarkPropertyChanged(AIndex);
  6485. end;
  6486. Class Function TActivityContentDetailsSocial.ExportPropertyName(Const AName : String) :String;
  6487. begin
  6488. Case AName of
  6489. '_type' : Result:='type';
  6490. else
  6491. Result:=Inherited ExportPropertyName(AName);
  6492. end;
  6493. end;
  6494. { --------------------------------------------------------------------
  6495. TActivityContentDetailsSubscription
  6496. --------------------------------------------------------------------}
  6497. Procedure TActivityContentDetailsSubscription.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  6498. begin
  6499. If (FresourceId=AValue) then exit;
  6500. FresourceId:=AValue;
  6501. MarkPropertyChanged(AIndex);
  6502. end;
  6503. { --------------------------------------------------------------------
  6504. TActivityContentDetailsUpload
  6505. --------------------------------------------------------------------}
  6506. Procedure TActivityContentDetailsUpload.SetvideoId(AIndex : Integer; const AValue : String);
  6507. begin
  6508. If (FvideoId=AValue) then exit;
  6509. FvideoId:=AValue;
  6510. MarkPropertyChanged(AIndex);
  6511. end;
  6512. { --------------------------------------------------------------------
  6513. TActivityListResponse
  6514. --------------------------------------------------------------------}
  6515. Procedure TActivityListResponse.Setetag(AIndex : Integer; const AValue : String);
  6516. begin
  6517. If (Fetag=AValue) then exit;
  6518. Fetag:=AValue;
  6519. MarkPropertyChanged(AIndex);
  6520. end;
  6521. Procedure TActivityListResponse.SeteventId(AIndex : Integer; const AValue : String);
  6522. begin
  6523. If (FeventId=AValue) then exit;
  6524. FeventId:=AValue;
  6525. MarkPropertyChanged(AIndex);
  6526. end;
  6527. Procedure TActivityListResponse.Setitems(AIndex : Integer; const AValue : TActivityListResponseTypeitemsArray);
  6528. begin
  6529. If (Fitems=AValue) then exit;
  6530. Fitems:=AValue;
  6531. MarkPropertyChanged(AIndex);
  6532. end;
  6533. Procedure TActivityListResponse.Setkind(AIndex : Integer; const AValue : String);
  6534. begin
  6535. If (Fkind=AValue) then exit;
  6536. Fkind:=AValue;
  6537. MarkPropertyChanged(AIndex);
  6538. end;
  6539. Procedure TActivityListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  6540. begin
  6541. If (FnextPageToken=AValue) then exit;
  6542. FnextPageToken:=AValue;
  6543. MarkPropertyChanged(AIndex);
  6544. end;
  6545. Procedure TActivityListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  6546. begin
  6547. If (FpageInfo=AValue) then exit;
  6548. FpageInfo:=AValue;
  6549. MarkPropertyChanged(AIndex);
  6550. end;
  6551. Procedure TActivityListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  6552. begin
  6553. If (FprevPageToken=AValue) then exit;
  6554. FprevPageToken:=AValue;
  6555. MarkPropertyChanged(AIndex);
  6556. end;
  6557. Procedure TActivityListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  6558. begin
  6559. If (FtokenPagination=AValue) then exit;
  6560. FtokenPagination:=AValue;
  6561. MarkPropertyChanged(AIndex);
  6562. end;
  6563. Procedure TActivityListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  6564. begin
  6565. If (FvisitorId=AValue) then exit;
  6566. FvisitorId:=AValue;
  6567. MarkPropertyChanged(AIndex);
  6568. end;
  6569. //2.6.4. bug workaround
  6570. {$IFDEF VER2_6}
  6571. Procedure TActivityListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  6572. begin
  6573. Case AName of
  6574. 'items' : SetLength(Fitems,ALength);
  6575. else
  6576. Inherited SetArrayLength(AName,ALength);
  6577. end;
  6578. end;
  6579. {$ENDIF VER2_6}
  6580. { --------------------------------------------------------------------
  6581. TActivitySnippet
  6582. --------------------------------------------------------------------}
  6583. Procedure TActivitySnippet.SetchannelId(AIndex : Integer; const AValue : String);
  6584. begin
  6585. If (FchannelId=AValue) then exit;
  6586. FchannelId:=AValue;
  6587. MarkPropertyChanged(AIndex);
  6588. end;
  6589. Procedure TActivitySnippet.SetchannelTitle(AIndex : Integer; const AValue : String);
  6590. begin
  6591. If (FchannelTitle=AValue) then exit;
  6592. FchannelTitle:=AValue;
  6593. MarkPropertyChanged(AIndex);
  6594. end;
  6595. Procedure TActivitySnippet.Setdescription(AIndex : Integer; const AValue : String);
  6596. begin
  6597. If (Fdescription=AValue) then exit;
  6598. Fdescription:=AValue;
  6599. MarkPropertyChanged(AIndex);
  6600. end;
  6601. Procedure TActivitySnippet.SetgroupId(AIndex : Integer; const AValue : String);
  6602. begin
  6603. If (FgroupId=AValue) then exit;
  6604. FgroupId:=AValue;
  6605. MarkPropertyChanged(AIndex);
  6606. end;
  6607. Procedure TActivitySnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  6608. begin
  6609. If (FpublishedAt=AValue) then exit;
  6610. FpublishedAt:=AValue;
  6611. MarkPropertyChanged(AIndex);
  6612. end;
  6613. Procedure TActivitySnippet.Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails);
  6614. begin
  6615. If (Fthumbnails=AValue) then exit;
  6616. Fthumbnails:=AValue;
  6617. MarkPropertyChanged(AIndex);
  6618. end;
  6619. Procedure TActivitySnippet.Settitle(AIndex : Integer; const AValue : String);
  6620. begin
  6621. If (Ftitle=AValue) then exit;
  6622. Ftitle:=AValue;
  6623. MarkPropertyChanged(AIndex);
  6624. end;
  6625. Procedure TActivitySnippet.Set_type(AIndex : Integer; const AValue : String);
  6626. begin
  6627. If (F_type=AValue) then exit;
  6628. F_type:=AValue;
  6629. MarkPropertyChanged(AIndex);
  6630. end;
  6631. Class Function TActivitySnippet.ExportPropertyName(Const AName : String) :String;
  6632. begin
  6633. Case AName of
  6634. '_type' : Result:='type';
  6635. else
  6636. Result:=Inherited ExportPropertyName(AName);
  6637. end;
  6638. end;
  6639. { --------------------------------------------------------------------
  6640. TCaption
  6641. --------------------------------------------------------------------}
  6642. Procedure TCaption.Setetag(AIndex : Integer; const AValue : String);
  6643. begin
  6644. If (Fetag=AValue) then exit;
  6645. Fetag:=AValue;
  6646. MarkPropertyChanged(AIndex);
  6647. end;
  6648. Procedure TCaption.Setid(AIndex : Integer; const AValue : String);
  6649. begin
  6650. If (Fid=AValue) then exit;
  6651. Fid:=AValue;
  6652. MarkPropertyChanged(AIndex);
  6653. end;
  6654. Procedure TCaption.Setkind(AIndex : Integer; const AValue : String);
  6655. begin
  6656. If (Fkind=AValue) then exit;
  6657. Fkind:=AValue;
  6658. MarkPropertyChanged(AIndex);
  6659. end;
  6660. Procedure TCaption.Setsnippet(AIndex : Integer; const AValue : TCaptionSnippet);
  6661. begin
  6662. If (Fsnippet=AValue) then exit;
  6663. Fsnippet:=AValue;
  6664. MarkPropertyChanged(AIndex);
  6665. end;
  6666. { --------------------------------------------------------------------
  6667. TCaptionListResponse
  6668. --------------------------------------------------------------------}
  6669. Procedure TCaptionListResponse.Setetag(AIndex : Integer; const AValue : String);
  6670. begin
  6671. If (Fetag=AValue) then exit;
  6672. Fetag:=AValue;
  6673. MarkPropertyChanged(AIndex);
  6674. end;
  6675. Procedure TCaptionListResponse.SeteventId(AIndex : Integer; const AValue : String);
  6676. begin
  6677. If (FeventId=AValue) then exit;
  6678. FeventId:=AValue;
  6679. MarkPropertyChanged(AIndex);
  6680. end;
  6681. Procedure TCaptionListResponse.Setitems(AIndex : Integer; const AValue : TCaptionListResponseTypeitemsArray);
  6682. begin
  6683. If (Fitems=AValue) then exit;
  6684. Fitems:=AValue;
  6685. MarkPropertyChanged(AIndex);
  6686. end;
  6687. Procedure TCaptionListResponse.Setkind(AIndex : Integer; const AValue : String);
  6688. begin
  6689. If (Fkind=AValue) then exit;
  6690. Fkind:=AValue;
  6691. MarkPropertyChanged(AIndex);
  6692. end;
  6693. Procedure TCaptionListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  6694. begin
  6695. If (FvisitorId=AValue) then exit;
  6696. FvisitorId:=AValue;
  6697. MarkPropertyChanged(AIndex);
  6698. end;
  6699. //2.6.4. bug workaround
  6700. {$IFDEF VER2_6}
  6701. Procedure TCaptionListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  6702. begin
  6703. Case AName of
  6704. 'items' : SetLength(Fitems,ALength);
  6705. else
  6706. Inherited SetArrayLength(AName,ALength);
  6707. end;
  6708. end;
  6709. {$ENDIF VER2_6}
  6710. { --------------------------------------------------------------------
  6711. TCaptionSnippet
  6712. --------------------------------------------------------------------}
  6713. Procedure TCaptionSnippet.SetaudioTrackType(AIndex : Integer; const AValue : String);
  6714. begin
  6715. If (FaudioTrackType=AValue) then exit;
  6716. FaudioTrackType:=AValue;
  6717. MarkPropertyChanged(AIndex);
  6718. end;
  6719. Procedure TCaptionSnippet.SetfailureReason(AIndex : Integer; const AValue : String);
  6720. begin
  6721. If (FfailureReason=AValue) then exit;
  6722. FfailureReason:=AValue;
  6723. MarkPropertyChanged(AIndex);
  6724. end;
  6725. Procedure TCaptionSnippet.SetisAutoSynced(AIndex : Integer; const AValue : boolean);
  6726. begin
  6727. If (FisAutoSynced=AValue) then exit;
  6728. FisAutoSynced:=AValue;
  6729. MarkPropertyChanged(AIndex);
  6730. end;
  6731. Procedure TCaptionSnippet.SetisCC(AIndex : Integer; const AValue : boolean);
  6732. begin
  6733. If (FisCC=AValue) then exit;
  6734. FisCC:=AValue;
  6735. MarkPropertyChanged(AIndex);
  6736. end;
  6737. Procedure TCaptionSnippet.SetisDraft(AIndex : Integer; const AValue : boolean);
  6738. begin
  6739. If (FisDraft=AValue) then exit;
  6740. FisDraft:=AValue;
  6741. MarkPropertyChanged(AIndex);
  6742. end;
  6743. Procedure TCaptionSnippet.SetisEasyReader(AIndex : Integer; const AValue : boolean);
  6744. begin
  6745. If (FisEasyReader=AValue) then exit;
  6746. FisEasyReader:=AValue;
  6747. MarkPropertyChanged(AIndex);
  6748. end;
  6749. Procedure TCaptionSnippet.SetisLarge(AIndex : Integer; const AValue : boolean);
  6750. begin
  6751. If (FisLarge=AValue) then exit;
  6752. FisLarge:=AValue;
  6753. MarkPropertyChanged(AIndex);
  6754. end;
  6755. Procedure TCaptionSnippet.Setlanguage(AIndex : Integer; const AValue : String);
  6756. begin
  6757. If (Flanguage=AValue) then exit;
  6758. Flanguage:=AValue;
  6759. MarkPropertyChanged(AIndex);
  6760. end;
  6761. Procedure TCaptionSnippet.SetlastUpdated(AIndex : Integer; const AValue : TDatetime);
  6762. begin
  6763. If (FlastUpdated=AValue) then exit;
  6764. FlastUpdated:=AValue;
  6765. MarkPropertyChanged(AIndex);
  6766. end;
  6767. Procedure TCaptionSnippet.Setname(AIndex : Integer; const AValue : String);
  6768. begin
  6769. If (Fname=AValue) then exit;
  6770. Fname:=AValue;
  6771. MarkPropertyChanged(AIndex);
  6772. end;
  6773. Procedure TCaptionSnippet.Setstatus(AIndex : Integer; const AValue : String);
  6774. begin
  6775. If (Fstatus=AValue) then exit;
  6776. Fstatus:=AValue;
  6777. MarkPropertyChanged(AIndex);
  6778. end;
  6779. Procedure TCaptionSnippet.SettrackKind(AIndex : Integer; const AValue : String);
  6780. begin
  6781. If (FtrackKind=AValue) then exit;
  6782. FtrackKind:=AValue;
  6783. MarkPropertyChanged(AIndex);
  6784. end;
  6785. Procedure TCaptionSnippet.SetvideoId(AIndex : Integer; const AValue : String);
  6786. begin
  6787. If (FvideoId=AValue) then exit;
  6788. FvideoId:=AValue;
  6789. MarkPropertyChanged(AIndex);
  6790. end;
  6791. { --------------------------------------------------------------------
  6792. TCdnSettings
  6793. --------------------------------------------------------------------}
  6794. Procedure TCdnSettings.Setformat(AIndex : Integer; const AValue : String);
  6795. begin
  6796. If (Fformat=AValue) then exit;
  6797. Fformat:=AValue;
  6798. MarkPropertyChanged(AIndex);
  6799. end;
  6800. Procedure TCdnSettings.SetframeRate(AIndex : Integer; const AValue : String);
  6801. begin
  6802. If (FframeRate=AValue) then exit;
  6803. FframeRate:=AValue;
  6804. MarkPropertyChanged(AIndex);
  6805. end;
  6806. Procedure TCdnSettings.SetingestionInfo(AIndex : Integer; const AValue : TIngestionInfo);
  6807. begin
  6808. If (FingestionInfo=AValue) then exit;
  6809. FingestionInfo:=AValue;
  6810. MarkPropertyChanged(AIndex);
  6811. end;
  6812. Procedure TCdnSettings.SetingestionType(AIndex : Integer; const AValue : String);
  6813. begin
  6814. If (FingestionType=AValue) then exit;
  6815. FingestionType:=AValue;
  6816. MarkPropertyChanged(AIndex);
  6817. end;
  6818. Procedure TCdnSettings.Setresolution(AIndex : Integer; const AValue : String);
  6819. begin
  6820. If (Fresolution=AValue) then exit;
  6821. Fresolution:=AValue;
  6822. MarkPropertyChanged(AIndex);
  6823. end;
  6824. { --------------------------------------------------------------------
  6825. TChannelTypelocalizations
  6826. --------------------------------------------------------------------}
  6827. Class Function TChannelTypelocalizations.AllowAdditionalProperties : Boolean;
  6828. begin
  6829. Result:=True;
  6830. end;
  6831. { --------------------------------------------------------------------
  6832. TChannel
  6833. --------------------------------------------------------------------}
  6834. Procedure TChannel.SetauditDetails(AIndex : Integer; const AValue : TChannelAuditDetails);
  6835. begin
  6836. If (FauditDetails=AValue) then exit;
  6837. FauditDetails:=AValue;
  6838. MarkPropertyChanged(AIndex);
  6839. end;
  6840. Procedure TChannel.SetbrandingSettings(AIndex : Integer; const AValue : TChannelBrandingSettings);
  6841. begin
  6842. If (FbrandingSettings=AValue) then exit;
  6843. FbrandingSettings:=AValue;
  6844. MarkPropertyChanged(AIndex);
  6845. end;
  6846. Procedure TChannel.SetcontentDetails(AIndex : Integer; const AValue : TChannelContentDetails);
  6847. begin
  6848. If (FcontentDetails=AValue) then exit;
  6849. FcontentDetails:=AValue;
  6850. MarkPropertyChanged(AIndex);
  6851. end;
  6852. Procedure TChannel.SetcontentOwnerDetails(AIndex : Integer; const AValue : TChannelContentOwnerDetails);
  6853. begin
  6854. If (FcontentOwnerDetails=AValue) then exit;
  6855. FcontentOwnerDetails:=AValue;
  6856. MarkPropertyChanged(AIndex);
  6857. end;
  6858. Procedure TChannel.SetconversionPings(AIndex : Integer; const AValue : TChannelConversionPings);
  6859. begin
  6860. If (FconversionPings=AValue) then exit;
  6861. FconversionPings:=AValue;
  6862. MarkPropertyChanged(AIndex);
  6863. end;
  6864. Procedure TChannel.Setetag(AIndex : Integer; const AValue : String);
  6865. begin
  6866. If (Fetag=AValue) then exit;
  6867. Fetag:=AValue;
  6868. MarkPropertyChanged(AIndex);
  6869. end;
  6870. Procedure TChannel.Setid(AIndex : Integer; const AValue : String);
  6871. begin
  6872. If (Fid=AValue) then exit;
  6873. Fid:=AValue;
  6874. MarkPropertyChanged(AIndex);
  6875. end;
  6876. Procedure TChannel.SetinvideoPromotion(AIndex : Integer; const AValue : TInvideoPromotion);
  6877. begin
  6878. If (FinvideoPromotion=AValue) then exit;
  6879. FinvideoPromotion:=AValue;
  6880. MarkPropertyChanged(AIndex);
  6881. end;
  6882. Procedure TChannel.Setkind(AIndex : Integer; const AValue : String);
  6883. begin
  6884. If (Fkind=AValue) then exit;
  6885. Fkind:=AValue;
  6886. MarkPropertyChanged(AIndex);
  6887. end;
  6888. Procedure TChannel.Setlocalizations(AIndex : Integer; const AValue : TChannelTypelocalizations);
  6889. begin
  6890. If (Flocalizations=AValue) then exit;
  6891. Flocalizations:=AValue;
  6892. MarkPropertyChanged(AIndex);
  6893. end;
  6894. Procedure TChannel.Setsnippet(AIndex : Integer; const AValue : TChannelSnippet);
  6895. begin
  6896. If (Fsnippet=AValue) then exit;
  6897. Fsnippet:=AValue;
  6898. MarkPropertyChanged(AIndex);
  6899. end;
  6900. Procedure TChannel.Setstatistics(AIndex : Integer; const AValue : TChannelStatistics);
  6901. begin
  6902. If (Fstatistics=AValue) then exit;
  6903. Fstatistics:=AValue;
  6904. MarkPropertyChanged(AIndex);
  6905. end;
  6906. Procedure TChannel.Setstatus(AIndex : Integer; const AValue : TChannelStatus);
  6907. begin
  6908. If (Fstatus=AValue) then exit;
  6909. Fstatus:=AValue;
  6910. MarkPropertyChanged(AIndex);
  6911. end;
  6912. Procedure TChannel.SettopicDetails(AIndex : Integer; const AValue : TChannelTopicDetails);
  6913. begin
  6914. If (FtopicDetails=AValue) then exit;
  6915. FtopicDetails:=AValue;
  6916. MarkPropertyChanged(AIndex);
  6917. end;
  6918. { --------------------------------------------------------------------
  6919. TChannelAuditDetails
  6920. --------------------------------------------------------------------}
  6921. Procedure TChannelAuditDetails.SetcommunityGuidelinesGoodStanding(AIndex : Integer; const AValue : boolean);
  6922. begin
  6923. If (FcommunityGuidelinesGoodStanding=AValue) then exit;
  6924. FcommunityGuidelinesGoodStanding:=AValue;
  6925. MarkPropertyChanged(AIndex);
  6926. end;
  6927. Procedure TChannelAuditDetails.SetcontentIdClaimsGoodStanding(AIndex : Integer; const AValue : boolean);
  6928. begin
  6929. If (FcontentIdClaimsGoodStanding=AValue) then exit;
  6930. FcontentIdClaimsGoodStanding:=AValue;
  6931. MarkPropertyChanged(AIndex);
  6932. end;
  6933. Procedure TChannelAuditDetails.SetcopyrightStrikesGoodStanding(AIndex : Integer; const AValue : boolean);
  6934. begin
  6935. If (FcopyrightStrikesGoodStanding=AValue) then exit;
  6936. FcopyrightStrikesGoodStanding:=AValue;
  6937. MarkPropertyChanged(AIndex);
  6938. end;
  6939. Procedure TChannelAuditDetails.SetoverallGoodStanding(AIndex : Integer; const AValue : boolean);
  6940. begin
  6941. If (FoverallGoodStanding=AValue) then exit;
  6942. FoverallGoodStanding:=AValue;
  6943. MarkPropertyChanged(AIndex);
  6944. end;
  6945. { --------------------------------------------------------------------
  6946. TChannelBannerResource
  6947. --------------------------------------------------------------------}
  6948. Procedure TChannelBannerResource.Setetag(AIndex : Integer; const AValue : String);
  6949. begin
  6950. If (Fetag=AValue) then exit;
  6951. Fetag:=AValue;
  6952. MarkPropertyChanged(AIndex);
  6953. end;
  6954. Procedure TChannelBannerResource.Setkind(AIndex : Integer; const AValue : String);
  6955. begin
  6956. If (Fkind=AValue) then exit;
  6957. Fkind:=AValue;
  6958. MarkPropertyChanged(AIndex);
  6959. end;
  6960. Procedure TChannelBannerResource.Seturl(AIndex : Integer; const AValue : String);
  6961. begin
  6962. If (Furl=AValue) then exit;
  6963. Furl:=AValue;
  6964. MarkPropertyChanged(AIndex);
  6965. end;
  6966. { --------------------------------------------------------------------
  6967. TChannelBrandingSettings
  6968. --------------------------------------------------------------------}
  6969. Procedure TChannelBrandingSettings.Setchannel(AIndex : Integer; const AValue : TChannelSettings);
  6970. begin
  6971. If (Fchannel=AValue) then exit;
  6972. Fchannel:=AValue;
  6973. MarkPropertyChanged(AIndex);
  6974. end;
  6975. Procedure TChannelBrandingSettings.Sethints(AIndex : Integer; const AValue : TChannelBrandingSettingsTypehintsArray);
  6976. begin
  6977. If (Fhints=AValue) then exit;
  6978. Fhints:=AValue;
  6979. MarkPropertyChanged(AIndex);
  6980. end;
  6981. Procedure TChannelBrandingSettings.Setimage(AIndex : Integer; const AValue : TImageSettings);
  6982. begin
  6983. If (Fimage=AValue) then exit;
  6984. Fimage:=AValue;
  6985. MarkPropertyChanged(AIndex);
  6986. end;
  6987. Procedure TChannelBrandingSettings.Setwatch(AIndex : Integer; const AValue : TWatchSettings);
  6988. begin
  6989. If (Fwatch=AValue) then exit;
  6990. Fwatch:=AValue;
  6991. MarkPropertyChanged(AIndex);
  6992. end;
  6993. //2.6.4. bug workaround
  6994. {$IFDEF VER2_6}
  6995. Procedure TChannelBrandingSettings.SetArrayLength(Const AName : String; ALength : Longint);
  6996. begin
  6997. Case AName of
  6998. 'hints' : SetLength(Fhints,ALength);
  6999. else
  7000. Inherited SetArrayLength(AName,ALength);
  7001. end;
  7002. end;
  7003. {$ENDIF VER2_6}
  7004. { --------------------------------------------------------------------
  7005. TChannelContentDetailsTyperelatedPlaylists
  7006. --------------------------------------------------------------------}
  7007. Procedure TChannelContentDetailsTyperelatedPlaylists.Setfavorites(AIndex : Integer; const AValue : String);
  7008. begin
  7009. If (Ffavorites=AValue) then exit;
  7010. Ffavorites:=AValue;
  7011. MarkPropertyChanged(AIndex);
  7012. end;
  7013. Procedure TChannelContentDetailsTyperelatedPlaylists.Setlikes(AIndex : Integer; const AValue : String);
  7014. begin
  7015. If (Flikes=AValue) then exit;
  7016. Flikes:=AValue;
  7017. MarkPropertyChanged(AIndex);
  7018. end;
  7019. Procedure TChannelContentDetailsTyperelatedPlaylists.Setuploads(AIndex : Integer; const AValue : String);
  7020. begin
  7021. If (Fuploads=AValue) then exit;
  7022. Fuploads:=AValue;
  7023. MarkPropertyChanged(AIndex);
  7024. end;
  7025. Procedure TChannelContentDetailsTyperelatedPlaylists.SetwatchHistory(AIndex : Integer; const AValue : String);
  7026. begin
  7027. If (FwatchHistory=AValue) then exit;
  7028. FwatchHistory:=AValue;
  7029. MarkPropertyChanged(AIndex);
  7030. end;
  7031. Procedure TChannelContentDetailsTyperelatedPlaylists.SetwatchLater(AIndex : Integer; const AValue : String);
  7032. begin
  7033. If (FwatchLater=AValue) then exit;
  7034. FwatchLater:=AValue;
  7035. MarkPropertyChanged(AIndex);
  7036. end;
  7037. { --------------------------------------------------------------------
  7038. TChannelContentDetails
  7039. --------------------------------------------------------------------}
  7040. Procedure TChannelContentDetails.SetgooglePlusUserId(AIndex : Integer; const AValue : String);
  7041. begin
  7042. If (FgooglePlusUserId=AValue) then exit;
  7043. FgooglePlusUserId:=AValue;
  7044. MarkPropertyChanged(AIndex);
  7045. end;
  7046. Procedure TChannelContentDetails.SetrelatedPlaylists(AIndex : Integer; const AValue : TChannelContentDetailsTyperelatedPlaylists);
  7047. begin
  7048. If (FrelatedPlaylists=AValue) then exit;
  7049. FrelatedPlaylists:=AValue;
  7050. MarkPropertyChanged(AIndex);
  7051. end;
  7052. { --------------------------------------------------------------------
  7053. TChannelContentOwnerDetails
  7054. --------------------------------------------------------------------}
  7055. Procedure TChannelContentOwnerDetails.SetcontentOwner(AIndex : Integer; const AValue : String);
  7056. begin
  7057. If (FcontentOwner=AValue) then exit;
  7058. FcontentOwner:=AValue;
  7059. MarkPropertyChanged(AIndex);
  7060. end;
  7061. Procedure TChannelContentOwnerDetails.SettimeLinked(AIndex : Integer; const AValue : TDatetime);
  7062. begin
  7063. If (FtimeLinked=AValue) then exit;
  7064. FtimeLinked:=AValue;
  7065. MarkPropertyChanged(AIndex);
  7066. end;
  7067. { --------------------------------------------------------------------
  7068. TChannelConversionPing
  7069. --------------------------------------------------------------------}
  7070. Procedure TChannelConversionPing.Setcontext(AIndex : Integer; const AValue : String);
  7071. begin
  7072. If (Fcontext=AValue) then exit;
  7073. Fcontext:=AValue;
  7074. MarkPropertyChanged(AIndex);
  7075. end;
  7076. Procedure TChannelConversionPing.SetconversionUrl(AIndex : Integer; const AValue : String);
  7077. begin
  7078. If (FconversionUrl=AValue) then exit;
  7079. FconversionUrl:=AValue;
  7080. MarkPropertyChanged(AIndex);
  7081. end;
  7082. { --------------------------------------------------------------------
  7083. TChannelConversionPings
  7084. --------------------------------------------------------------------}
  7085. Procedure TChannelConversionPings.Setpings(AIndex : Integer; const AValue : TChannelConversionPingsTypepingsArray);
  7086. begin
  7087. If (Fpings=AValue) then exit;
  7088. Fpings:=AValue;
  7089. MarkPropertyChanged(AIndex);
  7090. end;
  7091. //2.6.4. bug workaround
  7092. {$IFDEF VER2_6}
  7093. Procedure TChannelConversionPings.SetArrayLength(Const AName : String; ALength : Longint);
  7094. begin
  7095. Case AName of
  7096. 'pings' : SetLength(Fpings,ALength);
  7097. else
  7098. Inherited SetArrayLength(AName,ALength);
  7099. end;
  7100. end;
  7101. {$ENDIF VER2_6}
  7102. { --------------------------------------------------------------------
  7103. TChannelListResponse
  7104. --------------------------------------------------------------------}
  7105. Procedure TChannelListResponse.Setetag(AIndex : Integer; const AValue : String);
  7106. begin
  7107. If (Fetag=AValue) then exit;
  7108. Fetag:=AValue;
  7109. MarkPropertyChanged(AIndex);
  7110. end;
  7111. Procedure TChannelListResponse.SeteventId(AIndex : Integer; const AValue : String);
  7112. begin
  7113. If (FeventId=AValue) then exit;
  7114. FeventId:=AValue;
  7115. MarkPropertyChanged(AIndex);
  7116. end;
  7117. Procedure TChannelListResponse.Setitems(AIndex : Integer; const AValue : TChannelListResponseTypeitemsArray);
  7118. begin
  7119. If (Fitems=AValue) then exit;
  7120. Fitems:=AValue;
  7121. MarkPropertyChanged(AIndex);
  7122. end;
  7123. Procedure TChannelListResponse.Setkind(AIndex : Integer; const AValue : String);
  7124. begin
  7125. If (Fkind=AValue) then exit;
  7126. Fkind:=AValue;
  7127. MarkPropertyChanged(AIndex);
  7128. end;
  7129. Procedure TChannelListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  7130. begin
  7131. If (FnextPageToken=AValue) then exit;
  7132. FnextPageToken:=AValue;
  7133. MarkPropertyChanged(AIndex);
  7134. end;
  7135. Procedure TChannelListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  7136. begin
  7137. If (FpageInfo=AValue) then exit;
  7138. FpageInfo:=AValue;
  7139. MarkPropertyChanged(AIndex);
  7140. end;
  7141. Procedure TChannelListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  7142. begin
  7143. If (FprevPageToken=AValue) then exit;
  7144. FprevPageToken:=AValue;
  7145. MarkPropertyChanged(AIndex);
  7146. end;
  7147. Procedure TChannelListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  7148. begin
  7149. If (FtokenPagination=AValue) then exit;
  7150. FtokenPagination:=AValue;
  7151. MarkPropertyChanged(AIndex);
  7152. end;
  7153. Procedure TChannelListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  7154. begin
  7155. If (FvisitorId=AValue) then exit;
  7156. FvisitorId:=AValue;
  7157. MarkPropertyChanged(AIndex);
  7158. end;
  7159. //2.6.4. bug workaround
  7160. {$IFDEF VER2_6}
  7161. Procedure TChannelListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  7162. begin
  7163. Case AName of
  7164. 'items' : SetLength(Fitems,ALength);
  7165. else
  7166. Inherited SetArrayLength(AName,ALength);
  7167. end;
  7168. end;
  7169. {$ENDIF VER2_6}
  7170. { --------------------------------------------------------------------
  7171. TChannelLocalization
  7172. --------------------------------------------------------------------}
  7173. Procedure TChannelLocalization.Setdescription(AIndex : Integer; const AValue : String);
  7174. begin
  7175. If (Fdescription=AValue) then exit;
  7176. Fdescription:=AValue;
  7177. MarkPropertyChanged(AIndex);
  7178. end;
  7179. Procedure TChannelLocalization.Settitle(AIndex : Integer; const AValue : String);
  7180. begin
  7181. If (Ftitle=AValue) then exit;
  7182. Ftitle:=AValue;
  7183. MarkPropertyChanged(AIndex);
  7184. end;
  7185. { --------------------------------------------------------------------
  7186. TChannelProfileDetails
  7187. --------------------------------------------------------------------}
  7188. Procedure TChannelProfileDetails.SetchannelId(AIndex : Integer; const AValue : String);
  7189. begin
  7190. If (FchannelId=AValue) then exit;
  7191. FchannelId:=AValue;
  7192. MarkPropertyChanged(AIndex);
  7193. end;
  7194. Procedure TChannelProfileDetails.SetchannelUrl(AIndex : Integer; const AValue : String);
  7195. begin
  7196. If (FchannelUrl=AValue) then exit;
  7197. FchannelUrl:=AValue;
  7198. MarkPropertyChanged(AIndex);
  7199. end;
  7200. Procedure TChannelProfileDetails.SetdisplayName(AIndex : Integer; const AValue : String);
  7201. begin
  7202. If (FdisplayName=AValue) then exit;
  7203. FdisplayName:=AValue;
  7204. MarkPropertyChanged(AIndex);
  7205. end;
  7206. Procedure TChannelProfileDetails.SetprofileImageUrl(AIndex : Integer; const AValue : String);
  7207. begin
  7208. If (FprofileImageUrl=AValue) then exit;
  7209. FprofileImageUrl:=AValue;
  7210. MarkPropertyChanged(AIndex);
  7211. end;
  7212. { --------------------------------------------------------------------
  7213. TChannelSectionTypelocalizations
  7214. --------------------------------------------------------------------}
  7215. Class Function TChannelSectionTypelocalizations.AllowAdditionalProperties : Boolean;
  7216. begin
  7217. Result:=True;
  7218. end;
  7219. { --------------------------------------------------------------------
  7220. TChannelSection
  7221. --------------------------------------------------------------------}
  7222. Procedure TChannelSection.SetcontentDetails(AIndex : Integer; const AValue : TChannelSectionContentDetails);
  7223. begin
  7224. If (FcontentDetails=AValue) then exit;
  7225. FcontentDetails:=AValue;
  7226. MarkPropertyChanged(AIndex);
  7227. end;
  7228. Procedure TChannelSection.Setetag(AIndex : Integer; const AValue : String);
  7229. begin
  7230. If (Fetag=AValue) then exit;
  7231. Fetag:=AValue;
  7232. MarkPropertyChanged(AIndex);
  7233. end;
  7234. Procedure TChannelSection.Setid(AIndex : Integer; const AValue : String);
  7235. begin
  7236. If (Fid=AValue) then exit;
  7237. Fid:=AValue;
  7238. MarkPropertyChanged(AIndex);
  7239. end;
  7240. Procedure TChannelSection.Setkind(AIndex : Integer; const AValue : String);
  7241. begin
  7242. If (Fkind=AValue) then exit;
  7243. Fkind:=AValue;
  7244. MarkPropertyChanged(AIndex);
  7245. end;
  7246. Procedure TChannelSection.Setlocalizations(AIndex : Integer; const AValue : TChannelSectionTypelocalizations);
  7247. begin
  7248. If (Flocalizations=AValue) then exit;
  7249. Flocalizations:=AValue;
  7250. MarkPropertyChanged(AIndex);
  7251. end;
  7252. Procedure TChannelSection.Setsnippet(AIndex : Integer; const AValue : TChannelSectionSnippet);
  7253. begin
  7254. If (Fsnippet=AValue) then exit;
  7255. Fsnippet:=AValue;
  7256. MarkPropertyChanged(AIndex);
  7257. end;
  7258. Procedure TChannelSection.Settargeting(AIndex : Integer; const AValue : TChannelSectionTargeting);
  7259. begin
  7260. If (Ftargeting=AValue) then exit;
  7261. Ftargeting:=AValue;
  7262. MarkPropertyChanged(AIndex);
  7263. end;
  7264. { --------------------------------------------------------------------
  7265. TChannelSectionContentDetails
  7266. --------------------------------------------------------------------}
  7267. Procedure TChannelSectionContentDetails.Setchannels(AIndex : Integer; const AValue : TStringArray);
  7268. begin
  7269. If (Fchannels=AValue) then exit;
  7270. Fchannels:=AValue;
  7271. MarkPropertyChanged(AIndex);
  7272. end;
  7273. Procedure TChannelSectionContentDetails.Setplaylists(AIndex : Integer; const AValue : TStringArray);
  7274. begin
  7275. If (Fplaylists=AValue) then exit;
  7276. Fplaylists:=AValue;
  7277. MarkPropertyChanged(AIndex);
  7278. end;
  7279. //2.6.4. bug workaround
  7280. {$IFDEF VER2_6}
  7281. Procedure TChannelSectionContentDetails.SetArrayLength(Const AName : String; ALength : Longint);
  7282. begin
  7283. Case AName of
  7284. 'channels' : SetLength(Fchannels,ALength);
  7285. 'playlists' : SetLength(Fplaylists,ALength);
  7286. else
  7287. Inherited SetArrayLength(AName,ALength);
  7288. end;
  7289. end;
  7290. {$ENDIF VER2_6}
  7291. { --------------------------------------------------------------------
  7292. TChannelSectionListResponse
  7293. --------------------------------------------------------------------}
  7294. Procedure TChannelSectionListResponse.Setetag(AIndex : Integer; const AValue : String);
  7295. begin
  7296. If (Fetag=AValue) then exit;
  7297. Fetag:=AValue;
  7298. MarkPropertyChanged(AIndex);
  7299. end;
  7300. Procedure TChannelSectionListResponse.SeteventId(AIndex : Integer; const AValue : String);
  7301. begin
  7302. If (FeventId=AValue) then exit;
  7303. FeventId:=AValue;
  7304. MarkPropertyChanged(AIndex);
  7305. end;
  7306. Procedure TChannelSectionListResponse.Setitems(AIndex : Integer; const AValue : TChannelSectionListResponseTypeitemsArray);
  7307. begin
  7308. If (Fitems=AValue) then exit;
  7309. Fitems:=AValue;
  7310. MarkPropertyChanged(AIndex);
  7311. end;
  7312. Procedure TChannelSectionListResponse.Setkind(AIndex : Integer; const AValue : String);
  7313. begin
  7314. If (Fkind=AValue) then exit;
  7315. Fkind:=AValue;
  7316. MarkPropertyChanged(AIndex);
  7317. end;
  7318. Procedure TChannelSectionListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  7319. begin
  7320. If (FvisitorId=AValue) then exit;
  7321. FvisitorId:=AValue;
  7322. MarkPropertyChanged(AIndex);
  7323. end;
  7324. //2.6.4. bug workaround
  7325. {$IFDEF VER2_6}
  7326. Procedure TChannelSectionListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  7327. begin
  7328. Case AName of
  7329. 'items' : SetLength(Fitems,ALength);
  7330. else
  7331. Inherited SetArrayLength(AName,ALength);
  7332. end;
  7333. end;
  7334. {$ENDIF VER2_6}
  7335. { --------------------------------------------------------------------
  7336. TChannelSectionLocalization
  7337. --------------------------------------------------------------------}
  7338. Procedure TChannelSectionLocalization.Settitle(AIndex : Integer; const AValue : String);
  7339. begin
  7340. If (Ftitle=AValue) then exit;
  7341. Ftitle:=AValue;
  7342. MarkPropertyChanged(AIndex);
  7343. end;
  7344. { --------------------------------------------------------------------
  7345. TChannelSectionSnippet
  7346. --------------------------------------------------------------------}
  7347. Procedure TChannelSectionSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  7348. begin
  7349. If (FchannelId=AValue) then exit;
  7350. FchannelId:=AValue;
  7351. MarkPropertyChanged(AIndex);
  7352. end;
  7353. Procedure TChannelSectionSnippet.SetdefaultLanguage(AIndex : Integer; const AValue : String);
  7354. begin
  7355. If (FdefaultLanguage=AValue) then exit;
  7356. FdefaultLanguage:=AValue;
  7357. MarkPropertyChanged(AIndex);
  7358. end;
  7359. Procedure TChannelSectionSnippet.Setlocalized(AIndex : Integer; const AValue : TChannelSectionLocalization);
  7360. begin
  7361. If (Flocalized=AValue) then exit;
  7362. Flocalized:=AValue;
  7363. MarkPropertyChanged(AIndex);
  7364. end;
  7365. Procedure TChannelSectionSnippet.Setposition(AIndex : Integer; const AValue : integer);
  7366. begin
  7367. If (Fposition=AValue) then exit;
  7368. Fposition:=AValue;
  7369. MarkPropertyChanged(AIndex);
  7370. end;
  7371. Procedure TChannelSectionSnippet.Setstyle(AIndex : Integer; const AValue : String);
  7372. begin
  7373. If (Fstyle=AValue) then exit;
  7374. Fstyle:=AValue;
  7375. MarkPropertyChanged(AIndex);
  7376. end;
  7377. Procedure TChannelSectionSnippet.Settitle(AIndex : Integer; const AValue : String);
  7378. begin
  7379. If (Ftitle=AValue) then exit;
  7380. Ftitle:=AValue;
  7381. MarkPropertyChanged(AIndex);
  7382. end;
  7383. Procedure TChannelSectionSnippet.Set_type(AIndex : Integer; const AValue : String);
  7384. begin
  7385. If (F_type=AValue) then exit;
  7386. F_type:=AValue;
  7387. MarkPropertyChanged(AIndex);
  7388. end;
  7389. Class Function TChannelSectionSnippet.ExportPropertyName(Const AName : String) :String;
  7390. begin
  7391. Case AName of
  7392. '_type' : Result:='type';
  7393. else
  7394. Result:=Inherited ExportPropertyName(AName);
  7395. end;
  7396. end;
  7397. { --------------------------------------------------------------------
  7398. TChannelSectionTargeting
  7399. --------------------------------------------------------------------}
  7400. Procedure TChannelSectionTargeting.Setcountries(AIndex : Integer; const AValue : TStringArray);
  7401. begin
  7402. If (Fcountries=AValue) then exit;
  7403. Fcountries:=AValue;
  7404. MarkPropertyChanged(AIndex);
  7405. end;
  7406. Procedure TChannelSectionTargeting.Setlanguages(AIndex : Integer; const AValue : TStringArray);
  7407. begin
  7408. If (Flanguages=AValue) then exit;
  7409. Flanguages:=AValue;
  7410. MarkPropertyChanged(AIndex);
  7411. end;
  7412. Procedure TChannelSectionTargeting.Setregions(AIndex : Integer; const AValue : TStringArray);
  7413. begin
  7414. If (Fregions=AValue) then exit;
  7415. Fregions:=AValue;
  7416. MarkPropertyChanged(AIndex);
  7417. end;
  7418. //2.6.4. bug workaround
  7419. {$IFDEF VER2_6}
  7420. Procedure TChannelSectionTargeting.SetArrayLength(Const AName : String; ALength : Longint);
  7421. begin
  7422. Case AName of
  7423. 'countries' : SetLength(Fcountries,ALength);
  7424. 'languages' : SetLength(Flanguages,ALength);
  7425. 'regions' : SetLength(Fregions,ALength);
  7426. else
  7427. Inherited SetArrayLength(AName,ALength);
  7428. end;
  7429. end;
  7430. {$ENDIF VER2_6}
  7431. { --------------------------------------------------------------------
  7432. TChannelSettings
  7433. --------------------------------------------------------------------}
  7434. Procedure TChannelSettings.Setcountry(AIndex : Integer; const AValue : String);
  7435. begin
  7436. If (Fcountry=AValue) then exit;
  7437. Fcountry:=AValue;
  7438. MarkPropertyChanged(AIndex);
  7439. end;
  7440. Procedure TChannelSettings.SetdefaultLanguage(AIndex : Integer; const AValue : String);
  7441. begin
  7442. If (FdefaultLanguage=AValue) then exit;
  7443. FdefaultLanguage:=AValue;
  7444. MarkPropertyChanged(AIndex);
  7445. end;
  7446. Procedure TChannelSettings.SetdefaultTab(AIndex : Integer; const AValue : String);
  7447. begin
  7448. If (FdefaultTab=AValue) then exit;
  7449. FdefaultTab:=AValue;
  7450. MarkPropertyChanged(AIndex);
  7451. end;
  7452. Procedure TChannelSettings.Setdescription(AIndex : Integer; const AValue : String);
  7453. begin
  7454. If (Fdescription=AValue) then exit;
  7455. Fdescription:=AValue;
  7456. MarkPropertyChanged(AIndex);
  7457. end;
  7458. Procedure TChannelSettings.SetfeaturedChannelsTitle(AIndex : Integer; const AValue : String);
  7459. begin
  7460. If (FfeaturedChannelsTitle=AValue) then exit;
  7461. FfeaturedChannelsTitle:=AValue;
  7462. MarkPropertyChanged(AIndex);
  7463. end;
  7464. Procedure TChannelSettings.SetfeaturedChannelsUrls(AIndex : Integer; const AValue : TStringArray);
  7465. begin
  7466. If (FfeaturedChannelsUrls=AValue) then exit;
  7467. FfeaturedChannelsUrls:=AValue;
  7468. MarkPropertyChanged(AIndex);
  7469. end;
  7470. Procedure TChannelSettings.Setkeywords(AIndex : Integer; const AValue : String);
  7471. begin
  7472. If (Fkeywords=AValue) then exit;
  7473. Fkeywords:=AValue;
  7474. MarkPropertyChanged(AIndex);
  7475. end;
  7476. Procedure TChannelSettings.SetmoderateComments(AIndex : Integer; const AValue : boolean);
  7477. begin
  7478. If (FmoderateComments=AValue) then exit;
  7479. FmoderateComments:=AValue;
  7480. MarkPropertyChanged(AIndex);
  7481. end;
  7482. Procedure TChannelSettings.SetprofileColor(AIndex : Integer; const AValue : String);
  7483. begin
  7484. If (FprofileColor=AValue) then exit;
  7485. FprofileColor:=AValue;
  7486. MarkPropertyChanged(AIndex);
  7487. end;
  7488. Procedure TChannelSettings.SetshowBrowseView(AIndex : Integer; const AValue : boolean);
  7489. begin
  7490. If (FshowBrowseView=AValue) then exit;
  7491. FshowBrowseView:=AValue;
  7492. MarkPropertyChanged(AIndex);
  7493. end;
  7494. Procedure TChannelSettings.SetshowRelatedChannels(AIndex : Integer; const AValue : boolean);
  7495. begin
  7496. If (FshowRelatedChannels=AValue) then exit;
  7497. FshowRelatedChannels:=AValue;
  7498. MarkPropertyChanged(AIndex);
  7499. end;
  7500. Procedure TChannelSettings.Settitle(AIndex : Integer; const AValue : String);
  7501. begin
  7502. If (Ftitle=AValue) then exit;
  7503. Ftitle:=AValue;
  7504. MarkPropertyChanged(AIndex);
  7505. end;
  7506. Procedure TChannelSettings.SettrackingAnalyticsAccountId(AIndex : Integer; const AValue : String);
  7507. begin
  7508. If (FtrackingAnalyticsAccountId=AValue) then exit;
  7509. FtrackingAnalyticsAccountId:=AValue;
  7510. MarkPropertyChanged(AIndex);
  7511. end;
  7512. Procedure TChannelSettings.SetunsubscribedTrailer(AIndex : Integer; const AValue : String);
  7513. begin
  7514. If (FunsubscribedTrailer=AValue) then exit;
  7515. FunsubscribedTrailer:=AValue;
  7516. MarkPropertyChanged(AIndex);
  7517. end;
  7518. //2.6.4. bug workaround
  7519. {$IFDEF VER2_6}
  7520. Procedure TChannelSettings.SetArrayLength(Const AName : String; ALength : Longint);
  7521. begin
  7522. Case AName of
  7523. 'featuredchannelsurls' : SetLength(FfeaturedChannelsUrls,ALength);
  7524. else
  7525. Inherited SetArrayLength(AName,ALength);
  7526. end;
  7527. end;
  7528. {$ENDIF VER2_6}
  7529. { --------------------------------------------------------------------
  7530. TChannelSnippet
  7531. --------------------------------------------------------------------}
  7532. Procedure TChannelSnippet.Setcountry(AIndex : Integer; const AValue : String);
  7533. begin
  7534. If (Fcountry=AValue) then exit;
  7535. Fcountry:=AValue;
  7536. MarkPropertyChanged(AIndex);
  7537. end;
  7538. Procedure TChannelSnippet.SetcustomUrl(AIndex : Integer; const AValue : String);
  7539. begin
  7540. If (FcustomUrl=AValue) then exit;
  7541. FcustomUrl:=AValue;
  7542. MarkPropertyChanged(AIndex);
  7543. end;
  7544. Procedure TChannelSnippet.SetdefaultLanguage(AIndex : Integer; const AValue : String);
  7545. begin
  7546. If (FdefaultLanguage=AValue) then exit;
  7547. FdefaultLanguage:=AValue;
  7548. MarkPropertyChanged(AIndex);
  7549. end;
  7550. Procedure TChannelSnippet.Setdescription(AIndex : Integer; const AValue : String);
  7551. begin
  7552. If (Fdescription=AValue) then exit;
  7553. Fdescription:=AValue;
  7554. MarkPropertyChanged(AIndex);
  7555. end;
  7556. Procedure TChannelSnippet.Setlocalized(AIndex : Integer; const AValue : TChannelLocalization);
  7557. begin
  7558. If (Flocalized=AValue) then exit;
  7559. Flocalized:=AValue;
  7560. MarkPropertyChanged(AIndex);
  7561. end;
  7562. Procedure TChannelSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  7563. begin
  7564. If (FpublishedAt=AValue) then exit;
  7565. FpublishedAt:=AValue;
  7566. MarkPropertyChanged(AIndex);
  7567. end;
  7568. Procedure TChannelSnippet.Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails);
  7569. begin
  7570. If (Fthumbnails=AValue) then exit;
  7571. Fthumbnails:=AValue;
  7572. MarkPropertyChanged(AIndex);
  7573. end;
  7574. Procedure TChannelSnippet.Settitle(AIndex : Integer; const AValue : String);
  7575. begin
  7576. If (Ftitle=AValue) then exit;
  7577. Ftitle:=AValue;
  7578. MarkPropertyChanged(AIndex);
  7579. end;
  7580. { --------------------------------------------------------------------
  7581. TChannelStatistics
  7582. --------------------------------------------------------------------}
  7583. Procedure TChannelStatistics.SetcommentCount(AIndex : Integer; const AValue : String);
  7584. begin
  7585. If (FcommentCount=AValue) then exit;
  7586. FcommentCount:=AValue;
  7587. MarkPropertyChanged(AIndex);
  7588. end;
  7589. Procedure TChannelStatistics.SethiddenSubscriberCount(AIndex : Integer; const AValue : boolean);
  7590. begin
  7591. If (FhiddenSubscriberCount=AValue) then exit;
  7592. FhiddenSubscriberCount:=AValue;
  7593. MarkPropertyChanged(AIndex);
  7594. end;
  7595. Procedure TChannelStatistics.SetsubscriberCount(AIndex : Integer; const AValue : String);
  7596. begin
  7597. If (FsubscriberCount=AValue) then exit;
  7598. FsubscriberCount:=AValue;
  7599. MarkPropertyChanged(AIndex);
  7600. end;
  7601. Procedure TChannelStatistics.SetvideoCount(AIndex : Integer; const AValue : String);
  7602. begin
  7603. If (FvideoCount=AValue) then exit;
  7604. FvideoCount:=AValue;
  7605. MarkPropertyChanged(AIndex);
  7606. end;
  7607. Procedure TChannelStatistics.SetviewCount(AIndex : Integer; const AValue : String);
  7608. begin
  7609. If (FviewCount=AValue) then exit;
  7610. FviewCount:=AValue;
  7611. MarkPropertyChanged(AIndex);
  7612. end;
  7613. { --------------------------------------------------------------------
  7614. TChannelStatus
  7615. --------------------------------------------------------------------}
  7616. Procedure TChannelStatus.SetisLinked(AIndex : Integer; const AValue : boolean);
  7617. begin
  7618. If (FisLinked=AValue) then exit;
  7619. FisLinked:=AValue;
  7620. MarkPropertyChanged(AIndex);
  7621. end;
  7622. Procedure TChannelStatus.SetlongUploadsStatus(AIndex : Integer; const AValue : String);
  7623. begin
  7624. If (FlongUploadsStatus=AValue) then exit;
  7625. FlongUploadsStatus:=AValue;
  7626. MarkPropertyChanged(AIndex);
  7627. end;
  7628. Procedure TChannelStatus.SetprivacyStatus(AIndex : Integer; const AValue : String);
  7629. begin
  7630. If (FprivacyStatus=AValue) then exit;
  7631. FprivacyStatus:=AValue;
  7632. MarkPropertyChanged(AIndex);
  7633. end;
  7634. { --------------------------------------------------------------------
  7635. TChannelTopicDetails
  7636. --------------------------------------------------------------------}
  7637. Procedure TChannelTopicDetails.SettopicIds(AIndex : Integer; const AValue : TStringArray);
  7638. begin
  7639. If (FtopicIds=AValue) then exit;
  7640. FtopicIds:=AValue;
  7641. MarkPropertyChanged(AIndex);
  7642. end;
  7643. //2.6.4. bug workaround
  7644. {$IFDEF VER2_6}
  7645. Procedure TChannelTopicDetails.SetArrayLength(Const AName : String; ALength : Longint);
  7646. begin
  7647. Case AName of
  7648. 'topicids' : SetLength(FtopicIds,ALength);
  7649. else
  7650. Inherited SetArrayLength(AName,ALength);
  7651. end;
  7652. end;
  7653. {$ENDIF VER2_6}
  7654. { --------------------------------------------------------------------
  7655. TComment
  7656. --------------------------------------------------------------------}
  7657. Procedure TComment.Setetag(AIndex : Integer; const AValue : String);
  7658. begin
  7659. If (Fetag=AValue) then exit;
  7660. Fetag:=AValue;
  7661. MarkPropertyChanged(AIndex);
  7662. end;
  7663. Procedure TComment.Setid(AIndex : Integer; const AValue : String);
  7664. begin
  7665. If (Fid=AValue) then exit;
  7666. Fid:=AValue;
  7667. MarkPropertyChanged(AIndex);
  7668. end;
  7669. Procedure TComment.Setkind(AIndex : Integer; const AValue : String);
  7670. begin
  7671. If (Fkind=AValue) then exit;
  7672. Fkind:=AValue;
  7673. MarkPropertyChanged(AIndex);
  7674. end;
  7675. Procedure TComment.Setsnippet(AIndex : Integer; const AValue : TCommentSnippet);
  7676. begin
  7677. If (Fsnippet=AValue) then exit;
  7678. Fsnippet:=AValue;
  7679. MarkPropertyChanged(AIndex);
  7680. end;
  7681. { --------------------------------------------------------------------
  7682. TCommentListResponse
  7683. --------------------------------------------------------------------}
  7684. Procedure TCommentListResponse.Setetag(AIndex : Integer; const AValue : String);
  7685. begin
  7686. If (Fetag=AValue) then exit;
  7687. Fetag:=AValue;
  7688. MarkPropertyChanged(AIndex);
  7689. end;
  7690. Procedure TCommentListResponse.SeteventId(AIndex : Integer; const AValue : String);
  7691. begin
  7692. If (FeventId=AValue) then exit;
  7693. FeventId:=AValue;
  7694. MarkPropertyChanged(AIndex);
  7695. end;
  7696. Procedure TCommentListResponse.Setitems(AIndex : Integer; const AValue : TCommentListResponseTypeitemsArray);
  7697. begin
  7698. If (Fitems=AValue) then exit;
  7699. Fitems:=AValue;
  7700. MarkPropertyChanged(AIndex);
  7701. end;
  7702. Procedure TCommentListResponse.Setkind(AIndex : Integer; const AValue : String);
  7703. begin
  7704. If (Fkind=AValue) then exit;
  7705. Fkind:=AValue;
  7706. MarkPropertyChanged(AIndex);
  7707. end;
  7708. Procedure TCommentListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  7709. begin
  7710. If (FnextPageToken=AValue) then exit;
  7711. FnextPageToken:=AValue;
  7712. MarkPropertyChanged(AIndex);
  7713. end;
  7714. Procedure TCommentListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  7715. begin
  7716. If (FpageInfo=AValue) then exit;
  7717. FpageInfo:=AValue;
  7718. MarkPropertyChanged(AIndex);
  7719. end;
  7720. Procedure TCommentListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  7721. begin
  7722. If (FtokenPagination=AValue) then exit;
  7723. FtokenPagination:=AValue;
  7724. MarkPropertyChanged(AIndex);
  7725. end;
  7726. Procedure TCommentListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  7727. begin
  7728. If (FvisitorId=AValue) then exit;
  7729. FvisitorId:=AValue;
  7730. MarkPropertyChanged(AIndex);
  7731. end;
  7732. //2.6.4. bug workaround
  7733. {$IFDEF VER2_6}
  7734. Procedure TCommentListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  7735. begin
  7736. Case AName of
  7737. 'items' : SetLength(Fitems,ALength);
  7738. else
  7739. Inherited SetArrayLength(AName,ALength);
  7740. end;
  7741. end;
  7742. {$ENDIF VER2_6}
  7743. { --------------------------------------------------------------------
  7744. TCommentSnippet
  7745. --------------------------------------------------------------------}
  7746. Procedure TCommentSnippet.SetauthorChannelId(AIndex : Integer; const AValue : TJSONSchema);
  7747. begin
  7748. If (FauthorChannelId=AValue) then exit;
  7749. FauthorChannelId:=AValue;
  7750. MarkPropertyChanged(AIndex);
  7751. end;
  7752. Procedure TCommentSnippet.SetauthorChannelUrl(AIndex : Integer; const AValue : String);
  7753. begin
  7754. If (FauthorChannelUrl=AValue) then exit;
  7755. FauthorChannelUrl:=AValue;
  7756. MarkPropertyChanged(AIndex);
  7757. end;
  7758. Procedure TCommentSnippet.SetauthorDisplayName(AIndex : Integer; const AValue : String);
  7759. begin
  7760. If (FauthorDisplayName=AValue) then exit;
  7761. FauthorDisplayName:=AValue;
  7762. MarkPropertyChanged(AIndex);
  7763. end;
  7764. Procedure TCommentSnippet.SetauthorGoogleplusProfileUrl(AIndex : Integer; const AValue : String);
  7765. begin
  7766. If (FauthorGoogleplusProfileUrl=AValue) then exit;
  7767. FauthorGoogleplusProfileUrl:=AValue;
  7768. MarkPropertyChanged(AIndex);
  7769. end;
  7770. Procedure TCommentSnippet.SetauthorProfileImageUrl(AIndex : Integer; const AValue : String);
  7771. begin
  7772. If (FauthorProfileImageUrl=AValue) then exit;
  7773. FauthorProfileImageUrl:=AValue;
  7774. MarkPropertyChanged(AIndex);
  7775. end;
  7776. Procedure TCommentSnippet.SetcanRate(AIndex : Integer; const AValue : boolean);
  7777. begin
  7778. If (FcanRate=AValue) then exit;
  7779. FcanRate:=AValue;
  7780. MarkPropertyChanged(AIndex);
  7781. end;
  7782. Procedure TCommentSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  7783. begin
  7784. If (FchannelId=AValue) then exit;
  7785. FchannelId:=AValue;
  7786. MarkPropertyChanged(AIndex);
  7787. end;
  7788. Procedure TCommentSnippet.SetlikeCount(AIndex : Integer; const AValue : integer);
  7789. begin
  7790. If (FlikeCount=AValue) then exit;
  7791. FlikeCount:=AValue;
  7792. MarkPropertyChanged(AIndex);
  7793. end;
  7794. Procedure TCommentSnippet.SetmoderationStatus(AIndex : Integer; const AValue : String);
  7795. begin
  7796. If (FmoderationStatus=AValue) then exit;
  7797. FmoderationStatus:=AValue;
  7798. MarkPropertyChanged(AIndex);
  7799. end;
  7800. Procedure TCommentSnippet.SetparentId(AIndex : Integer; const AValue : String);
  7801. begin
  7802. If (FparentId=AValue) then exit;
  7803. FparentId:=AValue;
  7804. MarkPropertyChanged(AIndex);
  7805. end;
  7806. Procedure TCommentSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  7807. begin
  7808. If (FpublishedAt=AValue) then exit;
  7809. FpublishedAt:=AValue;
  7810. MarkPropertyChanged(AIndex);
  7811. end;
  7812. Procedure TCommentSnippet.SettextDisplay(AIndex : Integer; const AValue : String);
  7813. begin
  7814. If (FtextDisplay=AValue) then exit;
  7815. FtextDisplay:=AValue;
  7816. MarkPropertyChanged(AIndex);
  7817. end;
  7818. Procedure TCommentSnippet.SettextOriginal(AIndex : Integer; const AValue : String);
  7819. begin
  7820. If (FtextOriginal=AValue) then exit;
  7821. FtextOriginal:=AValue;
  7822. MarkPropertyChanged(AIndex);
  7823. end;
  7824. Procedure TCommentSnippet.SetupdatedAt(AIndex : Integer; const AValue : TDatetime);
  7825. begin
  7826. If (FupdatedAt=AValue) then exit;
  7827. FupdatedAt:=AValue;
  7828. MarkPropertyChanged(AIndex);
  7829. end;
  7830. Procedure TCommentSnippet.SetvideoId(AIndex : Integer; const AValue : String);
  7831. begin
  7832. If (FvideoId=AValue) then exit;
  7833. FvideoId:=AValue;
  7834. MarkPropertyChanged(AIndex);
  7835. end;
  7836. Procedure TCommentSnippet.SetviewerRating(AIndex : Integer; const AValue : String);
  7837. begin
  7838. If (FviewerRating=AValue) then exit;
  7839. FviewerRating:=AValue;
  7840. MarkPropertyChanged(AIndex);
  7841. end;
  7842. { --------------------------------------------------------------------
  7843. TCommentThread
  7844. --------------------------------------------------------------------}
  7845. Procedure TCommentThread.Setetag(AIndex : Integer; const AValue : String);
  7846. begin
  7847. If (Fetag=AValue) then exit;
  7848. Fetag:=AValue;
  7849. MarkPropertyChanged(AIndex);
  7850. end;
  7851. Procedure TCommentThread.Setid(AIndex : Integer; const AValue : String);
  7852. begin
  7853. If (Fid=AValue) then exit;
  7854. Fid:=AValue;
  7855. MarkPropertyChanged(AIndex);
  7856. end;
  7857. Procedure TCommentThread.Setkind(AIndex : Integer; const AValue : String);
  7858. begin
  7859. If (Fkind=AValue) then exit;
  7860. Fkind:=AValue;
  7861. MarkPropertyChanged(AIndex);
  7862. end;
  7863. Procedure TCommentThread.Setreplies(AIndex : Integer; const AValue : TCommentThreadReplies);
  7864. begin
  7865. If (Freplies=AValue) then exit;
  7866. Freplies:=AValue;
  7867. MarkPropertyChanged(AIndex);
  7868. end;
  7869. Procedure TCommentThread.Setsnippet(AIndex : Integer; const AValue : TCommentThreadSnippet);
  7870. begin
  7871. If (Fsnippet=AValue) then exit;
  7872. Fsnippet:=AValue;
  7873. MarkPropertyChanged(AIndex);
  7874. end;
  7875. { --------------------------------------------------------------------
  7876. TCommentThreadListResponse
  7877. --------------------------------------------------------------------}
  7878. Procedure TCommentThreadListResponse.Setetag(AIndex : Integer; const AValue : String);
  7879. begin
  7880. If (Fetag=AValue) then exit;
  7881. Fetag:=AValue;
  7882. MarkPropertyChanged(AIndex);
  7883. end;
  7884. Procedure TCommentThreadListResponse.SeteventId(AIndex : Integer; const AValue : String);
  7885. begin
  7886. If (FeventId=AValue) then exit;
  7887. FeventId:=AValue;
  7888. MarkPropertyChanged(AIndex);
  7889. end;
  7890. Procedure TCommentThreadListResponse.Setitems(AIndex : Integer; const AValue : TCommentThreadListResponseTypeitemsArray);
  7891. begin
  7892. If (Fitems=AValue) then exit;
  7893. Fitems:=AValue;
  7894. MarkPropertyChanged(AIndex);
  7895. end;
  7896. Procedure TCommentThreadListResponse.Setkind(AIndex : Integer; const AValue : String);
  7897. begin
  7898. If (Fkind=AValue) then exit;
  7899. Fkind:=AValue;
  7900. MarkPropertyChanged(AIndex);
  7901. end;
  7902. Procedure TCommentThreadListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  7903. begin
  7904. If (FnextPageToken=AValue) then exit;
  7905. FnextPageToken:=AValue;
  7906. MarkPropertyChanged(AIndex);
  7907. end;
  7908. Procedure TCommentThreadListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  7909. begin
  7910. If (FpageInfo=AValue) then exit;
  7911. FpageInfo:=AValue;
  7912. MarkPropertyChanged(AIndex);
  7913. end;
  7914. Procedure TCommentThreadListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  7915. begin
  7916. If (FtokenPagination=AValue) then exit;
  7917. FtokenPagination:=AValue;
  7918. MarkPropertyChanged(AIndex);
  7919. end;
  7920. Procedure TCommentThreadListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  7921. begin
  7922. If (FvisitorId=AValue) then exit;
  7923. FvisitorId:=AValue;
  7924. MarkPropertyChanged(AIndex);
  7925. end;
  7926. //2.6.4. bug workaround
  7927. {$IFDEF VER2_6}
  7928. Procedure TCommentThreadListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  7929. begin
  7930. Case AName of
  7931. 'items' : SetLength(Fitems,ALength);
  7932. else
  7933. Inherited SetArrayLength(AName,ALength);
  7934. end;
  7935. end;
  7936. {$ENDIF VER2_6}
  7937. { --------------------------------------------------------------------
  7938. TCommentThreadReplies
  7939. --------------------------------------------------------------------}
  7940. Procedure TCommentThreadReplies.Setcomments(AIndex : Integer; const AValue : TCommentThreadRepliesTypecommentsArray);
  7941. begin
  7942. If (Fcomments=AValue) then exit;
  7943. Fcomments:=AValue;
  7944. MarkPropertyChanged(AIndex);
  7945. end;
  7946. //2.6.4. bug workaround
  7947. {$IFDEF VER2_6}
  7948. Procedure TCommentThreadReplies.SetArrayLength(Const AName : String; ALength : Longint);
  7949. begin
  7950. Case AName of
  7951. 'comments' : SetLength(Fcomments,ALength);
  7952. else
  7953. Inherited SetArrayLength(AName,ALength);
  7954. end;
  7955. end;
  7956. {$ENDIF VER2_6}
  7957. { --------------------------------------------------------------------
  7958. TCommentThreadSnippet
  7959. --------------------------------------------------------------------}
  7960. Procedure TCommentThreadSnippet.SetcanReply(AIndex : Integer; const AValue : boolean);
  7961. begin
  7962. If (FcanReply=AValue) then exit;
  7963. FcanReply:=AValue;
  7964. MarkPropertyChanged(AIndex);
  7965. end;
  7966. Procedure TCommentThreadSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  7967. begin
  7968. If (FchannelId=AValue) then exit;
  7969. FchannelId:=AValue;
  7970. MarkPropertyChanged(AIndex);
  7971. end;
  7972. Procedure TCommentThreadSnippet.SetisPublic(AIndex : Integer; const AValue : boolean);
  7973. begin
  7974. If (FisPublic=AValue) then exit;
  7975. FisPublic:=AValue;
  7976. MarkPropertyChanged(AIndex);
  7977. end;
  7978. Procedure TCommentThreadSnippet.SettopLevelComment(AIndex : Integer; const AValue : TComment);
  7979. begin
  7980. If (FtopLevelComment=AValue) then exit;
  7981. FtopLevelComment:=AValue;
  7982. MarkPropertyChanged(AIndex);
  7983. end;
  7984. Procedure TCommentThreadSnippet.SettotalReplyCount(AIndex : Integer; const AValue : integer);
  7985. begin
  7986. If (FtotalReplyCount=AValue) then exit;
  7987. FtotalReplyCount:=AValue;
  7988. MarkPropertyChanged(AIndex);
  7989. end;
  7990. Procedure TCommentThreadSnippet.SetvideoId(AIndex : Integer; const AValue : String);
  7991. begin
  7992. If (FvideoId=AValue) then exit;
  7993. FvideoId:=AValue;
  7994. MarkPropertyChanged(AIndex);
  7995. end;
  7996. { --------------------------------------------------------------------
  7997. TContentRating
  7998. --------------------------------------------------------------------}
  7999. Procedure TContentRating.SetacbRating(AIndex : Integer; const AValue : String);
  8000. begin
  8001. If (FacbRating=AValue) then exit;
  8002. FacbRating:=AValue;
  8003. MarkPropertyChanged(AIndex);
  8004. end;
  8005. Procedure TContentRating.SetagcomRating(AIndex : Integer; const AValue : String);
  8006. begin
  8007. If (FagcomRating=AValue) then exit;
  8008. FagcomRating:=AValue;
  8009. MarkPropertyChanged(AIndex);
  8010. end;
  8011. Procedure TContentRating.SetanatelRating(AIndex : Integer; const AValue : String);
  8012. begin
  8013. If (FanatelRating=AValue) then exit;
  8014. FanatelRating:=AValue;
  8015. MarkPropertyChanged(AIndex);
  8016. end;
  8017. Procedure TContentRating.SetbbfcRating(AIndex : Integer; const AValue : String);
  8018. begin
  8019. If (FbbfcRating=AValue) then exit;
  8020. FbbfcRating:=AValue;
  8021. MarkPropertyChanged(AIndex);
  8022. end;
  8023. Procedure TContentRating.SetbfvcRating(AIndex : Integer; const AValue : String);
  8024. begin
  8025. If (FbfvcRating=AValue) then exit;
  8026. FbfvcRating:=AValue;
  8027. MarkPropertyChanged(AIndex);
  8028. end;
  8029. Procedure TContentRating.SetbmukkRating(AIndex : Integer; const AValue : String);
  8030. begin
  8031. If (FbmukkRating=AValue) then exit;
  8032. FbmukkRating:=AValue;
  8033. MarkPropertyChanged(AIndex);
  8034. end;
  8035. Procedure TContentRating.SetcatvRating(AIndex : Integer; const AValue : String);
  8036. begin
  8037. If (FcatvRating=AValue) then exit;
  8038. FcatvRating:=AValue;
  8039. MarkPropertyChanged(AIndex);
  8040. end;
  8041. Procedure TContentRating.SetcatvfrRating(AIndex : Integer; const AValue : String);
  8042. begin
  8043. If (FcatvfrRating=AValue) then exit;
  8044. FcatvfrRating:=AValue;
  8045. MarkPropertyChanged(AIndex);
  8046. end;
  8047. Procedure TContentRating.SetcbfcRating(AIndex : Integer; const AValue : String);
  8048. begin
  8049. If (FcbfcRating=AValue) then exit;
  8050. FcbfcRating:=AValue;
  8051. MarkPropertyChanged(AIndex);
  8052. end;
  8053. Procedure TContentRating.SetcccRating(AIndex : Integer; const AValue : String);
  8054. begin
  8055. If (FcccRating=AValue) then exit;
  8056. FcccRating:=AValue;
  8057. MarkPropertyChanged(AIndex);
  8058. end;
  8059. Procedure TContentRating.SetcceRating(AIndex : Integer; const AValue : String);
  8060. begin
  8061. If (FcceRating=AValue) then exit;
  8062. FcceRating:=AValue;
  8063. MarkPropertyChanged(AIndex);
  8064. end;
  8065. Procedure TContentRating.SetchfilmRating(AIndex : Integer; const AValue : String);
  8066. begin
  8067. If (FchfilmRating=AValue) then exit;
  8068. FchfilmRating:=AValue;
  8069. MarkPropertyChanged(AIndex);
  8070. end;
  8071. Procedure TContentRating.SetchvrsRating(AIndex : Integer; const AValue : String);
  8072. begin
  8073. If (FchvrsRating=AValue) then exit;
  8074. FchvrsRating:=AValue;
  8075. MarkPropertyChanged(AIndex);
  8076. end;
  8077. Procedure TContentRating.SetcicfRating(AIndex : Integer; const AValue : String);
  8078. begin
  8079. If (FcicfRating=AValue) then exit;
  8080. FcicfRating:=AValue;
  8081. MarkPropertyChanged(AIndex);
  8082. end;
  8083. Procedure TContentRating.SetcnaRating(AIndex : Integer; const AValue : String);
  8084. begin
  8085. If (FcnaRating=AValue) then exit;
  8086. FcnaRating:=AValue;
  8087. MarkPropertyChanged(AIndex);
  8088. end;
  8089. Procedure TContentRating.SetcncRating(AIndex : Integer; const AValue : String);
  8090. begin
  8091. If (FcncRating=AValue) then exit;
  8092. FcncRating:=AValue;
  8093. MarkPropertyChanged(AIndex);
  8094. end;
  8095. Procedure TContentRating.SetcsaRating(AIndex : Integer; const AValue : String);
  8096. begin
  8097. If (FcsaRating=AValue) then exit;
  8098. FcsaRating:=AValue;
  8099. MarkPropertyChanged(AIndex);
  8100. end;
  8101. Procedure TContentRating.SetcscfRating(AIndex : Integer; const AValue : String);
  8102. begin
  8103. If (FcscfRating=AValue) then exit;
  8104. FcscfRating:=AValue;
  8105. MarkPropertyChanged(AIndex);
  8106. end;
  8107. Procedure TContentRating.SetczfilmRating(AIndex : Integer; const AValue : String);
  8108. begin
  8109. If (FczfilmRating=AValue) then exit;
  8110. FczfilmRating:=AValue;
  8111. MarkPropertyChanged(AIndex);
  8112. end;
  8113. Procedure TContentRating.SetdjctqRating(AIndex : Integer; const AValue : String);
  8114. begin
  8115. If (FdjctqRating=AValue) then exit;
  8116. FdjctqRating:=AValue;
  8117. MarkPropertyChanged(AIndex);
  8118. end;
  8119. Procedure TContentRating.SetdjctqRatingReasons(AIndex : Integer; const AValue : TStringArray);
  8120. begin
  8121. If (FdjctqRatingReasons=AValue) then exit;
  8122. FdjctqRatingReasons:=AValue;
  8123. MarkPropertyChanged(AIndex);
  8124. end;
  8125. Procedure TContentRating.SetecbmctRating(AIndex : Integer; const AValue : String);
  8126. begin
  8127. If (FecbmctRating=AValue) then exit;
  8128. FecbmctRating:=AValue;
  8129. MarkPropertyChanged(AIndex);
  8130. end;
  8131. Procedure TContentRating.SeteefilmRating(AIndex : Integer; const AValue : String);
  8132. begin
  8133. If (FeefilmRating=AValue) then exit;
  8134. FeefilmRating:=AValue;
  8135. MarkPropertyChanged(AIndex);
  8136. end;
  8137. Procedure TContentRating.SetegfilmRating(AIndex : Integer; const AValue : String);
  8138. begin
  8139. If (FegfilmRating=AValue) then exit;
  8140. FegfilmRating:=AValue;
  8141. MarkPropertyChanged(AIndex);
  8142. end;
  8143. Procedure TContentRating.SeteirinRating(AIndex : Integer; const AValue : String);
  8144. begin
  8145. If (FeirinRating=AValue) then exit;
  8146. FeirinRating:=AValue;
  8147. MarkPropertyChanged(AIndex);
  8148. end;
  8149. Procedure TContentRating.SetfcbmRating(AIndex : Integer; const AValue : String);
  8150. begin
  8151. If (FfcbmRating=AValue) then exit;
  8152. FfcbmRating:=AValue;
  8153. MarkPropertyChanged(AIndex);
  8154. end;
  8155. Procedure TContentRating.SetfcoRating(AIndex : Integer; const AValue : String);
  8156. begin
  8157. If (FfcoRating=AValue) then exit;
  8158. FfcoRating:=AValue;
  8159. MarkPropertyChanged(AIndex);
  8160. end;
  8161. Procedure TContentRating.SetfmocRating(AIndex : Integer; const AValue : String);
  8162. begin
  8163. If (FfmocRating=AValue) then exit;
  8164. FfmocRating:=AValue;
  8165. MarkPropertyChanged(AIndex);
  8166. end;
  8167. Procedure TContentRating.SetfpbRating(AIndex : Integer; const AValue : String);
  8168. begin
  8169. If (FfpbRating=AValue) then exit;
  8170. FfpbRating:=AValue;
  8171. MarkPropertyChanged(AIndex);
  8172. end;
  8173. Procedure TContentRating.SetfskRating(AIndex : Integer; const AValue : String);
  8174. begin
  8175. If (FfskRating=AValue) then exit;
  8176. FfskRating:=AValue;
  8177. MarkPropertyChanged(AIndex);
  8178. end;
  8179. Procedure TContentRating.SetgrfilmRating(AIndex : Integer; const AValue : String);
  8180. begin
  8181. If (FgrfilmRating=AValue) then exit;
  8182. FgrfilmRating:=AValue;
  8183. MarkPropertyChanged(AIndex);
  8184. end;
  8185. Procedure TContentRating.SeticaaRating(AIndex : Integer; const AValue : String);
  8186. begin
  8187. If (FicaaRating=AValue) then exit;
  8188. FicaaRating:=AValue;
  8189. MarkPropertyChanged(AIndex);
  8190. end;
  8191. Procedure TContentRating.SetifcoRating(AIndex : Integer; const AValue : String);
  8192. begin
  8193. If (FifcoRating=AValue) then exit;
  8194. FifcoRating:=AValue;
  8195. MarkPropertyChanged(AIndex);
  8196. end;
  8197. Procedure TContentRating.SetilfilmRating(AIndex : Integer; const AValue : String);
  8198. begin
  8199. If (FilfilmRating=AValue) then exit;
  8200. FilfilmRating:=AValue;
  8201. MarkPropertyChanged(AIndex);
  8202. end;
  8203. Procedure TContentRating.SetincaaRating(AIndex : Integer; const AValue : String);
  8204. begin
  8205. If (FincaaRating=AValue) then exit;
  8206. FincaaRating:=AValue;
  8207. MarkPropertyChanged(AIndex);
  8208. end;
  8209. Procedure TContentRating.SetkfcbRating(AIndex : Integer; const AValue : String);
  8210. begin
  8211. If (FkfcbRating=AValue) then exit;
  8212. FkfcbRating:=AValue;
  8213. MarkPropertyChanged(AIndex);
  8214. end;
  8215. Procedure TContentRating.SetkijkwijzerRating(AIndex : Integer; const AValue : String);
  8216. begin
  8217. If (FkijkwijzerRating=AValue) then exit;
  8218. FkijkwijzerRating:=AValue;
  8219. MarkPropertyChanged(AIndex);
  8220. end;
  8221. Procedure TContentRating.SetkmrbRating(AIndex : Integer; const AValue : String);
  8222. begin
  8223. If (FkmrbRating=AValue) then exit;
  8224. FkmrbRating:=AValue;
  8225. MarkPropertyChanged(AIndex);
  8226. end;
  8227. Procedure TContentRating.SetlsfRating(AIndex : Integer; const AValue : String);
  8228. begin
  8229. If (FlsfRating=AValue) then exit;
  8230. FlsfRating:=AValue;
  8231. MarkPropertyChanged(AIndex);
  8232. end;
  8233. Procedure TContentRating.SetmccaaRating(AIndex : Integer; const AValue : String);
  8234. begin
  8235. If (FmccaaRating=AValue) then exit;
  8236. FmccaaRating:=AValue;
  8237. MarkPropertyChanged(AIndex);
  8238. end;
  8239. Procedure TContentRating.SetmccypRating(AIndex : Integer; const AValue : String);
  8240. begin
  8241. If (FmccypRating=AValue) then exit;
  8242. FmccypRating:=AValue;
  8243. MarkPropertyChanged(AIndex);
  8244. end;
  8245. Procedure TContentRating.SetmdaRating(AIndex : Integer; const AValue : String);
  8246. begin
  8247. If (FmdaRating=AValue) then exit;
  8248. FmdaRating:=AValue;
  8249. MarkPropertyChanged(AIndex);
  8250. end;
  8251. Procedure TContentRating.SetmedietilsynetRating(AIndex : Integer; const AValue : String);
  8252. begin
  8253. If (FmedietilsynetRating=AValue) then exit;
  8254. FmedietilsynetRating:=AValue;
  8255. MarkPropertyChanged(AIndex);
  8256. end;
  8257. Procedure TContentRating.SetmekuRating(AIndex : Integer; const AValue : String);
  8258. begin
  8259. If (FmekuRating=AValue) then exit;
  8260. FmekuRating:=AValue;
  8261. MarkPropertyChanged(AIndex);
  8262. end;
  8263. Procedure TContentRating.SetmibacRating(AIndex : Integer; const AValue : String);
  8264. begin
  8265. If (FmibacRating=AValue) then exit;
  8266. FmibacRating:=AValue;
  8267. MarkPropertyChanged(AIndex);
  8268. end;
  8269. Procedure TContentRating.Set_mocRating(AIndex : Integer; const AValue : String);
  8270. begin
  8271. If (F_mocRating=AValue) then exit;
  8272. F_mocRating:=AValue;
  8273. MarkPropertyChanged(AIndex);
  8274. end;
  8275. Procedure TContentRating.SetmoctwRating(AIndex : Integer; const AValue : String);
  8276. begin
  8277. If (FmoctwRating=AValue) then exit;
  8278. FmoctwRating:=AValue;
  8279. MarkPropertyChanged(AIndex);
  8280. end;
  8281. Procedure TContentRating.SetmpaaRating(AIndex : Integer; const AValue : String);
  8282. begin
  8283. If (FmpaaRating=AValue) then exit;
  8284. FmpaaRating:=AValue;
  8285. MarkPropertyChanged(AIndex);
  8286. end;
  8287. Procedure TContentRating.SetmtrcbRating(AIndex : Integer; const AValue : String);
  8288. begin
  8289. If (FmtrcbRating=AValue) then exit;
  8290. FmtrcbRating:=AValue;
  8291. MarkPropertyChanged(AIndex);
  8292. end;
  8293. Procedure TContentRating.SetnbcRating(AIndex : Integer; const AValue : String);
  8294. begin
  8295. If (FnbcRating=AValue) then exit;
  8296. FnbcRating:=AValue;
  8297. MarkPropertyChanged(AIndex);
  8298. end;
  8299. Procedure TContentRating.SetnbcplRating(AIndex : Integer; const AValue : String);
  8300. begin
  8301. If (FnbcplRating=AValue) then exit;
  8302. FnbcplRating:=AValue;
  8303. MarkPropertyChanged(AIndex);
  8304. end;
  8305. Procedure TContentRating.SetnfrcRating(AIndex : Integer; const AValue : String);
  8306. begin
  8307. If (FnfrcRating=AValue) then exit;
  8308. FnfrcRating:=AValue;
  8309. MarkPropertyChanged(AIndex);
  8310. end;
  8311. Procedure TContentRating.SetnfvcbRating(AIndex : Integer; const AValue : String);
  8312. begin
  8313. If (FnfvcbRating=AValue) then exit;
  8314. FnfvcbRating:=AValue;
  8315. MarkPropertyChanged(AIndex);
  8316. end;
  8317. Procedure TContentRating.SetnkclvRating(AIndex : Integer; const AValue : String);
  8318. begin
  8319. If (FnkclvRating=AValue) then exit;
  8320. FnkclvRating:=AValue;
  8321. MarkPropertyChanged(AIndex);
  8322. end;
  8323. Procedure TContentRating.SetoflcRating(AIndex : Integer; const AValue : String);
  8324. begin
  8325. If (FoflcRating=AValue) then exit;
  8326. FoflcRating:=AValue;
  8327. MarkPropertyChanged(AIndex);
  8328. end;
  8329. Procedure TContentRating.SetpefilmRating(AIndex : Integer; const AValue : String);
  8330. begin
  8331. If (FpefilmRating=AValue) then exit;
  8332. FpefilmRating:=AValue;
  8333. MarkPropertyChanged(AIndex);
  8334. end;
  8335. Procedure TContentRating.SetrcnofRating(AIndex : Integer; const AValue : String);
  8336. begin
  8337. If (FrcnofRating=AValue) then exit;
  8338. FrcnofRating:=AValue;
  8339. MarkPropertyChanged(AIndex);
  8340. end;
  8341. Procedure TContentRating.SetresorteviolenciaRating(AIndex : Integer; const AValue : String);
  8342. begin
  8343. If (FresorteviolenciaRating=AValue) then exit;
  8344. FresorteviolenciaRating:=AValue;
  8345. MarkPropertyChanged(AIndex);
  8346. end;
  8347. Procedure TContentRating.SetrtcRating(AIndex : Integer; const AValue : String);
  8348. begin
  8349. If (FrtcRating=AValue) then exit;
  8350. FrtcRating:=AValue;
  8351. MarkPropertyChanged(AIndex);
  8352. end;
  8353. Procedure TContentRating.SetrteRating(AIndex : Integer; const AValue : String);
  8354. begin
  8355. If (FrteRating=AValue) then exit;
  8356. FrteRating:=AValue;
  8357. MarkPropertyChanged(AIndex);
  8358. end;
  8359. Procedure TContentRating.SetrussiaRating(AIndex : Integer; const AValue : String);
  8360. begin
  8361. If (FrussiaRating=AValue) then exit;
  8362. FrussiaRating:=AValue;
  8363. MarkPropertyChanged(AIndex);
  8364. end;
  8365. Procedure TContentRating.SetskfilmRating(AIndex : Integer; const AValue : String);
  8366. begin
  8367. If (FskfilmRating=AValue) then exit;
  8368. FskfilmRating:=AValue;
  8369. MarkPropertyChanged(AIndex);
  8370. end;
  8371. Procedure TContentRating.SetsmaisRating(AIndex : Integer; const AValue : String);
  8372. begin
  8373. If (FsmaisRating=AValue) then exit;
  8374. FsmaisRating:=AValue;
  8375. MarkPropertyChanged(AIndex);
  8376. end;
  8377. Procedure TContentRating.SetsmsaRating(AIndex : Integer; const AValue : String);
  8378. begin
  8379. If (FsmsaRating=AValue) then exit;
  8380. FsmsaRating:=AValue;
  8381. MarkPropertyChanged(AIndex);
  8382. end;
  8383. Procedure TContentRating.SettvpgRating(AIndex : Integer; const AValue : String);
  8384. begin
  8385. If (FtvpgRating=AValue) then exit;
  8386. FtvpgRating:=AValue;
  8387. MarkPropertyChanged(AIndex);
  8388. end;
  8389. Procedure TContentRating.SetytRating(AIndex : Integer; const AValue : String);
  8390. begin
  8391. If (FytRating=AValue) then exit;
  8392. FytRating:=AValue;
  8393. MarkPropertyChanged(AIndex);
  8394. end;
  8395. Class Function TContentRating.ExportPropertyName(Const AName : String) :String;
  8396. begin
  8397. Case AName of
  8398. '_mocRating' : Result:='mocRating';
  8399. else
  8400. Result:=Inherited ExportPropertyName(AName);
  8401. end;
  8402. end;
  8403. //2.6.4. bug workaround
  8404. {$IFDEF VER2_6}
  8405. Procedure TContentRating.SetArrayLength(Const AName : String; ALength : Longint);
  8406. begin
  8407. Case AName of
  8408. 'djctqratingreasons' : SetLength(FdjctqRatingReasons,ALength);
  8409. else
  8410. Inherited SetArrayLength(AName,ALength);
  8411. end;
  8412. end;
  8413. {$ENDIF VER2_6}
  8414. { --------------------------------------------------------------------
  8415. TFanFundingEvent
  8416. --------------------------------------------------------------------}
  8417. Procedure TFanFundingEvent.Setetag(AIndex : Integer; const AValue : String);
  8418. begin
  8419. If (Fetag=AValue) then exit;
  8420. Fetag:=AValue;
  8421. MarkPropertyChanged(AIndex);
  8422. end;
  8423. Procedure TFanFundingEvent.Setid(AIndex : Integer; const AValue : String);
  8424. begin
  8425. If (Fid=AValue) then exit;
  8426. Fid:=AValue;
  8427. MarkPropertyChanged(AIndex);
  8428. end;
  8429. Procedure TFanFundingEvent.Setkind(AIndex : Integer; const AValue : String);
  8430. begin
  8431. If (Fkind=AValue) then exit;
  8432. Fkind:=AValue;
  8433. MarkPropertyChanged(AIndex);
  8434. end;
  8435. Procedure TFanFundingEvent.Setsnippet(AIndex : Integer; const AValue : TFanFundingEventSnippet);
  8436. begin
  8437. If (Fsnippet=AValue) then exit;
  8438. Fsnippet:=AValue;
  8439. MarkPropertyChanged(AIndex);
  8440. end;
  8441. { --------------------------------------------------------------------
  8442. TFanFundingEventListResponse
  8443. --------------------------------------------------------------------}
  8444. Procedure TFanFundingEventListResponse.Setetag(AIndex : Integer; const AValue : String);
  8445. begin
  8446. If (Fetag=AValue) then exit;
  8447. Fetag:=AValue;
  8448. MarkPropertyChanged(AIndex);
  8449. end;
  8450. Procedure TFanFundingEventListResponse.SeteventId(AIndex : Integer; const AValue : String);
  8451. begin
  8452. If (FeventId=AValue) then exit;
  8453. FeventId:=AValue;
  8454. MarkPropertyChanged(AIndex);
  8455. end;
  8456. Procedure TFanFundingEventListResponse.Setitems(AIndex : Integer; const AValue : TFanFundingEventListResponseTypeitemsArray);
  8457. begin
  8458. If (Fitems=AValue) then exit;
  8459. Fitems:=AValue;
  8460. MarkPropertyChanged(AIndex);
  8461. end;
  8462. Procedure TFanFundingEventListResponse.Setkind(AIndex : Integer; const AValue : String);
  8463. begin
  8464. If (Fkind=AValue) then exit;
  8465. Fkind:=AValue;
  8466. MarkPropertyChanged(AIndex);
  8467. end;
  8468. Procedure TFanFundingEventListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  8469. begin
  8470. If (FnextPageToken=AValue) then exit;
  8471. FnextPageToken:=AValue;
  8472. MarkPropertyChanged(AIndex);
  8473. end;
  8474. Procedure TFanFundingEventListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  8475. begin
  8476. If (FpageInfo=AValue) then exit;
  8477. FpageInfo:=AValue;
  8478. MarkPropertyChanged(AIndex);
  8479. end;
  8480. Procedure TFanFundingEventListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  8481. begin
  8482. If (FtokenPagination=AValue) then exit;
  8483. FtokenPagination:=AValue;
  8484. MarkPropertyChanged(AIndex);
  8485. end;
  8486. Procedure TFanFundingEventListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  8487. begin
  8488. If (FvisitorId=AValue) then exit;
  8489. FvisitorId:=AValue;
  8490. MarkPropertyChanged(AIndex);
  8491. end;
  8492. //2.6.4. bug workaround
  8493. {$IFDEF VER2_6}
  8494. Procedure TFanFundingEventListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  8495. begin
  8496. Case AName of
  8497. 'items' : SetLength(Fitems,ALength);
  8498. else
  8499. Inherited SetArrayLength(AName,ALength);
  8500. end;
  8501. end;
  8502. {$ENDIF VER2_6}
  8503. { --------------------------------------------------------------------
  8504. TFanFundingEventSnippet
  8505. --------------------------------------------------------------------}
  8506. Procedure TFanFundingEventSnippet.SetamountMicros(AIndex : Integer; const AValue : String);
  8507. begin
  8508. If (FamountMicros=AValue) then exit;
  8509. FamountMicros:=AValue;
  8510. MarkPropertyChanged(AIndex);
  8511. end;
  8512. Procedure TFanFundingEventSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  8513. begin
  8514. If (FchannelId=AValue) then exit;
  8515. FchannelId:=AValue;
  8516. MarkPropertyChanged(AIndex);
  8517. end;
  8518. Procedure TFanFundingEventSnippet.SetcommentText(AIndex : Integer; const AValue : String);
  8519. begin
  8520. If (FcommentText=AValue) then exit;
  8521. FcommentText:=AValue;
  8522. MarkPropertyChanged(AIndex);
  8523. end;
  8524. Procedure TFanFundingEventSnippet.SetcreatedAt(AIndex : Integer; const AValue : TDatetime);
  8525. begin
  8526. If (FcreatedAt=AValue) then exit;
  8527. FcreatedAt:=AValue;
  8528. MarkPropertyChanged(AIndex);
  8529. end;
  8530. Procedure TFanFundingEventSnippet.Setcurrency(AIndex : Integer; const AValue : String);
  8531. begin
  8532. If (Fcurrency=AValue) then exit;
  8533. Fcurrency:=AValue;
  8534. MarkPropertyChanged(AIndex);
  8535. end;
  8536. Procedure TFanFundingEventSnippet.SetdisplayString(AIndex : Integer; const AValue : String);
  8537. begin
  8538. If (FdisplayString=AValue) then exit;
  8539. FdisplayString:=AValue;
  8540. MarkPropertyChanged(AIndex);
  8541. end;
  8542. Procedure TFanFundingEventSnippet.SetsupporterDetails(AIndex : Integer; const AValue : TChannelProfileDetails);
  8543. begin
  8544. If (FsupporterDetails=AValue) then exit;
  8545. FsupporterDetails:=AValue;
  8546. MarkPropertyChanged(AIndex);
  8547. end;
  8548. { --------------------------------------------------------------------
  8549. TGeoPoint
  8550. --------------------------------------------------------------------}
  8551. Procedure TGeoPoint.Setaltitude(AIndex : Integer; const AValue : double);
  8552. begin
  8553. If (Faltitude=AValue) then exit;
  8554. Faltitude:=AValue;
  8555. MarkPropertyChanged(AIndex);
  8556. end;
  8557. Procedure TGeoPoint.Setlatitude(AIndex : Integer; const AValue : double);
  8558. begin
  8559. If (Flatitude=AValue) then exit;
  8560. Flatitude:=AValue;
  8561. MarkPropertyChanged(AIndex);
  8562. end;
  8563. Procedure TGeoPoint.Setlongitude(AIndex : Integer; const AValue : double);
  8564. begin
  8565. If (Flongitude=AValue) then exit;
  8566. Flongitude:=AValue;
  8567. MarkPropertyChanged(AIndex);
  8568. end;
  8569. { --------------------------------------------------------------------
  8570. TGuideCategory
  8571. --------------------------------------------------------------------}
  8572. Procedure TGuideCategory.Setetag(AIndex : Integer; const AValue : String);
  8573. begin
  8574. If (Fetag=AValue) then exit;
  8575. Fetag:=AValue;
  8576. MarkPropertyChanged(AIndex);
  8577. end;
  8578. Procedure TGuideCategory.Setid(AIndex : Integer; const AValue : String);
  8579. begin
  8580. If (Fid=AValue) then exit;
  8581. Fid:=AValue;
  8582. MarkPropertyChanged(AIndex);
  8583. end;
  8584. Procedure TGuideCategory.Setkind(AIndex : Integer; const AValue : String);
  8585. begin
  8586. If (Fkind=AValue) then exit;
  8587. Fkind:=AValue;
  8588. MarkPropertyChanged(AIndex);
  8589. end;
  8590. Procedure TGuideCategory.Setsnippet(AIndex : Integer; const AValue : TGuideCategorySnippet);
  8591. begin
  8592. If (Fsnippet=AValue) then exit;
  8593. Fsnippet:=AValue;
  8594. MarkPropertyChanged(AIndex);
  8595. end;
  8596. { --------------------------------------------------------------------
  8597. TGuideCategoryListResponse
  8598. --------------------------------------------------------------------}
  8599. Procedure TGuideCategoryListResponse.Setetag(AIndex : Integer; const AValue : String);
  8600. begin
  8601. If (Fetag=AValue) then exit;
  8602. Fetag:=AValue;
  8603. MarkPropertyChanged(AIndex);
  8604. end;
  8605. Procedure TGuideCategoryListResponse.SeteventId(AIndex : Integer; const AValue : String);
  8606. begin
  8607. If (FeventId=AValue) then exit;
  8608. FeventId:=AValue;
  8609. MarkPropertyChanged(AIndex);
  8610. end;
  8611. Procedure TGuideCategoryListResponse.Setitems(AIndex : Integer; const AValue : TGuideCategoryListResponseTypeitemsArray);
  8612. begin
  8613. If (Fitems=AValue) then exit;
  8614. Fitems:=AValue;
  8615. MarkPropertyChanged(AIndex);
  8616. end;
  8617. Procedure TGuideCategoryListResponse.Setkind(AIndex : Integer; const AValue : String);
  8618. begin
  8619. If (Fkind=AValue) then exit;
  8620. Fkind:=AValue;
  8621. MarkPropertyChanged(AIndex);
  8622. end;
  8623. Procedure TGuideCategoryListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  8624. begin
  8625. If (FnextPageToken=AValue) then exit;
  8626. FnextPageToken:=AValue;
  8627. MarkPropertyChanged(AIndex);
  8628. end;
  8629. Procedure TGuideCategoryListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  8630. begin
  8631. If (FpageInfo=AValue) then exit;
  8632. FpageInfo:=AValue;
  8633. MarkPropertyChanged(AIndex);
  8634. end;
  8635. Procedure TGuideCategoryListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  8636. begin
  8637. If (FprevPageToken=AValue) then exit;
  8638. FprevPageToken:=AValue;
  8639. MarkPropertyChanged(AIndex);
  8640. end;
  8641. Procedure TGuideCategoryListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  8642. begin
  8643. If (FtokenPagination=AValue) then exit;
  8644. FtokenPagination:=AValue;
  8645. MarkPropertyChanged(AIndex);
  8646. end;
  8647. Procedure TGuideCategoryListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  8648. begin
  8649. If (FvisitorId=AValue) then exit;
  8650. FvisitorId:=AValue;
  8651. MarkPropertyChanged(AIndex);
  8652. end;
  8653. //2.6.4. bug workaround
  8654. {$IFDEF VER2_6}
  8655. Procedure TGuideCategoryListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  8656. begin
  8657. Case AName of
  8658. 'items' : SetLength(Fitems,ALength);
  8659. else
  8660. Inherited SetArrayLength(AName,ALength);
  8661. end;
  8662. end;
  8663. {$ENDIF VER2_6}
  8664. { --------------------------------------------------------------------
  8665. TGuideCategorySnippet
  8666. --------------------------------------------------------------------}
  8667. Procedure TGuideCategorySnippet.SetchannelId(AIndex : Integer; const AValue : String);
  8668. begin
  8669. If (FchannelId=AValue) then exit;
  8670. FchannelId:=AValue;
  8671. MarkPropertyChanged(AIndex);
  8672. end;
  8673. Procedure TGuideCategorySnippet.Settitle(AIndex : Integer; const AValue : String);
  8674. begin
  8675. If (Ftitle=AValue) then exit;
  8676. Ftitle:=AValue;
  8677. MarkPropertyChanged(AIndex);
  8678. end;
  8679. { --------------------------------------------------------------------
  8680. TI18nLanguage
  8681. --------------------------------------------------------------------}
  8682. Procedure TI18nLanguage.Setetag(AIndex : Integer; const AValue : String);
  8683. begin
  8684. If (Fetag=AValue) then exit;
  8685. Fetag:=AValue;
  8686. MarkPropertyChanged(AIndex);
  8687. end;
  8688. Procedure TI18nLanguage.Setid(AIndex : Integer; const AValue : String);
  8689. begin
  8690. If (Fid=AValue) then exit;
  8691. Fid:=AValue;
  8692. MarkPropertyChanged(AIndex);
  8693. end;
  8694. Procedure TI18nLanguage.Setkind(AIndex : Integer; const AValue : String);
  8695. begin
  8696. If (Fkind=AValue) then exit;
  8697. Fkind:=AValue;
  8698. MarkPropertyChanged(AIndex);
  8699. end;
  8700. Procedure TI18nLanguage.Setsnippet(AIndex : Integer; const AValue : TI18nLanguageSnippet);
  8701. begin
  8702. If (Fsnippet=AValue) then exit;
  8703. Fsnippet:=AValue;
  8704. MarkPropertyChanged(AIndex);
  8705. end;
  8706. { --------------------------------------------------------------------
  8707. TI18nLanguageListResponse
  8708. --------------------------------------------------------------------}
  8709. Procedure TI18nLanguageListResponse.Setetag(AIndex : Integer; const AValue : String);
  8710. begin
  8711. If (Fetag=AValue) then exit;
  8712. Fetag:=AValue;
  8713. MarkPropertyChanged(AIndex);
  8714. end;
  8715. Procedure TI18nLanguageListResponse.SeteventId(AIndex : Integer; const AValue : String);
  8716. begin
  8717. If (FeventId=AValue) then exit;
  8718. FeventId:=AValue;
  8719. MarkPropertyChanged(AIndex);
  8720. end;
  8721. Procedure TI18nLanguageListResponse.Setitems(AIndex : Integer; const AValue : TI18nLanguageListResponseTypeitemsArray);
  8722. begin
  8723. If (Fitems=AValue) then exit;
  8724. Fitems:=AValue;
  8725. MarkPropertyChanged(AIndex);
  8726. end;
  8727. Procedure TI18nLanguageListResponse.Setkind(AIndex : Integer; const AValue : String);
  8728. begin
  8729. If (Fkind=AValue) then exit;
  8730. Fkind:=AValue;
  8731. MarkPropertyChanged(AIndex);
  8732. end;
  8733. Procedure TI18nLanguageListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  8734. begin
  8735. If (FvisitorId=AValue) then exit;
  8736. FvisitorId:=AValue;
  8737. MarkPropertyChanged(AIndex);
  8738. end;
  8739. //2.6.4. bug workaround
  8740. {$IFDEF VER2_6}
  8741. Procedure TI18nLanguageListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  8742. begin
  8743. Case AName of
  8744. 'items' : SetLength(Fitems,ALength);
  8745. else
  8746. Inherited SetArrayLength(AName,ALength);
  8747. end;
  8748. end;
  8749. {$ENDIF VER2_6}
  8750. { --------------------------------------------------------------------
  8751. TI18nLanguageSnippet
  8752. --------------------------------------------------------------------}
  8753. Procedure TI18nLanguageSnippet.Sethl(AIndex : Integer; const AValue : String);
  8754. begin
  8755. If (Fhl=AValue) then exit;
  8756. Fhl:=AValue;
  8757. MarkPropertyChanged(AIndex);
  8758. end;
  8759. Procedure TI18nLanguageSnippet.Setname(AIndex : Integer; const AValue : String);
  8760. begin
  8761. If (Fname=AValue) then exit;
  8762. Fname:=AValue;
  8763. MarkPropertyChanged(AIndex);
  8764. end;
  8765. { --------------------------------------------------------------------
  8766. TI18nRegion
  8767. --------------------------------------------------------------------}
  8768. Procedure TI18nRegion.Setetag(AIndex : Integer; const AValue : String);
  8769. begin
  8770. If (Fetag=AValue) then exit;
  8771. Fetag:=AValue;
  8772. MarkPropertyChanged(AIndex);
  8773. end;
  8774. Procedure TI18nRegion.Setid(AIndex : Integer; const AValue : String);
  8775. begin
  8776. If (Fid=AValue) then exit;
  8777. Fid:=AValue;
  8778. MarkPropertyChanged(AIndex);
  8779. end;
  8780. Procedure TI18nRegion.Setkind(AIndex : Integer; const AValue : String);
  8781. begin
  8782. If (Fkind=AValue) then exit;
  8783. Fkind:=AValue;
  8784. MarkPropertyChanged(AIndex);
  8785. end;
  8786. Procedure TI18nRegion.Setsnippet(AIndex : Integer; const AValue : TI18nRegionSnippet);
  8787. begin
  8788. If (Fsnippet=AValue) then exit;
  8789. Fsnippet:=AValue;
  8790. MarkPropertyChanged(AIndex);
  8791. end;
  8792. { --------------------------------------------------------------------
  8793. TI18nRegionListResponse
  8794. --------------------------------------------------------------------}
  8795. Procedure TI18nRegionListResponse.Setetag(AIndex : Integer; const AValue : String);
  8796. begin
  8797. If (Fetag=AValue) then exit;
  8798. Fetag:=AValue;
  8799. MarkPropertyChanged(AIndex);
  8800. end;
  8801. Procedure TI18nRegionListResponse.SeteventId(AIndex : Integer; const AValue : String);
  8802. begin
  8803. If (FeventId=AValue) then exit;
  8804. FeventId:=AValue;
  8805. MarkPropertyChanged(AIndex);
  8806. end;
  8807. Procedure TI18nRegionListResponse.Setitems(AIndex : Integer; const AValue : TI18nRegionListResponseTypeitemsArray);
  8808. begin
  8809. If (Fitems=AValue) then exit;
  8810. Fitems:=AValue;
  8811. MarkPropertyChanged(AIndex);
  8812. end;
  8813. Procedure TI18nRegionListResponse.Setkind(AIndex : Integer; const AValue : String);
  8814. begin
  8815. If (Fkind=AValue) then exit;
  8816. Fkind:=AValue;
  8817. MarkPropertyChanged(AIndex);
  8818. end;
  8819. Procedure TI18nRegionListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  8820. begin
  8821. If (FvisitorId=AValue) then exit;
  8822. FvisitorId:=AValue;
  8823. MarkPropertyChanged(AIndex);
  8824. end;
  8825. //2.6.4. bug workaround
  8826. {$IFDEF VER2_6}
  8827. Procedure TI18nRegionListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  8828. begin
  8829. Case AName of
  8830. 'items' : SetLength(Fitems,ALength);
  8831. else
  8832. Inherited SetArrayLength(AName,ALength);
  8833. end;
  8834. end;
  8835. {$ENDIF VER2_6}
  8836. { --------------------------------------------------------------------
  8837. TI18nRegionSnippet
  8838. --------------------------------------------------------------------}
  8839. Procedure TI18nRegionSnippet.Setgl(AIndex : Integer; const AValue : String);
  8840. begin
  8841. If (Fgl=AValue) then exit;
  8842. Fgl:=AValue;
  8843. MarkPropertyChanged(AIndex);
  8844. end;
  8845. Procedure TI18nRegionSnippet.Setname(AIndex : Integer; const AValue : String);
  8846. begin
  8847. If (Fname=AValue) then exit;
  8848. Fname:=AValue;
  8849. MarkPropertyChanged(AIndex);
  8850. end;
  8851. { --------------------------------------------------------------------
  8852. TImageSettings
  8853. --------------------------------------------------------------------}
  8854. Procedure TImageSettings.SetbackgroundImageUrl(AIndex : Integer; const AValue : TLocalizedProperty);
  8855. begin
  8856. If (FbackgroundImageUrl=AValue) then exit;
  8857. FbackgroundImageUrl:=AValue;
  8858. MarkPropertyChanged(AIndex);
  8859. end;
  8860. Procedure TImageSettings.SetbannerExternalUrl(AIndex : Integer; const AValue : String);
  8861. begin
  8862. If (FbannerExternalUrl=AValue) then exit;
  8863. FbannerExternalUrl:=AValue;
  8864. MarkPropertyChanged(AIndex);
  8865. end;
  8866. Procedure TImageSettings.SetbannerImageUrl(AIndex : Integer; const AValue : String);
  8867. begin
  8868. If (FbannerImageUrl=AValue) then exit;
  8869. FbannerImageUrl:=AValue;
  8870. MarkPropertyChanged(AIndex);
  8871. end;
  8872. Procedure TImageSettings.SetbannerMobileExtraHdImageUrl(AIndex : Integer; const AValue : String);
  8873. begin
  8874. If (FbannerMobileExtraHdImageUrl=AValue) then exit;
  8875. FbannerMobileExtraHdImageUrl:=AValue;
  8876. MarkPropertyChanged(AIndex);
  8877. end;
  8878. Procedure TImageSettings.SetbannerMobileHdImageUrl(AIndex : Integer; const AValue : String);
  8879. begin
  8880. If (FbannerMobileHdImageUrl=AValue) then exit;
  8881. FbannerMobileHdImageUrl:=AValue;
  8882. MarkPropertyChanged(AIndex);
  8883. end;
  8884. Procedure TImageSettings.SetbannerMobileImageUrl(AIndex : Integer; const AValue : String);
  8885. begin
  8886. If (FbannerMobileImageUrl=AValue) then exit;
  8887. FbannerMobileImageUrl:=AValue;
  8888. MarkPropertyChanged(AIndex);
  8889. end;
  8890. Procedure TImageSettings.SetbannerMobileLowImageUrl(AIndex : Integer; const AValue : String);
  8891. begin
  8892. If (FbannerMobileLowImageUrl=AValue) then exit;
  8893. FbannerMobileLowImageUrl:=AValue;
  8894. MarkPropertyChanged(AIndex);
  8895. end;
  8896. Procedure TImageSettings.SetbannerMobileMediumHdImageUrl(AIndex : Integer; const AValue : String);
  8897. begin
  8898. If (FbannerMobileMediumHdImageUrl=AValue) then exit;
  8899. FbannerMobileMediumHdImageUrl:=AValue;
  8900. MarkPropertyChanged(AIndex);
  8901. end;
  8902. Procedure TImageSettings.SetbannerTabletExtraHdImageUrl(AIndex : Integer; const AValue : String);
  8903. begin
  8904. If (FbannerTabletExtraHdImageUrl=AValue) then exit;
  8905. FbannerTabletExtraHdImageUrl:=AValue;
  8906. MarkPropertyChanged(AIndex);
  8907. end;
  8908. Procedure TImageSettings.SetbannerTabletHdImageUrl(AIndex : Integer; const AValue : String);
  8909. begin
  8910. If (FbannerTabletHdImageUrl=AValue) then exit;
  8911. FbannerTabletHdImageUrl:=AValue;
  8912. MarkPropertyChanged(AIndex);
  8913. end;
  8914. Procedure TImageSettings.SetbannerTabletImageUrl(AIndex : Integer; const AValue : String);
  8915. begin
  8916. If (FbannerTabletImageUrl=AValue) then exit;
  8917. FbannerTabletImageUrl:=AValue;
  8918. MarkPropertyChanged(AIndex);
  8919. end;
  8920. Procedure TImageSettings.SetbannerTabletLowImageUrl(AIndex : Integer; const AValue : String);
  8921. begin
  8922. If (FbannerTabletLowImageUrl=AValue) then exit;
  8923. FbannerTabletLowImageUrl:=AValue;
  8924. MarkPropertyChanged(AIndex);
  8925. end;
  8926. Procedure TImageSettings.SetbannerTvHighImageUrl(AIndex : Integer; const AValue : String);
  8927. begin
  8928. If (FbannerTvHighImageUrl=AValue) then exit;
  8929. FbannerTvHighImageUrl:=AValue;
  8930. MarkPropertyChanged(AIndex);
  8931. end;
  8932. Procedure TImageSettings.SetbannerTvImageUrl(AIndex : Integer; const AValue : String);
  8933. begin
  8934. If (FbannerTvImageUrl=AValue) then exit;
  8935. FbannerTvImageUrl:=AValue;
  8936. MarkPropertyChanged(AIndex);
  8937. end;
  8938. Procedure TImageSettings.SetbannerTvLowImageUrl(AIndex : Integer; const AValue : String);
  8939. begin
  8940. If (FbannerTvLowImageUrl=AValue) then exit;
  8941. FbannerTvLowImageUrl:=AValue;
  8942. MarkPropertyChanged(AIndex);
  8943. end;
  8944. Procedure TImageSettings.SetbannerTvMediumImageUrl(AIndex : Integer; const AValue : String);
  8945. begin
  8946. If (FbannerTvMediumImageUrl=AValue) then exit;
  8947. FbannerTvMediumImageUrl:=AValue;
  8948. MarkPropertyChanged(AIndex);
  8949. end;
  8950. Procedure TImageSettings.SetlargeBrandedBannerImageImapScript(AIndex : Integer; const AValue : TLocalizedProperty);
  8951. begin
  8952. If (FlargeBrandedBannerImageImapScript=AValue) then exit;
  8953. FlargeBrandedBannerImageImapScript:=AValue;
  8954. MarkPropertyChanged(AIndex);
  8955. end;
  8956. Procedure TImageSettings.SetlargeBrandedBannerImageUrl(AIndex : Integer; const AValue : TLocalizedProperty);
  8957. begin
  8958. If (FlargeBrandedBannerImageUrl=AValue) then exit;
  8959. FlargeBrandedBannerImageUrl:=AValue;
  8960. MarkPropertyChanged(AIndex);
  8961. end;
  8962. Procedure TImageSettings.SetsmallBrandedBannerImageImapScript(AIndex : Integer; const AValue : TLocalizedProperty);
  8963. begin
  8964. If (FsmallBrandedBannerImageImapScript=AValue) then exit;
  8965. FsmallBrandedBannerImageImapScript:=AValue;
  8966. MarkPropertyChanged(AIndex);
  8967. end;
  8968. Procedure TImageSettings.SetsmallBrandedBannerImageUrl(AIndex : Integer; const AValue : TLocalizedProperty);
  8969. begin
  8970. If (FsmallBrandedBannerImageUrl=AValue) then exit;
  8971. FsmallBrandedBannerImageUrl:=AValue;
  8972. MarkPropertyChanged(AIndex);
  8973. end;
  8974. Procedure TImageSettings.SettrackingImageUrl(AIndex : Integer; const AValue : String);
  8975. begin
  8976. If (FtrackingImageUrl=AValue) then exit;
  8977. FtrackingImageUrl:=AValue;
  8978. MarkPropertyChanged(AIndex);
  8979. end;
  8980. Procedure TImageSettings.SetwatchIconImageUrl(AIndex : Integer; const AValue : String);
  8981. begin
  8982. If (FwatchIconImageUrl=AValue) then exit;
  8983. FwatchIconImageUrl:=AValue;
  8984. MarkPropertyChanged(AIndex);
  8985. end;
  8986. { --------------------------------------------------------------------
  8987. TIngestionInfo
  8988. --------------------------------------------------------------------}
  8989. Procedure TIngestionInfo.SetbackupIngestionAddress(AIndex : Integer; const AValue : String);
  8990. begin
  8991. If (FbackupIngestionAddress=AValue) then exit;
  8992. FbackupIngestionAddress:=AValue;
  8993. MarkPropertyChanged(AIndex);
  8994. end;
  8995. Procedure TIngestionInfo.SetingestionAddress(AIndex : Integer; const AValue : String);
  8996. begin
  8997. If (FingestionAddress=AValue) then exit;
  8998. FingestionAddress:=AValue;
  8999. MarkPropertyChanged(AIndex);
  9000. end;
  9001. Procedure TIngestionInfo.SetstreamName(AIndex : Integer; const AValue : String);
  9002. begin
  9003. If (FstreamName=AValue) then exit;
  9004. FstreamName:=AValue;
  9005. MarkPropertyChanged(AIndex);
  9006. end;
  9007. { --------------------------------------------------------------------
  9008. TInvideoBranding
  9009. --------------------------------------------------------------------}
  9010. Procedure TInvideoBranding.SetimageBytes(AIndex : Integer; const AValue : String);
  9011. begin
  9012. If (FimageBytes=AValue) then exit;
  9013. FimageBytes:=AValue;
  9014. MarkPropertyChanged(AIndex);
  9015. end;
  9016. Procedure TInvideoBranding.SetimageUrl(AIndex : Integer; const AValue : String);
  9017. begin
  9018. If (FimageUrl=AValue) then exit;
  9019. FimageUrl:=AValue;
  9020. MarkPropertyChanged(AIndex);
  9021. end;
  9022. Procedure TInvideoBranding.Setposition(AIndex : Integer; const AValue : TInvideoPosition);
  9023. begin
  9024. If (Fposition=AValue) then exit;
  9025. Fposition:=AValue;
  9026. MarkPropertyChanged(AIndex);
  9027. end;
  9028. Procedure TInvideoBranding.SettargetChannelId(AIndex : Integer; const AValue : String);
  9029. begin
  9030. If (FtargetChannelId=AValue) then exit;
  9031. FtargetChannelId:=AValue;
  9032. MarkPropertyChanged(AIndex);
  9033. end;
  9034. Procedure TInvideoBranding.Settiming(AIndex : Integer; const AValue : TInvideoTiming);
  9035. begin
  9036. If (Ftiming=AValue) then exit;
  9037. Ftiming:=AValue;
  9038. MarkPropertyChanged(AIndex);
  9039. end;
  9040. { --------------------------------------------------------------------
  9041. TInvideoPosition
  9042. --------------------------------------------------------------------}
  9043. Procedure TInvideoPosition.SetcornerPosition(AIndex : Integer; const AValue : String);
  9044. begin
  9045. If (FcornerPosition=AValue) then exit;
  9046. FcornerPosition:=AValue;
  9047. MarkPropertyChanged(AIndex);
  9048. end;
  9049. Procedure TInvideoPosition.Set_type(AIndex : Integer; const AValue : String);
  9050. begin
  9051. If (F_type=AValue) then exit;
  9052. F_type:=AValue;
  9053. MarkPropertyChanged(AIndex);
  9054. end;
  9055. Class Function TInvideoPosition.ExportPropertyName(Const AName : String) :String;
  9056. begin
  9057. Case AName of
  9058. '_type' : Result:='type';
  9059. else
  9060. Result:=Inherited ExportPropertyName(AName);
  9061. end;
  9062. end;
  9063. { --------------------------------------------------------------------
  9064. TInvideoPromotion
  9065. --------------------------------------------------------------------}
  9066. Procedure TInvideoPromotion.SetdefaultTiming(AIndex : Integer; const AValue : TInvideoTiming);
  9067. begin
  9068. If (FdefaultTiming=AValue) then exit;
  9069. FdefaultTiming:=AValue;
  9070. MarkPropertyChanged(AIndex);
  9071. end;
  9072. Procedure TInvideoPromotion.Setitems(AIndex : Integer; const AValue : TInvideoPromotionTypeitemsArray);
  9073. begin
  9074. If (Fitems=AValue) then exit;
  9075. Fitems:=AValue;
  9076. MarkPropertyChanged(AIndex);
  9077. end;
  9078. Procedure TInvideoPromotion.Setposition(AIndex : Integer; const AValue : TInvideoPosition);
  9079. begin
  9080. If (Fposition=AValue) then exit;
  9081. Fposition:=AValue;
  9082. MarkPropertyChanged(AIndex);
  9083. end;
  9084. Procedure TInvideoPromotion.SetuseSmartTiming(AIndex : Integer; const AValue : boolean);
  9085. begin
  9086. If (FuseSmartTiming=AValue) then exit;
  9087. FuseSmartTiming:=AValue;
  9088. MarkPropertyChanged(AIndex);
  9089. end;
  9090. //2.6.4. bug workaround
  9091. {$IFDEF VER2_6}
  9092. Procedure TInvideoPromotion.SetArrayLength(Const AName : String; ALength : Longint);
  9093. begin
  9094. Case AName of
  9095. 'items' : SetLength(Fitems,ALength);
  9096. else
  9097. Inherited SetArrayLength(AName,ALength);
  9098. end;
  9099. end;
  9100. {$ENDIF VER2_6}
  9101. { --------------------------------------------------------------------
  9102. TInvideoTiming
  9103. --------------------------------------------------------------------}
  9104. Procedure TInvideoTiming.SetdurationMs(AIndex : Integer; const AValue : String);
  9105. begin
  9106. If (FdurationMs=AValue) then exit;
  9107. FdurationMs:=AValue;
  9108. MarkPropertyChanged(AIndex);
  9109. end;
  9110. Procedure TInvideoTiming.SetoffsetMs(AIndex : Integer; const AValue : String);
  9111. begin
  9112. If (FoffsetMs=AValue) then exit;
  9113. FoffsetMs:=AValue;
  9114. MarkPropertyChanged(AIndex);
  9115. end;
  9116. Procedure TInvideoTiming.Set_type(AIndex : Integer; const AValue : String);
  9117. begin
  9118. If (F_type=AValue) then exit;
  9119. F_type:=AValue;
  9120. MarkPropertyChanged(AIndex);
  9121. end;
  9122. Class Function TInvideoTiming.ExportPropertyName(Const AName : String) :String;
  9123. begin
  9124. Case AName of
  9125. '_type' : Result:='type';
  9126. else
  9127. Result:=Inherited ExportPropertyName(AName);
  9128. end;
  9129. end;
  9130. { --------------------------------------------------------------------
  9131. TLanguageTag
  9132. --------------------------------------------------------------------}
  9133. Procedure TLanguageTag.Setvalue(AIndex : Integer; const AValue : String);
  9134. begin
  9135. If (Fvalue=AValue) then exit;
  9136. Fvalue:=AValue;
  9137. MarkPropertyChanged(AIndex);
  9138. end;
  9139. { --------------------------------------------------------------------
  9140. TLiveBroadcast
  9141. --------------------------------------------------------------------}
  9142. Procedure TLiveBroadcast.SetcontentDetails(AIndex : Integer; const AValue : TLiveBroadcastContentDetails);
  9143. begin
  9144. If (FcontentDetails=AValue) then exit;
  9145. FcontentDetails:=AValue;
  9146. MarkPropertyChanged(AIndex);
  9147. end;
  9148. Procedure TLiveBroadcast.Setetag(AIndex : Integer; const AValue : String);
  9149. begin
  9150. If (Fetag=AValue) then exit;
  9151. Fetag:=AValue;
  9152. MarkPropertyChanged(AIndex);
  9153. end;
  9154. Procedure TLiveBroadcast.Setid(AIndex : Integer; const AValue : String);
  9155. begin
  9156. If (Fid=AValue) then exit;
  9157. Fid:=AValue;
  9158. MarkPropertyChanged(AIndex);
  9159. end;
  9160. Procedure TLiveBroadcast.Setkind(AIndex : Integer; const AValue : String);
  9161. begin
  9162. If (Fkind=AValue) then exit;
  9163. Fkind:=AValue;
  9164. MarkPropertyChanged(AIndex);
  9165. end;
  9166. Procedure TLiveBroadcast.Setsnippet(AIndex : Integer; const AValue : TLiveBroadcastSnippet);
  9167. begin
  9168. If (Fsnippet=AValue) then exit;
  9169. Fsnippet:=AValue;
  9170. MarkPropertyChanged(AIndex);
  9171. end;
  9172. Procedure TLiveBroadcast.Setstatistics(AIndex : Integer; const AValue : TLiveBroadcastStatistics);
  9173. begin
  9174. If (Fstatistics=AValue) then exit;
  9175. Fstatistics:=AValue;
  9176. MarkPropertyChanged(AIndex);
  9177. end;
  9178. Procedure TLiveBroadcast.Setstatus(AIndex : Integer; const AValue : TLiveBroadcastStatus);
  9179. begin
  9180. If (Fstatus=AValue) then exit;
  9181. Fstatus:=AValue;
  9182. MarkPropertyChanged(AIndex);
  9183. end;
  9184. Procedure TLiveBroadcast.SettopicDetails(AIndex : Integer; const AValue : TLiveBroadcastTopicDetails);
  9185. begin
  9186. If (FtopicDetails=AValue) then exit;
  9187. FtopicDetails:=AValue;
  9188. MarkPropertyChanged(AIndex);
  9189. end;
  9190. { --------------------------------------------------------------------
  9191. TLiveBroadcastContentDetails
  9192. --------------------------------------------------------------------}
  9193. Procedure TLiveBroadcastContentDetails.SetboundStreamId(AIndex : Integer; const AValue : String);
  9194. begin
  9195. If (FboundStreamId=AValue) then exit;
  9196. FboundStreamId:=AValue;
  9197. MarkPropertyChanged(AIndex);
  9198. end;
  9199. Procedure TLiveBroadcastContentDetails.SetboundStreamLastUpdateTimeMs(AIndex : Integer; const AValue : TDatetime);
  9200. begin
  9201. If (FboundStreamLastUpdateTimeMs=AValue) then exit;
  9202. FboundStreamLastUpdateTimeMs:=AValue;
  9203. MarkPropertyChanged(AIndex);
  9204. end;
  9205. Procedure TLiveBroadcastContentDetails.SetclosedCaptionsType(AIndex : Integer; const AValue : String);
  9206. begin
  9207. If (FclosedCaptionsType=AValue) then exit;
  9208. FclosedCaptionsType:=AValue;
  9209. MarkPropertyChanged(AIndex);
  9210. end;
  9211. Procedure TLiveBroadcastContentDetails.SetenableClosedCaptions(AIndex : Integer; const AValue : boolean);
  9212. begin
  9213. If (FenableClosedCaptions=AValue) then exit;
  9214. FenableClosedCaptions:=AValue;
  9215. MarkPropertyChanged(AIndex);
  9216. end;
  9217. Procedure TLiveBroadcastContentDetails.SetenableContentEncryption(AIndex : Integer; const AValue : boolean);
  9218. begin
  9219. If (FenableContentEncryption=AValue) then exit;
  9220. FenableContentEncryption:=AValue;
  9221. MarkPropertyChanged(AIndex);
  9222. end;
  9223. Procedure TLiveBroadcastContentDetails.SetenableDvr(AIndex : Integer; const AValue : boolean);
  9224. begin
  9225. If (FenableDvr=AValue) then exit;
  9226. FenableDvr:=AValue;
  9227. MarkPropertyChanged(AIndex);
  9228. end;
  9229. Procedure TLiveBroadcastContentDetails.SetenableEmbed(AIndex : Integer; const AValue : boolean);
  9230. begin
  9231. If (FenableEmbed=AValue) then exit;
  9232. FenableEmbed:=AValue;
  9233. MarkPropertyChanged(AIndex);
  9234. end;
  9235. Procedure TLiveBroadcastContentDetails.SetenableLowLatency(AIndex : Integer; const AValue : boolean);
  9236. begin
  9237. If (FenableLowLatency=AValue) then exit;
  9238. FenableLowLatency:=AValue;
  9239. MarkPropertyChanged(AIndex);
  9240. end;
  9241. Procedure TLiveBroadcastContentDetails.SetmonitorStream(AIndex : Integer; const AValue : TMonitorStreamInfo);
  9242. begin
  9243. If (FmonitorStream=AValue) then exit;
  9244. FmonitorStream:=AValue;
  9245. MarkPropertyChanged(AIndex);
  9246. end;
  9247. Procedure TLiveBroadcastContentDetails.Setprojection(AIndex : Integer; const AValue : String);
  9248. begin
  9249. If (Fprojection=AValue) then exit;
  9250. Fprojection:=AValue;
  9251. MarkPropertyChanged(AIndex);
  9252. end;
  9253. Procedure TLiveBroadcastContentDetails.SetrecordFromStart(AIndex : Integer; const AValue : boolean);
  9254. begin
  9255. If (FrecordFromStart=AValue) then exit;
  9256. FrecordFromStart:=AValue;
  9257. MarkPropertyChanged(AIndex);
  9258. end;
  9259. Procedure TLiveBroadcastContentDetails.SetstartWithSlate(AIndex : Integer; const AValue : boolean);
  9260. begin
  9261. If (FstartWithSlate=AValue) then exit;
  9262. FstartWithSlate:=AValue;
  9263. MarkPropertyChanged(AIndex);
  9264. end;
  9265. { --------------------------------------------------------------------
  9266. TLiveBroadcastListResponse
  9267. --------------------------------------------------------------------}
  9268. Procedure TLiveBroadcastListResponse.Setetag(AIndex : Integer; const AValue : String);
  9269. begin
  9270. If (Fetag=AValue) then exit;
  9271. Fetag:=AValue;
  9272. MarkPropertyChanged(AIndex);
  9273. end;
  9274. Procedure TLiveBroadcastListResponse.SeteventId(AIndex : Integer; const AValue : String);
  9275. begin
  9276. If (FeventId=AValue) then exit;
  9277. FeventId:=AValue;
  9278. MarkPropertyChanged(AIndex);
  9279. end;
  9280. Procedure TLiveBroadcastListResponse.Setitems(AIndex : Integer; const AValue : TLiveBroadcastListResponseTypeitemsArray);
  9281. begin
  9282. If (Fitems=AValue) then exit;
  9283. Fitems:=AValue;
  9284. MarkPropertyChanged(AIndex);
  9285. end;
  9286. Procedure TLiveBroadcastListResponse.Setkind(AIndex : Integer; const AValue : String);
  9287. begin
  9288. If (Fkind=AValue) then exit;
  9289. Fkind:=AValue;
  9290. MarkPropertyChanged(AIndex);
  9291. end;
  9292. Procedure TLiveBroadcastListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  9293. begin
  9294. If (FnextPageToken=AValue) then exit;
  9295. FnextPageToken:=AValue;
  9296. MarkPropertyChanged(AIndex);
  9297. end;
  9298. Procedure TLiveBroadcastListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  9299. begin
  9300. If (FpageInfo=AValue) then exit;
  9301. FpageInfo:=AValue;
  9302. MarkPropertyChanged(AIndex);
  9303. end;
  9304. Procedure TLiveBroadcastListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  9305. begin
  9306. If (FprevPageToken=AValue) then exit;
  9307. FprevPageToken:=AValue;
  9308. MarkPropertyChanged(AIndex);
  9309. end;
  9310. Procedure TLiveBroadcastListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  9311. begin
  9312. If (FtokenPagination=AValue) then exit;
  9313. FtokenPagination:=AValue;
  9314. MarkPropertyChanged(AIndex);
  9315. end;
  9316. Procedure TLiveBroadcastListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  9317. begin
  9318. If (FvisitorId=AValue) then exit;
  9319. FvisitorId:=AValue;
  9320. MarkPropertyChanged(AIndex);
  9321. end;
  9322. //2.6.4. bug workaround
  9323. {$IFDEF VER2_6}
  9324. Procedure TLiveBroadcastListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  9325. begin
  9326. Case AName of
  9327. 'items' : SetLength(Fitems,ALength);
  9328. else
  9329. Inherited SetArrayLength(AName,ALength);
  9330. end;
  9331. end;
  9332. {$ENDIF VER2_6}
  9333. { --------------------------------------------------------------------
  9334. TLiveBroadcastSnippet
  9335. --------------------------------------------------------------------}
  9336. Procedure TLiveBroadcastSnippet.SetactualEndTime(AIndex : Integer; const AValue : TDatetime);
  9337. begin
  9338. If (FactualEndTime=AValue) then exit;
  9339. FactualEndTime:=AValue;
  9340. MarkPropertyChanged(AIndex);
  9341. end;
  9342. Procedure TLiveBroadcastSnippet.SetactualStartTime(AIndex : Integer; const AValue : TDatetime);
  9343. begin
  9344. If (FactualStartTime=AValue) then exit;
  9345. FactualStartTime:=AValue;
  9346. MarkPropertyChanged(AIndex);
  9347. end;
  9348. Procedure TLiveBroadcastSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  9349. begin
  9350. If (FchannelId=AValue) then exit;
  9351. FchannelId:=AValue;
  9352. MarkPropertyChanged(AIndex);
  9353. end;
  9354. Procedure TLiveBroadcastSnippet.Setdescription(AIndex : Integer; const AValue : String);
  9355. begin
  9356. If (Fdescription=AValue) then exit;
  9357. Fdescription:=AValue;
  9358. MarkPropertyChanged(AIndex);
  9359. end;
  9360. Procedure TLiveBroadcastSnippet.SetisDefaultBroadcast(AIndex : Integer; const AValue : boolean);
  9361. begin
  9362. If (FisDefaultBroadcast=AValue) then exit;
  9363. FisDefaultBroadcast:=AValue;
  9364. MarkPropertyChanged(AIndex);
  9365. end;
  9366. Procedure TLiveBroadcastSnippet.SetliveChatId(AIndex : Integer; const AValue : String);
  9367. begin
  9368. If (FliveChatId=AValue) then exit;
  9369. FliveChatId:=AValue;
  9370. MarkPropertyChanged(AIndex);
  9371. end;
  9372. Procedure TLiveBroadcastSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  9373. begin
  9374. If (FpublishedAt=AValue) then exit;
  9375. FpublishedAt:=AValue;
  9376. MarkPropertyChanged(AIndex);
  9377. end;
  9378. Procedure TLiveBroadcastSnippet.SetscheduledEndTime(AIndex : Integer; const AValue : TDatetime);
  9379. begin
  9380. If (FscheduledEndTime=AValue) then exit;
  9381. FscheduledEndTime:=AValue;
  9382. MarkPropertyChanged(AIndex);
  9383. end;
  9384. Procedure TLiveBroadcastSnippet.SetscheduledStartTime(AIndex : Integer; const AValue : TDatetime);
  9385. begin
  9386. If (FscheduledStartTime=AValue) then exit;
  9387. FscheduledStartTime:=AValue;
  9388. MarkPropertyChanged(AIndex);
  9389. end;
  9390. Procedure TLiveBroadcastSnippet.Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails);
  9391. begin
  9392. If (Fthumbnails=AValue) then exit;
  9393. Fthumbnails:=AValue;
  9394. MarkPropertyChanged(AIndex);
  9395. end;
  9396. Procedure TLiveBroadcastSnippet.Settitle(AIndex : Integer; const AValue : String);
  9397. begin
  9398. If (Ftitle=AValue) then exit;
  9399. Ftitle:=AValue;
  9400. MarkPropertyChanged(AIndex);
  9401. end;
  9402. { --------------------------------------------------------------------
  9403. TLiveBroadcastStatistics
  9404. --------------------------------------------------------------------}
  9405. Procedure TLiveBroadcastStatistics.SetconcurrentViewers(AIndex : Integer; const AValue : String);
  9406. begin
  9407. If (FconcurrentViewers=AValue) then exit;
  9408. FconcurrentViewers:=AValue;
  9409. MarkPropertyChanged(AIndex);
  9410. end;
  9411. Procedure TLiveBroadcastStatistics.SettotalChatCount(AIndex : Integer; const AValue : String);
  9412. begin
  9413. If (FtotalChatCount=AValue) then exit;
  9414. FtotalChatCount:=AValue;
  9415. MarkPropertyChanged(AIndex);
  9416. end;
  9417. { --------------------------------------------------------------------
  9418. TLiveBroadcastStatus
  9419. --------------------------------------------------------------------}
  9420. Procedure TLiveBroadcastStatus.SetlifeCycleStatus(AIndex : Integer; const AValue : String);
  9421. begin
  9422. If (FlifeCycleStatus=AValue) then exit;
  9423. FlifeCycleStatus:=AValue;
  9424. MarkPropertyChanged(AIndex);
  9425. end;
  9426. Procedure TLiveBroadcastStatus.SetliveBroadcastPriority(AIndex : Integer; const AValue : String);
  9427. begin
  9428. If (FliveBroadcastPriority=AValue) then exit;
  9429. FliveBroadcastPriority:=AValue;
  9430. MarkPropertyChanged(AIndex);
  9431. end;
  9432. Procedure TLiveBroadcastStatus.SetprivacyStatus(AIndex : Integer; const AValue : String);
  9433. begin
  9434. If (FprivacyStatus=AValue) then exit;
  9435. FprivacyStatus:=AValue;
  9436. MarkPropertyChanged(AIndex);
  9437. end;
  9438. Procedure TLiveBroadcastStatus.SetrecordingStatus(AIndex : Integer; const AValue : String);
  9439. begin
  9440. If (FrecordingStatus=AValue) then exit;
  9441. FrecordingStatus:=AValue;
  9442. MarkPropertyChanged(AIndex);
  9443. end;
  9444. { --------------------------------------------------------------------
  9445. TLiveBroadcastTopic
  9446. --------------------------------------------------------------------}
  9447. Procedure TLiveBroadcastTopic.Setsnippet(AIndex : Integer; const AValue : TLiveBroadcastTopicSnippet);
  9448. begin
  9449. If (Fsnippet=AValue) then exit;
  9450. Fsnippet:=AValue;
  9451. MarkPropertyChanged(AIndex);
  9452. end;
  9453. Procedure TLiveBroadcastTopic.Set_type(AIndex : Integer; const AValue : String);
  9454. begin
  9455. If (F_type=AValue) then exit;
  9456. F_type:=AValue;
  9457. MarkPropertyChanged(AIndex);
  9458. end;
  9459. Procedure TLiveBroadcastTopic.Setunmatched(AIndex : Integer; const AValue : boolean);
  9460. begin
  9461. If (Funmatched=AValue) then exit;
  9462. Funmatched:=AValue;
  9463. MarkPropertyChanged(AIndex);
  9464. end;
  9465. Class Function TLiveBroadcastTopic.ExportPropertyName(Const AName : String) :String;
  9466. begin
  9467. Case AName of
  9468. '_type' : Result:='type';
  9469. else
  9470. Result:=Inherited ExportPropertyName(AName);
  9471. end;
  9472. end;
  9473. { --------------------------------------------------------------------
  9474. TLiveBroadcastTopicDetails
  9475. --------------------------------------------------------------------}
  9476. Procedure TLiveBroadcastTopicDetails.Settopics(AIndex : Integer; const AValue : TLiveBroadcastTopicDetailsTypetopicsArray);
  9477. begin
  9478. If (Ftopics=AValue) then exit;
  9479. Ftopics:=AValue;
  9480. MarkPropertyChanged(AIndex);
  9481. end;
  9482. //2.6.4. bug workaround
  9483. {$IFDEF VER2_6}
  9484. Procedure TLiveBroadcastTopicDetails.SetArrayLength(Const AName : String; ALength : Longint);
  9485. begin
  9486. Case AName of
  9487. 'topics' : SetLength(Ftopics,ALength);
  9488. else
  9489. Inherited SetArrayLength(AName,ALength);
  9490. end;
  9491. end;
  9492. {$ENDIF VER2_6}
  9493. { --------------------------------------------------------------------
  9494. TLiveBroadcastTopicSnippet
  9495. --------------------------------------------------------------------}
  9496. Procedure TLiveBroadcastTopicSnippet.Setname(AIndex : Integer; const AValue : String);
  9497. begin
  9498. If (Fname=AValue) then exit;
  9499. Fname:=AValue;
  9500. MarkPropertyChanged(AIndex);
  9501. end;
  9502. Procedure TLiveBroadcastTopicSnippet.SetreleaseDate(AIndex : Integer; const AValue : String);
  9503. begin
  9504. If (FreleaseDate=AValue) then exit;
  9505. FreleaseDate:=AValue;
  9506. MarkPropertyChanged(AIndex);
  9507. end;
  9508. { --------------------------------------------------------------------
  9509. TLiveChatBan
  9510. --------------------------------------------------------------------}
  9511. Procedure TLiveChatBan.Setetag(AIndex : Integer; const AValue : String);
  9512. begin
  9513. If (Fetag=AValue) then exit;
  9514. Fetag:=AValue;
  9515. MarkPropertyChanged(AIndex);
  9516. end;
  9517. Procedure TLiveChatBan.Setid(AIndex : Integer; const AValue : String);
  9518. begin
  9519. If (Fid=AValue) then exit;
  9520. Fid:=AValue;
  9521. MarkPropertyChanged(AIndex);
  9522. end;
  9523. Procedure TLiveChatBan.Setkind(AIndex : Integer; const AValue : String);
  9524. begin
  9525. If (Fkind=AValue) then exit;
  9526. Fkind:=AValue;
  9527. MarkPropertyChanged(AIndex);
  9528. end;
  9529. Procedure TLiveChatBan.Setsnippet(AIndex : Integer; const AValue : TLiveChatBanSnippet);
  9530. begin
  9531. If (Fsnippet=AValue) then exit;
  9532. Fsnippet:=AValue;
  9533. MarkPropertyChanged(AIndex);
  9534. end;
  9535. { --------------------------------------------------------------------
  9536. TLiveChatBanSnippet
  9537. --------------------------------------------------------------------}
  9538. Procedure TLiveChatBanSnippet.SetbanDurationSeconds(AIndex : Integer; const AValue : String);
  9539. begin
  9540. If (FbanDurationSeconds=AValue) then exit;
  9541. FbanDurationSeconds:=AValue;
  9542. MarkPropertyChanged(AIndex);
  9543. end;
  9544. Procedure TLiveChatBanSnippet.SetbannedUserDetails(AIndex : Integer; const AValue : TChannelProfileDetails);
  9545. begin
  9546. If (FbannedUserDetails=AValue) then exit;
  9547. FbannedUserDetails:=AValue;
  9548. MarkPropertyChanged(AIndex);
  9549. end;
  9550. Procedure TLiveChatBanSnippet.SetliveChatId(AIndex : Integer; const AValue : String);
  9551. begin
  9552. If (FliveChatId=AValue) then exit;
  9553. FliveChatId:=AValue;
  9554. MarkPropertyChanged(AIndex);
  9555. end;
  9556. Procedure TLiveChatBanSnippet.Set_type(AIndex : Integer; const AValue : String);
  9557. begin
  9558. If (F_type=AValue) then exit;
  9559. F_type:=AValue;
  9560. MarkPropertyChanged(AIndex);
  9561. end;
  9562. Class Function TLiveChatBanSnippet.ExportPropertyName(Const AName : String) :String;
  9563. begin
  9564. Case AName of
  9565. '_type' : Result:='type';
  9566. else
  9567. Result:=Inherited ExportPropertyName(AName);
  9568. end;
  9569. end;
  9570. { --------------------------------------------------------------------
  9571. TLiveChatFanFundingEventDetails
  9572. --------------------------------------------------------------------}
  9573. Procedure TLiveChatFanFundingEventDetails.SetamountDisplayString(AIndex : Integer; const AValue : String);
  9574. begin
  9575. If (FamountDisplayString=AValue) then exit;
  9576. FamountDisplayString:=AValue;
  9577. MarkPropertyChanged(AIndex);
  9578. end;
  9579. Procedure TLiveChatFanFundingEventDetails.SetamountMicros(AIndex : Integer; const AValue : String);
  9580. begin
  9581. If (FamountMicros=AValue) then exit;
  9582. FamountMicros:=AValue;
  9583. MarkPropertyChanged(AIndex);
  9584. end;
  9585. Procedure TLiveChatFanFundingEventDetails.Setcurrency(AIndex : Integer; const AValue : String);
  9586. begin
  9587. If (Fcurrency=AValue) then exit;
  9588. Fcurrency:=AValue;
  9589. MarkPropertyChanged(AIndex);
  9590. end;
  9591. Procedure TLiveChatFanFundingEventDetails.SetuserComment(AIndex : Integer; const AValue : String);
  9592. begin
  9593. If (FuserComment=AValue) then exit;
  9594. FuserComment:=AValue;
  9595. MarkPropertyChanged(AIndex);
  9596. end;
  9597. { --------------------------------------------------------------------
  9598. TLiveChatMessage
  9599. --------------------------------------------------------------------}
  9600. Procedure TLiveChatMessage.SetauthorDetails(AIndex : Integer; const AValue : TLiveChatMessageAuthorDetails);
  9601. begin
  9602. If (FauthorDetails=AValue) then exit;
  9603. FauthorDetails:=AValue;
  9604. MarkPropertyChanged(AIndex);
  9605. end;
  9606. Procedure TLiveChatMessage.Setetag(AIndex : Integer; const AValue : String);
  9607. begin
  9608. If (Fetag=AValue) then exit;
  9609. Fetag:=AValue;
  9610. MarkPropertyChanged(AIndex);
  9611. end;
  9612. Procedure TLiveChatMessage.Setid(AIndex : Integer; const AValue : String);
  9613. begin
  9614. If (Fid=AValue) then exit;
  9615. Fid:=AValue;
  9616. MarkPropertyChanged(AIndex);
  9617. end;
  9618. Procedure TLiveChatMessage.Setkind(AIndex : Integer; const AValue : String);
  9619. begin
  9620. If (Fkind=AValue) then exit;
  9621. Fkind:=AValue;
  9622. MarkPropertyChanged(AIndex);
  9623. end;
  9624. Procedure TLiveChatMessage.Setsnippet(AIndex : Integer; const AValue : TLiveChatMessageSnippet);
  9625. begin
  9626. If (Fsnippet=AValue) then exit;
  9627. Fsnippet:=AValue;
  9628. MarkPropertyChanged(AIndex);
  9629. end;
  9630. { --------------------------------------------------------------------
  9631. TLiveChatMessageAuthorDetails
  9632. --------------------------------------------------------------------}
  9633. Procedure TLiveChatMessageAuthorDetails.SetchannelId(AIndex : Integer; const AValue : String);
  9634. begin
  9635. If (FchannelId=AValue) then exit;
  9636. FchannelId:=AValue;
  9637. MarkPropertyChanged(AIndex);
  9638. end;
  9639. Procedure TLiveChatMessageAuthorDetails.SetchannelUrl(AIndex : Integer; const AValue : String);
  9640. begin
  9641. If (FchannelUrl=AValue) then exit;
  9642. FchannelUrl:=AValue;
  9643. MarkPropertyChanged(AIndex);
  9644. end;
  9645. Procedure TLiveChatMessageAuthorDetails.SetdisplayName(AIndex : Integer; const AValue : String);
  9646. begin
  9647. If (FdisplayName=AValue) then exit;
  9648. FdisplayName:=AValue;
  9649. MarkPropertyChanged(AIndex);
  9650. end;
  9651. Procedure TLiveChatMessageAuthorDetails.SetisChatModerator(AIndex : Integer; const AValue : boolean);
  9652. begin
  9653. If (FisChatModerator=AValue) then exit;
  9654. FisChatModerator:=AValue;
  9655. MarkPropertyChanged(AIndex);
  9656. end;
  9657. Procedure TLiveChatMessageAuthorDetails.SetisChatOwner(AIndex : Integer; const AValue : boolean);
  9658. begin
  9659. If (FisChatOwner=AValue) then exit;
  9660. FisChatOwner:=AValue;
  9661. MarkPropertyChanged(AIndex);
  9662. end;
  9663. Procedure TLiveChatMessageAuthorDetails.SetisChatSponsor(AIndex : Integer; const AValue : boolean);
  9664. begin
  9665. If (FisChatSponsor=AValue) then exit;
  9666. FisChatSponsor:=AValue;
  9667. MarkPropertyChanged(AIndex);
  9668. end;
  9669. Procedure TLiveChatMessageAuthorDetails.SetisVerified(AIndex : Integer; const AValue : boolean);
  9670. begin
  9671. If (FisVerified=AValue) then exit;
  9672. FisVerified:=AValue;
  9673. MarkPropertyChanged(AIndex);
  9674. end;
  9675. Procedure TLiveChatMessageAuthorDetails.SetprofileImageUrl(AIndex : Integer; const AValue : String);
  9676. begin
  9677. If (FprofileImageUrl=AValue) then exit;
  9678. FprofileImageUrl:=AValue;
  9679. MarkPropertyChanged(AIndex);
  9680. end;
  9681. { --------------------------------------------------------------------
  9682. TLiveChatMessageDeletedDetails
  9683. --------------------------------------------------------------------}
  9684. Procedure TLiveChatMessageDeletedDetails.SetdeletedMessageId(AIndex : Integer; const AValue : String);
  9685. begin
  9686. If (FdeletedMessageId=AValue) then exit;
  9687. FdeletedMessageId:=AValue;
  9688. MarkPropertyChanged(AIndex);
  9689. end;
  9690. { --------------------------------------------------------------------
  9691. TLiveChatMessageListResponse
  9692. --------------------------------------------------------------------}
  9693. Procedure TLiveChatMessageListResponse.Setetag(AIndex : Integer; const AValue : String);
  9694. begin
  9695. If (Fetag=AValue) then exit;
  9696. Fetag:=AValue;
  9697. MarkPropertyChanged(AIndex);
  9698. end;
  9699. Procedure TLiveChatMessageListResponse.SeteventId(AIndex : Integer; const AValue : String);
  9700. begin
  9701. If (FeventId=AValue) then exit;
  9702. FeventId:=AValue;
  9703. MarkPropertyChanged(AIndex);
  9704. end;
  9705. Procedure TLiveChatMessageListResponse.Setitems(AIndex : Integer; const AValue : TLiveChatMessageListResponseTypeitemsArray);
  9706. begin
  9707. If (Fitems=AValue) then exit;
  9708. Fitems:=AValue;
  9709. MarkPropertyChanged(AIndex);
  9710. end;
  9711. Procedure TLiveChatMessageListResponse.Setkind(AIndex : Integer; const AValue : String);
  9712. begin
  9713. If (Fkind=AValue) then exit;
  9714. Fkind:=AValue;
  9715. MarkPropertyChanged(AIndex);
  9716. end;
  9717. Procedure TLiveChatMessageListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  9718. begin
  9719. If (FnextPageToken=AValue) then exit;
  9720. FnextPageToken:=AValue;
  9721. MarkPropertyChanged(AIndex);
  9722. end;
  9723. Procedure TLiveChatMessageListResponse.SetofflineAt(AIndex : Integer; const AValue : TDatetime);
  9724. begin
  9725. If (FofflineAt=AValue) then exit;
  9726. FofflineAt:=AValue;
  9727. MarkPropertyChanged(AIndex);
  9728. end;
  9729. Procedure TLiveChatMessageListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  9730. begin
  9731. If (FpageInfo=AValue) then exit;
  9732. FpageInfo:=AValue;
  9733. MarkPropertyChanged(AIndex);
  9734. end;
  9735. Procedure TLiveChatMessageListResponse.SetpollingIntervalMillis(AIndex : Integer; const AValue : integer);
  9736. begin
  9737. If (FpollingIntervalMillis=AValue) then exit;
  9738. FpollingIntervalMillis:=AValue;
  9739. MarkPropertyChanged(AIndex);
  9740. end;
  9741. Procedure TLiveChatMessageListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  9742. begin
  9743. If (FtokenPagination=AValue) then exit;
  9744. FtokenPagination:=AValue;
  9745. MarkPropertyChanged(AIndex);
  9746. end;
  9747. Procedure TLiveChatMessageListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  9748. begin
  9749. If (FvisitorId=AValue) then exit;
  9750. FvisitorId:=AValue;
  9751. MarkPropertyChanged(AIndex);
  9752. end;
  9753. //2.6.4. bug workaround
  9754. {$IFDEF VER2_6}
  9755. Procedure TLiveChatMessageListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  9756. begin
  9757. Case AName of
  9758. 'items' : SetLength(Fitems,ALength);
  9759. else
  9760. Inherited SetArrayLength(AName,ALength);
  9761. end;
  9762. end;
  9763. {$ENDIF VER2_6}
  9764. { --------------------------------------------------------------------
  9765. TLiveChatMessageRetractedDetails
  9766. --------------------------------------------------------------------}
  9767. Procedure TLiveChatMessageRetractedDetails.SetretractedMessageId(AIndex : Integer; const AValue : String);
  9768. begin
  9769. If (FretractedMessageId=AValue) then exit;
  9770. FretractedMessageId:=AValue;
  9771. MarkPropertyChanged(AIndex);
  9772. end;
  9773. { --------------------------------------------------------------------
  9774. TLiveChatMessageSnippet
  9775. --------------------------------------------------------------------}
  9776. Procedure TLiveChatMessageSnippet.SetauthorChannelId(AIndex : Integer; const AValue : String);
  9777. begin
  9778. If (FauthorChannelId=AValue) then exit;
  9779. FauthorChannelId:=AValue;
  9780. MarkPropertyChanged(AIndex);
  9781. end;
  9782. Procedure TLiveChatMessageSnippet.SetdisplayMessage(AIndex : Integer; const AValue : String);
  9783. begin
  9784. If (FdisplayMessage=AValue) then exit;
  9785. FdisplayMessage:=AValue;
  9786. MarkPropertyChanged(AIndex);
  9787. end;
  9788. Procedure TLiveChatMessageSnippet.SetfanFundingEventDetails(AIndex : Integer; const AValue : TLiveChatFanFundingEventDetails);
  9789. begin
  9790. If (FfanFundingEventDetails=AValue) then exit;
  9791. FfanFundingEventDetails:=AValue;
  9792. MarkPropertyChanged(AIndex);
  9793. end;
  9794. Procedure TLiveChatMessageSnippet.SethasDisplayContent(AIndex : Integer; const AValue : boolean);
  9795. begin
  9796. If (FhasDisplayContent=AValue) then exit;
  9797. FhasDisplayContent:=AValue;
  9798. MarkPropertyChanged(AIndex);
  9799. end;
  9800. Procedure TLiveChatMessageSnippet.SetliveChatId(AIndex : Integer; const AValue : String);
  9801. begin
  9802. If (FliveChatId=AValue) then exit;
  9803. FliveChatId:=AValue;
  9804. MarkPropertyChanged(AIndex);
  9805. end;
  9806. Procedure TLiveChatMessageSnippet.SetmessageDeletedDetails(AIndex : Integer; const AValue : TLiveChatMessageDeletedDetails);
  9807. begin
  9808. If (FmessageDeletedDetails=AValue) then exit;
  9809. FmessageDeletedDetails:=AValue;
  9810. MarkPropertyChanged(AIndex);
  9811. end;
  9812. Procedure TLiveChatMessageSnippet.SetmessageRetractedDetails(AIndex : Integer; const AValue : TLiveChatMessageRetractedDetails);
  9813. begin
  9814. If (FmessageRetractedDetails=AValue) then exit;
  9815. FmessageRetractedDetails:=AValue;
  9816. MarkPropertyChanged(AIndex);
  9817. end;
  9818. Procedure TLiveChatMessageSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  9819. begin
  9820. If (FpublishedAt=AValue) then exit;
  9821. FpublishedAt:=AValue;
  9822. MarkPropertyChanged(AIndex);
  9823. end;
  9824. Procedure TLiveChatMessageSnippet.SettextMessageDetails(AIndex : Integer; const AValue : TLiveChatTextMessageDetails);
  9825. begin
  9826. If (FtextMessageDetails=AValue) then exit;
  9827. FtextMessageDetails:=AValue;
  9828. MarkPropertyChanged(AIndex);
  9829. end;
  9830. Procedure TLiveChatMessageSnippet.Set_type(AIndex : Integer; const AValue : String);
  9831. begin
  9832. If (F_type=AValue) then exit;
  9833. F_type:=AValue;
  9834. MarkPropertyChanged(AIndex);
  9835. end;
  9836. Procedure TLiveChatMessageSnippet.SetuserBannedDetails(AIndex : Integer; const AValue : TLiveChatUserBannedMessageDetails);
  9837. begin
  9838. If (FuserBannedDetails=AValue) then exit;
  9839. FuserBannedDetails:=AValue;
  9840. MarkPropertyChanged(AIndex);
  9841. end;
  9842. Class Function TLiveChatMessageSnippet.ExportPropertyName(Const AName : String) :String;
  9843. begin
  9844. Case AName of
  9845. '_type' : Result:='type';
  9846. else
  9847. Result:=Inherited ExportPropertyName(AName);
  9848. end;
  9849. end;
  9850. { --------------------------------------------------------------------
  9851. TLiveChatModerator
  9852. --------------------------------------------------------------------}
  9853. Procedure TLiveChatModerator.Setetag(AIndex : Integer; const AValue : String);
  9854. begin
  9855. If (Fetag=AValue) then exit;
  9856. Fetag:=AValue;
  9857. MarkPropertyChanged(AIndex);
  9858. end;
  9859. Procedure TLiveChatModerator.Setid(AIndex : Integer; const AValue : String);
  9860. begin
  9861. If (Fid=AValue) then exit;
  9862. Fid:=AValue;
  9863. MarkPropertyChanged(AIndex);
  9864. end;
  9865. Procedure TLiveChatModerator.Setkind(AIndex : Integer; const AValue : String);
  9866. begin
  9867. If (Fkind=AValue) then exit;
  9868. Fkind:=AValue;
  9869. MarkPropertyChanged(AIndex);
  9870. end;
  9871. Procedure TLiveChatModerator.Setsnippet(AIndex : Integer; const AValue : TLiveChatModeratorSnippet);
  9872. begin
  9873. If (Fsnippet=AValue) then exit;
  9874. Fsnippet:=AValue;
  9875. MarkPropertyChanged(AIndex);
  9876. end;
  9877. { --------------------------------------------------------------------
  9878. TLiveChatModeratorListResponse
  9879. --------------------------------------------------------------------}
  9880. Procedure TLiveChatModeratorListResponse.Setetag(AIndex : Integer; const AValue : String);
  9881. begin
  9882. If (Fetag=AValue) then exit;
  9883. Fetag:=AValue;
  9884. MarkPropertyChanged(AIndex);
  9885. end;
  9886. Procedure TLiveChatModeratorListResponse.SeteventId(AIndex : Integer; const AValue : String);
  9887. begin
  9888. If (FeventId=AValue) then exit;
  9889. FeventId:=AValue;
  9890. MarkPropertyChanged(AIndex);
  9891. end;
  9892. Procedure TLiveChatModeratorListResponse.Setitems(AIndex : Integer; const AValue : TLiveChatModeratorListResponseTypeitemsArray);
  9893. begin
  9894. If (Fitems=AValue) then exit;
  9895. Fitems:=AValue;
  9896. MarkPropertyChanged(AIndex);
  9897. end;
  9898. Procedure TLiveChatModeratorListResponse.Setkind(AIndex : Integer; const AValue : String);
  9899. begin
  9900. If (Fkind=AValue) then exit;
  9901. Fkind:=AValue;
  9902. MarkPropertyChanged(AIndex);
  9903. end;
  9904. Procedure TLiveChatModeratorListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  9905. begin
  9906. If (FnextPageToken=AValue) then exit;
  9907. FnextPageToken:=AValue;
  9908. MarkPropertyChanged(AIndex);
  9909. end;
  9910. Procedure TLiveChatModeratorListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  9911. begin
  9912. If (FpageInfo=AValue) then exit;
  9913. FpageInfo:=AValue;
  9914. MarkPropertyChanged(AIndex);
  9915. end;
  9916. Procedure TLiveChatModeratorListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  9917. begin
  9918. If (FprevPageToken=AValue) then exit;
  9919. FprevPageToken:=AValue;
  9920. MarkPropertyChanged(AIndex);
  9921. end;
  9922. Procedure TLiveChatModeratorListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  9923. begin
  9924. If (FtokenPagination=AValue) then exit;
  9925. FtokenPagination:=AValue;
  9926. MarkPropertyChanged(AIndex);
  9927. end;
  9928. Procedure TLiveChatModeratorListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  9929. begin
  9930. If (FvisitorId=AValue) then exit;
  9931. FvisitorId:=AValue;
  9932. MarkPropertyChanged(AIndex);
  9933. end;
  9934. //2.6.4. bug workaround
  9935. {$IFDEF VER2_6}
  9936. Procedure TLiveChatModeratorListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  9937. begin
  9938. Case AName of
  9939. 'items' : SetLength(Fitems,ALength);
  9940. else
  9941. Inherited SetArrayLength(AName,ALength);
  9942. end;
  9943. end;
  9944. {$ENDIF VER2_6}
  9945. { --------------------------------------------------------------------
  9946. TLiveChatModeratorSnippet
  9947. --------------------------------------------------------------------}
  9948. Procedure TLiveChatModeratorSnippet.SetliveChatId(AIndex : Integer; const AValue : String);
  9949. begin
  9950. If (FliveChatId=AValue) then exit;
  9951. FliveChatId:=AValue;
  9952. MarkPropertyChanged(AIndex);
  9953. end;
  9954. Procedure TLiveChatModeratorSnippet.SetmoderatorDetails(AIndex : Integer; const AValue : TChannelProfileDetails);
  9955. begin
  9956. If (FmoderatorDetails=AValue) then exit;
  9957. FmoderatorDetails:=AValue;
  9958. MarkPropertyChanged(AIndex);
  9959. end;
  9960. { --------------------------------------------------------------------
  9961. TLiveChatTextMessageDetails
  9962. --------------------------------------------------------------------}
  9963. Procedure TLiveChatTextMessageDetails.SetmessageText(AIndex : Integer; const AValue : String);
  9964. begin
  9965. If (FmessageText=AValue) then exit;
  9966. FmessageText:=AValue;
  9967. MarkPropertyChanged(AIndex);
  9968. end;
  9969. { --------------------------------------------------------------------
  9970. TLiveChatUserBannedMessageDetails
  9971. --------------------------------------------------------------------}
  9972. Procedure TLiveChatUserBannedMessageDetails.SetbanDurationSeconds(AIndex : Integer; const AValue : String);
  9973. begin
  9974. If (FbanDurationSeconds=AValue) then exit;
  9975. FbanDurationSeconds:=AValue;
  9976. MarkPropertyChanged(AIndex);
  9977. end;
  9978. Procedure TLiveChatUserBannedMessageDetails.SetbanType(AIndex : Integer; const AValue : String);
  9979. begin
  9980. If (FbanType=AValue) then exit;
  9981. FbanType:=AValue;
  9982. MarkPropertyChanged(AIndex);
  9983. end;
  9984. Procedure TLiveChatUserBannedMessageDetails.SetbannedUserDetails(AIndex : Integer; const AValue : TChannelProfileDetails);
  9985. begin
  9986. If (FbannedUserDetails=AValue) then exit;
  9987. FbannedUserDetails:=AValue;
  9988. MarkPropertyChanged(AIndex);
  9989. end;
  9990. { --------------------------------------------------------------------
  9991. TLiveStream
  9992. --------------------------------------------------------------------}
  9993. Procedure TLiveStream.Setcdn(AIndex : Integer; const AValue : TCdnSettings);
  9994. begin
  9995. If (Fcdn=AValue) then exit;
  9996. Fcdn:=AValue;
  9997. MarkPropertyChanged(AIndex);
  9998. end;
  9999. Procedure TLiveStream.SetcontentDetails(AIndex : Integer; const AValue : TLiveStreamContentDetails);
  10000. begin
  10001. If (FcontentDetails=AValue) then exit;
  10002. FcontentDetails:=AValue;
  10003. MarkPropertyChanged(AIndex);
  10004. end;
  10005. Procedure TLiveStream.Setetag(AIndex : Integer; const AValue : String);
  10006. begin
  10007. If (Fetag=AValue) then exit;
  10008. Fetag:=AValue;
  10009. MarkPropertyChanged(AIndex);
  10010. end;
  10011. Procedure TLiveStream.Setid(AIndex : Integer; const AValue : String);
  10012. begin
  10013. If (Fid=AValue) then exit;
  10014. Fid:=AValue;
  10015. MarkPropertyChanged(AIndex);
  10016. end;
  10017. Procedure TLiveStream.Setkind(AIndex : Integer; const AValue : String);
  10018. begin
  10019. If (Fkind=AValue) then exit;
  10020. Fkind:=AValue;
  10021. MarkPropertyChanged(AIndex);
  10022. end;
  10023. Procedure TLiveStream.Setsnippet(AIndex : Integer; const AValue : TLiveStreamSnippet);
  10024. begin
  10025. If (Fsnippet=AValue) then exit;
  10026. Fsnippet:=AValue;
  10027. MarkPropertyChanged(AIndex);
  10028. end;
  10029. Procedure TLiveStream.Setstatus(AIndex : Integer; const AValue : TLiveStreamStatus);
  10030. begin
  10031. If (Fstatus=AValue) then exit;
  10032. Fstatus:=AValue;
  10033. MarkPropertyChanged(AIndex);
  10034. end;
  10035. { --------------------------------------------------------------------
  10036. TLiveStreamConfigurationIssue
  10037. --------------------------------------------------------------------}
  10038. Procedure TLiveStreamConfigurationIssue.Setdescription(AIndex : Integer; const AValue : String);
  10039. begin
  10040. If (Fdescription=AValue) then exit;
  10041. Fdescription:=AValue;
  10042. MarkPropertyChanged(AIndex);
  10043. end;
  10044. Procedure TLiveStreamConfigurationIssue.Setreason(AIndex : Integer; const AValue : String);
  10045. begin
  10046. If (Freason=AValue) then exit;
  10047. Freason:=AValue;
  10048. MarkPropertyChanged(AIndex);
  10049. end;
  10050. Procedure TLiveStreamConfigurationIssue.Setseverity(AIndex : Integer; const AValue : String);
  10051. begin
  10052. If (Fseverity=AValue) then exit;
  10053. Fseverity:=AValue;
  10054. MarkPropertyChanged(AIndex);
  10055. end;
  10056. Procedure TLiveStreamConfigurationIssue.Set_type(AIndex : Integer; const AValue : String);
  10057. begin
  10058. If (F_type=AValue) then exit;
  10059. F_type:=AValue;
  10060. MarkPropertyChanged(AIndex);
  10061. end;
  10062. Class Function TLiveStreamConfigurationIssue.ExportPropertyName(Const AName : String) :String;
  10063. begin
  10064. Case AName of
  10065. '_type' : Result:='type';
  10066. else
  10067. Result:=Inherited ExportPropertyName(AName);
  10068. end;
  10069. end;
  10070. { --------------------------------------------------------------------
  10071. TLiveStreamContentDetails
  10072. --------------------------------------------------------------------}
  10073. Procedure TLiveStreamContentDetails.SetclosedCaptionsIngestionUrl(AIndex : Integer; const AValue : String);
  10074. begin
  10075. If (FclosedCaptionsIngestionUrl=AValue) then exit;
  10076. FclosedCaptionsIngestionUrl:=AValue;
  10077. MarkPropertyChanged(AIndex);
  10078. end;
  10079. Procedure TLiveStreamContentDetails.SetisReusable(AIndex : Integer; const AValue : boolean);
  10080. begin
  10081. If (FisReusable=AValue) then exit;
  10082. FisReusable:=AValue;
  10083. MarkPropertyChanged(AIndex);
  10084. end;
  10085. { --------------------------------------------------------------------
  10086. TLiveStreamHealthStatus
  10087. --------------------------------------------------------------------}
  10088. Procedure TLiveStreamHealthStatus.SetconfigurationIssues(AIndex : Integer; const AValue : TLiveStreamHealthStatusTypeconfigurationIssuesArray);
  10089. begin
  10090. If (FconfigurationIssues=AValue) then exit;
  10091. FconfigurationIssues:=AValue;
  10092. MarkPropertyChanged(AIndex);
  10093. end;
  10094. Procedure TLiveStreamHealthStatus.SetlastUpdateTimeSeconds(AIndex : Integer; const AValue : String);
  10095. begin
  10096. If (FlastUpdateTimeSeconds=AValue) then exit;
  10097. FlastUpdateTimeSeconds:=AValue;
  10098. MarkPropertyChanged(AIndex);
  10099. end;
  10100. Procedure TLiveStreamHealthStatus.Setstatus(AIndex : Integer; const AValue : String);
  10101. begin
  10102. If (Fstatus=AValue) then exit;
  10103. Fstatus:=AValue;
  10104. MarkPropertyChanged(AIndex);
  10105. end;
  10106. //2.6.4. bug workaround
  10107. {$IFDEF VER2_6}
  10108. Procedure TLiveStreamHealthStatus.SetArrayLength(Const AName : String; ALength : Longint);
  10109. begin
  10110. Case AName of
  10111. 'configurationissues' : SetLength(FconfigurationIssues,ALength);
  10112. else
  10113. Inherited SetArrayLength(AName,ALength);
  10114. end;
  10115. end;
  10116. {$ENDIF VER2_6}
  10117. { --------------------------------------------------------------------
  10118. TLiveStreamListResponse
  10119. --------------------------------------------------------------------}
  10120. Procedure TLiveStreamListResponse.Setetag(AIndex : Integer; const AValue : String);
  10121. begin
  10122. If (Fetag=AValue) then exit;
  10123. Fetag:=AValue;
  10124. MarkPropertyChanged(AIndex);
  10125. end;
  10126. Procedure TLiveStreamListResponse.SeteventId(AIndex : Integer; const AValue : String);
  10127. begin
  10128. If (FeventId=AValue) then exit;
  10129. FeventId:=AValue;
  10130. MarkPropertyChanged(AIndex);
  10131. end;
  10132. Procedure TLiveStreamListResponse.Setitems(AIndex : Integer; const AValue : TLiveStreamListResponseTypeitemsArray);
  10133. begin
  10134. If (Fitems=AValue) then exit;
  10135. Fitems:=AValue;
  10136. MarkPropertyChanged(AIndex);
  10137. end;
  10138. Procedure TLiveStreamListResponse.Setkind(AIndex : Integer; const AValue : String);
  10139. begin
  10140. If (Fkind=AValue) then exit;
  10141. Fkind:=AValue;
  10142. MarkPropertyChanged(AIndex);
  10143. end;
  10144. Procedure TLiveStreamListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  10145. begin
  10146. If (FnextPageToken=AValue) then exit;
  10147. FnextPageToken:=AValue;
  10148. MarkPropertyChanged(AIndex);
  10149. end;
  10150. Procedure TLiveStreamListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  10151. begin
  10152. If (FpageInfo=AValue) then exit;
  10153. FpageInfo:=AValue;
  10154. MarkPropertyChanged(AIndex);
  10155. end;
  10156. Procedure TLiveStreamListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  10157. begin
  10158. If (FprevPageToken=AValue) then exit;
  10159. FprevPageToken:=AValue;
  10160. MarkPropertyChanged(AIndex);
  10161. end;
  10162. Procedure TLiveStreamListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  10163. begin
  10164. If (FtokenPagination=AValue) then exit;
  10165. FtokenPagination:=AValue;
  10166. MarkPropertyChanged(AIndex);
  10167. end;
  10168. Procedure TLiveStreamListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  10169. begin
  10170. If (FvisitorId=AValue) then exit;
  10171. FvisitorId:=AValue;
  10172. MarkPropertyChanged(AIndex);
  10173. end;
  10174. //2.6.4. bug workaround
  10175. {$IFDEF VER2_6}
  10176. Procedure TLiveStreamListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  10177. begin
  10178. Case AName of
  10179. 'items' : SetLength(Fitems,ALength);
  10180. else
  10181. Inherited SetArrayLength(AName,ALength);
  10182. end;
  10183. end;
  10184. {$ENDIF VER2_6}
  10185. { --------------------------------------------------------------------
  10186. TLiveStreamSnippet
  10187. --------------------------------------------------------------------}
  10188. Procedure TLiveStreamSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  10189. begin
  10190. If (FchannelId=AValue) then exit;
  10191. FchannelId:=AValue;
  10192. MarkPropertyChanged(AIndex);
  10193. end;
  10194. Procedure TLiveStreamSnippet.Setdescription(AIndex : Integer; const AValue : String);
  10195. begin
  10196. If (Fdescription=AValue) then exit;
  10197. Fdescription:=AValue;
  10198. MarkPropertyChanged(AIndex);
  10199. end;
  10200. Procedure TLiveStreamSnippet.SetisDefaultStream(AIndex : Integer; const AValue : boolean);
  10201. begin
  10202. If (FisDefaultStream=AValue) then exit;
  10203. FisDefaultStream:=AValue;
  10204. MarkPropertyChanged(AIndex);
  10205. end;
  10206. Procedure TLiveStreamSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  10207. begin
  10208. If (FpublishedAt=AValue) then exit;
  10209. FpublishedAt:=AValue;
  10210. MarkPropertyChanged(AIndex);
  10211. end;
  10212. Procedure TLiveStreamSnippet.Settitle(AIndex : Integer; const AValue : String);
  10213. begin
  10214. If (Ftitle=AValue) then exit;
  10215. Ftitle:=AValue;
  10216. MarkPropertyChanged(AIndex);
  10217. end;
  10218. { --------------------------------------------------------------------
  10219. TLiveStreamStatus
  10220. --------------------------------------------------------------------}
  10221. Procedure TLiveStreamStatus.SethealthStatus(AIndex : Integer; const AValue : TLiveStreamHealthStatus);
  10222. begin
  10223. If (FhealthStatus=AValue) then exit;
  10224. FhealthStatus:=AValue;
  10225. MarkPropertyChanged(AIndex);
  10226. end;
  10227. Procedure TLiveStreamStatus.SetstreamStatus(AIndex : Integer; const AValue : String);
  10228. begin
  10229. If (FstreamStatus=AValue) then exit;
  10230. FstreamStatus:=AValue;
  10231. MarkPropertyChanged(AIndex);
  10232. end;
  10233. { --------------------------------------------------------------------
  10234. TLocalizedProperty
  10235. --------------------------------------------------------------------}
  10236. Procedure TLocalizedProperty.Setdefault(AIndex : Integer; const AValue : String);
  10237. begin
  10238. If (Fdefault=AValue) then exit;
  10239. Fdefault:=AValue;
  10240. MarkPropertyChanged(AIndex);
  10241. end;
  10242. Procedure TLocalizedProperty.SetdefaultLanguage(AIndex : Integer; const AValue : TLanguageTag);
  10243. begin
  10244. If (FdefaultLanguage=AValue) then exit;
  10245. FdefaultLanguage:=AValue;
  10246. MarkPropertyChanged(AIndex);
  10247. end;
  10248. Procedure TLocalizedProperty.Setlocalized(AIndex : Integer; const AValue : TLocalizedPropertyTypelocalizedArray);
  10249. begin
  10250. If (Flocalized=AValue) then exit;
  10251. Flocalized:=AValue;
  10252. MarkPropertyChanged(AIndex);
  10253. end;
  10254. //2.6.4. bug workaround
  10255. {$IFDEF VER2_6}
  10256. Procedure TLocalizedProperty.SetArrayLength(Const AName : String; ALength : Longint);
  10257. begin
  10258. Case AName of
  10259. 'localized' : SetLength(Flocalized,ALength);
  10260. else
  10261. Inherited SetArrayLength(AName,ALength);
  10262. end;
  10263. end;
  10264. {$ENDIF VER2_6}
  10265. { --------------------------------------------------------------------
  10266. TLocalizedString
  10267. --------------------------------------------------------------------}
  10268. Procedure TLocalizedString.Setlanguage(AIndex : Integer; const AValue : String);
  10269. begin
  10270. If (Flanguage=AValue) then exit;
  10271. Flanguage:=AValue;
  10272. MarkPropertyChanged(AIndex);
  10273. end;
  10274. Procedure TLocalizedString.Setvalue(AIndex : Integer; const AValue : String);
  10275. begin
  10276. If (Fvalue=AValue) then exit;
  10277. Fvalue:=AValue;
  10278. MarkPropertyChanged(AIndex);
  10279. end;
  10280. { --------------------------------------------------------------------
  10281. TMonitorStreamInfo
  10282. --------------------------------------------------------------------}
  10283. Procedure TMonitorStreamInfo.SetbroadcastStreamDelayMs(AIndex : Integer; const AValue : integer);
  10284. begin
  10285. If (FbroadcastStreamDelayMs=AValue) then exit;
  10286. FbroadcastStreamDelayMs:=AValue;
  10287. MarkPropertyChanged(AIndex);
  10288. end;
  10289. Procedure TMonitorStreamInfo.SetembedHtml(AIndex : Integer; const AValue : String);
  10290. begin
  10291. If (FembedHtml=AValue) then exit;
  10292. FembedHtml:=AValue;
  10293. MarkPropertyChanged(AIndex);
  10294. end;
  10295. Procedure TMonitorStreamInfo.SetenableMonitorStream(AIndex : Integer; const AValue : boolean);
  10296. begin
  10297. If (FenableMonitorStream=AValue) then exit;
  10298. FenableMonitorStream:=AValue;
  10299. MarkPropertyChanged(AIndex);
  10300. end;
  10301. { --------------------------------------------------------------------
  10302. TPageInfo
  10303. --------------------------------------------------------------------}
  10304. Procedure TPageInfo.SetresultsPerPage(AIndex : Integer; const AValue : integer);
  10305. begin
  10306. If (FresultsPerPage=AValue) then exit;
  10307. FresultsPerPage:=AValue;
  10308. MarkPropertyChanged(AIndex);
  10309. end;
  10310. Procedure TPageInfo.SettotalResults(AIndex : Integer; const AValue : integer);
  10311. begin
  10312. If (FtotalResults=AValue) then exit;
  10313. FtotalResults:=AValue;
  10314. MarkPropertyChanged(AIndex);
  10315. end;
  10316. { --------------------------------------------------------------------
  10317. TPlaylistTypelocalizations
  10318. --------------------------------------------------------------------}
  10319. Class Function TPlaylistTypelocalizations.AllowAdditionalProperties : Boolean;
  10320. begin
  10321. Result:=True;
  10322. end;
  10323. { --------------------------------------------------------------------
  10324. TPlaylist
  10325. --------------------------------------------------------------------}
  10326. Procedure TPlaylist.SetcontentDetails(AIndex : Integer; const AValue : TPlaylistContentDetails);
  10327. begin
  10328. If (FcontentDetails=AValue) then exit;
  10329. FcontentDetails:=AValue;
  10330. MarkPropertyChanged(AIndex);
  10331. end;
  10332. Procedure TPlaylist.Setetag(AIndex : Integer; const AValue : String);
  10333. begin
  10334. If (Fetag=AValue) then exit;
  10335. Fetag:=AValue;
  10336. MarkPropertyChanged(AIndex);
  10337. end;
  10338. Procedure TPlaylist.Setid(AIndex : Integer; const AValue : String);
  10339. begin
  10340. If (Fid=AValue) then exit;
  10341. Fid:=AValue;
  10342. MarkPropertyChanged(AIndex);
  10343. end;
  10344. Procedure TPlaylist.Setkind(AIndex : Integer; const AValue : String);
  10345. begin
  10346. If (Fkind=AValue) then exit;
  10347. Fkind:=AValue;
  10348. MarkPropertyChanged(AIndex);
  10349. end;
  10350. Procedure TPlaylist.Setlocalizations(AIndex : Integer; const AValue : TPlaylistTypelocalizations);
  10351. begin
  10352. If (Flocalizations=AValue) then exit;
  10353. Flocalizations:=AValue;
  10354. MarkPropertyChanged(AIndex);
  10355. end;
  10356. Procedure TPlaylist.Setplayer(AIndex : Integer; const AValue : TPlaylistPlayer);
  10357. begin
  10358. If (Fplayer=AValue) then exit;
  10359. Fplayer:=AValue;
  10360. MarkPropertyChanged(AIndex);
  10361. end;
  10362. Procedure TPlaylist.Setsnippet(AIndex : Integer; const AValue : TPlaylistSnippet);
  10363. begin
  10364. If (Fsnippet=AValue) then exit;
  10365. Fsnippet:=AValue;
  10366. MarkPropertyChanged(AIndex);
  10367. end;
  10368. Procedure TPlaylist.Setstatus(AIndex : Integer; const AValue : TPlaylistStatus);
  10369. begin
  10370. If (Fstatus=AValue) then exit;
  10371. Fstatus:=AValue;
  10372. MarkPropertyChanged(AIndex);
  10373. end;
  10374. { --------------------------------------------------------------------
  10375. TPlaylistContentDetails
  10376. --------------------------------------------------------------------}
  10377. Procedure TPlaylistContentDetails.SetitemCount(AIndex : Integer; const AValue : integer);
  10378. begin
  10379. If (FitemCount=AValue) then exit;
  10380. FitemCount:=AValue;
  10381. MarkPropertyChanged(AIndex);
  10382. end;
  10383. { --------------------------------------------------------------------
  10384. TPlaylistItem
  10385. --------------------------------------------------------------------}
  10386. Procedure TPlaylistItem.SetcontentDetails(AIndex : Integer; const AValue : TPlaylistItemContentDetails);
  10387. begin
  10388. If (FcontentDetails=AValue) then exit;
  10389. FcontentDetails:=AValue;
  10390. MarkPropertyChanged(AIndex);
  10391. end;
  10392. Procedure TPlaylistItem.Setetag(AIndex : Integer; const AValue : String);
  10393. begin
  10394. If (Fetag=AValue) then exit;
  10395. Fetag:=AValue;
  10396. MarkPropertyChanged(AIndex);
  10397. end;
  10398. Procedure TPlaylistItem.Setid(AIndex : Integer; const AValue : String);
  10399. begin
  10400. If (Fid=AValue) then exit;
  10401. Fid:=AValue;
  10402. MarkPropertyChanged(AIndex);
  10403. end;
  10404. Procedure TPlaylistItem.Setkind(AIndex : Integer; const AValue : String);
  10405. begin
  10406. If (Fkind=AValue) then exit;
  10407. Fkind:=AValue;
  10408. MarkPropertyChanged(AIndex);
  10409. end;
  10410. Procedure TPlaylistItem.Setsnippet(AIndex : Integer; const AValue : TPlaylistItemSnippet);
  10411. begin
  10412. If (Fsnippet=AValue) then exit;
  10413. Fsnippet:=AValue;
  10414. MarkPropertyChanged(AIndex);
  10415. end;
  10416. Procedure TPlaylistItem.Setstatus(AIndex : Integer; const AValue : TPlaylistItemStatus);
  10417. begin
  10418. If (Fstatus=AValue) then exit;
  10419. Fstatus:=AValue;
  10420. MarkPropertyChanged(AIndex);
  10421. end;
  10422. { --------------------------------------------------------------------
  10423. TPlaylistItemContentDetails
  10424. --------------------------------------------------------------------}
  10425. Procedure TPlaylistItemContentDetails.SetendAt(AIndex : Integer; const AValue : String);
  10426. begin
  10427. If (FendAt=AValue) then exit;
  10428. FendAt:=AValue;
  10429. MarkPropertyChanged(AIndex);
  10430. end;
  10431. Procedure TPlaylistItemContentDetails.Setnote(AIndex : Integer; const AValue : String);
  10432. begin
  10433. If (Fnote=AValue) then exit;
  10434. Fnote:=AValue;
  10435. MarkPropertyChanged(AIndex);
  10436. end;
  10437. Procedure TPlaylistItemContentDetails.SetstartAt(AIndex : Integer; const AValue : String);
  10438. begin
  10439. If (FstartAt=AValue) then exit;
  10440. FstartAt:=AValue;
  10441. MarkPropertyChanged(AIndex);
  10442. end;
  10443. Procedure TPlaylistItemContentDetails.SetvideoId(AIndex : Integer; const AValue : String);
  10444. begin
  10445. If (FvideoId=AValue) then exit;
  10446. FvideoId:=AValue;
  10447. MarkPropertyChanged(AIndex);
  10448. end;
  10449. { --------------------------------------------------------------------
  10450. TPlaylistItemListResponse
  10451. --------------------------------------------------------------------}
  10452. Procedure TPlaylistItemListResponse.Setetag(AIndex : Integer; const AValue : String);
  10453. begin
  10454. If (Fetag=AValue) then exit;
  10455. Fetag:=AValue;
  10456. MarkPropertyChanged(AIndex);
  10457. end;
  10458. Procedure TPlaylistItemListResponse.SeteventId(AIndex : Integer; const AValue : String);
  10459. begin
  10460. If (FeventId=AValue) then exit;
  10461. FeventId:=AValue;
  10462. MarkPropertyChanged(AIndex);
  10463. end;
  10464. Procedure TPlaylistItemListResponse.Setitems(AIndex : Integer; const AValue : TPlaylistItemListResponseTypeitemsArray);
  10465. begin
  10466. If (Fitems=AValue) then exit;
  10467. Fitems:=AValue;
  10468. MarkPropertyChanged(AIndex);
  10469. end;
  10470. Procedure TPlaylistItemListResponse.Setkind(AIndex : Integer; const AValue : String);
  10471. begin
  10472. If (Fkind=AValue) then exit;
  10473. Fkind:=AValue;
  10474. MarkPropertyChanged(AIndex);
  10475. end;
  10476. Procedure TPlaylistItemListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  10477. begin
  10478. If (FnextPageToken=AValue) then exit;
  10479. FnextPageToken:=AValue;
  10480. MarkPropertyChanged(AIndex);
  10481. end;
  10482. Procedure TPlaylistItemListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  10483. begin
  10484. If (FpageInfo=AValue) then exit;
  10485. FpageInfo:=AValue;
  10486. MarkPropertyChanged(AIndex);
  10487. end;
  10488. Procedure TPlaylistItemListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  10489. begin
  10490. If (FprevPageToken=AValue) then exit;
  10491. FprevPageToken:=AValue;
  10492. MarkPropertyChanged(AIndex);
  10493. end;
  10494. Procedure TPlaylistItemListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  10495. begin
  10496. If (FtokenPagination=AValue) then exit;
  10497. FtokenPagination:=AValue;
  10498. MarkPropertyChanged(AIndex);
  10499. end;
  10500. Procedure TPlaylistItemListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  10501. begin
  10502. If (FvisitorId=AValue) then exit;
  10503. FvisitorId:=AValue;
  10504. MarkPropertyChanged(AIndex);
  10505. end;
  10506. //2.6.4. bug workaround
  10507. {$IFDEF VER2_6}
  10508. Procedure TPlaylistItemListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  10509. begin
  10510. Case AName of
  10511. 'items' : SetLength(Fitems,ALength);
  10512. else
  10513. Inherited SetArrayLength(AName,ALength);
  10514. end;
  10515. end;
  10516. {$ENDIF VER2_6}
  10517. { --------------------------------------------------------------------
  10518. TPlaylistItemSnippet
  10519. --------------------------------------------------------------------}
  10520. Procedure TPlaylistItemSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  10521. begin
  10522. If (FchannelId=AValue) then exit;
  10523. FchannelId:=AValue;
  10524. MarkPropertyChanged(AIndex);
  10525. end;
  10526. Procedure TPlaylistItemSnippet.SetchannelTitle(AIndex : Integer; const AValue : String);
  10527. begin
  10528. If (FchannelTitle=AValue) then exit;
  10529. FchannelTitle:=AValue;
  10530. MarkPropertyChanged(AIndex);
  10531. end;
  10532. Procedure TPlaylistItemSnippet.Setdescription(AIndex : Integer; const AValue : String);
  10533. begin
  10534. If (Fdescription=AValue) then exit;
  10535. Fdescription:=AValue;
  10536. MarkPropertyChanged(AIndex);
  10537. end;
  10538. Procedure TPlaylistItemSnippet.SetplaylistId(AIndex : Integer; const AValue : String);
  10539. begin
  10540. If (FplaylistId=AValue) then exit;
  10541. FplaylistId:=AValue;
  10542. MarkPropertyChanged(AIndex);
  10543. end;
  10544. Procedure TPlaylistItemSnippet.Setposition(AIndex : Integer; const AValue : integer);
  10545. begin
  10546. If (Fposition=AValue) then exit;
  10547. Fposition:=AValue;
  10548. MarkPropertyChanged(AIndex);
  10549. end;
  10550. Procedure TPlaylistItemSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  10551. begin
  10552. If (FpublishedAt=AValue) then exit;
  10553. FpublishedAt:=AValue;
  10554. MarkPropertyChanged(AIndex);
  10555. end;
  10556. Procedure TPlaylistItemSnippet.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  10557. begin
  10558. If (FresourceId=AValue) then exit;
  10559. FresourceId:=AValue;
  10560. MarkPropertyChanged(AIndex);
  10561. end;
  10562. Procedure TPlaylistItemSnippet.Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails);
  10563. begin
  10564. If (Fthumbnails=AValue) then exit;
  10565. Fthumbnails:=AValue;
  10566. MarkPropertyChanged(AIndex);
  10567. end;
  10568. Procedure TPlaylistItemSnippet.Settitle(AIndex : Integer; const AValue : String);
  10569. begin
  10570. If (Ftitle=AValue) then exit;
  10571. Ftitle:=AValue;
  10572. MarkPropertyChanged(AIndex);
  10573. end;
  10574. { --------------------------------------------------------------------
  10575. TPlaylistItemStatus
  10576. --------------------------------------------------------------------}
  10577. Procedure TPlaylistItemStatus.SetprivacyStatus(AIndex : Integer; const AValue : String);
  10578. begin
  10579. If (FprivacyStatus=AValue) then exit;
  10580. FprivacyStatus:=AValue;
  10581. MarkPropertyChanged(AIndex);
  10582. end;
  10583. { --------------------------------------------------------------------
  10584. TPlaylistListResponse
  10585. --------------------------------------------------------------------}
  10586. Procedure TPlaylistListResponse.Setetag(AIndex : Integer; const AValue : String);
  10587. begin
  10588. If (Fetag=AValue) then exit;
  10589. Fetag:=AValue;
  10590. MarkPropertyChanged(AIndex);
  10591. end;
  10592. Procedure TPlaylistListResponse.SeteventId(AIndex : Integer; const AValue : String);
  10593. begin
  10594. If (FeventId=AValue) then exit;
  10595. FeventId:=AValue;
  10596. MarkPropertyChanged(AIndex);
  10597. end;
  10598. Procedure TPlaylistListResponse.Setitems(AIndex : Integer; const AValue : TPlaylistListResponseTypeitemsArray);
  10599. begin
  10600. If (Fitems=AValue) then exit;
  10601. Fitems:=AValue;
  10602. MarkPropertyChanged(AIndex);
  10603. end;
  10604. Procedure TPlaylistListResponse.Setkind(AIndex : Integer; const AValue : String);
  10605. begin
  10606. If (Fkind=AValue) then exit;
  10607. Fkind:=AValue;
  10608. MarkPropertyChanged(AIndex);
  10609. end;
  10610. Procedure TPlaylistListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  10611. begin
  10612. If (FnextPageToken=AValue) then exit;
  10613. FnextPageToken:=AValue;
  10614. MarkPropertyChanged(AIndex);
  10615. end;
  10616. Procedure TPlaylistListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  10617. begin
  10618. If (FpageInfo=AValue) then exit;
  10619. FpageInfo:=AValue;
  10620. MarkPropertyChanged(AIndex);
  10621. end;
  10622. Procedure TPlaylistListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  10623. begin
  10624. If (FprevPageToken=AValue) then exit;
  10625. FprevPageToken:=AValue;
  10626. MarkPropertyChanged(AIndex);
  10627. end;
  10628. Procedure TPlaylistListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  10629. begin
  10630. If (FtokenPagination=AValue) then exit;
  10631. FtokenPagination:=AValue;
  10632. MarkPropertyChanged(AIndex);
  10633. end;
  10634. Procedure TPlaylistListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  10635. begin
  10636. If (FvisitorId=AValue) then exit;
  10637. FvisitorId:=AValue;
  10638. MarkPropertyChanged(AIndex);
  10639. end;
  10640. //2.6.4. bug workaround
  10641. {$IFDEF VER2_6}
  10642. Procedure TPlaylistListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  10643. begin
  10644. Case AName of
  10645. 'items' : SetLength(Fitems,ALength);
  10646. else
  10647. Inherited SetArrayLength(AName,ALength);
  10648. end;
  10649. end;
  10650. {$ENDIF VER2_6}
  10651. { --------------------------------------------------------------------
  10652. TPlaylistLocalization
  10653. --------------------------------------------------------------------}
  10654. Procedure TPlaylistLocalization.Setdescription(AIndex : Integer; const AValue : String);
  10655. begin
  10656. If (Fdescription=AValue) then exit;
  10657. Fdescription:=AValue;
  10658. MarkPropertyChanged(AIndex);
  10659. end;
  10660. Procedure TPlaylistLocalization.Settitle(AIndex : Integer; const AValue : String);
  10661. begin
  10662. If (Ftitle=AValue) then exit;
  10663. Ftitle:=AValue;
  10664. MarkPropertyChanged(AIndex);
  10665. end;
  10666. { --------------------------------------------------------------------
  10667. TPlaylistPlayer
  10668. --------------------------------------------------------------------}
  10669. Procedure TPlaylistPlayer.SetembedHtml(AIndex : Integer; const AValue : String);
  10670. begin
  10671. If (FembedHtml=AValue) then exit;
  10672. FembedHtml:=AValue;
  10673. MarkPropertyChanged(AIndex);
  10674. end;
  10675. { --------------------------------------------------------------------
  10676. TPlaylistSnippet
  10677. --------------------------------------------------------------------}
  10678. Procedure TPlaylistSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  10679. begin
  10680. If (FchannelId=AValue) then exit;
  10681. FchannelId:=AValue;
  10682. MarkPropertyChanged(AIndex);
  10683. end;
  10684. Procedure TPlaylistSnippet.SetchannelTitle(AIndex : Integer; const AValue : String);
  10685. begin
  10686. If (FchannelTitle=AValue) then exit;
  10687. FchannelTitle:=AValue;
  10688. MarkPropertyChanged(AIndex);
  10689. end;
  10690. Procedure TPlaylistSnippet.SetdefaultLanguage(AIndex : Integer; const AValue : String);
  10691. begin
  10692. If (FdefaultLanguage=AValue) then exit;
  10693. FdefaultLanguage:=AValue;
  10694. MarkPropertyChanged(AIndex);
  10695. end;
  10696. Procedure TPlaylistSnippet.Setdescription(AIndex : Integer; const AValue : String);
  10697. begin
  10698. If (Fdescription=AValue) then exit;
  10699. Fdescription:=AValue;
  10700. MarkPropertyChanged(AIndex);
  10701. end;
  10702. Procedure TPlaylistSnippet.Setlocalized(AIndex : Integer; const AValue : TPlaylistLocalization);
  10703. begin
  10704. If (Flocalized=AValue) then exit;
  10705. Flocalized:=AValue;
  10706. MarkPropertyChanged(AIndex);
  10707. end;
  10708. Procedure TPlaylistSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  10709. begin
  10710. If (FpublishedAt=AValue) then exit;
  10711. FpublishedAt:=AValue;
  10712. MarkPropertyChanged(AIndex);
  10713. end;
  10714. Procedure TPlaylistSnippet.Settags(AIndex : Integer; const AValue : TStringArray);
  10715. begin
  10716. If (Ftags=AValue) then exit;
  10717. Ftags:=AValue;
  10718. MarkPropertyChanged(AIndex);
  10719. end;
  10720. Procedure TPlaylistSnippet.Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails);
  10721. begin
  10722. If (Fthumbnails=AValue) then exit;
  10723. Fthumbnails:=AValue;
  10724. MarkPropertyChanged(AIndex);
  10725. end;
  10726. Procedure TPlaylistSnippet.Settitle(AIndex : Integer; const AValue : String);
  10727. begin
  10728. If (Ftitle=AValue) then exit;
  10729. Ftitle:=AValue;
  10730. MarkPropertyChanged(AIndex);
  10731. end;
  10732. //2.6.4. bug workaround
  10733. {$IFDEF VER2_6}
  10734. Procedure TPlaylistSnippet.SetArrayLength(Const AName : String; ALength : Longint);
  10735. begin
  10736. Case AName of
  10737. 'tags' : SetLength(Ftags,ALength);
  10738. else
  10739. Inherited SetArrayLength(AName,ALength);
  10740. end;
  10741. end;
  10742. {$ENDIF VER2_6}
  10743. { --------------------------------------------------------------------
  10744. TPlaylistStatus
  10745. --------------------------------------------------------------------}
  10746. Procedure TPlaylistStatus.SetprivacyStatus(AIndex : Integer; const AValue : String);
  10747. begin
  10748. If (FprivacyStatus=AValue) then exit;
  10749. FprivacyStatus:=AValue;
  10750. MarkPropertyChanged(AIndex);
  10751. end;
  10752. { --------------------------------------------------------------------
  10753. TPromotedItem
  10754. --------------------------------------------------------------------}
  10755. Procedure TPromotedItem.SetcustomMessage(AIndex : Integer; const AValue : String);
  10756. begin
  10757. If (FcustomMessage=AValue) then exit;
  10758. FcustomMessage:=AValue;
  10759. MarkPropertyChanged(AIndex);
  10760. end;
  10761. Procedure TPromotedItem.Setid(AIndex : Integer; const AValue : TPromotedItemId);
  10762. begin
  10763. If (Fid=AValue) then exit;
  10764. Fid:=AValue;
  10765. MarkPropertyChanged(AIndex);
  10766. end;
  10767. Procedure TPromotedItem.SetpromotedByContentOwner(AIndex : Integer; const AValue : boolean);
  10768. begin
  10769. If (FpromotedByContentOwner=AValue) then exit;
  10770. FpromotedByContentOwner:=AValue;
  10771. MarkPropertyChanged(AIndex);
  10772. end;
  10773. Procedure TPromotedItem.Settiming(AIndex : Integer; const AValue : TInvideoTiming);
  10774. begin
  10775. If (Ftiming=AValue) then exit;
  10776. Ftiming:=AValue;
  10777. MarkPropertyChanged(AIndex);
  10778. end;
  10779. { --------------------------------------------------------------------
  10780. TPromotedItemId
  10781. --------------------------------------------------------------------}
  10782. Procedure TPromotedItemId.SetrecentlyUploadedBy(AIndex : Integer; const AValue : String);
  10783. begin
  10784. If (FrecentlyUploadedBy=AValue) then exit;
  10785. FrecentlyUploadedBy:=AValue;
  10786. MarkPropertyChanged(AIndex);
  10787. end;
  10788. Procedure TPromotedItemId.Set_type(AIndex : Integer; const AValue : String);
  10789. begin
  10790. If (F_type=AValue) then exit;
  10791. F_type:=AValue;
  10792. MarkPropertyChanged(AIndex);
  10793. end;
  10794. Procedure TPromotedItemId.SetvideoId(AIndex : Integer; const AValue : String);
  10795. begin
  10796. If (FvideoId=AValue) then exit;
  10797. FvideoId:=AValue;
  10798. MarkPropertyChanged(AIndex);
  10799. end;
  10800. Procedure TPromotedItemId.SetwebsiteUrl(AIndex : Integer; const AValue : String);
  10801. begin
  10802. If (FwebsiteUrl=AValue) then exit;
  10803. FwebsiteUrl:=AValue;
  10804. MarkPropertyChanged(AIndex);
  10805. end;
  10806. Class Function TPromotedItemId.ExportPropertyName(Const AName : String) :String;
  10807. begin
  10808. Case AName of
  10809. '_type' : Result:='type';
  10810. else
  10811. Result:=Inherited ExportPropertyName(AName);
  10812. end;
  10813. end;
  10814. { --------------------------------------------------------------------
  10815. TPropertyValue
  10816. --------------------------------------------------------------------}
  10817. Procedure TPropertyValue.Set_property(AIndex : Integer; const AValue : String);
  10818. begin
  10819. If (F_property=AValue) then exit;
  10820. F_property:=AValue;
  10821. MarkPropertyChanged(AIndex);
  10822. end;
  10823. Procedure TPropertyValue.Setvalue(AIndex : Integer; const AValue : String);
  10824. begin
  10825. If (Fvalue=AValue) then exit;
  10826. Fvalue:=AValue;
  10827. MarkPropertyChanged(AIndex);
  10828. end;
  10829. Class Function TPropertyValue.ExportPropertyName(Const AName : String) :String;
  10830. begin
  10831. Case AName of
  10832. '_property' : Result:='property';
  10833. else
  10834. Result:=Inherited ExportPropertyName(AName);
  10835. end;
  10836. end;
  10837. { --------------------------------------------------------------------
  10838. TResourceId
  10839. --------------------------------------------------------------------}
  10840. Procedure TResourceId.SetchannelId(AIndex : Integer; const AValue : String);
  10841. begin
  10842. If (FchannelId=AValue) then exit;
  10843. FchannelId:=AValue;
  10844. MarkPropertyChanged(AIndex);
  10845. end;
  10846. Procedure TResourceId.Setkind(AIndex : Integer; const AValue : String);
  10847. begin
  10848. If (Fkind=AValue) then exit;
  10849. Fkind:=AValue;
  10850. MarkPropertyChanged(AIndex);
  10851. end;
  10852. Procedure TResourceId.SetplaylistId(AIndex : Integer; const AValue : String);
  10853. begin
  10854. If (FplaylistId=AValue) then exit;
  10855. FplaylistId:=AValue;
  10856. MarkPropertyChanged(AIndex);
  10857. end;
  10858. Procedure TResourceId.SetvideoId(AIndex : Integer; const AValue : String);
  10859. begin
  10860. If (FvideoId=AValue) then exit;
  10861. FvideoId:=AValue;
  10862. MarkPropertyChanged(AIndex);
  10863. end;
  10864. { --------------------------------------------------------------------
  10865. TSearchListResponse
  10866. --------------------------------------------------------------------}
  10867. Procedure TSearchListResponse.Setetag(AIndex : Integer; const AValue : String);
  10868. begin
  10869. If (Fetag=AValue) then exit;
  10870. Fetag:=AValue;
  10871. MarkPropertyChanged(AIndex);
  10872. end;
  10873. Procedure TSearchListResponse.SeteventId(AIndex : Integer; const AValue : String);
  10874. begin
  10875. If (FeventId=AValue) then exit;
  10876. FeventId:=AValue;
  10877. MarkPropertyChanged(AIndex);
  10878. end;
  10879. Procedure TSearchListResponse.Setitems(AIndex : Integer; const AValue : TSearchListResponseTypeitemsArray);
  10880. begin
  10881. If (Fitems=AValue) then exit;
  10882. Fitems:=AValue;
  10883. MarkPropertyChanged(AIndex);
  10884. end;
  10885. Procedure TSearchListResponse.Setkind(AIndex : Integer; const AValue : String);
  10886. begin
  10887. If (Fkind=AValue) then exit;
  10888. Fkind:=AValue;
  10889. MarkPropertyChanged(AIndex);
  10890. end;
  10891. Procedure TSearchListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  10892. begin
  10893. If (FnextPageToken=AValue) then exit;
  10894. FnextPageToken:=AValue;
  10895. MarkPropertyChanged(AIndex);
  10896. end;
  10897. Procedure TSearchListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  10898. begin
  10899. If (FpageInfo=AValue) then exit;
  10900. FpageInfo:=AValue;
  10901. MarkPropertyChanged(AIndex);
  10902. end;
  10903. Procedure TSearchListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  10904. begin
  10905. If (FprevPageToken=AValue) then exit;
  10906. FprevPageToken:=AValue;
  10907. MarkPropertyChanged(AIndex);
  10908. end;
  10909. Procedure TSearchListResponse.SetregionCode(AIndex : Integer; const AValue : String);
  10910. begin
  10911. If (FregionCode=AValue) then exit;
  10912. FregionCode:=AValue;
  10913. MarkPropertyChanged(AIndex);
  10914. end;
  10915. Procedure TSearchListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  10916. begin
  10917. If (FtokenPagination=AValue) then exit;
  10918. FtokenPagination:=AValue;
  10919. MarkPropertyChanged(AIndex);
  10920. end;
  10921. Procedure TSearchListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  10922. begin
  10923. If (FvisitorId=AValue) then exit;
  10924. FvisitorId:=AValue;
  10925. MarkPropertyChanged(AIndex);
  10926. end;
  10927. //2.6.4. bug workaround
  10928. {$IFDEF VER2_6}
  10929. Procedure TSearchListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  10930. begin
  10931. Case AName of
  10932. 'items' : SetLength(Fitems,ALength);
  10933. else
  10934. Inherited SetArrayLength(AName,ALength);
  10935. end;
  10936. end;
  10937. {$ENDIF VER2_6}
  10938. { --------------------------------------------------------------------
  10939. TSearchResult
  10940. --------------------------------------------------------------------}
  10941. Procedure TSearchResult.Setetag(AIndex : Integer; const AValue : String);
  10942. begin
  10943. If (Fetag=AValue) then exit;
  10944. Fetag:=AValue;
  10945. MarkPropertyChanged(AIndex);
  10946. end;
  10947. Procedure TSearchResult.Setid(AIndex : Integer; const AValue : TResourceId);
  10948. begin
  10949. If (Fid=AValue) then exit;
  10950. Fid:=AValue;
  10951. MarkPropertyChanged(AIndex);
  10952. end;
  10953. Procedure TSearchResult.Setkind(AIndex : Integer; const AValue : String);
  10954. begin
  10955. If (Fkind=AValue) then exit;
  10956. Fkind:=AValue;
  10957. MarkPropertyChanged(AIndex);
  10958. end;
  10959. Procedure TSearchResult.Setsnippet(AIndex : Integer; const AValue : TSearchResultSnippet);
  10960. begin
  10961. If (Fsnippet=AValue) then exit;
  10962. Fsnippet:=AValue;
  10963. MarkPropertyChanged(AIndex);
  10964. end;
  10965. { --------------------------------------------------------------------
  10966. TSearchResultSnippet
  10967. --------------------------------------------------------------------}
  10968. Procedure TSearchResultSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  10969. begin
  10970. If (FchannelId=AValue) then exit;
  10971. FchannelId:=AValue;
  10972. MarkPropertyChanged(AIndex);
  10973. end;
  10974. Procedure TSearchResultSnippet.SetchannelTitle(AIndex : Integer; const AValue : String);
  10975. begin
  10976. If (FchannelTitle=AValue) then exit;
  10977. FchannelTitle:=AValue;
  10978. MarkPropertyChanged(AIndex);
  10979. end;
  10980. Procedure TSearchResultSnippet.Setdescription(AIndex : Integer; const AValue : String);
  10981. begin
  10982. If (Fdescription=AValue) then exit;
  10983. Fdescription:=AValue;
  10984. MarkPropertyChanged(AIndex);
  10985. end;
  10986. Procedure TSearchResultSnippet.SetliveBroadcastContent(AIndex : Integer; const AValue : String);
  10987. begin
  10988. If (FliveBroadcastContent=AValue) then exit;
  10989. FliveBroadcastContent:=AValue;
  10990. MarkPropertyChanged(AIndex);
  10991. end;
  10992. Procedure TSearchResultSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  10993. begin
  10994. If (FpublishedAt=AValue) then exit;
  10995. FpublishedAt:=AValue;
  10996. MarkPropertyChanged(AIndex);
  10997. end;
  10998. Procedure TSearchResultSnippet.Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails);
  10999. begin
  11000. If (Fthumbnails=AValue) then exit;
  11001. Fthumbnails:=AValue;
  11002. MarkPropertyChanged(AIndex);
  11003. end;
  11004. Procedure TSearchResultSnippet.Settitle(AIndex : Integer; const AValue : String);
  11005. begin
  11006. If (Ftitle=AValue) then exit;
  11007. Ftitle:=AValue;
  11008. MarkPropertyChanged(AIndex);
  11009. end;
  11010. { --------------------------------------------------------------------
  11011. TSponsor
  11012. --------------------------------------------------------------------}
  11013. Procedure TSponsor.Setetag(AIndex : Integer; const AValue : String);
  11014. begin
  11015. If (Fetag=AValue) then exit;
  11016. Fetag:=AValue;
  11017. MarkPropertyChanged(AIndex);
  11018. end;
  11019. Procedure TSponsor.Setid(AIndex : Integer; const AValue : String);
  11020. begin
  11021. If (Fid=AValue) then exit;
  11022. Fid:=AValue;
  11023. MarkPropertyChanged(AIndex);
  11024. end;
  11025. Procedure TSponsor.Setkind(AIndex : Integer; const AValue : String);
  11026. begin
  11027. If (Fkind=AValue) then exit;
  11028. Fkind:=AValue;
  11029. MarkPropertyChanged(AIndex);
  11030. end;
  11031. Procedure TSponsor.Setsnippet(AIndex : Integer; const AValue : TSponsorSnippet);
  11032. begin
  11033. If (Fsnippet=AValue) then exit;
  11034. Fsnippet:=AValue;
  11035. MarkPropertyChanged(AIndex);
  11036. end;
  11037. { --------------------------------------------------------------------
  11038. TSponsorListResponse
  11039. --------------------------------------------------------------------}
  11040. Procedure TSponsorListResponse.Setetag(AIndex : Integer; const AValue : String);
  11041. begin
  11042. If (Fetag=AValue) then exit;
  11043. Fetag:=AValue;
  11044. MarkPropertyChanged(AIndex);
  11045. end;
  11046. Procedure TSponsorListResponse.SeteventId(AIndex : Integer; const AValue : String);
  11047. begin
  11048. If (FeventId=AValue) then exit;
  11049. FeventId:=AValue;
  11050. MarkPropertyChanged(AIndex);
  11051. end;
  11052. Procedure TSponsorListResponse.Setitems(AIndex : Integer; const AValue : TSponsorListResponseTypeitemsArray);
  11053. begin
  11054. If (Fitems=AValue) then exit;
  11055. Fitems:=AValue;
  11056. MarkPropertyChanged(AIndex);
  11057. end;
  11058. Procedure TSponsorListResponse.Setkind(AIndex : Integer; const AValue : String);
  11059. begin
  11060. If (Fkind=AValue) then exit;
  11061. Fkind:=AValue;
  11062. MarkPropertyChanged(AIndex);
  11063. end;
  11064. Procedure TSponsorListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  11065. begin
  11066. If (FnextPageToken=AValue) then exit;
  11067. FnextPageToken:=AValue;
  11068. MarkPropertyChanged(AIndex);
  11069. end;
  11070. Procedure TSponsorListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  11071. begin
  11072. If (FpageInfo=AValue) then exit;
  11073. FpageInfo:=AValue;
  11074. MarkPropertyChanged(AIndex);
  11075. end;
  11076. Procedure TSponsorListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  11077. begin
  11078. If (FtokenPagination=AValue) then exit;
  11079. FtokenPagination:=AValue;
  11080. MarkPropertyChanged(AIndex);
  11081. end;
  11082. Procedure TSponsorListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  11083. begin
  11084. If (FvisitorId=AValue) then exit;
  11085. FvisitorId:=AValue;
  11086. MarkPropertyChanged(AIndex);
  11087. end;
  11088. //2.6.4. bug workaround
  11089. {$IFDEF VER2_6}
  11090. Procedure TSponsorListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  11091. begin
  11092. Case AName of
  11093. 'items' : SetLength(Fitems,ALength);
  11094. else
  11095. Inherited SetArrayLength(AName,ALength);
  11096. end;
  11097. end;
  11098. {$ENDIF VER2_6}
  11099. { --------------------------------------------------------------------
  11100. TSponsorSnippet
  11101. --------------------------------------------------------------------}
  11102. Procedure TSponsorSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  11103. begin
  11104. If (FchannelId=AValue) then exit;
  11105. FchannelId:=AValue;
  11106. MarkPropertyChanged(AIndex);
  11107. end;
  11108. Procedure TSponsorSnippet.SetsponsorDetails(AIndex : Integer; const AValue : TChannelProfileDetails);
  11109. begin
  11110. If (FsponsorDetails=AValue) then exit;
  11111. FsponsorDetails:=AValue;
  11112. MarkPropertyChanged(AIndex);
  11113. end;
  11114. Procedure TSponsorSnippet.SetsponsorSince(AIndex : Integer; const AValue : TDatetime);
  11115. begin
  11116. If (FsponsorSince=AValue) then exit;
  11117. FsponsorSince:=AValue;
  11118. MarkPropertyChanged(AIndex);
  11119. end;
  11120. { --------------------------------------------------------------------
  11121. TSubscription
  11122. --------------------------------------------------------------------}
  11123. Procedure TSubscription.SetcontentDetails(AIndex : Integer; const AValue : TSubscriptionContentDetails);
  11124. begin
  11125. If (FcontentDetails=AValue) then exit;
  11126. FcontentDetails:=AValue;
  11127. MarkPropertyChanged(AIndex);
  11128. end;
  11129. Procedure TSubscription.Setetag(AIndex : Integer; const AValue : String);
  11130. begin
  11131. If (Fetag=AValue) then exit;
  11132. Fetag:=AValue;
  11133. MarkPropertyChanged(AIndex);
  11134. end;
  11135. Procedure TSubscription.Setid(AIndex : Integer; const AValue : String);
  11136. begin
  11137. If (Fid=AValue) then exit;
  11138. Fid:=AValue;
  11139. MarkPropertyChanged(AIndex);
  11140. end;
  11141. Procedure TSubscription.Setkind(AIndex : Integer; const AValue : String);
  11142. begin
  11143. If (Fkind=AValue) then exit;
  11144. Fkind:=AValue;
  11145. MarkPropertyChanged(AIndex);
  11146. end;
  11147. Procedure TSubscription.Setsnippet(AIndex : Integer; const AValue : TSubscriptionSnippet);
  11148. begin
  11149. If (Fsnippet=AValue) then exit;
  11150. Fsnippet:=AValue;
  11151. MarkPropertyChanged(AIndex);
  11152. end;
  11153. Procedure TSubscription.SetsubscriberSnippet(AIndex : Integer; const AValue : TSubscriptionSubscriberSnippet);
  11154. begin
  11155. If (FsubscriberSnippet=AValue) then exit;
  11156. FsubscriberSnippet:=AValue;
  11157. MarkPropertyChanged(AIndex);
  11158. end;
  11159. { --------------------------------------------------------------------
  11160. TSubscriptionContentDetails
  11161. --------------------------------------------------------------------}
  11162. Procedure TSubscriptionContentDetails.SetactivityType(AIndex : Integer; const AValue : String);
  11163. begin
  11164. If (FactivityType=AValue) then exit;
  11165. FactivityType:=AValue;
  11166. MarkPropertyChanged(AIndex);
  11167. end;
  11168. Procedure TSubscriptionContentDetails.SetnewItemCount(AIndex : Integer; const AValue : integer);
  11169. begin
  11170. If (FnewItemCount=AValue) then exit;
  11171. FnewItemCount:=AValue;
  11172. MarkPropertyChanged(AIndex);
  11173. end;
  11174. Procedure TSubscriptionContentDetails.SettotalItemCount(AIndex : Integer; const AValue : integer);
  11175. begin
  11176. If (FtotalItemCount=AValue) then exit;
  11177. FtotalItemCount:=AValue;
  11178. MarkPropertyChanged(AIndex);
  11179. end;
  11180. { --------------------------------------------------------------------
  11181. TSubscriptionListResponse
  11182. --------------------------------------------------------------------}
  11183. Procedure TSubscriptionListResponse.Setetag(AIndex : Integer; const AValue : String);
  11184. begin
  11185. If (Fetag=AValue) then exit;
  11186. Fetag:=AValue;
  11187. MarkPropertyChanged(AIndex);
  11188. end;
  11189. Procedure TSubscriptionListResponse.SeteventId(AIndex : Integer; const AValue : String);
  11190. begin
  11191. If (FeventId=AValue) then exit;
  11192. FeventId:=AValue;
  11193. MarkPropertyChanged(AIndex);
  11194. end;
  11195. Procedure TSubscriptionListResponse.Setitems(AIndex : Integer; const AValue : TSubscriptionListResponseTypeitemsArray);
  11196. begin
  11197. If (Fitems=AValue) then exit;
  11198. Fitems:=AValue;
  11199. MarkPropertyChanged(AIndex);
  11200. end;
  11201. Procedure TSubscriptionListResponse.Setkind(AIndex : Integer; const AValue : String);
  11202. begin
  11203. If (Fkind=AValue) then exit;
  11204. Fkind:=AValue;
  11205. MarkPropertyChanged(AIndex);
  11206. end;
  11207. Procedure TSubscriptionListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  11208. begin
  11209. If (FnextPageToken=AValue) then exit;
  11210. FnextPageToken:=AValue;
  11211. MarkPropertyChanged(AIndex);
  11212. end;
  11213. Procedure TSubscriptionListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  11214. begin
  11215. If (FpageInfo=AValue) then exit;
  11216. FpageInfo:=AValue;
  11217. MarkPropertyChanged(AIndex);
  11218. end;
  11219. Procedure TSubscriptionListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  11220. begin
  11221. If (FprevPageToken=AValue) then exit;
  11222. FprevPageToken:=AValue;
  11223. MarkPropertyChanged(AIndex);
  11224. end;
  11225. Procedure TSubscriptionListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  11226. begin
  11227. If (FtokenPagination=AValue) then exit;
  11228. FtokenPagination:=AValue;
  11229. MarkPropertyChanged(AIndex);
  11230. end;
  11231. Procedure TSubscriptionListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  11232. begin
  11233. If (FvisitorId=AValue) then exit;
  11234. FvisitorId:=AValue;
  11235. MarkPropertyChanged(AIndex);
  11236. end;
  11237. //2.6.4. bug workaround
  11238. {$IFDEF VER2_6}
  11239. Procedure TSubscriptionListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  11240. begin
  11241. Case AName of
  11242. 'items' : SetLength(Fitems,ALength);
  11243. else
  11244. Inherited SetArrayLength(AName,ALength);
  11245. end;
  11246. end;
  11247. {$ENDIF VER2_6}
  11248. { --------------------------------------------------------------------
  11249. TSubscriptionSnippet
  11250. --------------------------------------------------------------------}
  11251. Procedure TSubscriptionSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  11252. begin
  11253. If (FchannelId=AValue) then exit;
  11254. FchannelId:=AValue;
  11255. MarkPropertyChanged(AIndex);
  11256. end;
  11257. Procedure TSubscriptionSnippet.SetchannelTitle(AIndex : Integer; const AValue : String);
  11258. begin
  11259. If (FchannelTitle=AValue) then exit;
  11260. FchannelTitle:=AValue;
  11261. MarkPropertyChanged(AIndex);
  11262. end;
  11263. Procedure TSubscriptionSnippet.Setdescription(AIndex : Integer; const AValue : String);
  11264. begin
  11265. If (Fdescription=AValue) then exit;
  11266. Fdescription:=AValue;
  11267. MarkPropertyChanged(AIndex);
  11268. end;
  11269. Procedure TSubscriptionSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  11270. begin
  11271. If (FpublishedAt=AValue) then exit;
  11272. FpublishedAt:=AValue;
  11273. MarkPropertyChanged(AIndex);
  11274. end;
  11275. Procedure TSubscriptionSnippet.SetresourceId(AIndex : Integer; const AValue : TResourceId);
  11276. begin
  11277. If (FresourceId=AValue) then exit;
  11278. FresourceId:=AValue;
  11279. MarkPropertyChanged(AIndex);
  11280. end;
  11281. Procedure TSubscriptionSnippet.Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails);
  11282. begin
  11283. If (Fthumbnails=AValue) then exit;
  11284. Fthumbnails:=AValue;
  11285. MarkPropertyChanged(AIndex);
  11286. end;
  11287. Procedure TSubscriptionSnippet.Settitle(AIndex : Integer; const AValue : String);
  11288. begin
  11289. If (Ftitle=AValue) then exit;
  11290. Ftitle:=AValue;
  11291. MarkPropertyChanged(AIndex);
  11292. end;
  11293. { --------------------------------------------------------------------
  11294. TSubscriptionSubscriberSnippet
  11295. --------------------------------------------------------------------}
  11296. Procedure TSubscriptionSubscriberSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  11297. begin
  11298. If (FchannelId=AValue) then exit;
  11299. FchannelId:=AValue;
  11300. MarkPropertyChanged(AIndex);
  11301. end;
  11302. Procedure TSubscriptionSubscriberSnippet.Setdescription(AIndex : Integer; const AValue : String);
  11303. begin
  11304. If (Fdescription=AValue) then exit;
  11305. Fdescription:=AValue;
  11306. MarkPropertyChanged(AIndex);
  11307. end;
  11308. Procedure TSubscriptionSubscriberSnippet.Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails);
  11309. begin
  11310. If (Fthumbnails=AValue) then exit;
  11311. Fthumbnails:=AValue;
  11312. MarkPropertyChanged(AIndex);
  11313. end;
  11314. Procedure TSubscriptionSubscriberSnippet.Settitle(AIndex : Integer; const AValue : String);
  11315. begin
  11316. If (Ftitle=AValue) then exit;
  11317. Ftitle:=AValue;
  11318. MarkPropertyChanged(AIndex);
  11319. end;
  11320. { --------------------------------------------------------------------
  11321. TThumbnail
  11322. --------------------------------------------------------------------}
  11323. Procedure TThumbnail.Setheight(AIndex : Integer; const AValue : integer);
  11324. begin
  11325. If (Fheight=AValue) then exit;
  11326. Fheight:=AValue;
  11327. MarkPropertyChanged(AIndex);
  11328. end;
  11329. Procedure TThumbnail.Seturl(AIndex : Integer; const AValue : String);
  11330. begin
  11331. If (Furl=AValue) then exit;
  11332. Furl:=AValue;
  11333. MarkPropertyChanged(AIndex);
  11334. end;
  11335. Procedure TThumbnail.Setwidth(AIndex : Integer; const AValue : integer);
  11336. begin
  11337. If (Fwidth=AValue) then exit;
  11338. Fwidth:=AValue;
  11339. MarkPropertyChanged(AIndex);
  11340. end;
  11341. { --------------------------------------------------------------------
  11342. TThumbnailDetails
  11343. --------------------------------------------------------------------}
  11344. Procedure TThumbnailDetails.Setdefault(AIndex : Integer; const AValue : TThumbnail);
  11345. begin
  11346. If (Fdefault=AValue) then exit;
  11347. Fdefault:=AValue;
  11348. MarkPropertyChanged(AIndex);
  11349. end;
  11350. Procedure TThumbnailDetails.Sethigh(AIndex : Integer; const AValue : TThumbnail);
  11351. begin
  11352. If (Fhigh=AValue) then exit;
  11353. Fhigh:=AValue;
  11354. MarkPropertyChanged(AIndex);
  11355. end;
  11356. Procedure TThumbnailDetails.Setmaxres(AIndex : Integer; const AValue : TThumbnail);
  11357. begin
  11358. If (Fmaxres=AValue) then exit;
  11359. Fmaxres:=AValue;
  11360. MarkPropertyChanged(AIndex);
  11361. end;
  11362. Procedure TThumbnailDetails.Setmedium(AIndex : Integer; const AValue : TThumbnail);
  11363. begin
  11364. If (Fmedium=AValue) then exit;
  11365. Fmedium:=AValue;
  11366. MarkPropertyChanged(AIndex);
  11367. end;
  11368. Procedure TThumbnailDetails.Setstandard(AIndex : Integer; const AValue : TThumbnail);
  11369. begin
  11370. If (Fstandard=AValue) then exit;
  11371. Fstandard:=AValue;
  11372. MarkPropertyChanged(AIndex);
  11373. end;
  11374. { --------------------------------------------------------------------
  11375. TThumbnailSetResponse
  11376. --------------------------------------------------------------------}
  11377. Procedure TThumbnailSetResponse.Setetag(AIndex : Integer; const AValue : String);
  11378. begin
  11379. If (Fetag=AValue) then exit;
  11380. Fetag:=AValue;
  11381. MarkPropertyChanged(AIndex);
  11382. end;
  11383. Procedure TThumbnailSetResponse.SeteventId(AIndex : Integer; const AValue : String);
  11384. begin
  11385. If (FeventId=AValue) then exit;
  11386. FeventId:=AValue;
  11387. MarkPropertyChanged(AIndex);
  11388. end;
  11389. Procedure TThumbnailSetResponse.Setitems(AIndex : Integer; const AValue : TThumbnailSetResponseTypeitemsArray);
  11390. begin
  11391. If (Fitems=AValue) then exit;
  11392. Fitems:=AValue;
  11393. MarkPropertyChanged(AIndex);
  11394. end;
  11395. Procedure TThumbnailSetResponse.Setkind(AIndex : Integer; const AValue : String);
  11396. begin
  11397. If (Fkind=AValue) then exit;
  11398. Fkind:=AValue;
  11399. MarkPropertyChanged(AIndex);
  11400. end;
  11401. Procedure TThumbnailSetResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  11402. begin
  11403. If (FvisitorId=AValue) then exit;
  11404. FvisitorId:=AValue;
  11405. MarkPropertyChanged(AIndex);
  11406. end;
  11407. //2.6.4. bug workaround
  11408. {$IFDEF VER2_6}
  11409. Procedure TThumbnailSetResponse.SetArrayLength(Const AName : String; ALength : Longint);
  11410. begin
  11411. Case AName of
  11412. 'items' : SetLength(Fitems,ALength);
  11413. else
  11414. Inherited SetArrayLength(AName,ALength);
  11415. end;
  11416. end;
  11417. {$ENDIF VER2_6}
  11418. { --------------------------------------------------------------------
  11419. TTokenPagination
  11420. --------------------------------------------------------------------}
  11421. { --------------------------------------------------------------------
  11422. TVideoTypelocalizations
  11423. --------------------------------------------------------------------}
  11424. Class Function TVideoTypelocalizations.AllowAdditionalProperties : Boolean;
  11425. begin
  11426. Result:=True;
  11427. end;
  11428. { --------------------------------------------------------------------
  11429. TVideo
  11430. --------------------------------------------------------------------}
  11431. Procedure TVideo.SetageGating(AIndex : Integer; const AValue : TVideoAgeGating);
  11432. begin
  11433. If (FageGating=AValue) then exit;
  11434. FageGating:=AValue;
  11435. MarkPropertyChanged(AIndex);
  11436. end;
  11437. Procedure TVideo.SetcontentDetails(AIndex : Integer; const AValue : TVideoContentDetails);
  11438. begin
  11439. If (FcontentDetails=AValue) then exit;
  11440. FcontentDetails:=AValue;
  11441. MarkPropertyChanged(AIndex);
  11442. end;
  11443. Procedure TVideo.Setetag(AIndex : Integer; const AValue : String);
  11444. begin
  11445. If (Fetag=AValue) then exit;
  11446. Fetag:=AValue;
  11447. MarkPropertyChanged(AIndex);
  11448. end;
  11449. Procedure TVideo.SetfileDetails(AIndex : Integer; const AValue : TVideoFileDetails);
  11450. begin
  11451. If (FfileDetails=AValue) then exit;
  11452. FfileDetails:=AValue;
  11453. MarkPropertyChanged(AIndex);
  11454. end;
  11455. Procedure TVideo.Setid(AIndex : Integer; const AValue : String);
  11456. begin
  11457. If (Fid=AValue) then exit;
  11458. Fid:=AValue;
  11459. MarkPropertyChanged(AIndex);
  11460. end;
  11461. Procedure TVideo.Setkind(AIndex : Integer; const AValue : String);
  11462. begin
  11463. If (Fkind=AValue) then exit;
  11464. Fkind:=AValue;
  11465. MarkPropertyChanged(AIndex);
  11466. end;
  11467. Procedure TVideo.SetliveStreamingDetails(AIndex : Integer; const AValue : TVideoLiveStreamingDetails);
  11468. begin
  11469. If (FliveStreamingDetails=AValue) then exit;
  11470. FliveStreamingDetails:=AValue;
  11471. MarkPropertyChanged(AIndex);
  11472. end;
  11473. Procedure TVideo.Setlocalizations(AIndex : Integer; const AValue : TVideoTypelocalizations);
  11474. begin
  11475. If (Flocalizations=AValue) then exit;
  11476. Flocalizations:=AValue;
  11477. MarkPropertyChanged(AIndex);
  11478. end;
  11479. Procedure TVideo.SetmonetizationDetails(AIndex : Integer; const AValue : TVideoMonetizationDetails);
  11480. begin
  11481. If (FmonetizationDetails=AValue) then exit;
  11482. FmonetizationDetails:=AValue;
  11483. MarkPropertyChanged(AIndex);
  11484. end;
  11485. Procedure TVideo.Setplayer(AIndex : Integer; const AValue : TVideoPlayer);
  11486. begin
  11487. If (Fplayer=AValue) then exit;
  11488. Fplayer:=AValue;
  11489. MarkPropertyChanged(AIndex);
  11490. end;
  11491. Procedure TVideo.SetprocessingDetails(AIndex : Integer; const AValue : TVideoProcessingDetails);
  11492. begin
  11493. If (FprocessingDetails=AValue) then exit;
  11494. FprocessingDetails:=AValue;
  11495. MarkPropertyChanged(AIndex);
  11496. end;
  11497. Procedure TVideo.SetprojectDetails(AIndex : Integer; const AValue : TVideoProjectDetails);
  11498. begin
  11499. If (FprojectDetails=AValue) then exit;
  11500. FprojectDetails:=AValue;
  11501. MarkPropertyChanged(AIndex);
  11502. end;
  11503. Procedure TVideo.SetrecordingDetails(AIndex : Integer; const AValue : TVideoRecordingDetails);
  11504. begin
  11505. If (FrecordingDetails=AValue) then exit;
  11506. FrecordingDetails:=AValue;
  11507. MarkPropertyChanged(AIndex);
  11508. end;
  11509. Procedure TVideo.Setsnippet(AIndex : Integer; const AValue : TVideoSnippet);
  11510. begin
  11511. If (Fsnippet=AValue) then exit;
  11512. Fsnippet:=AValue;
  11513. MarkPropertyChanged(AIndex);
  11514. end;
  11515. Procedure TVideo.Setstatistics(AIndex : Integer; const AValue : TVideoStatistics);
  11516. begin
  11517. If (Fstatistics=AValue) then exit;
  11518. Fstatistics:=AValue;
  11519. MarkPropertyChanged(AIndex);
  11520. end;
  11521. Procedure TVideo.Setstatus(AIndex : Integer; const AValue : TVideoStatus);
  11522. begin
  11523. If (Fstatus=AValue) then exit;
  11524. Fstatus:=AValue;
  11525. MarkPropertyChanged(AIndex);
  11526. end;
  11527. Procedure TVideo.Setsuggestions(AIndex : Integer; const AValue : TVideoSuggestions);
  11528. begin
  11529. If (Fsuggestions=AValue) then exit;
  11530. Fsuggestions:=AValue;
  11531. MarkPropertyChanged(AIndex);
  11532. end;
  11533. Procedure TVideo.SettopicDetails(AIndex : Integer; const AValue : TVideoTopicDetails);
  11534. begin
  11535. If (FtopicDetails=AValue) then exit;
  11536. FtopicDetails:=AValue;
  11537. MarkPropertyChanged(AIndex);
  11538. end;
  11539. { --------------------------------------------------------------------
  11540. TVideoAbuseReport
  11541. --------------------------------------------------------------------}
  11542. Procedure TVideoAbuseReport.Setcomments(AIndex : Integer; const AValue : String);
  11543. begin
  11544. If (Fcomments=AValue) then exit;
  11545. Fcomments:=AValue;
  11546. MarkPropertyChanged(AIndex);
  11547. end;
  11548. Procedure TVideoAbuseReport.Setlanguage(AIndex : Integer; const AValue : String);
  11549. begin
  11550. If (Flanguage=AValue) then exit;
  11551. Flanguage:=AValue;
  11552. MarkPropertyChanged(AIndex);
  11553. end;
  11554. Procedure TVideoAbuseReport.SetreasonId(AIndex : Integer; const AValue : String);
  11555. begin
  11556. If (FreasonId=AValue) then exit;
  11557. FreasonId:=AValue;
  11558. MarkPropertyChanged(AIndex);
  11559. end;
  11560. Procedure TVideoAbuseReport.SetsecondaryReasonId(AIndex : Integer; const AValue : String);
  11561. begin
  11562. If (FsecondaryReasonId=AValue) then exit;
  11563. FsecondaryReasonId:=AValue;
  11564. MarkPropertyChanged(AIndex);
  11565. end;
  11566. Procedure TVideoAbuseReport.SetvideoId(AIndex : Integer; const AValue : String);
  11567. begin
  11568. If (FvideoId=AValue) then exit;
  11569. FvideoId:=AValue;
  11570. MarkPropertyChanged(AIndex);
  11571. end;
  11572. { --------------------------------------------------------------------
  11573. TVideoAbuseReportReason
  11574. --------------------------------------------------------------------}
  11575. Procedure TVideoAbuseReportReason.Setetag(AIndex : Integer; const AValue : String);
  11576. begin
  11577. If (Fetag=AValue) then exit;
  11578. Fetag:=AValue;
  11579. MarkPropertyChanged(AIndex);
  11580. end;
  11581. Procedure TVideoAbuseReportReason.Setid(AIndex : Integer; const AValue : String);
  11582. begin
  11583. If (Fid=AValue) then exit;
  11584. Fid:=AValue;
  11585. MarkPropertyChanged(AIndex);
  11586. end;
  11587. Procedure TVideoAbuseReportReason.Setkind(AIndex : Integer; const AValue : String);
  11588. begin
  11589. If (Fkind=AValue) then exit;
  11590. Fkind:=AValue;
  11591. MarkPropertyChanged(AIndex);
  11592. end;
  11593. Procedure TVideoAbuseReportReason.Setsnippet(AIndex : Integer; const AValue : TVideoAbuseReportReasonSnippet);
  11594. begin
  11595. If (Fsnippet=AValue) then exit;
  11596. Fsnippet:=AValue;
  11597. MarkPropertyChanged(AIndex);
  11598. end;
  11599. { --------------------------------------------------------------------
  11600. TVideoAbuseReportReasonListResponse
  11601. --------------------------------------------------------------------}
  11602. Procedure TVideoAbuseReportReasonListResponse.Setetag(AIndex : Integer; const AValue : String);
  11603. begin
  11604. If (Fetag=AValue) then exit;
  11605. Fetag:=AValue;
  11606. MarkPropertyChanged(AIndex);
  11607. end;
  11608. Procedure TVideoAbuseReportReasonListResponse.SeteventId(AIndex : Integer; const AValue : String);
  11609. begin
  11610. If (FeventId=AValue) then exit;
  11611. FeventId:=AValue;
  11612. MarkPropertyChanged(AIndex);
  11613. end;
  11614. Procedure TVideoAbuseReportReasonListResponse.Setitems(AIndex : Integer; const AValue : TVideoAbuseReportReasonListResponseTypeitemsArray);
  11615. begin
  11616. If (Fitems=AValue) then exit;
  11617. Fitems:=AValue;
  11618. MarkPropertyChanged(AIndex);
  11619. end;
  11620. Procedure TVideoAbuseReportReasonListResponse.Setkind(AIndex : Integer; const AValue : String);
  11621. begin
  11622. If (Fkind=AValue) then exit;
  11623. Fkind:=AValue;
  11624. MarkPropertyChanged(AIndex);
  11625. end;
  11626. Procedure TVideoAbuseReportReasonListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  11627. begin
  11628. If (FvisitorId=AValue) then exit;
  11629. FvisitorId:=AValue;
  11630. MarkPropertyChanged(AIndex);
  11631. end;
  11632. //2.6.4. bug workaround
  11633. {$IFDEF VER2_6}
  11634. Procedure TVideoAbuseReportReasonListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  11635. begin
  11636. Case AName of
  11637. 'items' : SetLength(Fitems,ALength);
  11638. else
  11639. Inherited SetArrayLength(AName,ALength);
  11640. end;
  11641. end;
  11642. {$ENDIF VER2_6}
  11643. { --------------------------------------------------------------------
  11644. TVideoAbuseReportReasonSnippet
  11645. --------------------------------------------------------------------}
  11646. Procedure TVideoAbuseReportReasonSnippet.Set_label(AIndex : Integer; const AValue : String);
  11647. begin
  11648. If (F_label=AValue) then exit;
  11649. F_label:=AValue;
  11650. MarkPropertyChanged(AIndex);
  11651. end;
  11652. Procedure TVideoAbuseReportReasonSnippet.SetsecondaryReasons(AIndex : Integer; const AValue : TVideoAbuseReportReasonSnippetTypesecondaryReasonsArray);
  11653. begin
  11654. If (FsecondaryReasons=AValue) then exit;
  11655. FsecondaryReasons:=AValue;
  11656. MarkPropertyChanged(AIndex);
  11657. end;
  11658. Class Function TVideoAbuseReportReasonSnippet.ExportPropertyName(Const AName : String) :String;
  11659. begin
  11660. Case AName of
  11661. '_label' : Result:='label';
  11662. else
  11663. Result:=Inherited ExportPropertyName(AName);
  11664. end;
  11665. end;
  11666. //2.6.4. bug workaround
  11667. {$IFDEF VER2_6}
  11668. Procedure TVideoAbuseReportReasonSnippet.SetArrayLength(Const AName : String; ALength : Longint);
  11669. begin
  11670. Case AName of
  11671. 'secondaryreasons' : SetLength(FsecondaryReasons,ALength);
  11672. else
  11673. Inherited SetArrayLength(AName,ALength);
  11674. end;
  11675. end;
  11676. {$ENDIF VER2_6}
  11677. { --------------------------------------------------------------------
  11678. TVideoAbuseReportSecondaryReason
  11679. --------------------------------------------------------------------}
  11680. Procedure TVideoAbuseReportSecondaryReason.Setid(AIndex : Integer; const AValue : String);
  11681. begin
  11682. If (Fid=AValue) then exit;
  11683. Fid:=AValue;
  11684. MarkPropertyChanged(AIndex);
  11685. end;
  11686. Procedure TVideoAbuseReportSecondaryReason.Set_label(AIndex : Integer; const AValue : String);
  11687. begin
  11688. If (F_label=AValue) then exit;
  11689. F_label:=AValue;
  11690. MarkPropertyChanged(AIndex);
  11691. end;
  11692. Class Function TVideoAbuseReportSecondaryReason.ExportPropertyName(Const AName : String) :String;
  11693. begin
  11694. Case AName of
  11695. '_label' : Result:='label';
  11696. else
  11697. Result:=Inherited ExportPropertyName(AName);
  11698. end;
  11699. end;
  11700. { --------------------------------------------------------------------
  11701. TVideoAgeGating
  11702. --------------------------------------------------------------------}
  11703. Procedure TVideoAgeGating.SetalcoholContent(AIndex : Integer; const AValue : boolean);
  11704. begin
  11705. If (FalcoholContent=AValue) then exit;
  11706. FalcoholContent:=AValue;
  11707. MarkPropertyChanged(AIndex);
  11708. end;
  11709. Procedure TVideoAgeGating.Setrestricted(AIndex : Integer; const AValue : boolean);
  11710. begin
  11711. If (Frestricted=AValue) then exit;
  11712. Frestricted:=AValue;
  11713. MarkPropertyChanged(AIndex);
  11714. end;
  11715. Procedure TVideoAgeGating.SetvideoGameRating(AIndex : Integer; const AValue : String);
  11716. begin
  11717. If (FvideoGameRating=AValue) then exit;
  11718. FvideoGameRating:=AValue;
  11719. MarkPropertyChanged(AIndex);
  11720. end;
  11721. { --------------------------------------------------------------------
  11722. TVideoCategory
  11723. --------------------------------------------------------------------}
  11724. Procedure TVideoCategory.Setetag(AIndex : Integer; const AValue : String);
  11725. begin
  11726. If (Fetag=AValue) then exit;
  11727. Fetag:=AValue;
  11728. MarkPropertyChanged(AIndex);
  11729. end;
  11730. Procedure TVideoCategory.Setid(AIndex : Integer; const AValue : String);
  11731. begin
  11732. If (Fid=AValue) then exit;
  11733. Fid:=AValue;
  11734. MarkPropertyChanged(AIndex);
  11735. end;
  11736. Procedure TVideoCategory.Setkind(AIndex : Integer; const AValue : String);
  11737. begin
  11738. If (Fkind=AValue) then exit;
  11739. Fkind:=AValue;
  11740. MarkPropertyChanged(AIndex);
  11741. end;
  11742. Procedure TVideoCategory.Setsnippet(AIndex : Integer; const AValue : TVideoCategorySnippet);
  11743. begin
  11744. If (Fsnippet=AValue) then exit;
  11745. Fsnippet:=AValue;
  11746. MarkPropertyChanged(AIndex);
  11747. end;
  11748. { --------------------------------------------------------------------
  11749. TVideoCategoryListResponse
  11750. --------------------------------------------------------------------}
  11751. Procedure TVideoCategoryListResponse.Setetag(AIndex : Integer; const AValue : String);
  11752. begin
  11753. If (Fetag=AValue) then exit;
  11754. Fetag:=AValue;
  11755. MarkPropertyChanged(AIndex);
  11756. end;
  11757. Procedure TVideoCategoryListResponse.SeteventId(AIndex : Integer; const AValue : String);
  11758. begin
  11759. If (FeventId=AValue) then exit;
  11760. FeventId:=AValue;
  11761. MarkPropertyChanged(AIndex);
  11762. end;
  11763. Procedure TVideoCategoryListResponse.Setitems(AIndex : Integer; const AValue : TVideoCategoryListResponseTypeitemsArray);
  11764. begin
  11765. If (Fitems=AValue) then exit;
  11766. Fitems:=AValue;
  11767. MarkPropertyChanged(AIndex);
  11768. end;
  11769. Procedure TVideoCategoryListResponse.Setkind(AIndex : Integer; const AValue : String);
  11770. begin
  11771. If (Fkind=AValue) then exit;
  11772. Fkind:=AValue;
  11773. MarkPropertyChanged(AIndex);
  11774. end;
  11775. Procedure TVideoCategoryListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  11776. begin
  11777. If (FnextPageToken=AValue) then exit;
  11778. FnextPageToken:=AValue;
  11779. MarkPropertyChanged(AIndex);
  11780. end;
  11781. Procedure TVideoCategoryListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  11782. begin
  11783. If (FpageInfo=AValue) then exit;
  11784. FpageInfo:=AValue;
  11785. MarkPropertyChanged(AIndex);
  11786. end;
  11787. Procedure TVideoCategoryListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  11788. begin
  11789. If (FprevPageToken=AValue) then exit;
  11790. FprevPageToken:=AValue;
  11791. MarkPropertyChanged(AIndex);
  11792. end;
  11793. Procedure TVideoCategoryListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  11794. begin
  11795. If (FtokenPagination=AValue) then exit;
  11796. FtokenPagination:=AValue;
  11797. MarkPropertyChanged(AIndex);
  11798. end;
  11799. Procedure TVideoCategoryListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  11800. begin
  11801. If (FvisitorId=AValue) then exit;
  11802. FvisitorId:=AValue;
  11803. MarkPropertyChanged(AIndex);
  11804. end;
  11805. //2.6.4. bug workaround
  11806. {$IFDEF VER2_6}
  11807. Procedure TVideoCategoryListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  11808. begin
  11809. Case AName of
  11810. 'items' : SetLength(Fitems,ALength);
  11811. else
  11812. Inherited SetArrayLength(AName,ALength);
  11813. end;
  11814. end;
  11815. {$ENDIF VER2_6}
  11816. { --------------------------------------------------------------------
  11817. TVideoCategorySnippet
  11818. --------------------------------------------------------------------}
  11819. Procedure TVideoCategorySnippet.Setassignable(AIndex : Integer; const AValue : boolean);
  11820. begin
  11821. If (Fassignable=AValue) then exit;
  11822. Fassignable:=AValue;
  11823. MarkPropertyChanged(AIndex);
  11824. end;
  11825. Procedure TVideoCategorySnippet.SetchannelId(AIndex : Integer; const AValue : String);
  11826. begin
  11827. If (FchannelId=AValue) then exit;
  11828. FchannelId:=AValue;
  11829. MarkPropertyChanged(AIndex);
  11830. end;
  11831. Procedure TVideoCategorySnippet.Settitle(AIndex : Integer; const AValue : String);
  11832. begin
  11833. If (Ftitle=AValue) then exit;
  11834. Ftitle:=AValue;
  11835. MarkPropertyChanged(AIndex);
  11836. end;
  11837. { --------------------------------------------------------------------
  11838. TVideoContentDetails
  11839. --------------------------------------------------------------------}
  11840. Procedure TVideoContentDetails.Setcaption(AIndex : Integer; const AValue : String);
  11841. begin
  11842. If (Fcaption=AValue) then exit;
  11843. Fcaption:=AValue;
  11844. MarkPropertyChanged(AIndex);
  11845. end;
  11846. Procedure TVideoContentDetails.SetcontentRating(AIndex : Integer; const AValue : TContentRating);
  11847. begin
  11848. If (FcontentRating=AValue) then exit;
  11849. FcontentRating:=AValue;
  11850. MarkPropertyChanged(AIndex);
  11851. end;
  11852. Procedure TVideoContentDetails.SetcountryRestriction(AIndex : Integer; const AValue : TAccessPolicy);
  11853. begin
  11854. If (FcountryRestriction=AValue) then exit;
  11855. FcountryRestriction:=AValue;
  11856. MarkPropertyChanged(AIndex);
  11857. end;
  11858. Procedure TVideoContentDetails.Setdefinition(AIndex : Integer; const AValue : String);
  11859. begin
  11860. If (Fdefinition=AValue) then exit;
  11861. Fdefinition:=AValue;
  11862. MarkPropertyChanged(AIndex);
  11863. end;
  11864. Procedure TVideoContentDetails.Setdimension(AIndex : Integer; const AValue : String);
  11865. begin
  11866. If (Fdimension=AValue) then exit;
  11867. Fdimension:=AValue;
  11868. MarkPropertyChanged(AIndex);
  11869. end;
  11870. Procedure TVideoContentDetails.Setduration(AIndex : Integer; const AValue : String);
  11871. begin
  11872. If (Fduration=AValue) then exit;
  11873. Fduration:=AValue;
  11874. MarkPropertyChanged(AIndex);
  11875. end;
  11876. Procedure TVideoContentDetails.SetlicensedContent(AIndex : Integer; const AValue : boolean);
  11877. begin
  11878. If (FlicensedContent=AValue) then exit;
  11879. FlicensedContent:=AValue;
  11880. MarkPropertyChanged(AIndex);
  11881. end;
  11882. Procedure TVideoContentDetails.Setprojection(AIndex : Integer; const AValue : String);
  11883. begin
  11884. If (Fprojection=AValue) then exit;
  11885. Fprojection:=AValue;
  11886. MarkPropertyChanged(AIndex);
  11887. end;
  11888. Procedure TVideoContentDetails.SetregionRestriction(AIndex : Integer; const AValue : TVideoContentDetailsRegionRestriction);
  11889. begin
  11890. If (FregionRestriction=AValue) then exit;
  11891. FregionRestriction:=AValue;
  11892. MarkPropertyChanged(AIndex);
  11893. end;
  11894. { --------------------------------------------------------------------
  11895. TVideoContentDetailsRegionRestriction
  11896. --------------------------------------------------------------------}
  11897. Procedure TVideoContentDetailsRegionRestriction.Setallowed(AIndex : Integer; const AValue : TStringArray);
  11898. begin
  11899. If (Fallowed=AValue) then exit;
  11900. Fallowed:=AValue;
  11901. MarkPropertyChanged(AIndex);
  11902. end;
  11903. Procedure TVideoContentDetailsRegionRestriction.Setblocked(AIndex : Integer; const AValue : TStringArray);
  11904. begin
  11905. If (Fblocked=AValue) then exit;
  11906. Fblocked:=AValue;
  11907. MarkPropertyChanged(AIndex);
  11908. end;
  11909. //2.6.4. bug workaround
  11910. {$IFDEF VER2_6}
  11911. Procedure TVideoContentDetailsRegionRestriction.SetArrayLength(Const AName : String; ALength : Longint);
  11912. begin
  11913. Case AName of
  11914. 'allowed' : SetLength(Fallowed,ALength);
  11915. 'blocked' : SetLength(Fblocked,ALength);
  11916. else
  11917. Inherited SetArrayLength(AName,ALength);
  11918. end;
  11919. end;
  11920. {$ENDIF VER2_6}
  11921. { --------------------------------------------------------------------
  11922. TVideoFileDetails
  11923. --------------------------------------------------------------------}
  11924. Procedure TVideoFileDetails.SetaudioStreams(AIndex : Integer; const AValue : TVideoFileDetailsTypeaudioStreamsArray);
  11925. begin
  11926. If (FaudioStreams=AValue) then exit;
  11927. FaudioStreams:=AValue;
  11928. MarkPropertyChanged(AIndex);
  11929. end;
  11930. Procedure TVideoFileDetails.SetbitrateBps(AIndex : Integer; const AValue : String);
  11931. begin
  11932. If (FbitrateBps=AValue) then exit;
  11933. FbitrateBps:=AValue;
  11934. MarkPropertyChanged(AIndex);
  11935. end;
  11936. Procedure TVideoFileDetails.Setcontainer(AIndex : Integer; const AValue : String);
  11937. begin
  11938. If (Fcontainer=AValue) then exit;
  11939. Fcontainer:=AValue;
  11940. MarkPropertyChanged(AIndex);
  11941. end;
  11942. Procedure TVideoFileDetails.SetcreationTime(AIndex : Integer; const AValue : String);
  11943. begin
  11944. If (FcreationTime=AValue) then exit;
  11945. FcreationTime:=AValue;
  11946. MarkPropertyChanged(AIndex);
  11947. end;
  11948. Procedure TVideoFileDetails.SetdurationMs(AIndex : Integer; const AValue : String);
  11949. begin
  11950. If (FdurationMs=AValue) then exit;
  11951. FdurationMs:=AValue;
  11952. MarkPropertyChanged(AIndex);
  11953. end;
  11954. Procedure TVideoFileDetails.SetfileName(AIndex : Integer; const AValue : String);
  11955. begin
  11956. If (FfileName=AValue) then exit;
  11957. FfileName:=AValue;
  11958. MarkPropertyChanged(AIndex);
  11959. end;
  11960. Procedure TVideoFileDetails.SetfileSize(AIndex : Integer; const AValue : String);
  11961. begin
  11962. If (FfileSize=AValue) then exit;
  11963. FfileSize:=AValue;
  11964. MarkPropertyChanged(AIndex);
  11965. end;
  11966. Procedure TVideoFileDetails.SetfileType(AIndex : Integer; const AValue : String);
  11967. begin
  11968. If (FfileType=AValue) then exit;
  11969. FfileType:=AValue;
  11970. MarkPropertyChanged(AIndex);
  11971. end;
  11972. Procedure TVideoFileDetails.SetrecordingLocation(AIndex : Integer; const AValue : TGeoPoint);
  11973. begin
  11974. If (FrecordingLocation=AValue) then exit;
  11975. FrecordingLocation:=AValue;
  11976. MarkPropertyChanged(AIndex);
  11977. end;
  11978. Procedure TVideoFileDetails.SetvideoStreams(AIndex : Integer; const AValue : TVideoFileDetailsTypevideoStreamsArray);
  11979. begin
  11980. If (FvideoStreams=AValue) then exit;
  11981. FvideoStreams:=AValue;
  11982. MarkPropertyChanged(AIndex);
  11983. end;
  11984. //2.6.4. bug workaround
  11985. {$IFDEF VER2_6}
  11986. Procedure TVideoFileDetails.SetArrayLength(Const AName : String; ALength : Longint);
  11987. begin
  11988. Case AName of
  11989. 'audiostreams' : SetLength(FaudioStreams,ALength);
  11990. 'videostreams' : SetLength(FvideoStreams,ALength);
  11991. else
  11992. Inherited SetArrayLength(AName,ALength);
  11993. end;
  11994. end;
  11995. {$ENDIF VER2_6}
  11996. { --------------------------------------------------------------------
  11997. TVideoFileDetailsAudioStream
  11998. --------------------------------------------------------------------}
  11999. Procedure TVideoFileDetailsAudioStream.SetbitrateBps(AIndex : Integer; const AValue : String);
  12000. begin
  12001. If (FbitrateBps=AValue) then exit;
  12002. FbitrateBps:=AValue;
  12003. MarkPropertyChanged(AIndex);
  12004. end;
  12005. Procedure TVideoFileDetailsAudioStream.SetchannelCount(AIndex : Integer; const AValue : integer);
  12006. begin
  12007. If (FchannelCount=AValue) then exit;
  12008. FchannelCount:=AValue;
  12009. MarkPropertyChanged(AIndex);
  12010. end;
  12011. Procedure TVideoFileDetailsAudioStream.Setcodec(AIndex : Integer; const AValue : String);
  12012. begin
  12013. If (Fcodec=AValue) then exit;
  12014. Fcodec:=AValue;
  12015. MarkPropertyChanged(AIndex);
  12016. end;
  12017. Procedure TVideoFileDetailsAudioStream.Setvendor(AIndex : Integer; const AValue : String);
  12018. begin
  12019. If (Fvendor=AValue) then exit;
  12020. Fvendor:=AValue;
  12021. MarkPropertyChanged(AIndex);
  12022. end;
  12023. { --------------------------------------------------------------------
  12024. TVideoFileDetailsVideoStream
  12025. --------------------------------------------------------------------}
  12026. Procedure TVideoFileDetailsVideoStream.SetaspectRatio(AIndex : Integer; const AValue : double);
  12027. begin
  12028. If (FaspectRatio=AValue) then exit;
  12029. FaspectRatio:=AValue;
  12030. MarkPropertyChanged(AIndex);
  12031. end;
  12032. Procedure TVideoFileDetailsVideoStream.SetbitrateBps(AIndex : Integer; const AValue : String);
  12033. begin
  12034. If (FbitrateBps=AValue) then exit;
  12035. FbitrateBps:=AValue;
  12036. MarkPropertyChanged(AIndex);
  12037. end;
  12038. Procedure TVideoFileDetailsVideoStream.Setcodec(AIndex : Integer; const AValue : String);
  12039. begin
  12040. If (Fcodec=AValue) then exit;
  12041. Fcodec:=AValue;
  12042. MarkPropertyChanged(AIndex);
  12043. end;
  12044. Procedure TVideoFileDetailsVideoStream.SetframeRateFps(AIndex : Integer; const AValue : double);
  12045. begin
  12046. If (FframeRateFps=AValue) then exit;
  12047. FframeRateFps:=AValue;
  12048. MarkPropertyChanged(AIndex);
  12049. end;
  12050. Procedure TVideoFileDetailsVideoStream.SetheightPixels(AIndex : Integer; const AValue : integer);
  12051. begin
  12052. If (FheightPixels=AValue) then exit;
  12053. FheightPixels:=AValue;
  12054. MarkPropertyChanged(AIndex);
  12055. end;
  12056. Procedure TVideoFileDetailsVideoStream.Setrotation(AIndex : Integer; const AValue : String);
  12057. begin
  12058. If (Frotation=AValue) then exit;
  12059. Frotation:=AValue;
  12060. MarkPropertyChanged(AIndex);
  12061. end;
  12062. Procedure TVideoFileDetailsVideoStream.Setvendor(AIndex : Integer; const AValue : String);
  12063. begin
  12064. If (Fvendor=AValue) then exit;
  12065. Fvendor:=AValue;
  12066. MarkPropertyChanged(AIndex);
  12067. end;
  12068. Procedure TVideoFileDetailsVideoStream.SetwidthPixels(AIndex : Integer; const AValue : integer);
  12069. begin
  12070. If (FwidthPixels=AValue) then exit;
  12071. FwidthPixels:=AValue;
  12072. MarkPropertyChanged(AIndex);
  12073. end;
  12074. { --------------------------------------------------------------------
  12075. TVideoGetRatingResponse
  12076. --------------------------------------------------------------------}
  12077. Procedure TVideoGetRatingResponse.Setetag(AIndex : Integer; const AValue : String);
  12078. begin
  12079. If (Fetag=AValue) then exit;
  12080. Fetag:=AValue;
  12081. MarkPropertyChanged(AIndex);
  12082. end;
  12083. Procedure TVideoGetRatingResponse.SeteventId(AIndex : Integer; const AValue : String);
  12084. begin
  12085. If (FeventId=AValue) then exit;
  12086. FeventId:=AValue;
  12087. MarkPropertyChanged(AIndex);
  12088. end;
  12089. Procedure TVideoGetRatingResponse.Setitems(AIndex : Integer; const AValue : TVideoGetRatingResponseTypeitemsArray);
  12090. begin
  12091. If (Fitems=AValue) then exit;
  12092. Fitems:=AValue;
  12093. MarkPropertyChanged(AIndex);
  12094. end;
  12095. Procedure TVideoGetRatingResponse.Setkind(AIndex : Integer; const AValue : String);
  12096. begin
  12097. If (Fkind=AValue) then exit;
  12098. Fkind:=AValue;
  12099. MarkPropertyChanged(AIndex);
  12100. end;
  12101. Procedure TVideoGetRatingResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  12102. begin
  12103. If (FvisitorId=AValue) then exit;
  12104. FvisitorId:=AValue;
  12105. MarkPropertyChanged(AIndex);
  12106. end;
  12107. //2.6.4. bug workaround
  12108. {$IFDEF VER2_6}
  12109. Procedure TVideoGetRatingResponse.SetArrayLength(Const AName : String; ALength : Longint);
  12110. begin
  12111. Case AName of
  12112. 'items' : SetLength(Fitems,ALength);
  12113. else
  12114. Inherited SetArrayLength(AName,ALength);
  12115. end;
  12116. end;
  12117. {$ENDIF VER2_6}
  12118. { --------------------------------------------------------------------
  12119. TVideoListResponse
  12120. --------------------------------------------------------------------}
  12121. Procedure TVideoListResponse.Setetag(AIndex : Integer; const AValue : String);
  12122. begin
  12123. If (Fetag=AValue) then exit;
  12124. Fetag:=AValue;
  12125. MarkPropertyChanged(AIndex);
  12126. end;
  12127. Procedure TVideoListResponse.SeteventId(AIndex : Integer; const AValue : String);
  12128. begin
  12129. If (FeventId=AValue) then exit;
  12130. FeventId:=AValue;
  12131. MarkPropertyChanged(AIndex);
  12132. end;
  12133. Procedure TVideoListResponse.Setitems(AIndex : Integer; const AValue : TVideoListResponseTypeitemsArray);
  12134. begin
  12135. If (Fitems=AValue) then exit;
  12136. Fitems:=AValue;
  12137. MarkPropertyChanged(AIndex);
  12138. end;
  12139. Procedure TVideoListResponse.Setkind(AIndex : Integer; const AValue : String);
  12140. begin
  12141. If (Fkind=AValue) then exit;
  12142. Fkind:=AValue;
  12143. MarkPropertyChanged(AIndex);
  12144. end;
  12145. Procedure TVideoListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  12146. begin
  12147. If (FnextPageToken=AValue) then exit;
  12148. FnextPageToken:=AValue;
  12149. MarkPropertyChanged(AIndex);
  12150. end;
  12151. Procedure TVideoListResponse.SetpageInfo(AIndex : Integer; const AValue : TPageInfo);
  12152. begin
  12153. If (FpageInfo=AValue) then exit;
  12154. FpageInfo:=AValue;
  12155. MarkPropertyChanged(AIndex);
  12156. end;
  12157. Procedure TVideoListResponse.SetprevPageToken(AIndex : Integer; const AValue : String);
  12158. begin
  12159. If (FprevPageToken=AValue) then exit;
  12160. FprevPageToken:=AValue;
  12161. MarkPropertyChanged(AIndex);
  12162. end;
  12163. Procedure TVideoListResponse.SettokenPagination(AIndex : Integer; const AValue : TTokenPagination);
  12164. begin
  12165. If (FtokenPagination=AValue) then exit;
  12166. FtokenPagination:=AValue;
  12167. MarkPropertyChanged(AIndex);
  12168. end;
  12169. Procedure TVideoListResponse.SetvisitorId(AIndex : Integer; const AValue : String);
  12170. begin
  12171. If (FvisitorId=AValue) then exit;
  12172. FvisitorId:=AValue;
  12173. MarkPropertyChanged(AIndex);
  12174. end;
  12175. //2.6.4. bug workaround
  12176. {$IFDEF VER2_6}
  12177. Procedure TVideoListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  12178. begin
  12179. Case AName of
  12180. 'items' : SetLength(Fitems,ALength);
  12181. else
  12182. Inherited SetArrayLength(AName,ALength);
  12183. end;
  12184. end;
  12185. {$ENDIF VER2_6}
  12186. { --------------------------------------------------------------------
  12187. TVideoLiveStreamingDetails
  12188. --------------------------------------------------------------------}
  12189. Procedure TVideoLiveStreamingDetails.SetactiveLiveChatId(AIndex : Integer; const AValue : String);
  12190. begin
  12191. If (FactiveLiveChatId=AValue) then exit;
  12192. FactiveLiveChatId:=AValue;
  12193. MarkPropertyChanged(AIndex);
  12194. end;
  12195. Procedure TVideoLiveStreamingDetails.SetactualEndTime(AIndex : Integer; const AValue : TDatetime);
  12196. begin
  12197. If (FactualEndTime=AValue) then exit;
  12198. FactualEndTime:=AValue;
  12199. MarkPropertyChanged(AIndex);
  12200. end;
  12201. Procedure TVideoLiveStreamingDetails.SetactualStartTime(AIndex : Integer; const AValue : TDatetime);
  12202. begin
  12203. If (FactualStartTime=AValue) then exit;
  12204. FactualStartTime:=AValue;
  12205. MarkPropertyChanged(AIndex);
  12206. end;
  12207. Procedure TVideoLiveStreamingDetails.SetconcurrentViewers(AIndex : Integer; const AValue : String);
  12208. begin
  12209. If (FconcurrentViewers=AValue) then exit;
  12210. FconcurrentViewers:=AValue;
  12211. MarkPropertyChanged(AIndex);
  12212. end;
  12213. Procedure TVideoLiveStreamingDetails.SetscheduledEndTime(AIndex : Integer; const AValue : TDatetime);
  12214. begin
  12215. If (FscheduledEndTime=AValue) then exit;
  12216. FscheduledEndTime:=AValue;
  12217. MarkPropertyChanged(AIndex);
  12218. end;
  12219. Procedure TVideoLiveStreamingDetails.SetscheduledStartTime(AIndex : Integer; const AValue : TDatetime);
  12220. begin
  12221. If (FscheduledStartTime=AValue) then exit;
  12222. FscheduledStartTime:=AValue;
  12223. MarkPropertyChanged(AIndex);
  12224. end;
  12225. { --------------------------------------------------------------------
  12226. TVideoLocalization
  12227. --------------------------------------------------------------------}
  12228. Procedure TVideoLocalization.Setdescription(AIndex : Integer; const AValue : String);
  12229. begin
  12230. If (Fdescription=AValue) then exit;
  12231. Fdescription:=AValue;
  12232. MarkPropertyChanged(AIndex);
  12233. end;
  12234. Procedure TVideoLocalization.Settitle(AIndex : Integer; const AValue : String);
  12235. begin
  12236. If (Ftitle=AValue) then exit;
  12237. Ftitle:=AValue;
  12238. MarkPropertyChanged(AIndex);
  12239. end;
  12240. { --------------------------------------------------------------------
  12241. TVideoMonetizationDetails
  12242. --------------------------------------------------------------------}
  12243. Procedure TVideoMonetizationDetails.Setaccess(AIndex : Integer; const AValue : TAccessPolicy);
  12244. begin
  12245. If (Faccess=AValue) then exit;
  12246. Faccess:=AValue;
  12247. MarkPropertyChanged(AIndex);
  12248. end;
  12249. { --------------------------------------------------------------------
  12250. TVideoPlayer
  12251. --------------------------------------------------------------------}
  12252. Procedure TVideoPlayer.SetembedHtml(AIndex : Integer; const AValue : String);
  12253. begin
  12254. If (FembedHtml=AValue) then exit;
  12255. FembedHtml:=AValue;
  12256. MarkPropertyChanged(AIndex);
  12257. end;
  12258. { --------------------------------------------------------------------
  12259. TVideoProcessingDetails
  12260. --------------------------------------------------------------------}
  12261. Procedure TVideoProcessingDetails.SeteditorSuggestionsAvailability(AIndex : Integer; const AValue : String);
  12262. begin
  12263. If (FeditorSuggestionsAvailability=AValue) then exit;
  12264. FeditorSuggestionsAvailability:=AValue;
  12265. MarkPropertyChanged(AIndex);
  12266. end;
  12267. Procedure TVideoProcessingDetails.SetfileDetailsAvailability(AIndex : Integer; const AValue : String);
  12268. begin
  12269. If (FfileDetailsAvailability=AValue) then exit;
  12270. FfileDetailsAvailability:=AValue;
  12271. MarkPropertyChanged(AIndex);
  12272. end;
  12273. Procedure TVideoProcessingDetails.SetprocessingFailureReason(AIndex : Integer; const AValue : String);
  12274. begin
  12275. If (FprocessingFailureReason=AValue) then exit;
  12276. FprocessingFailureReason:=AValue;
  12277. MarkPropertyChanged(AIndex);
  12278. end;
  12279. Procedure TVideoProcessingDetails.SetprocessingIssuesAvailability(AIndex : Integer; const AValue : String);
  12280. begin
  12281. If (FprocessingIssuesAvailability=AValue) then exit;
  12282. FprocessingIssuesAvailability:=AValue;
  12283. MarkPropertyChanged(AIndex);
  12284. end;
  12285. Procedure TVideoProcessingDetails.SetprocessingProgress(AIndex : Integer; const AValue : TVideoProcessingDetailsProcessingProgress);
  12286. begin
  12287. If (FprocessingProgress=AValue) then exit;
  12288. FprocessingProgress:=AValue;
  12289. MarkPropertyChanged(AIndex);
  12290. end;
  12291. Procedure TVideoProcessingDetails.SetprocessingStatus(AIndex : Integer; const AValue : String);
  12292. begin
  12293. If (FprocessingStatus=AValue) then exit;
  12294. FprocessingStatus:=AValue;
  12295. MarkPropertyChanged(AIndex);
  12296. end;
  12297. Procedure TVideoProcessingDetails.SettagSuggestionsAvailability(AIndex : Integer; const AValue : String);
  12298. begin
  12299. If (FtagSuggestionsAvailability=AValue) then exit;
  12300. FtagSuggestionsAvailability:=AValue;
  12301. MarkPropertyChanged(AIndex);
  12302. end;
  12303. Procedure TVideoProcessingDetails.SetthumbnailsAvailability(AIndex : Integer; const AValue : String);
  12304. begin
  12305. If (FthumbnailsAvailability=AValue) then exit;
  12306. FthumbnailsAvailability:=AValue;
  12307. MarkPropertyChanged(AIndex);
  12308. end;
  12309. { --------------------------------------------------------------------
  12310. TVideoProcessingDetailsProcessingProgress
  12311. --------------------------------------------------------------------}
  12312. Procedure TVideoProcessingDetailsProcessingProgress.SetpartsProcessed(AIndex : Integer; const AValue : String);
  12313. begin
  12314. If (FpartsProcessed=AValue) then exit;
  12315. FpartsProcessed:=AValue;
  12316. MarkPropertyChanged(AIndex);
  12317. end;
  12318. Procedure TVideoProcessingDetailsProcessingProgress.SetpartsTotal(AIndex : Integer; const AValue : String);
  12319. begin
  12320. If (FpartsTotal=AValue) then exit;
  12321. FpartsTotal:=AValue;
  12322. MarkPropertyChanged(AIndex);
  12323. end;
  12324. Procedure TVideoProcessingDetailsProcessingProgress.SettimeLeftMs(AIndex : Integer; const AValue : String);
  12325. begin
  12326. If (FtimeLeftMs=AValue) then exit;
  12327. FtimeLeftMs:=AValue;
  12328. MarkPropertyChanged(AIndex);
  12329. end;
  12330. { --------------------------------------------------------------------
  12331. TVideoProjectDetails
  12332. --------------------------------------------------------------------}
  12333. Procedure TVideoProjectDetails.Settags(AIndex : Integer; const AValue : TStringArray);
  12334. begin
  12335. If (Ftags=AValue) then exit;
  12336. Ftags:=AValue;
  12337. MarkPropertyChanged(AIndex);
  12338. end;
  12339. //2.6.4. bug workaround
  12340. {$IFDEF VER2_6}
  12341. Procedure TVideoProjectDetails.SetArrayLength(Const AName : String; ALength : Longint);
  12342. begin
  12343. Case AName of
  12344. 'tags' : SetLength(Ftags,ALength);
  12345. else
  12346. Inherited SetArrayLength(AName,ALength);
  12347. end;
  12348. end;
  12349. {$ENDIF VER2_6}
  12350. { --------------------------------------------------------------------
  12351. TVideoRating
  12352. --------------------------------------------------------------------}
  12353. Procedure TVideoRating.Setrating(AIndex : Integer; const AValue : String);
  12354. begin
  12355. If (Frating=AValue) then exit;
  12356. Frating:=AValue;
  12357. MarkPropertyChanged(AIndex);
  12358. end;
  12359. Procedure TVideoRating.SetvideoId(AIndex : Integer; const AValue : String);
  12360. begin
  12361. If (FvideoId=AValue) then exit;
  12362. FvideoId:=AValue;
  12363. MarkPropertyChanged(AIndex);
  12364. end;
  12365. { --------------------------------------------------------------------
  12366. TVideoRecordingDetails
  12367. --------------------------------------------------------------------}
  12368. Procedure TVideoRecordingDetails.Setlocation(AIndex : Integer; const AValue : TGeoPoint);
  12369. begin
  12370. If (Flocation=AValue) then exit;
  12371. Flocation:=AValue;
  12372. MarkPropertyChanged(AIndex);
  12373. end;
  12374. Procedure TVideoRecordingDetails.SetlocationDescription(AIndex : Integer; const AValue : String);
  12375. begin
  12376. If (FlocationDescription=AValue) then exit;
  12377. FlocationDescription:=AValue;
  12378. MarkPropertyChanged(AIndex);
  12379. end;
  12380. Procedure TVideoRecordingDetails.SetrecordingDate(AIndex : Integer; const AValue : TDatetime);
  12381. begin
  12382. If (FrecordingDate=AValue) then exit;
  12383. FrecordingDate:=AValue;
  12384. MarkPropertyChanged(AIndex);
  12385. end;
  12386. { --------------------------------------------------------------------
  12387. TVideoSnippet
  12388. --------------------------------------------------------------------}
  12389. Procedure TVideoSnippet.SetcategoryId(AIndex : Integer; const AValue : String);
  12390. begin
  12391. If (FcategoryId=AValue) then exit;
  12392. FcategoryId:=AValue;
  12393. MarkPropertyChanged(AIndex);
  12394. end;
  12395. Procedure TVideoSnippet.SetchannelId(AIndex : Integer; const AValue : String);
  12396. begin
  12397. If (FchannelId=AValue) then exit;
  12398. FchannelId:=AValue;
  12399. MarkPropertyChanged(AIndex);
  12400. end;
  12401. Procedure TVideoSnippet.SetchannelTitle(AIndex : Integer; const AValue : String);
  12402. begin
  12403. If (FchannelTitle=AValue) then exit;
  12404. FchannelTitle:=AValue;
  12405. MarkPropertyChanged(AIndex);
  12406. end;
  12407. Procedure TVideoSnippet.SetdefaultAudioLanguage(AIndex : Integer; const AValue : String);
  12408. begin
  12409. If (FdefaultAudioLanguage=AValue) then exit;
  12410. FdefaultAudioLanguage:=AValue;
  12411. MarkPropertyChanged(AIndex);
  12412. end;
  12413. Procedure TVideoSnippet.SetdefaultLanguage(AIndex : Integer; const AValue : String);
  12414. begin
  12415. If (FdefaultLanguage=AValue) then exit;
  12416. FdefaultLanguage:=AValue;
  12417. MarkPropertyChanged(AIndex);
  12418. end;
  12419. Procedure TVideoSnippet.Setdescription(AIndex : Integer; const AValue : String);
  12420. begin
  12421. If (Fdescription=AValue) then exit;
  12422. Fdescription:=AValue;
  12423. MarkPropertyChanged(AIndex);
  12424. end;
  12425. Procedure TVideoSnippet.SetliveBroadcastContent(AIndex : Integer; const AValue : String);
  12426. begin
  12427. If (FliveBroadcastContent=AValue) then exit;
  12428. FliveBroadcastContent:=AValue;
  12429. MarkPropertyChanged(AIndex);
  12430. end;
  12431. Procedure TVideoSnippet.Setlocalized(AIndex : Integer; const AValue : TVideoLocalization);
  12432. begin
  12433. If (Flocalized=AValue) then exit;
  12434. Flocalized:=AValue;
  12435. MarkPropertyChanged(AIndex);
  12436. end;
  12437. Procedure TVideoSnippet.SetpublishedAt(AIndex : Integer; const AValue : TDatetime);
  12438. begin
  12439. If (FpublishedAt=AValue) then exit;
  12440. FpublishedAt:=AValue;
  12441. MarkPropertyChanged(AIndex);
  12442. end;
  12443. Procedure TVideoSnippet.Settags(AIndex : Integer; const AValue : TStringArray);
  12444. begin
  12445. If (Ftags=AValue) then exit;
  12446. Ftags:=AValue;
  12447. MarkPropertyChanged(AIndex);
  12448. end;
  12449. Procedure TVideoSnippet.Setthumbnails(AIndex : Integer; const AValue : TThumbnailDetails);
  12450. begin
  12451. If (Fthumbnails=AValue) then exit;
  12452. Fthumbnails:=AValue;
  12453. MarkPropertyChanged(AIndex);
  12454. end;
  12455. Procedure TVideoSnippet.Settitle(AIndex : Integer; const AValue : String);
  12456. begin
  12457. If (Ftitle=AValue) then exit;
  12458. Ftitle:=AValue;
  12459. MarkPropertyChanged(AIndex);
  12460. end;
  12461. //2.6.4. bug workaround
  12462. {$IFDEF VER2_6}
  12463. Procedure TVideoSnippet.SetArrayLength(Const AName : String; ALength : Longint);
  12464. begin
  12465. Case AName of
  12466. 'tags' : SetLength(Ftags,ALength);
  12467. else
  12468. Inherited SetArrayLength(AName,ALength);
  12469. end;
  12470. end;
  12471. {$ENDIF VER2_6}
  12472. { --------------------------------------------------------------------
  12473. TVideoStatistics
  12474. --------------------------------------------------------------------}
  12475. Procedure TVideoStatistics.SetcommentCount(AIndex : Integer; const AValue : String);
  12476. begin
  12477. If (FcommentCount=AValue) then exit;
  12478. FcommentCount:=AValue;
  12479. MarkPropertyChanged(AIndex);
  12480. end;
  12481. Procedure TVideoStatistics.SetdislikeCount(AIndex : Integer; const AValue : String);
  12482. begin
  12483. If (FdislikeCount=AValue) then exit;
  12484. FdislikeCount:=AValue;
  12485. MarkPropertyChanged(AIndex);
  12486. end;
  12487. Procedure TVideoStatistics.SetfavoriteCount(AIndex : Integer; const AValue : String);
  12488. begin
  12489. If (FfavoriteCount=AValue) then exit;
  12490. FfavoriteCount:=AValue;
  12491. MarkPropertyChanged(AIndex);
  12492. end;
  12493. Procedure TVideoStatistics.SetlikeCount(AIndex : Integer; const AValue : String);
  12494. begin
  12495. If (FlikeCount=AValue) then exit;
  12496. FlikeCount:=AValue;
  12497. MarkPropertyChanged(AIndex);
  12498. end;
  12499. Procedure TVideoStatistics.SetviewCount(AIndex : Integer; const AValue : String);
  12500. begin
  12501. If (FviewCount=AValue) then exit;
  12502. FviewCount:=AValue;
  12503. MarkPropertyChanged(AIndex);
  12504. end;
  12505. { --------------------------------------------------------------------
  12506. TVideoStatus
  12507. --------------------------------------------------------------------}
  12508. Procedure TVideoStatus.Setembeddable(AIndex : Integer; const AValue : boolean);
  12509. begin
  12510. If (Fembeddable=AValue) then exit;
  12511. Fembeddable:=AValue;
  12512. MarkPropertyChanged(AIndex);
  12513. end;
  12514. Procedure TVideoStatus.SetfailureReason(AIndex : Integer; const AValue : String);
  12515. begin
  12516. If (FfailureReason=AValue) then exit;
  12517. FfailureReason:=AValue;
  12518. MarkPropertyChanged(AIndex);
  12519. end;
  12520. Procedure TVideoStatus.Setlicense(AIndex : Integer; const AValue : String);
  12521. begin
  12522. If (Flicense=AValue) then exit;
  12523. Flicense:=AValue;
  12524. MarkPropertyChanged(AIndex);
  12525. end;
  12526. Procedure TVideoStatus.SetprivacyStatus(AIndex : Integer; const AValue : String);
  12527. begin
  12528. If (FprivacyStatus=AValue) then exit;
  12529. FprivacyStatus:=AValue;
  12530. MarkPropertyChanged(AIndex);
  12531. end;
  12532. Procedure TVideoStatus.SetpublicStatsViewable(AIndex : Integer; const AValue : boolean);
  12533. begin
  12534. If (FpublicStatsViewable=AValue) then exit;
  12535. FpublicStatsViewable:=AValue;
  12536. MarkPropertyChanged(AIndex);
  12537. end;
  12538. Procedure TVideoStatus.SetpublishAt(AIndex : Integer; const AValue : TDatetime);
  12539. begin
  12540. If (FpublishAt=AValue) then exit;
  12541. FpublishAt:=AValue;
  12542. MarkPropertyChanged(AIndex);
  12543. end;
  12544. Procedure TVideoStatus.SetrejectionReason(AIndex : Integer; const AValue : String);
  12545. begin
  12546. If (FrejectionReason=AValue) then exit;
  12547. FrejectionReason:=AValue;
  12548. MarkPropertyChanged(AIndex);
  12549. end;
  12550. Procedure TVideoStatus.SetuploadStatus(AIndex : Integer; const AValue : String);
  12551. begin
  12552. If (FuploadStatus=AValue) then exit;
  12553. FuploadStatus:=AValue;
  12554. MarkPropertyChanged(AIndex);
  12555. end;
  12556. { --------------------------------------------------------------------
  12557. TVideoSuggestions
  12558. --------------------------------------------------------------------}
  12559. Procedure TVideoSuggestions.SeteditorSuggestions(AIndex : Integer; const AValue : TStringArray);
  12560. begin
  12561. If (FeditorSuggestions=AValue) then exit;
  12562. FeditorSuggestions:=AValue;
  12563. MarkPropertyChanged(AIndex);
  12564. end;
  12565. Procedure TVideoSuggestions.SetprocessingErrors(AIndex : Integer; const AValue : TStringArray);
  12566. begin
  12567. If (FprocessingErrors=AValue) then exit;
  12568. FprocessingErrors:=AValue;
  12569. MarkPropertyChanged(AIndex);
  12570. end;
  12571. Procedure TVideoSuggestions.SetprocessingHints(AIndex : Integer; const AValue : TStringArray);
  12572. begin
  12573. If (FprocessingHints=AValue) then exit;
  12574. FprocessingHints:=AValue;
  12575. MarkPropertyChanged(AIndex);
  12576. end;
  12577. Procedure TVideoSuggestions.SetprocessingWarnings(AIndex : Integer; const AValue : TStringArray);
  12578. begin
  12579. If (FprocessingWarnings=AValue) then exit;
  12580. FprocessingWarnings:=AValue;
  12581. MarkPropertyChanged(AIndex);
  12582. end;
  12583. Procedure TVideoSuggestions.SettagSuggestions(AIndex : Integer; const AValue : TVideoSuggestionsTypetagSuggestionsArray);
  12584. begin
  12585. If (FtagSuggestions=AValue) then exit;
  12586. FtagSuggestions:=AValue;
  12587. MarkPropertyChanged(AIndex);
  12588. end;
  12589. //2.6.4. bug workaround
  12590. {$IFDEF VER2_6}
  12591. Procedure TVideoSuggestions.SetArrayLength(Const AName : String; ALength : Longint);
  12592. begin
  12593. Case AName of
  12594. 'editorsuggestions' : SetLength(FeditorSuggestions,ALength);
  12595. 'processingerrors' : SetLength(FprocessingErrors,ALength);
  12596. 'processinghints' : SetLength(FprocessingHints,ALength);
  12597. 'processingwarnings' : SetLength(FprocessingWarnings,ALength);
  12598. 'tagsuggestions' : SetLength(FtagSuggestions,ALength);
  12599. else
  12600. Inherited SetArrayLength(AName,ALength);
  12601. end;
  12602. end;
  12603. {$ENDIF VER2_6}
  12604. { --------------------------------------------------------------------
  12605. TVideoSuggestionsTagSuggestion
  12606. --------------------------------------------------------------------}
  12607. Procedure TVideoSuggestionsTagSuggestion.SetcategoryRestricts(AIndex : Integer; const AValue : TStringArray);
  12608. begin
  12609. If (FcategoryRestricts=AValue) then exit;
  12610. FcategoryRestricts:=AValue;
  12611. MarkPropertyChanged(AIndex);
  12612. end;
  12613. Procedure TVideoSuggestionsTagSuggestion.Settag(AIndex : Integer; const AValue : String);
  12614. begin
  12615. If (Ftag=AValue) then exit;
  12616. Ftag:=AValue;
  12617. MarkPropertyChanged(AIndex);
  12618. end;
  12619. //2.6.4. bug workaround
  12620. {$IFDEF VER2_6}
  12621. Procedure TVideoSuggestionsTagSuggestion.SetArrayLength(Const AName : String; ALength : Longint);
  12622. begin
  12623. Case AName of
  12624. 'categoryrestricts' : SetLength(FcategoryRestricts,ALength);
  12625. else
  12626. Inherited SetArrayLength(AName,ALength);
  12627. end;
  12628. end;
  12629. {$ENDIF VER2_6}
  12630. { --------------------------------------------------------------------
  12631. TVideoTopicDetails
  12632. --------------------------------------------------------------------}
  12633. Procedure TVideoTopicDetails.SetrelevantTopicIds(AIndex : Integer; const AValue : TStringArray);
  12634. begin
  12635. If (FrelevantTopicIds=AValue) then exit;
  12636. FrelevantTopicIds:=AValue;
  12637. MarkPropertyChanged(AIndex);
  12638. end;
  12639. Procedure TVideoTopicDetails.SettopicIds(AIndex : Integer; const AValue : TStringArray);
  12640. begin
  12641. If (FtopicIds=AValue) then exit;
  12642. FtopicIds:=AValue;
  12643. MarkPropertyChanged(AIndex);
  12644. end;
  12645. //2.6.4. bug workaround
  12646. {$IFDEF VER2_6}
  12647. Procedure TVideoTopicDetails.SetArrayLength(Const AName : String; ALength : Longint);
  12648. begin
  12649. Case AName of
  12650. 'relevanttopicids' : SetLength(FrelevantTopicIds,ALength);
  12651. 'topicids' : SetLength(FtopicIds,ALength);
  12652. else
  12653. Inherited SetArrayLength(AName,ALength);
  12654. end;
  12655. end;
  12656. {$ENDIF VER2_6}
  12657. { --------------------------------------------------------------------
  12658. TWatchSettings
  12659. --------------------------------------------------------------------}
  12660. Procedure TWatchSettings.SetbackgroundColor(AIndex : Integer; const AValue : String);
  12661. begin
  12662. If (FbackgroundColor=AValue) then exit;
  12663. FbackgroundColor:=AValue;
  12664. MarkPropertyChanged(AIndex);
  12665. end;
  12666. Procedure TWatchSettings.SetfeaturedPlaylistId(AIndex : Integer; const AValue : String);
  12667. begin
  12668. If (FfeaturedPlaylistId=AValue) then exit;
  12669. FfeaturedPlaylistId:=AValue;
  12670. MarkPropertyChanged(AIndex);
  12671. end;
  12672. Procedure TWatchSettings.SettextColor(AIndex : Integer; const AValue : String);
  12673. begin
  12674. If (FtextColor=AValue) then exit;
  12675. FtextColor:=AValue;
  12676. MarkPropertyChanged(AIndex);
  12677. end;
  12678. { --------------------------------------------------------------------
  12679. TActivitiesResource
  12680. --------------------------------------------------------------------}
  12681. Class Function TActivitiesResource.ResourceName : String;
  12682. begin
  12683. Result:='activities';
  12684. end;
  12685. Class Function TActivitiesResource.DefaultAPI : TGoogleAPIClass;
  12686. begin
  12687. Result:=TyoutubeAPI;
  12688. end;
  12689. Function TActivitiesResource.Insert(aActivity : TActivity; AQuery : string = '') : TActivity;
  12690. Const
  12691. _HTTPMethod = 'POST';
  12692. _Path = 'activities';
  12693. _Methodid = 'youtube.activities.insert';
  12694. begin
  12695. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aActivity,TActivity) as TActivity;
  12696. end;
  12697. Function TActivitiesResource.Insert(aActivity : TActivity; AQuery : TActivitiesinsertOptions) : TActivity;
  12698. Var
  12699. _Q : String;
  12700. begin
  12701. _Q:='';
  12702. AddToQuery(_Q,'part',AQuery.part);
  12703. Result:=Insert(aActivity,_Q);
  12704. end;
  12705. Function TActivitiesResource.List(AQuery : string = '') : TActivityListResponse;
  12706. Const
  12707. _HTTPMethod = 'GET';
  12708. _Path = 'activities';
  12709. _Methodid = 'youtube.activities.list';
  12710. begin
  12711. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TActivityListResponse) as TActivityListResponse;
  12712. end;
  12713. Function TActivitiesResource.List(AQuery : TActivitieslistOptions) : TActivityListResponse;
  12714. Var
  12715. _Q : String;
  12716. begin
  12717. _Q:='';
  12718. AddToQuery(_Q,'channelId',AQuery.channelId);
  12719. AddToQuery(_Q,'home',AQuery.home);
  12720. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  12721. AddToQuery(_Q,'mine',AQuery.mine);
  12722. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  12723. AddToQuery(_Q,'part',AQuery.part);
  12724. AddToQuery(_Q,'publishedAfter',AQuery.publishedAfter);
  12725. AddToQuery(_Q,'publishedBefore',AQuery.publishedBefore);
  12726. AddToQuery(_Q,'regionCode',AQuery.regionCode);
  12727. Result:=List(_Q);
  12728. end;
  12729. { --------------------------------------------------------------------
  12730. TCaptionsResource
  12731. --------------------------------------------------------------------}
  12732. Class Function TCaptionsResource.ResourceName : String;
  12733. begin
  12734. Result:='captions';
  12735. end;
  12736. Class Function TCaptionsResource.DefaultAPI : TGoogleAPIClass;
  12737. begin
  12738. Result:=TyoutubeAPI;
  12739. end;
  12740. Procedure TCaptionsResource.Delete(AQuery : string = '');
  12741. Const
  12742. _HTTPMethod = 'DELETE';
  12743. _Path = 'captions';
  12744. _Methodid = 'youtube.captions.delete';
  12745. begin
  12746. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  12747. end;
  12748. Procedure TCaptionsResource.Delete(AQuery : TCaptionsdeleteOptions);
  12749. Var
  12750. _Q : String;
  12751. begin
  12752. _Q:='';
  12753. AddToQuery(_Q,'id',AQuery.id);
  12754. AddToQuery(_Q,'onBehalfOf',AQuery.onBehalfOf);
  12755. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12756. Delete(_Q);
  12757. end;
  12758. Procedure TCaptionsResource.Download(id: string; AQuery : string = '');
  12759. Const
  12760. _HTTPMethod = 'GET';
  12761. _Path = 'captions/{id}';
  12762. _Methodid = 'youtube.captions.download';
  12763. Var
  12764. _P : String;
  12765. begin
  12766. _P:=SubstitutePath(_Path,['id',id]);
  12767. ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
  12768. end;
  12769. Procedure TCaptionsResource.Download(id: string; AQuery : TCaptionsdownloadOptions);
  12770. Var
  12771. _Q : String;
  12772. begin
  12773. _Q:='';
  12774. AddToQuery(_Q,'onBehalfOf',AQuery.onBehalfOf);
  12775. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12776. AddToQuery(_Q,'tfmt',AQuery.tfmt);
  12777. AddToQuery(_Q,'tlang',AQuery.tlang);
  12778. Download(id,_Q);
  12779. end;
  12780. Function TCaptionsResource.Insert(aCaption : TCaption; AQuery : string = '') : TCaption;
  12781. Const
  12782. _HTTPMethod = 'POST';
  12783. _Path = 'captions';
  12784. _Methodid = 'youtube.captions.insert';
  12785. begin
  12786. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aCaption,TCaption) as TCaption;
  12787. end;
  12788. Function TCaptionsResource.Insert(aCaption : TCaption; AQuery : TCaptionsinsertOptions) : TCaption;
  12789. Var
  12790. _Q : String;
  12791. begin
  12792. _Q:='';
  12793. AddToQuery(_Q,'onBehalfOf',AQuery.onBehalfOf);
  12794. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12795. AddToQuery(_Q,'part',AQuery.part);
  12796. AddToQuery(_Q,'sync',AQuery.sync);
  12797. Result:=Insert(aCaption,_Q);
  12798. end;
  12799. Function TCaptionsResource.List(AQuery : string = '') : TCaptionListResponse;
  12800. Const
  12801. _HTTPMethod = 'GET';
  12802. _Path = 'captions';
  12803. _Methodid = 'youtube.captions.list';
  12804. begin
  12805. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TCaptionListResponse) as TCaptionListResponse;
  12806. end;
  12807. Function TCaptionsResource.List(AQuery : TCaptionslistOptions) : TCaptionListResponse;
  12808. Var
  12809. _Q : String;
  12810. begin
  12811. _Q:='';
  12812. AddToQuery(_Q,'id',AQuery.id);
  12813. AddToQuery(_Q,'onBehalfOf',AQuery.onBehalfOf);
  12814. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12815. AddToQuery(_Q,'part',AQuery.part);
  12816. AddToQuery(_Q,'videoId',AQuery.videoId);
  12817. Result:=List(_Q);
  12818. end;
  12819. Function TCaptionsResource.Update(aCaption : TCaption; AQuery : string = '') : TCaption;
  12820. Const
  12821. _HTTPMethod = 'PUT';
  12822. _Path = 'captions';
  12823. _Methodid = 'youtube.captions.update';
  12824. begin
  12825. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aCaption,TCaption) as TCaption;
  12826. end;
  12827. Function TCaptionsResource.Update(aCaption : TCaption; AQuery : TCaptionsupdateOptions) : TCaption;
  12828. Var
  12829. _Q : String;
  12830. begin
  12831. _Q:='';
  12832. AddToQuery(_Q,'onBehalfOf',AQuery.onBehalfOf);
  12833. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12834. AddToQuery(_Q,'part',AQuery.part);
  12835. AddToQuery(_Q,'sync',AQuery.sync);
  12836. Result:=Update(aCaption,_Q);
  12837. end;
  12838. { --------------------------------------------------------------------
  12839. TChannelBannersResource
  12840. --------------------------------------------------------------------}
  12841. Class Function TChannelBannersResource.ResourceName : String;
  12842. begin
  12843. Result:='channelBanners';
  12844. end;
  12845. Class Function TChannelBannersResource.DefaultAPI : TGoogleAPIClass;
  12846. begin
  12847. Result:=TyoutubeAPI;
  12848. end;
  12849. Function TChannelBannersResource.Insert(aChannelBannerResource : TChannelBannerResource; AQuery : string = '') : TChannelBannerResource;
  12850. Const
  12851. _HTTPMethod = 'POST';
  12852. _Path = 'channelBanners/insert';
  12853. _Methodid = 'youtube.channelBanners.insert';
  12854. begin
  12855. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aChannelBannerResource,TChannelBannerResource) as TChannelBannerResource;
  12856. end;
  12857. Function TChannelBannersResource.Insert(aChannelBannerResource : TChannelBannerResource; AQuery : TChannelBannersinsertOptions) : TChannelBannerResource;
  12858. Var
  12859. _Q : String;
  12860. begin
  12861. _Q:='';
  12862. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12863. Result:=Insert(aChannelBannerResource,_Q);
  12864. end;
  12865. { --------------------------------------------------------------------
  12866. TChannelSectionsResource
  12867. --------------------------------------------------------------------}
  12868. Class Function TChannelSectionsResource.ResourceName : String;
  12869. begin
  12870. Result:='channelSections';
  12871. end;
  12872. Class Function TChannelSectionsResource.DefaultAPI : TGoogleAPIClass;
  12873. begin
  12874. Result:=TyoutubeAPI;
  12875. end;
  12876. Procedure TChannelSectionsResource.Delete(AQuery : string = '');
  12877. Const
  12878. _HTTPMethod = 'DELETE';
  12879. _Path = 'channelSections';
  12880. _Methodid = 'youtube.channelSections.delete';
  12881. begin
  12882. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  12883. end;
  12884. Procedure TChannelSectionsResource.Delete(AQuery : TChannelSectionsdeleteOptions);
  12885. Var
  12886. _Q : String;
  12887. begin
  12888. _Q:='';
  12889. AddToQuery(_Q,'id',AQuery.id);
  12890. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12891. Delete(_Q);
  12892. end;
  12893. Function TChannelSectionsResource.Insert(aChannelSection : TChannelSection; AQuery : string = '') : TChannelSection;
  12894. Const
  12895. _HTTPMethod = 'POST';
  12896. _Path = 'channelSections';
  12897. _Methodid = 'youtube.channelSections.insert';
  12898. begin
  12899. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aChannelSection,TChannelSection) as TChannelSection;
  12900. end;
  12901. Function TChannelSectionsResource.Insert(aChannelSection : TChannelSection; AQuery : TChannelSectionsinsertOptions) : TChannelSection;
  12902. Var
  12903. _Q : String;
  12904. begin
  12905. _Q:='';
  12906. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12907. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  12908. AddToQuery(_Q,'part',AQuery.part);
  12909. Result:=Insert(aChannelSection,_Q);
  12910. end;
  12911. Function TChannelSectionsResource.List(AQuery : string = '') : TChannelSectionListResponse;
  12912. Const
  12913. _HTTPMethod = 'GET';
  12914. _Path = 'channelSections';
  12915. _Methodid = 'youtube.channelSections.list';
  12916. begin
  12917. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TChannelSectionListResponse) as TChannelSectionListResponse;
  12918. end;
  12919. Function TChannelSectionsResource.List(AQuery : TChannelSectionslistOptions) : TChannelSectionListResponse;
  12920. Var
  12921. _Q : String;
  12922. begin
  12923. _Q:='';
  12924. AddToQuery(_Q,'channelId',AQuery.channelId);
  12925. AddToQuery(_Q,'hl',AQuery.hl);
  12926. AddToQuery(_Q,'id',AQuery.id);
  12927. AddToQuery(_Q,'mine',AQuery.mine);
  12928. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12929. AddToQuery(_Q,'part',AQuery.part);
  12930. Result:=List(_Q);
  12931. end;
  12932. Function TChannelSectionsResource.Update(aChannelSection : TChannelSection; AQuery : string = '') : TChannelSection;
  12933. Const
  12934. _HTTPMethod = 'PUT';
  12935. _Path = 'channelSections';
  12936. _Methodid = 'youtube.channelSections.update';
  12937. begin
  12938. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aChannelSection,TChannelSection) as TChannelSection;
  12939. end;
  12940. Function TChannelSectionsResource.Update(aChannelSection : TChannelSection; AQuery : TChannelSectionsupdateOptions) : TChannelSection;
  12941. Var
  12942. _Q : String;
  12943. begin
  12944. _Q:='';
  12945. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12946. AddToQuery(_Q,'part',AQuery.part);
  12947. Result:=Update(aChannelSection,_Q);
  12948. end;
  12949. { --------------------------------------------------------------------
  12950. TChannelsResource
  12951. --------------------------------------------------------------------}
  12952. Class Function TChannelsResource.ResourceName : String;
  12953. begin
  12954. Result:='channels';
  12955. end;
  12956. Class Function TChannelsResource.DefaultAPI : TGoogleAPIClass;
  12957. begin
  12958. Result:=TyoutubeAPI;
  12959. end;
  12960. Function TChannelsResource.List(AQuery : string = '') : TChannelListResponse;
  12961. Const
  12962. _HTTPMethod = 'GET';
  12963. _Path = 'channels';
  12964. _Methodid = 'youtube.channels.list';
  12965. begin
  12966. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TChannelListResponse) as TChannelListResponse;
  12967. end;
  12968. Function TChannelsResource.List(AQuery : TChannelslistOptions) : TChannelListResponse;
  12969. Var
  12970. _Q : String;
  12971. begin
  12972. _Q:='';
  12973. AddToQuery(_Q,'categoryId',AQuery.categoryId);
  12974. AddToQuery(_Q,'forUsername',AQuery.forUsername);
  12975. AddToQuery(_Q,'hl',AQuery.hl);
  12976. AddToQuery(_Q,'id',AQuery.id);
  12977. AddToQuery(_Q,'managedByMe',AQuery.managedByMe);
  12978. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  12979. AddToQuery(_Q,'mine',AQuery.mine);
  12980. AddToQuery(_Q,'mySubscribers',AQuery.mySubscribers);
  12981. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  12982. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  12983. AddToQuery(_Q,'part',AQuery.part);
  12984. Result:=List(_Q);
  12985. end;
  12986. Function TChannelsResource.Update(aChannel : TChannel; AQuery : string = '') : TChannel;
  12987. Const
  12988. _HTTPMethod = 'PUT';
  12989. _Path = 'channels';
  12990. _Methodid = 'youtube.channels.update';
  12991. begin
  12992. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aChannel,TChannel) as TChannel;
  12993. end;
  12994. Function TChannelsResource.Update(aChannel : TChannel; AQuery : TChannelsupdateOptions) : TChannel;
  12995. Var
  12996. _Q : String;
  12997. begin
  12998. _Q:='';
  12999. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13000. AddToQuery(_Q,'part',AQuery.part);
  13001. Result:=Update(aChannel,_Q);
  13002. end;
  13003. { --------------------------------------------------------------------
  13004. TCommentThreadsResource
  13005. --------------------------------------------------------------------}
  13006. Class Function TCommentThreadsResource.ResourceName : String;
  13007. begin
  13008. Result:='commentThreads';
  13009. end;
  13010. Class Function TCommentThreadsResource.DefaultAPI : TGoogleAPIClass;
  13011. begin
  13012. Result:=TyoutubeAPI;
  13013. end;
  13014. Function TCommentThreadsResource.Insert(aCommentThread : TCommentThread; AQuery : string = '') : TCommentThread;
  13015. Const
  13016. _HTTPMethod = 'POST';
  13017. _Path = 'commentThreads';
  13018. _Methodid = 'youtube.commentThreads.insert';
  13019. begin
  13020. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aCommentThread,TCommentThread) as TCommentThread;
  13021. end;
  13022. Function TCommentThreadsResource.Insert(aCommentThread : TCommentThread; AQuery : TCommentThreadsinsertOptions) : TCommentThread;
  13023. Var
  13024. _Q : String;
  13025. begin
  13026. _Q:='';
  13027. AddToQuery(_Q,'part',AQuery.part);
  13028. Result:=Insert(aCommentThread,_Q);
  13029. end;
  13030. Function TCommentThreadsResource.List(AQuery : string = '') : TCommentThreadListResponse;
  13031. Const
  13032. _HTTPMethod = 'GET';
  13033. _Path = 'commentThreads';
  13034. _Methodid = 'youtube.commentThreads.list';
  13035. begin
  13036. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TCommentThreadListResponse) as TCommentThreadListResponse;
  13037. end;
  13038. Function TCommentThreadsResource.List(AQuery : TCommentThreadslistOptions) : TCommentThreadListResponse;
  13039. Var
  13040. _Q : String;
  13041. begin
  13042. _Q:='';
  13043. AddToQuery(_Q,'allThreadsRelatedToChannelId',AQuery.allThreadsRelatedToChannelId);
  13044. AddToQuery(_Q,'channelId',AQuery.channelId);
  13045. AddToQuery(_Q,'id',AQuery.id);
  13046. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13047. AddToQuery(_Q,'moderationStatus',AQuery.moderationStatus);
  13048. AddToQuery(_Q,'order',AQuery.order);
  13049. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13050. AddToQuery(_Q,'part',AQuery.part);
  13051. AddToQuery(_Q,'searchTerms',AQuery.searchTerms);
  13052. AddToQuery(_Q,'textFormat',AQuery.textFormat);
  13053. AddToQuery(_Q,'videoId',AQuery.videoId);
  13054. Result:=List(_Q);
  13055. end;
  13056. Function TCommentThreadsResource.Update(aCommentThread : TCommentThread; AQuery : string = '') : TCommentThread;
  13057. Const
  13058. _HTTPMethod = 'PUT';
  13059. _Path = 'commentThreads';
  13060. _Methodid = 'youtube.commentThreads.update';
  13061. begin
  13062. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aCommentThread,TCommentThread) as TCommentThread;
  13063. end;
  13064. Function TCommentThreadsResource.Update(aCommentThread : TCommentThread; AQuery : TCommentThreadsupdateOptions) : TCommentThread;
  13065. Var
  13066. _Q : String;
  13067. begin
  13068. _Q:='';
  13069. AddToQuery(_Q,'part',AQuery.part);
  13070. Result:=Update(aCommentThread,_Q);
  13071. end;
  13072. { --------------------------------------------------------------------
  13073. TCommentsResource
  13074. --------------------------------------------------------------------}
  13075. Class Function TCommentsResource.ResourceName : String;
  13076. begin
  13077. Result:='comments';
  13078. end;
  13079. Class Function TCommentsResource.DefaultAPI : TGoogleAPIClass;
  13080. begin
  13081. Result:=TyoutubeAPI;
  13082. end;
  13083. Procedure TCommentsResource.Delete(AQuery : string = '');
  13084. Const
  13085. _HTTPMethod = 'DELETE';
  13086. _Path = 'comments';
  13087. _Methodid = 'youtube.comments.delete';
  13088. begin
  13089. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13090. end;
  13091. Procedure TCommentsResource.Delete(AQuery : TCommentsdeleteOptions);
  13092. Var
  13093. _Q : String;
  13094. begin
  13095. _Q:='';
  13096. AddToQuery(_Q,'id',AQuery.id);
  13097. Delete(_Q);
  13098. end;
  13099. Function TCommentsResource.Insert(aComment : TComment; AQuery : string = '') : TComment;
  13100. Const
  13101. _HTTPMethod = 'POST';
  13102. _Path = 'comments';
  13103. _Methodid = 'youtube.comments.insert';
  13104. begin
  13105. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aComment,TComment) as TComment;
  13106. end;
  13107. Function TCommentsResource.Insert(aComment : TComment; AQuery : TCommentsinsertOptions) : TComment;
  13108. Var
  13109. _Q : String;
  13110. begin
  13111. _Q:='';
  13112. AddToQuery(_Q,'part',AQuery.part);
  13113. Result:=Insert(aComment,_Q);
  13114. end;
  13115. Function TCommentsResource.List(AQuery : string = '') : TCommentListResponse;
  13116. Const
  13117. _HTTPMethod = 'GET';
  13118. _Path = 'comments';
  13119. _Methodid = 'youtube.comments.list';
  13120. begin
  13121. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TCommentListResponse) as TCommentListResponse;
  13122. end;
  13123. Function TCommentsResource.List(AQuery : TCommentslistOptions) : TCommentListResponse;
  13124. Var
  13125. _Q : String;
  13126. begin
  13127. _Q:='';
  13128. AddToQuery(_Q,'id',AQuery.id);
  13129. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13130. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13131. AddToQuery(_Q,'parentId',AQuery.parentId);
  13132. AddToQuery(_Q,'part',AQuery.part);
  13133. AddToQuery(_Q,'textFormat',AQuery.textFormat);
  13134. Result:=List(_Q);
  13135. end;
  13136. Procedure TCommentsResource.MarkAsSpam(AQuery : string = '');
  13137. Const
  13138. _HTTPMethod = 'POST';
  13139. _Path = 'comments/markAsSpam';
  13140. _Methodid = 'youtube.comments.markAsSpam';
  13141. begin
  13142. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13143. end;
  13144. Procedure TCommentsResource.MarkAsSpam(AQuery : TCommentsmarkAsSpamOptions);
  13145. Var
  13146. _Q : String;
  13147. begin
  13148. _Q:='';
  13149. AddToQuery(_Q,'id',AQuery.id);
  13150. MarkAsSpam(_Q);
  13151. end;
  13152. Procedure TCommentsResource.SetModerationStatus(AQuery : string = '');
  13153. Const
  13154. _HTTPMethod = 'POST';
  13155. _Path = 'comments/setModerationStatus';
  13156. _Methodid = 'youtube.comments.setModerationStatus';
  13157. begin
  13158. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13159. end;
  13160. Procedure TCommentsResource.SetModerationStatus(AQuery : TCommentssetModerationStatusOptions);
  13161. Var
  13162. _Q : String;
  13163. begin
  13164. _Q:='';
  13165. AddToQuery(_Q,'banAuthor',AQuery.banAuthor);
  13166. AddToQuery(_Q,'id',AQuery.id);
  13167. AddToQuery(_Q,'moderationStatus',AQuery.moderationStatus);
  13168. SetModerationStatus(_Q);
  13169. end;
  13170. Function TCommentsResource.Update(aComment : TComment; AQuery : string = '') : TComment;
  13171. Const
  13172. _HTTPMethod = 'PUT';
  13173. _Path = 'comments';
  13174. _Methodid = 'youtube.comments.update';
  13175. begin
  13176. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aComment,TComment) as TComment;
  13177. end;
  13178. Function TCommentsResource.Update(aComment : TComment; AQuery : TCommentsupdateOptions) : TComment;
  13179. Var
  13180. _Q : String;
  13181. begin
  13182. _Q:='';
  13183. AddToQuery(_Q,'part',AQuery.part);
  13184. Result:=Update(aComment,_Q);
  13185. end;
  13186. { --------------------------------------------------------------------
  13187. TFanFundingEventsResource
  13188. --------------------------------------------------------------------}
  13189. Class Function TFanFundingEventsResource.ResourceName : String;
  13190. begin
  13191. Result:='fanFundingEvents';
  13192. end;
  13193. Class Function TFanFundingEventsResource.DefaultAPI : TGoogleAPIClass;
  13194. begin
  13195. Result:=TyoutubeAPI;
  13196. end;
  13197. Function TFanFundingEventsResource.List(AQuery : string = '') : TFanFundingEventListResponse;
  13198. Const
  13199. _HTTPMethod = 'GET';
  13200. _Path = 'fanFundingEvents';
  13201. _Methodid = 'youtube.fanFundingEvents.list';
  13202. begin
  13203. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TFanFundingEventListResponse) as TFanFundingEventListResponse;
  13204. end;
  13205. Function TFanFundingEventsResource.List(AQuery : TFanFundingEventslistOptions) : TFanFundingEventListResponse;
  13206. Var
  13207. _Q : String;
  13208. begin
  13209. _Q:='';
  13210. AddToQuery(_Q,'hl',AQuery.hl);
  13211. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13212. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13213. AddToQuery(_Q,'part',AQuery.part);
  13214. Result:=List(_Q);
  13215. end;
  13216. { --------------------------------------------------------------------
  13217. TGuideCategoriesResource
  13218. --------------------------------------------------------------------}
  13219. Class Function TGuideCategoriesResource.ResourceName : String;
  13220. begin
  13221. Result:='guideCategories';
  13222. end;
  13223. Class Function TGuideCategoriesResource.DefaultAPI : TGoogleAPIClass;
  13224. begin
  13225. Result:=TyoutubeAPI;
  13226. end;
  13227. Function TGuideCategoriesResource.List(AQuery : string = '') : TGuideCategoryListResponse;
  13228. Const
  13229. _HTTPMethod = 'GET';
  13230. _Path = 'guideCategories';
  13231. _Methodid = 'youtube.guideCategories.list';
  13232. begin
  13233. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TGuideCategoryListResponse) as TGuideCategoryListResponse;
  13234. end;
  13235. Function TGuideCategoriesResource.List(AQuery : TGuideCategorieslistOptions) : TGuideCategoryListResponse;
  13236. Var
  13237. _Q : String;
  13238. begin
  13239. _Q:='';
  13240. AddToQuery(_Q,'hl',AQuery.hl);
  13241. AddToQuery(_Q,'id',AQuery.id);
  13242. AddToQuery(_Q,'part',AQuery.part);
  13243. AddToQuery(_Q,'regionCode',AQuery.regionCode);
  13244. Result:=List(_Q);
  13245. end;
  13246. { --------------------------------------------------------------------
  13247. TI18nLanguagesResource
  13248. --------------------------------------------------------------------}
  13249. Class Function TI18nLanguagesResource.ResourceName : String;
  13250. begin
  13251. Result:='i18nLanguages';
  13252. end;
  13253. Class Function TI18nLanguagesResource.DefaultAPI : TGoogleAPIClass;
  13254. begin
  13255. Result:=TyoutubeAPI;
  13256. end;
  13257. Function TI18nLanguagesResource.List(AQuery : string = '') : TI18nLanguageListResponse;
  13258. Const
  13259. _HTTPMethod = 'GET';
  13260. _Path = 'i18nLanguages';
  13261. _Methodid = 'youtube.i18nLanguages.list';
  13262. begin
  13263. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TI18nLanguageListResponse) as TI18nLanguageListResponse;
  13264. end;
  13265. Function TI18nLanguagesResource.List(AQuery : TI18nLanguageslistOptions) : TI18nLanguageListResponse;
  13266. Var
  13267. _Q : String;
  13268. begin
  13269. _Q:='';
  13270. AddToQuery(_Q,'hl',AQuery.hl);
  13271. AddToQuery(_Q,'part',AQuery.part);
  13272. Result:=List(_Q);
  13273. end;
  13274. { --------------------------------------------------------------------
  13275. TI18nRegionsResource
  13276. --------------------------------------------------------------------}
  13277. Class Function TI18nRegionsResource.ResourceName : String;
  13278. begin
  13279. Result:='i18nRegions';
  13280. end;
  13281. Class Function TI18nRegionsResource.DefaultAPI : TGoogleAPIClass;
  13282. begin
  13283. Result:=TyoutubeAPI;
  13284. end;
  13285. Function TI18nRegionsResource.List(AQuery : string = '') : TI18nRegionListResponse;
  13286. Const
  13287. _HTTPMethod = 'GET';
  13288. _Path = 'i18nRegions';
  13289. _Methodid = 'youtube.i18nRegions.list';
  13290. begin
  13291. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TI18nRegionListResponse) as TI18nRegionListResponse;
  13292. end;
  13293. Function TI18nRegionsResource.List(AQuery : TI18nRegionslistOptions) : TI18nRegionListResponse;
  13294. Var
  13295. _Q : String;
  13296. begin
  13297. _Q:='';
  13298. AddToQuery(_Q,'hl',AQuery.hl);
  13299. AddToQuery(_Q,'part',AQuery.part);
  13300. Result:=List(_Q);
  13301. end;
  13302. { --------------------------------------------------------------------
  13303. TLiveBroadcastsResource
  13304. --------------------------------------------------------------------}
  13305. Class Function TLiveBroadcastsResource.ResourceName : String;
  13306. begin
  13307. Result:='liveBroadcasts';
  13308. end;
  13309. Class Function TLiveBroadcastsResource.DefaultAPI : TGoogleAPIClass;
  13310. begin
  13311. Result:=TyoutubeAPI;
  13312. end;
  13313. Function TLiveBroadcastsResource.Bind(AQuery : string = '') : TLiveBroadcast;
  13314. Const
  13315. _HTTPMethod = 'POST';
  13316. _Path = 'liveBroadcasts/bind';
  13317. _Methodid = 'youtube.liveBroadcasts.bind';
  13318. begin
  13319. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TLiveBroadcast) as TLiveBroadcast;
  13320. end;
  13321. Function TLiveBroadcastsResource.Bind(AQuery : TLiveBroadcastsbindOptions) : TLiveBroadcast;
  13322. Var
  13323. _Q : String;
  13324. begin
  13325. _Q:='';
  13326. AddToQuery(_Q,'id',AQuery.id);
  13327. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13328. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13329. AddToQuery(_Q,'part',AQuery.part);
  13330. AddToQuery(_Q,'streamId',AQuery.streamId);
  13331. Result:=Bind(_Q);
  13332. end;
  13333. Function TLiveBroadcastsResource.Control(AQuery : string = '') : TLiveBroadcast;
  13334. Const
  13335. _HTTPMethod = 'POST';
  13336. _Path = 'liveBroadcasts/control';
  13337. _Methodid = 'youtube.liveBroadcasts.control';
  13338. begin
  13339. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TLiveBroadcast) as TLiveBroadcast;
  13340. end;
  13341. Function TLiveBroadcastsResource.Control(AQuery : TLiveBroadcastscontrolOptions) : TLiveBroadcast;
  13342. Var
  13343. _Q : String;
  13344. begin
  13345. _Q:='';
  13346. AddToQuery(_Q,'displaySlate',AQuery.displaySlate);
  13347. AddToQuery(_Q,'id',AQuery.id);
  13348. AddToQuery(_Q,'offsetTimeMs',AQuery.offsetTimeMs);
  13349. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13350. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13351. AddToQuery(_Q,'part',AQuery.part);
  13352. AddToQuery(_Q,'walltime',AQuery.walltime);
  13353. Result:=Control(_Q);
  13354. end;
  13355. Procedure TLiveBroadcastsResource.Delete(AQuery : string = '');
  13356. Const
  13357. _HTTPMethod = 'DELETE';
  13358. _Path = 'liveBroadcasts';
  13359. _Methodid = 'youtube.liveBroadcasts.delete';
  13360. begin
  13361. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13362. end;
  13363. Procedure TLiveBroadcastsResource.Delete(AQuery : TLiveBroadcastsdeleteOptions);
  13364. Var
  13365. _Q : String;
  13366. begin
  13367. _Q:='';
  13368. AddToQuery(_Q,'id',AQuery.id);
  13369. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13370. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13371. Delete(_Q);
  13372. end;
  13373. Function TLiveBroadcastsResource.Insert(aLiveBroadcast : TLiveBroadcast; AQuery : string = '') : TLiveBroadcast;
  13374. Const
  13375. _HTTPMethod = 'POST';
  13376. _Path = 'liveBroadcasts';
  13377. _Methodid = 'youtube.liveBroadcasts.insert';
  13378. begin
  13379. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aLiveBroadcast,TLiveBroadcast) as TLiveBroadcast;
  13380. end;
  13381. Function TLiveBroadcastsResource.Insert(aLiveBroadcast : TLiveBroadcast; AQuery : TLiveBroadcastsinsertOptions) : TLiveBroadcast;
  13382. Var
  13383. _Q : String;
  13384. begin
  13385. _Q:='';
  13386. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13387. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13388. AddToQuery(_Q,'part',AQuery.part);
  13389. Result:=Insert(aLiveBroadcast,_Q);
  13390. end;
  13391. Function TLiveBroadcastsResource.List(AQuery : string = '') : TLiveBroadcastListResponse;
  13392. Const
  13393. _HTTPMethod = 'GET';
  13394. _Path = 'liveBroadcasts';
  13395. _Methodid = 'youtube.liveBroadcasts.list';
  13396. begin
  13397. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TLiveBroadcastListResponse) as TLiveBroadcastListResponse;
  13398. end;
  13399. Function TLiveBroadcastsResource.List(AQuery : TLiveBroadcastslistOptions) : TLiveBroadcastListResponse;
  13400. Var
  13401. _Q : String;
  13402. begin
  13403. _Q:='';
  13404. AddToQuery(_Q,'broadcastStatus',AQuery.broadcastStatus);
  13405. AddToQuery(_Q,'broadcastType',AQuery.broadcastType);
  13406. AddToQuery(_Q,'id',AQuery.id);
  13407. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13408. AddToQuery(_Q,'mine',AQuery.mine);
  13409. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13410. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13411. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13412. AddToQuery(_Q,'part',AQuery.part);
  13413. Result:=List(_Q);
  13414. end;
  13415. Function TLiveBroadcastsResource.Transition(AQuery : string = '') : TLiveBroadcast;
  13416. Const
  13417. _HTTPMethod = 'POST';
  13418. _Path = 'liveBroadcasts/transition';
  13419. _Methodid = 'youtube.liveBroadcasts.transition';
  13420. begin
  13421. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TLiveBroadcast) as TLiveBroadcast;
  13422. end;
  13423. Function TLiveBroadcastsResource.Transition(AQuery : TLiveBroadcaststransitionOptions) : TLiveBroadcast;
  13424. Var
  13425. _Q : String;
  13426. begin
  13427. _Q:='';
  13428. AddToQuery(_Q,'broadcastStatus',AQuery.broadcastStatus);
  13429. AddToQuery(_Q,'id',AQuery.id);
  13430. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13431. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13432. AddToQuery(_Q,'part',AQuery.part);
  13433. Result:=Transition(_Q);
  13434. end;
  13435. Function TLiveBroadcastsResource.Update(aLiveBroadcast : TLiveBroadcast; AQuery : string = '') : TLiveBroadcast;
  13436. Const
  13437. _HTTPMethod = 'PUT';
  13438. _Path = 'liveBroadcasts';
  13439. _Methodid = 'youtube.liveBroadcasts.update';
  13440. begin
  13441. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aLiveBroadcast,TLiveBroadcast) as TLiveBroadcast;
  13442. end;
  13443. Function TLiveBroadcastsResource.Update(aLiveBroadcast : TLiveBroadcast; AQuery : TLiveBroadcastsupdateOptions) : TLiveBroadcast;
  13444. Var
  13445. _Q : String;
  13446. begin
  13447. _Q:='';
  13448. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13449. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13450. AddToQuery(_Q,'part',AQuery.part);
  13451. Result:=Update(aLiveBroadcast,_Q);
  13452. end;
  13453. { --------------------------------------------------------------------
  13454. TLiveChatBansResource
  13455. --------------------------------------------------------------------}
  13456. Class Function TLiveChatBansResource.ResourceName : String;
  13457. begin
  13458. Result:='liveChatBans';
  13459. end;
  13460. Class Function TLiveChatBansResource.DefaultAPI : TGoogleAPIClass;
  13461. begin
  13462. Result:=TyoutubeAPI;
  13463. end;
  13464. Procedure TLiveChatBansResource.Delete(AQuery : string = '');
  13465. Const
  13466. _HTTPMethod = 'DELETE';
  13467. _Path = 'liveChat/bans';
  13468. _Methodid = 'youtube.liveChatBans.delete';
  13469. begin
  13470. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13471. end;
  13472. Procedure TLiveChatBansResource.Delete(AQuery : TLiveChatBansdeleteOptions);
  13473. Var
  13474. _Q : String;
  13475. begin
  13476. _Q:='';
  13477. AddToQuery(_Q,'id',AQuery.id);
  13478. Delete(_Q);
  13479. end;
  13480. Function TLiveChatBansResource.Insert(aLiveChatBan : TLiveChatBan; AQuery : string = '') : TLiveChatBan;
  13481. Const
  13482. _HTTPMethod = 'POST';
  13483. _Path = 'liveChat/bans';
  13484. _Methodid = 'youtube.liveChatBans.insert';
  13485. begin
  13486. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aLiveChatBan,TLiveChatBan) as TLiveChatBan;
  13487. end;
  13488. Function TLiveChatBansResource.Insert(aLiveChatBan : TLiveChatBan; AQuery : TLiveChatBansinsertOptions) : TLiveChatBan;
  13489. Var
  13490. _Q : String;
  13491. begin
  13492. _Q:='';
  13493. AddToQuery(_Q,'part',AQuery.part);
  13494. Result:=Insert(aLiveChatBan,_Q);
  13495. end;
  13496. { --------------------------------------------------------------------
  13497. TLiveChatMessagesResource
  13498. --------------------------------------------------------------------}
  13499. Class Function TLiveChatMessagesResource.ResourceName : String;
  13500. begin
  13501. Result:='liveChatMessages';
  13502. end;
  13503. Class Function TLiveChatMessagesResource.DefaultAPI : TGoogleAPIClass;
  13504. begin
  13505. Result:=TyoutubeAPI;
  13506. end;
  13507. Procedure TLiveChatMessagesResource.Delete(AQuery : string = '');
  13508. Const
  13509. _HTTPMethod = 'DELETE';
  13510. _Path = 'liveChat/messages';
  13511. _Methodid = 'youtube.liveChatMessages.delete';
  13512. begin
  13513. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13514. end;
  13515. Procedure TLiveChatMessagesResource.Delete(AQuery : TLiveChatMessagesdeleteOptions);
  13516. Var
  13517. _Q : String;
  13518. begin
  13519. _Q:='';
  13520. AddToQuery(_Q,'id',AQuery.id);
  13521. Delete(_Q);
  13522. end;
  13523. Function TLiveChatMessagesResource.Insert(aLiveChatMessage : TLiveChatMessage; AQuery : string = '') : TLiveChatMessage;
  13524. Const
  13525. _HTTPMethod = 'POST';
  13526. _Path = 'liveChat/messages';
  13527. _Methodid = 'youtube.liveChatMessages.insert';
  13528. begin
  13529. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aLiveChatMessage,TLiveChatMessage) as TLiveChatMessage;
  13530. end;
  13531. Function TLiveChatMessagesResource.Insert(aLiveChatMessage : TLiveChatMessage; AQuery : TLiveChatMessagesinsertOptions) : TLiveChatMessage;
  13532. Var
  13533. _Q : String;
  13534. begin
  13535. _Q:='';
  13536. AddToQuery(_Q,'part',AQuery.part);
  13537. Result:=Insert(aLiveChatMessage,_Q);
  13538. end;
  13539. Function TLiveChatMessagesResource.List(AQuery : string = '') : TLiveChatMessageListResponse;
  13540. Const
  13541. _HTTPMethod = 'GET';
  13542. _Path = 'liveChat/messages';
  13543. _Methodid = 'youtube.liveChatMessages.list';
  13544. begin
  13545. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TLiveChatMessageListResponse) as TLiveChatMessageListResponse;
  13546. end;
  13547. Function TLiveChatMessagesResource.List(AQuery : TLiveChatMessageslistOptions) : TLiveChatMessageListResponse;
  13548. Var
  13549. _Q : String;
  13550. begin
  13551. _Q:='';
  13552. AddToQuery(_Q,'hl',AQuery.hl);
  13553. AddToQuery(_Q,'liveChatId',AQuery.liveChatId);
  13554. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13555. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13556. AddToQuery(_Q,'part',AQuery.part);
  13557. AddToQuery(_Q,'profileImageSize',AQuery.profileImageSize);
  13558. Result:=List(_Q);
  13559. end;
  13560. { --------------------------------------------------------------------
  13561. TLiveChatModeratorsResource
  13562. --------------------------------------------------------------------}
  13563. Class Function TLiveChatModeratorsResource.ResourceName : String;
  13564. begin
  13565. Result:='liveChatModerators';
  13566. end;
  13567. Class Function TLiveChatModeratorsResource.DefaultAPI : TGoogleAPIClass;
  13568. begin
  13569. Result:=TyoutubeAPI;
  13570. end;
  13571. Procedure TLiveChatModeratorsResource.Delete(AQuery : string = '');
  13572. Const
  13573. _HTTPMethod = 'DELETE';
  13574. _Path = 'liveChat/moderators';
  13575. _Methodid = 'youtube.liveChatModerators.delete';
  13576. begin
  13577. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13578. end;
  13579. Procedure TLiveChatModeratorsResource.Delete(AQuery : TLiveChatModeratorsdeleteOptions);
  13580. Var
  13581. _Q : String;
  13582. begin
  13583. _Q:='';
  13584. AddToQuery(_Q,'id',AQuery.id);
  13585. Delete(_Q);
  13586. end;
  13587. Function TLiveChatModeratorsResource.Insert(aLiveChatModerator : TLiveChatModerator; AQuery : string = '') : TLiveChatModerator;
  13588. Const
  13589. _HTTPMethod = 'POST';
  13590. _Path = 'liveChat/moderators';
  13591. _Methodid = 'youtube.liveChatModerators.insert';
  13592. begin
  13593. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aLiveChatModerator,TLiveChatModerator) as TLiveChatModerator;
  13594. end;
  13595. Function TLiveChatModeratorsResource.Insert(aLiveChatModerator : TLiveChatModerator; AQuery : TLiveChatModeratorsinsertOptions) : TLiveChatModerator;
  13596. Var
  13597. _Q : String;
  13598. begin
  13599. _Q:='';
  13600. AddToQuery(_Q,'part',AQuery.part);
  13601. Result:=Insert(aLiveChatModerator,_Q);
  13602. end;
  13603. Function TLiveChatModeratorsResource.List(AQuery : string = '') : TLiveChatModeratorListResponse;
  13604. Const
  13605. _HTTPMethod = 'GET';
  13606. _Path = 'liveChat/moderators';
  13607. _Methodid = 'youtube.liveChatModerators.list';
  13608. begin
  13609. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TLiveChatModeratorListResponse) as TLiveChatModeratorListResponse;
  13610. end;
  13611. Function TLiveChatModeratorsResource.List(AQuery : TLiveChatModeratorslistOptions) : TLiveChatModeratorListResponse;
  13612. Var
  13613. _Q : String;
  13614. begin
  13615. _Q:='';
  13616. AddToQuery(_Q,'liveChatId',AQuery.liveChatId);
  13617. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13618. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13619. AddToQuery(_Q,'part',AQuery.part);
  13620. Result:=List(_Q);
  13621. end;
  13622. { --------------------------------------------------------------------
  13623. TLiveStreamsResource
  13624. --------------------------------------------------------------------}
  13625. Class Function TLiveStreamsResource.ResourceName : String;
  13626. begin
  13627. Result:='liveStreams';
  13628. end;
  13629. Class Function TLiveStreamsResource.DefaultAPI : TGoogleAPIClass;
  13630. begin
  13631. Result:=TyoutubeAPI;
  13632. end;
  13633. Procedure TLiveStreamsResource.Delete(AQuery : string = '');
  13634. Const
  13635. _HTTPMethod = 'DELETE';
  13636. _Path = 'liveStreams';
  13637. _Methodid = 'youtube.liveStreams.delete';
  13638. begin
  13639. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13640. end;
  13641. Procedure TLiveStreamsResource.Delete(AQuery : TLiveStreamsdeleteOptions);
  13642. Var
  13643. _Q : String;
  13644. begin
  13645. _Q:='';
  13646. AddToQuery(_Q,'id',AQuery.id);
  13647. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13648. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13649. Delete(_Q);
  13650. end;
  13651. Function TLiveStreamsResource.Insert(aLiveStream : TLiveStream; AQuery : string = '') : TLiveStream;
  13652. Const
  13653. _HTTPMethod = 'POST';
  13654. _Path = 'liveStreams';
  13655. _Methodid = 'youtube.liveStreams.insert';
  13656. begin
  13657. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aLiveStream,TLiveStream) as TLiveStream;
  13658. end;
  13659. Function TLiveStreamsResource.Insert(aLiveStream : TLiveStream; AQuery : TLiveStreamsinsertOptions) : TLiveStream;
  13660. Var
  13661. _Q : String;
  13662. begin
  13663. _Q:='';
  13664. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13665. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13666. AddToQuery(_Q,'part',AQuery.part);
  13667. Result:=Insert(aLiveStream,_Q);
  13668. end;
  13669. Function TLiveStreamsResource.List(AQuery : string = '') : TLiveStreamListResponse;
  13670. Const
  13671. _HTTPMethod = 'GET';
  13672. _Path = 'liveStreams';
  13673. _Methodid = 'youtube.liveStreams.list';
  13674. begin
  13675. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TLiveStreamListResponse) as TLiveStreamListResponse;
  13676. end;
  13677. Function TLiveStreamsResource.List(AQuery : TLiveStreamslistOptions) : TLiveStreamListResponse;
  13678. Var
  13679. _Q : String;
  13680. begin
  13681. _Q:='';
  13682. AddToQuery(_Q,'id',AQuery.id);
  13683. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13684. AddToQuery(_Q,'mine',AQuery.mine);
  13685. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13686. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13687. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13688. AddToQuery(_Q,'part',AQuery.part);
  13689. Result:=List(_Q);
  13690. end;
  13691. Function TLiveStreamsResource.Update(aLiveStream : TLiveStream; AQuery : string = '') : TLiveStream;
  13692. Const
  13693. _HTTPMethod = 'PUT';
  13694. _Path = 'liveStreams';
  13695. _Methodid = 'youtube.liveStreams.update';
  13696. begin
  13697. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aLiveStream,TLiveStream) as TLiveStream;
  13698. end;
  13699. Function TLiveStreamsResource.Update(aLiveStream : TLiveStream; AQuery : TLiveStreamsupdateOptions) : TLiveStream;
  13700. Var
  13701. _Q : String;
  13702. begin
  13703. _Q:='';
  13704. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13705. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13706. AddToQuery(_Q,'part',AQuery.part);
  13707. Result:=Update(aLiveStream,_Q);
  13708. end;
  13709. { --------------------------------------------------------------------
  13710. TPlaylistItemsResource
  13711. --------------------------------------------------------------------}
  13712. Class Function TPlaylistItemsResource.ResourceName : String;
  13713. begin
  13714. Result:='playlistItems';
  13715. end;
  13716. Class Function TPlaylistItemsResource.DefaultAPI : TGoogleAPIClass;
  13717. begin
  13718. Result:=TyoutubeAPI;
  13719. end;
  13720. Procedure TPlaylistItemsResource.Delete(AQuery : string = '');
  13721. Const
  13722. _HTTPMethod = 'DELETE';
  13723. _Path = 'playlistItems';
  13724. _Methodid = 'youtube.playlistItems.delete';
  13725. begin
  13726. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13727. end;
  13728. Procedure TPlaylistItemsResource.Delete(AQuery : TPlaylistItemsdeleteOptions);
  13729. Var
  13730. _Q : String;
  13731. begin
  13732. _Q:='';
  13733. AddToQuery(_Q,'id',AQuery.id);
  13734. Delete(_Q);
  13735. end;
  13736. Function TPlaylistItemsResource.Insert(aPlaylistItem : TPlaylistItem; AQuery : string = '') : TPlaylistItem;
  13737. Const
  13738. _HTTPMethod = 'POST';
  13739. _Path = 'playlistItems';
  13740. _Methodid = 'youtube.playlistItems.insert';
  13741. begin
  13742. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aPlaylistItem,TPlaylistItem) as TPlaylistItem;
  13743. end;
  13744. Function TPlaylistItemsResource.Insert(aPlaylistItem : TPlaylistItem; AQuery : TPlaylistItemsinsertOptions) : TPlaylistItem;
  13745. Var
  13746. _Q : String;
  13747. begin
  13748. _Q:='';
  13749. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13750. AddToQuery(_Q,'part',AQuery.part);
  13751. Result:=Insert(aPlaylistItem,_Q);
  13752. end;
  13753. Function TPlaylistItemsResource.List(AQuery : string = '') : TPlaylistItemListResponse;
  13754. Const
  13755. _HTTPMethod = 'GET';
  13756. _Path = 'playlistItems';
  13757. _Methodid = 'youtube.playlistItems.list';
  13758. begin
  13759. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TPlaylistItemListResponse) as TPlaylistItemListResponse;
  13760. end;
  13761. Function TPlaylistItemsResource.List(AQuery : TPlaylistItemslistOptions) : TPlaylistItemListResponse;
  13762. Var
  13763. _Q : String;
  13764. begin
  13765. _Q:='';
  13766. AddToQuery(_Q,'id',AQuery.id);
  13767. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13768. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13769. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13770. AddToQuery(_Q,'part',AQuery.part);
  13771. AddToQuery(_Q,'playlistId',AQuery.playlistId);
  13772. AddToQuery(_Q,'videoId',AQuery.videoId);
  13773. Result:=List(_Q);
  13774. end;
  13775. Function TPlaylistItemsResource.Update(aPlaylistItem : TPlaylistItem; AQuery : string = '') : TPlaylistItem;
  13776. Const
  13777. _HTTPMethod = 'PUT';
  13778. _Path = 'playlistItems';
  13779. _Methodid = 'youtube.playlistItems.update';
  13780. begin
  13781. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aPlaylistItem,TPlaylistItem) as TPlaylistItem;
  13782. end;
  13783. Function TPlaylistItemsResource.Update(aPlaylistItem : TPlaylistItem; AQuery : TPlaylistItemsupdateOptions) : TPlaylistItem;
  13784. Var
  13785. _Q : String;
  13786. begin
  13787. _Q:='';
  13788. AddToQuery(_Q,'part',AQuery.part);
  13789. Result:=Update(aPlaylistItem,_Q);
  13790. end;
  13791. { --------------------------------------------------------------------
  13792. TPlaylistsResource
  13793. --------------------------------------------------------------------}
  13794. Class Function TPlaylistsResource.ResourceName : String;
  13795. begin
  13796. Result:='playlists';
  13797. end;
  13798. Class Function TPlaylistsResource.DefaultAPI : TGoogleAPIClass;
  13799. begin
  13800. Result:=TyoutubeAPI;
  13801. end;
  13802. Procedure TPlaylistsResource.Delete(AQuery : string = '');
  13803. Const
  13804. _HTTPMethod = 'DELETE';
  13805. _Path = 'playlists';
  13806. _Methodid = 'youtube.playlists.delete';
  13807. begin
  13808. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13809. end;
  13810. Procedure TPlaylistsResource.Delete(AQuery : TPlaylistsdeleteOptions);
  13811. Var
  13812. _Q : String;
  13813. begin
  13814. _Q:='';
  13815. AddToQuery(_Q,'id',AQuery.id);
  13816. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13817. Delete(_Q);
  13818. end;
  13819. Function TPlaylistsResource.Insert(aPlaylist : TPlaylist; AQuery : string = '') : TPlaylist;
  13820. Const
  13821. _HTTPMethod = 'POST';
  13822. _Path = 'playlists';
  13823. _Methodid = 'youtube.playlists.insert';
  13824. begin
  13825. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aPlaylist,TPlaylist) as TPlaylist;
  13826. end;
  13827. Function TPlaylistsResource.Insert(aPlaylist : TPlaylist; AQuery : TPlaylistsinsertOptions) : TPlaylist;
  13828. Var
  13829. _Q : String;
  13830. begin
  13831. _Q:='';
  13832. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13833. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13834. AddToQuery(_Q,'part',AQuery.part);
  13835. Result:=Insert(aPlaylist,_Q);
  13836. end;
  13837. Function TPlaylistsResource.List(AQuery : string = '') : TPlaylistListResponse;
  13838. Const
  13839. _HTTPMethod = 'GET';
  13840. _Path = 'playlists';
  13841. _Methodid = 'youtube.playlists.list';
  13842. begin
  13843. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TPlaylistListResponse) as TPlaylistListResponse;
  13844. end;
  13845. Function TPlaylistsResource.List(AQuery : TPlaylistslistOptions) : TPlaylistListResponse;
  13846. Var
  13847. _Q : String;
  13848. begin
  13849. _Q:='';
  13850. AddToQuery(_Q,'channelId',AQuery.channelId);
  13851. AddToQuery(_Q,'hl',AQuery.hl);
  13852. AddToQuery(_Q,'id',AQuery.id);
  13853. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13854. AddToQuery(_Q,'mine',AQuery.mine);
  13855. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13856. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  13857. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13858. AddToQuery(_Q,'part',AQuery.part);
  13859. Result:=List(_Q);
  13860. end;
  13861. Function TPlaylistsResource.Update(aPlaylist : TPlaylist; AQuery : string = '') : TPlaylist;
  13862. Const
  13863. _HTTPMethod = 'PUT';
  13864. _Path = 'playlists';
  13865. _Methodid = 'youtube.playlists.update';
  13866. begin
  13867. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aPlaylist,TPlaylist) as TPlaylist;
  13868. end;
  13869. Function TPlaylistsResource.Update(aPlaylist : TPlaylist; AQuery : TPlaylistsupdateOptions) : TPlaylist;
  13870. Var
  13871. _Q : String;
  13872. begin
  13873. _Q:='';
  13874. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13875. AddToQuery(_Q,'part',AQuery.part);
  13876. Result:=Update(aPlaylist,_Q);
  13877. end;
  13878. { --------------------------------------------------------------------
  13879. TSearchResource
  13880. --------------------------------------------------------------------}
  13881. Class Function TSearchResource.ResourceName : String;
  13882. begin
  13883. Result:='search';
  13884. end;
  13885. Class Function TSearchResource.DefaultAPI : TGoogleAPIClass;
  13886. begin
  13887. Result:=TyoutubeAPI;
  13888. end;
  13889. Function TSearchResource.List(AQuery : string = '') : TSearchListResponse;
  13890. Const
  13891. _HTTPMethod = 'GET';
  13892. _Path = 'search';
  13893. _Methodid = 'youtube.search.list';
  13894. begin
  13895. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TSearchListResponse) as TSearchListResponse;
  13896. end;
  13897. Function TSearchResource.List(AQuery : TSearchlistOptions) : TSearchListResponse;
  13898. Var
  13899. _Q : String;
  13900. begin
  13901. _Q:='';
  13902. AddToQuery(_Q,'channelId',AQuery.channelId);
  13903. AddToQuery(_Q,'channelType',AQuery.channelType);
  13904. AddToQuery(_Q,'eventType',AQuery.eventType);
  13905. AddToQuery(_Q,'forContentOwner',AQuery.forContentOwner);
  13906. AddToQuery(_Q,'forDeveloper',AQuery.forDeveloper);
  13907. AddToQuery(_Q,'forMine',AQuery.forMine);
  13908. AddToQuery(_Q,'location',AQuery.location);
  13909. AddToQuery(_Q,'locationRadius',AQuery.locationRadius);
  13910. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13911. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  13912. AddToQuery(_Q,'order',AQuery.order);
  13913. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13914. AddToQuery(_Q,'part',AQuery.part);
  13915. AddToQuery(_Q,'publishedAfter',AQuery.publishedAfter);
  13916. AddToQuery(_Q,'publishedBefore',AQuery.publishedBefore);
  13917. AddToQuery(_Q,'q',AQuery.q);
  13918. AddToQuery(_Q,'regionCode',AQuery.regionCode);
  13919. AddToQuery(_Q,'relatedToVideoId',AQuery.relatedToVideoId);
  13920. AddToQuery(_Q,'relevanceLanguage',AQuery.relevanceLanguage);
  13921. AddToQuery(_Q,'safeSearch',AQuery.safeSearch);
  13922. AddToQuery(_Q,'topicId',AQuery.topicId);
  13923. AddToQuery(_Q,'type',AQuery._type);
  13924. AddToQuery(_Q,'videoCaption',AQuery.videoCaption);
  13925. AddToQuery(_Q,'videoCategoryId',AQuery.videoCategoryId);
  13926. AddToQuery(_Q,'videoDefinition',AQuery.videoDefinition);
  13927. AddToQuery(_Q,'videoDimension',AQuery.videoDimension);
  13928. AddToQuery(_Q,'videoDuration',AQuery.videoDuration);
  13929. AddToQuery(_Q,'videoEmbeddable',AQuery.videoEmbeddable);
  13930. AddToQuery(_Q,'videoLicense',AQuery.videoLicense);
  13931. AddToQuery(_Q,'videoSyndicated',AQuery.videoSyndicated);
  13932. AddToQuery(_Q,'videoType',AQuery.videoType);
  13933. Result:=List(_Q);
  13934. end;
  13935. { --------------------------------------------------------------------
  13936. TSponsorsResource
  13937. --------------------------------------------------------------------}
  13938. Class Function TSponsorsResource.ResourceName : String;
  13939. begin
  13940. Result:='sponsors';
  13941. end;
  13942. Class Function TSponsorsResource.DefaultAPI : TGoogleAPIClass;
  13943. begin
  13944. Result:=TyoutubeAPI;
  13945. end;
  13946. Function TSponsorsResource.List(AQuery : string = '') : TSponsorListResponse;
  13947. Const
  13948. _HTTPMethod = 'GET';
  13949. _Path = 'sponsors';
  13950. _Methodid = 'youtube.sponsors.list';
  13951. begin
  13952. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TSponsorListResponse) as TSponsorListResponse;
  13953. end;
  13954. Function TSponsorsResource.List(AQuery : TSponsorslistOptions) : TSponsorListResponse;
  13955. Var
  13956. _Q : String;
  13957. begin
  13958. _Q:='';
  13959. AddToQuery(_Q,'filter',AQuery.filter);
  13960. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  13961. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  13962. AddToQuery(_Q,'part',AQuery.part);
  13963. Result:=List(_Q);
  13964. end;
  13965. { --------------------------------------------------------------------
  13966. TSubscriptionsResource
  13967. --------------------------------------------------------------------}
  13968. Class Function TSubscriptionsResource.ResourceName : String;
  13969. begin
  13970. Result:='subscriptions';
  13971. end;
  13972. Class Function TSubscriptionsResource.DefaultAPI : TGoogleAPIClass;
  13973. begin
  13974. Result:=TyoutubeAPI;
  13975. end;
  13976. Procedure TSubscriptionsResource.Delete(AQuery : string = '');
  13977. Const
  13978. _HTTPMethod = 'DELETE';
  13979. _Path = 'subscriptions';
  13980. _Methodid = 'youtube.subscriptions.delete';
  13981. begin
  13982. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  13983. end;
  13984. Procedure TSubscriptionsResource.Delete(AQuery : TSubscriptionsdeleteOptions);
  13985. Var
  13986. _Q : String;
  13987. begin
  13988. _Q:='';
  13989. AddToQuery(_Q,'id',AQuery.id);
  13990. Delete(_Q);
  13991. end;
  13992. Function TSubscriptionsResource.Insert(aSubscription : TSubscription; AQuery : string = '') : TSubscription;
  13993. Const
  13994. _HTTPMethod = 'POST';
  13995. _Path = 'subscriptions';
  13996. _Methodid = 'youtube.subscriptions.insert';
  13997. begin
  13998. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aSubscription,TSubscription) as TSubscription;
  13999. end;
  14000. Function TSubscriptionsResource.Insert(aSubscription : TSubscription; AQuery : TSubscriptionsinsertOptions) : TSubscription;
  14001. Var
  14002. _Q : String;
  14003. begin
  14004. _Q:='';
  14005. AddToQuery(_Q,'part',AQuery.part);
  14006. Result:=Insert(aSubscription,_Q);
  14007. end;
  14008. Function TSubscriptionsResource.List(AQuery : string = '') : TSubscriptionListResponse;
  14009. Const
  14010. _HTTPMethod = 'GET';
  14011. _Path = 'subscriptions';
  14012. _Methodid = 'youtube.subscriptions.list';
  14013. begin
  14014. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TSubscriptionListResponse) as TSubscriptionListResponse;
  14015. end;
  14016. Function TSubscriptionsResource.List(AQuery : TSubscriptionslistOptions) : TSubscriptionListResponse;
  14017. Var
  14018. _Q : String;
  14019. begin
  14020. _Q:='';
  14021. AddToQuery(_Q,'channelId',AQuery.channelId);
  14022. AddToQuery(_Q,'forChannelId',AQuery.forChannelId);
  14023. AddToQuery(_Q,'id',AQuery.id);
  14024. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  14025. AddToQuery(_Q,'mine',AQuery.mine);
  14026. AddToQuery(_Q,'mySubscribers',AQuery.mySubscribers);
  14027. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14028. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  14029. AddToQuery(_Q,'order',AQuery.order);
  14030. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  14031. AddToQuery(_Q,'part',AQuery.part);
  14032. Result:=List(_Q);
  14033. end;
  14034. { --------------------------------------------------------------------
  14035. TThumbnailsResource
  14036. --------------------------------------------------------------------}
  14037. Class Function TThumbnailsResource.ResourceName : String;
  14038. begin
  14039. Result:='thumbnails';
  14040. end;
  14041. Class Function TThumbnailsResource.DefaultAPI : TGoogleAPIClass;
  14042. begin
  14043. Result:=TyoutubeAPI;
  14044. end;
  14045. Function TThumbnailsResource._set(AQuery : string = '') : TThumbnailSetResponse;
  14046. Const
  14047. _HTTPMethod = 'POST';
  14048. _Path = 'thumbnails/set';
  14049. _Methodid = 'youtube.thumbnails.set';
  14050. begin
  14051. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TThumbnailSetResponse) as TThumbnailSetResponse;
  14052. end;
  14053. Function TThumbnailsResource._set(AQuery : TThumbnailssetOptions) : TThumbnailSetResponse;
  14054. Var
  14055. _Q : String;
  14056. begin
  14057. _Q:='';
  14058. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14059. AddToQuery(_Q,'videoId',AQuery.videoId);
  14060. Result:=_set(_Q);
  14061. end;
  14062. { --------------------------------------------------------------------
  14063. TVideoAbuseReportReasonsResource
  14064. --------------------------------------------------------------------}
  14065. Class Function TVideoAbuseReportReasonsResource.ResourceName : String;
  14066. begin
  14067. Result:='videoAbuseReportReasons';
  14068. end;
  14069. Class Function TVideoAbuseReportReasonsResource.DefaultAPI : TGoogleAPIClass;
  14070. begin
  14071. Result:=TyoutubeAPI;
  14072. end;
  14073. Function TVideoAbuseReportReasonsResource.List(AQuery : string = '') : TVideoAbuseReportReasonListResponse;
  14074. Const
  14075. _HTTPMethod = 'GET';
  14076. _Path = 'videoAbuseReportReasons';
  14077. _Methodid = 'youtube.videoAbuseReportReasons.list';
  14078. begin
  14079. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TVideoAbuseReportReasonListResponse) as TVideoAbuseReportReasonListResponse;
  14080. end;
  14081. Function TVideoAbuseReportReasonsResource.List(AQuery : TVideoAbuseReportReasonslistOptions) : TVideoAbuseReportReasonListResponse;
  14082. Var
  14083. _Q : String;
  14084. begin
  14085. _Q:='';
  14086. AddToQuery(_Q,'hl',AQuery.hl);
  14087. AddToQuery(_Q,'part',AQuery.part);
  14088. Result:=List(_Q);
  14089. end;
  14090. { --------------------------------------------------------------------
  14091. TVideoCategoriesResource
  14092. --------------------------------------------------------------------}
  14093. Class Function TVideoCategoriesResource.ResourceName : String;
  14094. begin
  14095. Result:='videoCategories';
  14096. end;
  14097. Class Function TVideoCategoriesResource.DefaultAPI : TGoogleAPIClass;
  14098. begin
  14099. Result:=TyoutubeAPI;
  14100. end;
  14101. Function TVideoCategoriesResource.List(AQuery : string = '') : TVideoCategoryListResponse;
  14102. Const
  14103. _HTTPMethod = 'GET';
  14104. _Path = 'videoCategories';
  14105. _Methodid = 'youtube.videoCategories.list';
  14106. begin
  14107. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TVideoCategoryListResponse) as TVideoCategoryListResponse;
  14108. end;
  14109. Function TVideoCategoriesResource.List(AQuery : TVideoCategorieslistOptions) : TVideoCategoryListResponse;
  14110. Var
  14111. _Q : String;
  14112. begin
  14113. _Q:='';
  14114. AddToQuery(_Q,'hl',AQuery.hl);
  14115. AddToQuery(_Q,'id',AQuery.id);
  14116. AddToQuery(_Q,'part',AQuery.part);
  14117. AddToQuery(_Q,'regionCode',AQuery.regionCode);
  14118. Result:=List(_Q);
  14119. end;
  14120. { --------------------------------------------------------------------
  14121. TVideosResource
  14122. --------------------------------------------------------------------}
  14123. Class Function TVideosResource.ResourceName : String;
  14124. begin
  14125. Result:='videos';
  14126. end;
  14127. Class Function TVideosResource.DefaultAPI : TGoogleAPIClass;
  14128. begin
  14129. Result:=TyoutubeAPI;
  14130. end;
  14131. Procedure TVideosResource.Delete(AQuery : string = '');
  14132. Const
  14133. _HTTPMethod = 'DELETE';
  14134. _Path = 'videos';
  14135. _Methodid = 'youtube.videos.delete';
  14136. begin
  14137. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  14138. end;
  14139. Procedure TVideosResource.Delete(AQuery : TVideosdeleteOptions);
  14140. Var
  14141. _Q : String;
  14142. begin
  14143. _Q:='';
  14144. AddToQuery(_Q,'id',AQuery.id);
  14145. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14146. Delete(_Q);
  14147. end;
  14148. Function TVideosResource.GetRating(AQuery : string = '') : TVideoGetRatingResponse;
  14149. Const
  14150. _HTTPMethod = 'GET';
  14151. _Path = 'videos/getRating';
  14152. _Methodid = 'youtube.videos.getRating';
  14153. begin
  14154. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TVideoGetRatingResponse) as TVideoGetRatingResponse;
  14155. end;
  14156. Function TVideosResource.GetRating(AQuery : TVideosgetRatingOptions) : TVideoGetRatingResponse;
  14157. Var
  14158. _Q : String;
  14159. begin
  14160. _Q:='';
  14161. AddToQuery(_Q,'id',AQuery.id);
  14162. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14163. Result:=GetRating(_Q);
  14164. end;
  14165. Function TVideosResource.Insert(aVideo : TVideo; AQuery : string = '') : TVideo;
  14166. Const
  14167. _HTTPMethod = 'POST';
  14168. _Path = 'videos';
  14169. _Methodid = 'youtube.videos.insert';
  14170. begin
  14171. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aVideo,TVideo) as TVideo;
  14172. end;
  14173. Function TVideosResource.Insert(aVideo : TVideo; AQuery : TVideosinsertOptions) : TVideo;
  14174. Var
  14175. _Q : String;
  14176. begin
  14177. _Q:='';
  14178. AddToQuery(_Q,'autoLevels',AQuery.autoLevels);
  14179. AddToQuery(_Q,'notifySubscribers',AQuery.notifySubscribers);
  14180. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14181. AddToQuery(_Q,'onBehalfOfContentOwnerChannel',AQuery.onBehalfOfContentOwnerChannel);
  14182. AddToQuery(_Q,'part',AQuery.part);
  14183. AddToQuery(_Q,'stabilize',AQuery.stabilize);
  14184. Result:=Insert(aVideo,_Q);
  14185. end;
  14186. Function TVideosResource.List(AQuery : string = '') : TVideoListResponse;
  14187. Const
  14188. _HTTPMethod = 'GET';
  14189. _Path = 'videos';
  14190. _Methodid = 'youtube.videos.list';
  14191. begin
  14192. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TVideoListResponse) as TVideoListResponse;
  14193. end;
  14194. Function TVideosResource.List(AQuery : TVideoslistOptions) : TVideoListResponse;
  14195. Var
  14196. _Q : String;
  14197. begin
  14198. _Q:='';
  14199. AddToQuery(_Q,'chart',AQuery.chart);
  14200. AddToQuery(_Q,'hl',AQuery.hl);
  14201. AddToQuery(_Q,'id',AQuery.id);
  14202. AddToQuery(_Q,'locale',AQuery.locale);
  14203. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  14204. AddToQuery(_Q,'myRating',AQuery.myRating);
  14205. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14206. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  14207. AddToQuery(_Q,'part',AQuery.part);
  14208. AddToQuery(_Q,'regionCode',AQuery.regionCode);
  14209. AddToQuery(_Q,'videoCategoryId',AQuery.videoCategoryId);
  14210. Result:=List(_Q);
  14211. end;
  14212. Procedure TVideosResource.Rate(AQuery : string = '');
  14213. Const
  14214. _HTTPMethod = 'POST';
  14215. _Path = 'videos/rate';
  14216. _Methodid = 'youtube.videos.rate';
  14217. begin
  14218. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  14219. end;
  14220. Procedure TVideosResource.Rate(AQuery : TVideosrateOptions);
  14221. Var
  14222. _Q : String;
  14223. begin
  14224. _Q:='';
  14225. AddToQuery(_Q,'id',AQuery.id);
  14226. AddToQuery(_Q,'rating',AQuery.rating);
  14227. Rate(_Q);
  14228. end;
  14229. Procedure TVideosResource.ReportAbuse(aVideoAbuseReport : TVideoAbuseReport; AQuery : string = '');
  14230. Const
  14231. _HTTPMethod = 'POST';
  14232. _Path = 'videos/reportAbuse';
  14233. _Methodid = 'youtube.videos.reportAbuse';
  14234. begin
  14235. ServiceCall(_HTTPMethod,_Path,AQuery,aVideoAbuseReport,Nil);
  14236. end;
  14237. Procedure TVideosResource.ReportAbuse(aVideoAbuseReport : TVideoAbuseReport; AQuery : TVideosreportAbuseOptions);
  14238. Var
  14239. _Q : String;
  14240. begin
  14241. _Q:='';
  14242. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14243. ReportAbuse(aVideoAbuseReport,_Q);
  14244. end;
  14245. Function TVideosResource.Update(aVideo : TVideo; AQuery : string = '') : TVideo;
  14246. Const
  14247. _HTTPMethod = 'PUT';
  14248. _Path = 'videos';
  14249. _Methodid = 'youtube.videos.update';
  14250. begin
  14251. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aVideo,TVideo) as TVideo;
  14252. end;
  14253. Function TVideosResource.Update(aVideo : TVideo; AQuery : TVideosupdateOptions) : TVideo;
  14254. Var
  14255. _Q : String;
  14256. begin
  14257. _Q:='';
  14258. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14259. AddToQuery(_Q,'part',AQuery.part);
  14260. Result:=Update(aVideo,_Q);
  14261. end;
  14262. { --------------------------------------------------------------------
  14263. TWatermarksResource
  14264. --------------------------------------------------------------------}
  14265. Class Function TWatermarksResource.ResourceName : String;
  14266. begin
  14267. Result:='watermarks';
  14268. end;
  14269. Class Function TWatermarksResource.DefaultAPI : TGoogleAPIClass;
  14270. begin
  14271. Result:=TyoutubeAPI;
  14272. end;
  14273. Procedure TWatermarksResource._set(aInvideoBranding : TInvideoBranding; AQuery : string = '');
  14274. Const
  14275. _HTTPMethod = 'POST';
  14276. _Path = 'watermarks/set';
  14277. _Methodid = 'youtube.watermarks.set';
  14278. begin
  14279. ServiceCall(_HTTPMethod,_Path,AQuery,aInvideoBranding,Nil);
  14280. end;
  14281. Procedure TWatermarksResource._set(aInvideoBranding : TInvideoBranding; AQuery : TWatermarkssetOptions);
  14282. Var
  14283. _Q : String;
  14284. begin
  14285. _Q:='';
  14286. AddToQuery(_Q,'channelId',AQuery.channelId);
  14287. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14288. _set(aInvideoBranding,_Q);
  14289. end;
  14290. Procedure TWatermarksResource.Unset(AQuery : string = '');
  14291. Const
  14292. _HTTPMethod = 'POST';
  14293. _Path = 'watermarks/unset';
  14294. _Methodid = 'youtube.watermarks.unset';
  14295. begin
  14296. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  14297. end;
  14298. Procedure TWatermarksResource.Unset(AQuery : TWatermarksunsetOptions);
  14299. Var
  14300. _Q : String;
  14301. begin
  14302. _Q:='';
  14303. AddToQuery(_Q,'channelId',AQuery.channelId);
  14304. AddToQuery(_Q,'onBehalfOfContentOwner',AQuery.onBehalfOfContentOwner);
  14305. Unset(_Q);
  14306. end;
  14307. { --------------------------------------------------------------------
  14308. TYoutubeAPI
  14309. --------------------------------------------------------------------}
  14310. Class Function TYoutubeAPI.APIName : String;
  14311. begin
  14312. Result:='youtube';
  14313. end;
  14314. Class Function TYoutubeAPI.APIVersion : String;
  14315. begin
  14316. Result:='v3';
  14317. end;
  14318. Class Function TYoutubeAPI.APIRevision : String;
  14319. begin
  14320. Result:='20160509';
  14321. end;
  14322. Class Function TYoutubeAPI.APIID : String;
  14323. begin
  14324. Result:='youtube:v3';
  14325. end;
  14326. Class Function TYoutubeAPI.APITitle : String;
  14327. begin
  14328. Result:='YouTube Data API';
  14329. end;
  14330. Class Function TYoutubeAPI.APIDescription : String;
  14331. begin
  14332. Result:='Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more.';
  14333. end;
  14334. Class Function TYoutubeAPI.APIOwnerDomain : String;
  14335. begin
  14336. Result:='google.com';
  14337. end;
  14338. Class Function TYoutubeAPI.APIOwnerName : String;
  14339. begin
  14340. Result:='Google';
  14341. end;
  14342. Class Function TYoutubeAPI.APIIcon16 : String;
  14343. begin
  14344. Result:='https://www.google.com/images/icons/product/youtube-16.png';
  14345. end;
  14346. Class Function TYoutubeAPI.APIIcon32 : String;
  14347. begin
  14348. Result:='https://www.google.com/images/icons/product/youtube-32.png';
  14349. end;
  14350. Class Function TYoutubeAPI.APIdocumentationLink : String;
  14351. begin
  14352. Result:='https://developers.google.com/youtube/v3';
  14353. end;
  14354. Class Function TYoutubeAPI.APIrootUrl : string;
  14355. begin
  14356. Result:='https://www.googleapis.com/';
  14357. end;
  14358. Class Function TYoutubeAPI.APIbasePath : string;
  14359. begin
  14360. Result:='/youtube/v3/';
  14361. end;
  14362. Class Function TYoutubeAPI.APIbaseURL : String;
  14363. begin
  14364. Result:='https://www.googleapis.com/youtube/v3/';
  14365. end;
  14366. Class Function TYoutubeAPI.APIProtocol : string;
  14367. begin
  14368. Result:='rest';
  14369. end;
  14370. Class Function TYoutubeAPI.APIservicePath : string;
  14371. begin
  14372. Result:='youtube/v3/';
  14373. end;
  14374. Class Function TYoutubeAPI.APIbatchPath : String;
  14375. begin
  14376. Result:='batch';
  14377. end;
  14378. Class Function TYoutubeAPI.APIAuthScopes : TScopeInfoArray;
  14379. begin
  14380. SetLength(Result,6);
  14381. Result[0].Name:='https://www.googleapis.com/auth/youtube';
  14382. Result[0].Description:='Manage your YouTube account';
  14383. Result[1].Name:='https://www.googleapis.com/auth/youtube.force-ssl';
  14384. Result[1].Description:='Manage your YouTube account';
  14385. Result[2].Name:='https://www.googleapis.com/auth/youtube.readonly';
  14386. Result[2].Description:='View your YouTube account';
  14387. Result[3].Name:='https://www.googleapis.com/auth/youtube.upload';
  14388. Result[3].Description:='Manage your YouTube videos';
  14389. Result[4].Name:='https://www.googleapis.com/auth/youtubepartner';
  14390. Result[4].Description:='View and manage your assets and associated content on YouTube';
  14391. Result[5].Name:='https://www.googleapis.com/auth/youtubepartner-channel-audit';
  14392. Result[5].Description:='View private information of your YouTube channel relevant during the audit process with a YouTube partner';
  14393. end;
  14394. Class Function TYoutubeAPI.APINeedsAuth : Boolean;
  14395. begin
  14396. Result:=True;
  14397. end;
  14398. Class Procedure TYoutubeAPI.RegisterAPIResources;
  14399. begin
  14400. TAccessPolicy.RegisterObject;
  14401. TActivity.RegisterObject;
  14402. TActivityContentDetails.RegisterObject;
  14403. TActivityContentDetailsBulletin.RegisterObject;
  14404. TActivityContentDetailsChannelItem.RegisterObject;
  14405. TActivityContentDetailsComment.RegisterObject;
  14406. TActivityContentDetailsFavorite.RegisterObject;
  14407. TActivityContentDetailsLike.RegisterObject;
  14408. TActivityContentDetailsPlaylistItem.RegisterObject;
  14409. TActivityContentDetailsPromotedItem.RegisterObject;
  14410. TActivityContentDetailsRecommendation.RegisterObject;
  14411. TActivityContentDetailsSocial.RegisterObject;
  14412. TActivityContentDetailsSubscription.RegisterObject;
  14413. TActivityContentDetailsUpload.RegisterObject;
  14414. TActivityListResponse.RegisterObject;
  14415. TActivitySnippet.RegisterObject;
  14416. TCaption.RegisterObject;
  14417. TCaptionListResponse.RegisterObject;
  14418. TCaptionSnippet.RegisterObject;
  14419. TCdnSettings.RegisterObject;
  14420. TChannelTypelocalizations.RegisterObject;
  14421. TChannel.RegisterObject;
  14422. TChannelAuditDetails.RegisterObject;
  14423. TChannelBannerResource.RegisterObject;
  14424. TChannelBrandingSettings.RegisterObject;
  14425. TChannelContentDetailsTyperelatedPlaylists.RegisterObject;
  14426. TChannelContentDetails.RegisterObject;
  14427. TChannelContentOwnerDetails.RegisterObject;
  14428. TChannelConversionPing.RegisterObject;
  14429. TChannelConversionPings.RegisterObject;
  14430. TChannelListResponse.RegisterObject;
  14431. TChannelLocalization.RegisterObject;
  14432. TChannelProfileDetails.RegisterObject;
  14433. TChannelSectionTypelocalizations.RegisterObject;
  14434. TChannelSection.RegisterObject;
  14435. TChannelSectionContentDetails.RegisterObject;
  14436. TChannelSectionListResponse.RegisterObject;
  14437. TChannelSectionLocalization.RegisterObject;
  14438. TChannelSectionSnippet.RegisterObject;
  14439. TChannelSectionTargeting.RegisterObject;
  14440. TChannelSettings.RegisterObject;
  14441. TChannelSnippet.RegisterObject;
  14442. TChannelStatistics.RegisterObject;
  14443. TChannelStatus.RegisterObject;
  14444. TChannelTopicDetails.RegisterObject;
  14445. TComment.RegisterObject;
  14446. TCommentListResponse.RegisterObject;
  14447. TCommentSnippet.RegisterObject;
  14448. TCommentThread.RegisterObject;
  14449. TCommentThreadListResponse.RegisterObject;
  14450. TCommentThreadReplies.RegisterObject;
  14451. TCommentThreadSnippet.RegisterObject;
  14452. TContentRating.RegisterObject;
  14453. TFanFundingEvent.RegisterObject;
  14454. TFanFundingEventListResponse.RegisterObject;
  14455. TFanFundingEventSnippet.RegisterObject;
  14456. TGeoPoint.RegisterObject;
  14457. TGuideCategory.RegisterObject;
  14458. TGuideCategoryListResponse.RegisterObject;
  14459. TGuideCategorySnippet.RegisterObject;
  14460. TI18nLanguage.RegisterObject;
  14461. TI18nLanguageListResponse.RegisterObject;
  14462. TI18nLanguageSnippet.RegisterObject;
  14463. TI18nRegion.RegisterObject;
  14464. TI18nRegionListResponse.RegisterObject;
  14465. TI18nRegionSnippet.RegisterObject;
  14466. TImageSettings.RegisterObject;
  14467. TIngestionInfo.RegisterObject;
  14468. TInvideoBranding.RegisterObject;
  14469. TInvideoPosition.RegisterObject;
  14470. TInvideoPromotion.RegisterObject;
  14471. TInvideoTiming.RegisterObject;
  14472. TLanguageTag.RegisterObject;
  14473. TLiveBroadcast.RegisterObject;
  14474. TLiveBroadcastContentDetails.RegisterObject;
  14475. TLiveBroadcastListResponse.RegisterObject;
  14476. TLiveBroadcastSnippet.RegisterObject;
  14477. TLiveBroadcastStatistics.RegisterObject;
  14478. TLiveBroadcastStatus.RegisterObject;
  14479. TLiveBroadcastTopic.RegisterObject;
  14480. TLiveBroadcastTopicDetails.RegisterObject;
  14481. TLiveBroadcastTopicSnippet.RegisterObject;
  14482. TLiveChatBan.RegisterObject;
  14483. TLiveChatBanSnippet.RegisterObject;
  14484. TLiveChatFanFundingEventDetails.RegisterObject;
  14485. TLiveChatMessage.RegisterObject;
  14486. TLiveChatMessageAuthorDetails.RegisterObject;
  14487. TLiveChatMessageDeletedDetails.RegisterObject;
  14488. TLiveChatMessageListResponse.RegisterObject;
  14489. TLiveChatMessageRetractedDetails.RegisterObject;
  14490. TLiveChatMessageSnippet.RegisterObject;
  14491. TLiveChatModerator.RegisterObject;
  14492. TLiveChatModeratorListResponse.RegisterObject;
  14493. TLiveChatModeratorSnippet.RegisterObject;
  14494. TLiveChatTextMessageDetails.RegisterObject;
  14495. TLiveChatUserBannedMessageDetails.RegisterObject;
  14496. TLiveStream.RegisterObject;
  14497. TLiveStreamConfigurationIssue.RegisterObject;
  14498. TLiveStreamContentDetails.RegisterObject;
  14499. TLiveStreamHealthStatus.RegisterObject;
  14500. TLiveStreamListResponse.RegisterObject;
  14501. TLiveStreamSnippet.RegisterObject;
  14502. TLiveStreamStatus.RegisterObject;
  14503. TLocalizedProperty.RegisterObject;
  14504. TLocalizedString.RegisterObject;
  14505. TMonitorStreamInfo.RegisterObject;
  14506. TPageInfo.RegisterObject;
  14507. TPlaylistTypelocalizations.RegisterObject;
  14508. TPlaylist.RegisterObject;
  14509. TPlaylistContentDetails.RegisterObject;
  14510. TPlaylistItem.RegisterObject;
  14511. TPlaylistItemContentDetails.RegisterObject;
  14512. TPlaylistItemListResponse.RegisterObject;
  14513. TPlaylistItemSnippet.RegisterObject;
  14514. TPlaylistItemStatus.RegisterObject;
  14515. TPlaylistListResponse.RegisterObject;
  14516. TPlaylistLocalization.RegisterObject;
  14517. TPlaylistPlayer.RegisterObject;
  14518. TPlaylistSnippet.RegisterObject;
  14519. TPlaylistStatus.RegisterObject;
  14520. TPromotedItem.RegisterObject;
  14521. TPromotedItemId.RegisterObject;
  14522. TPropertyValue.RegisterObject;
  14523. TResourceId.RegisterObject;
  14524. TSearchListResponse.RegisterObject;
  14525. TSearchResult.RegisterObject;
  14526. TSearchResultSnippet.RegisterObject;
  14527. TSponsor.RegisterObject;
  14528. TSponsorListResponse.RegisterObject;
  14529. TSponsorSnippet.RegisterObject;
  14530. TSubscription.RegisterObject;
  14531. TSubscriptionContentDetails.RegisterObject;
  14532. TSubscriptionListResponse.RegisterObject;
  14533. TSubscriptionSnippet.RegisterObject;
  14534. TSubscriptionSubscriberSnippet.RegisterObject;
  14535. TThumbnail.RegisterObject;
  14536. TThumbnailDetails.RegisterObject;
  14537. TThumbnailSetResponse.RegisterObject;
  14538. TTokenPagination.RegisterObject;
  14539. TVideoTypelocalizations.RegisterObject;
  14540. TVideo.RegisterObject;
  14541. TVideoAbuseReport.RegisterObject;
  14542. TVideoAbuseReportReason.RegisterObject;
  14543. TVideoAbuseReportReasonListResponse.RegisterObject;
  14544. TVideoAbuseReportReasonSnippet.RegisterObject;
  14545. TVideoAbuseReportSecondaryReason.RegisterObject;
  14546. TVideoAgeGating.RegisterObject;
  14547. TVideoCategory.RegisterObject;
  14548. TVideoCategoryListResponse.RegisterObject;
  14549. TVideoCategorySnippet.RegisterObject;
  14550. TVideoContentDetails.RegisterObject;
  14551. TVideoContentDetailsRegionRestriction.RegisterObject;
  14552. TVideoFileDetails.RegisterObject;
  14553. TVideoFileDetailsAudioStream.RegisterObject;
  14554. TVideoFileDetailsVideoStream.RegisterObject;
  14555. TVideoGetRatingResponse.RegisterObject;
  14556. TVideoListResponse.RegisterObject;
  14557. TVideoLiveStreamingDetails.RegisterObject;
  14558. TVideoLocalization.RegisterObject;
  14559. TVideoMonetizationDetails.RegisterObject;
  14560. TVideoPlayer.RegisterObject;
  14561. TVideoProcessingDetails.RegisterObject;
  14562. TVideoProcessingDetailsProcessingProgress.RegisterObject;
  14563. TVideoProjectDetails.RegisterObject;
  14564. TVideoRating.RegisterObject;
  14565. TVideoRecordingDetails.RegisterObject;
  14566. TVideoSnippet.RegisterObject;
  14567. TVideoStatistics.RegisterObject;
  14568. TVideoStatus.RegisterObject;
  14569. TVideoSuggestions.RegisterObject;
  14570. TVideoSuggestionsTagSuggestion.RegisterObject;
  14571. TVideoTopicDetails.RegisterObject;
  14572. TWatchSettings.RegisterObject;
  14573. end;
  14574. Function TYoutubeAPI.GetActivitiesInstance : TActivitiesResource;
  14575. begin
  14576. if (FActivitiesInstance=Nil) then
  14577. FActivitiesInstance:=CreateActivitiesResource;
  14578. Result:=FActivitiesInstance;
  14579. end;
  14580. Function TYoutubeAPI.CreateActivitiesResource : TActivitiesResource;
  14581. begin
  14582. Result:=CreateActivitiesResource(Self);
  14583. end;
  14584. Function TYoutubeAPI.CreateActivitiesResource(AOwner : TComponent) : TActivitiesResource;
  14585. begin
  14586. Result:=TActivitiesResource.Create(AOwner);
  14587. Result.API:=Self.API;
  14588. end;
  14589. Function TYoutubeAPI.GetCaptionsInstance : TCaptionsResource;
  14590. begin
  14591. if (FCaptionsInstance=Nil) then
  14592. FCaptionsInstance:=CreateCaptionsResource;
  14593. Result:=FCaptionsInstance;
  14594. end;
  14595. Function TYoutubeAPI.CreateCaptionsResource : TCaptionsResource;
  14596. begin
  14597. Result:=CreateCaptionsResource(Self);
  14598. end;
  14599. Function TYoutubeAPI.CreateCaptionsResource(AOwner : TComponent) : TCaptionsResource;
  14600. begin
  14601. Result:=TCaptionsResource.Create(AOwner);
  14602. Result.API:=Self.API;
  14603. end;
  14604. Function TYoutubeAPI.GetChannelBannersInstance : TChannelBannersResource;
  14605. begin
  14606. if (FChannelBannersInstance=Nil) then
  14607. FChannelBannersInstance:=CreateChannelBannersResource;
  14608. Result:=FChannelBannersInstance;
  14609. end;
  14610. Function TYoutubeAPI.CreateChannelBannersResource : TChannelBannersResource;
  14611. begin
  14612. Result:=CreateChannelBannersResource(Self);
  14613. end;
  14614. Function TYoutubeAPI.CreateChannelBannersResource(AOwner : TComponent) : TChannelBannersResource;
  14615. begin
  14616. Result:=TChannelBannersResource.Create(AOwner);
  14617. Result.API:=Self.API;
  14618. end;
  14619. Function TYoutubeAPI.GetChannelSectionsInstance : TChannelSectionsResource;
  14620. begin
  14621. if (FChannelSectionsInstance=Nil) then
  14622. FChannelSectionsInstance:=CreateChannelSectionsResource;
  14623. Result:=FChannelSectionsInstance;
  14624. end;
  14625. Function TYoutubeAPI.CreateChannelSectionsResource : TChannelSectionsResource;
  14626. begin
  14627. Result:=CreateChannelSectionsResource(Self);
  14628. end;
  14629. Function TYoutubeAPI.CreateChannelSectionsResource(AOwner : TComponent) : TChannelSectionsResource;
  14630. begin
  14631. Result:=TChannelSectionsResource.Create(AOwner);
  14632. Result.API:=Self.API;
  14633. end;
  14634. Function TYoutubeAPI.GetChannelsInstance : TChannelsResource;
  14635. begin
  14636. if (FChannelsInstance=Nil) then
  14637. FChannelsInstance:=CreateChannelsResource;
  14638. Result:=FChannelsInstance;
  14639. end;
  14640. Function TYoutubeAPI.CreateChannelsResource : TChannelsResource;
  14641. begin
  14642. Result:=CreateChannelsResource(Self);
  14643. end;
  14644. Function TYoutubeAPI.CreateChannelsResource(AOwner : TComponent) : TChannelsResource;
  14645. begin
  14646. Result:=TChannelsResource.Create(AOwner);
  14647. Result.API:=Self.API;
  14648. end;
  14649. Function TYoutubeAPI.GetCommentThreadsInstance : TCommentThreadsResource;
  14650. begin
  14651. if (FCommentThreadsInstance=Nil) then
  14652. FCommentThreadsInstance:=CreateCommentThreadsResource;
  14653. Result:=FCommentThreadsInstance;
  14654. end;
  14655. Function TYoutubeAPI.CreateCommentThreadsResource : TCommentThreadsResource;
  14656. begin
  14657. Result:=CreateCommentThreadsResource(Self);
  14658. end;
  14659. Function TYoutubeAPI.CreateCommentThreadsResource(AOwner : TComponent) : TCommentThreadsResource;
  14660. begin
  14661. Result:=TCommentThreadsResource.Create(AOwner);
  14662. Result.API:=Self.API;
  14663. end;
  14664. Function TYoutubeAPI.GetCommentsInstance : TCommentsResource;
  14665. begin
  14666. if (FCommentsInstance=Nil) then
  14667. FCommentsInstance:=CreateCommentsResource;
  14668. Result:=FCommentsInstance;
  14669. end;
  14670. Function TYoutubeAPI.CreateCommentsResource : TCommentsResource;
  14671. begin
  14672. Result:=CreateCommentsResource(Self);
  14673. end;
  14674. Function TYoutubeAPI.CreateCommentsResource(AOwner : TComponent) : TCommentsResource;
  14675. begin
  14676. Result:=TCommentsResource.Create(AOwner);
  14677. Result.API:=Self.API;
  14678. end;
  14679. Function TYoutubeAPI.GetFanFundingEventsInstance : TFanFundingEventsResource;
  14680. begin
  14681. if (FFanFundingEventsInstance=Nil) then
  14682. FFanFundingEventsInstance:=CreateFanFundingEventsResource;
  14683. Result:=FFanFundingEventsInstance;
  14684. end;
  14685. Function TYoutubeAPI.CreateFanFundingEventsResource : TFanFundingEventsResource;
  14686. begin
  14687. Result:=CreateFanFundingEventsResource(Self);
  14688. end;
  14689. Function TYoutubeAPI.CreateFanFundingEventsResource(AOwner : TComponent) : TFanFundingEventsResource;
  14690. begin
  14691. Result:=TFanFundingEventsResource.Create(AOwner);
  14692. Result.API:=Self.API;
  14693. end;
  14694. Function TYoutubeAPI.GetGuideCategoriesInstance : TGuideCategoriesResource;
  14695. begin
  14696. if (FGuideCategoriesInstance=Nil) then
  14697. FGuideCategoriesInstance:=CreateGuideCategoriesResource;
  14698. Result:=FGuideCategoriesInstance;
  14699. end;
  14700. Function TYoutubeAPI.CreateGuideCategoriesResource : TGuideCategoriesResource;
  14701. begin
  14702. Result:=CreateGuideCategoriesResource(Self);
  14703. end;
  14704. Function TYoutubeAPI.CreateGuideCategoriesResource(AOwner : TComponent) : TGuideCategoriesResource;
  14705. begin
  14706. Result:=TGuideCategoriesResource.Create(AOwner);
  14707. Result.API:=Self.API;
  14708. end;
  14709. Function TYoutubeAPI.GetI18nLanguagesInstance : TI18nLanguagesResource;
  14710. begin
  14711. if (FI18nLanguagesInstance=Nil) then
  14712. FI18nLanguagesInstance:=CreateI18nLanguagesResource;
  14713. Result:=FI18nLanguagesInstance;
  14714. end;
  14715. Function TYoutubeAPI.CreateI18nLanguagesResource : TI18nLanguagesResource;
  14716. begin
  14717. Result:=CreateI18nLanguagesResource(Self);
  14718. end;
  14719. Function TYoutubeAPI.CreateI18nLanguagesResource(AOwner : TComponent) : TI18nLanguagesResource;
  14720. begin
  14721. Result:=TI18nLanguagesResource.Create(AOwner);
  14722. Result.API:=Self.API;
  14723. end;
  14724. Function TYoutubeAPI.GetI18nRegionsInstance : TI18nRegionsResource;
  14725. begin
  14726. if (FI18nRegionsInstance=Nil) then
  14727. FI18nRegionsInstance:=CreateI18nRegionsResource;
  14728. Result:=FI18nRegionsInstance;
  14729. end;
  14730. Function TYoutubeAPI.CreateI18nRegionsResource : TI18nRegionsResource;
  14731. begin
  14732. Result:=CreateI18nRegionsResource(Self);
  14733. end;
  14734. Function TYoutubeAPI.CreateI18nRegionsResource(AOwner : TComponent) : TI18nRegionsResource;
  14735. begin
  14736. Result:=TI18nRegionsResource.Create(AOwner);
  14737. Result.API:=Self.API;
  14738. end;
  14739. Function TYoutubeAPI.GetLiveBroadcastsInstance : TLiveBroadcastsResource;
  14740. begin
  14741. if (FLiveBroadcastsInstance=Nil) then
  14742. FLiveBroadcastsInstance:=CreateLiveBroadcastsResource;
  14743. Result:=FLiveBroadcastsInstance;
  14744. end;
  14745. Function TYoutubeAPI.CreateLiveBroadcastsResource : TLiveBroadcastsResource;
  14746. begin
  14747. Result:=CreateLiveBroadcastsResource(Self);
  14748. end;
  14749. Function TYoutubeAPI.CreateLiveBroadcastsResource(AOwner : TComponent) : TLiveBroadcastsResource;
  14750. begin
  14751. Result:=TLiveBroadcastsResource.Create(AOwner);
  14752. Result.API:=Self.API;
  14753. end;
  14754. Function TYoutubeAPI.GetLiveChatBansInstance : TLiveChatBansResource;
  14755. begin
  14756. if (FLiveChatBansInstance=Nil) then
  14757. FLiveChatBansInstance:=CreateLiveChatBansResource;
  14758. Result:=FLiveChatBansInstance;
  14759. end;
  14760. Function TYoutubeAPI.CreateLiveChatBansResource : TLiveChatBansResource;
  14761. begin
  14762. Result:=CreateLiveChatBansResource(Self);
  14763. end;
  14764. Function TYoutubeAPI.CreateLiveChatBansResource(AOwner : TComponent) : TLiveChatBansResource;
  14765. begin
  14766. Result:=TLiveChatBansResource.Create(AOwner);
  14767. Result.API:=Self.API;
  14768. end;
  14769. Function TYoutubeAPI.GetLiveChatMessagesInstance : TLiveChatMessagesResource;
  14770. begin
  14771. if (FLiveChatMessagesInstance=Nil) then
  14772. FLiveChatMessagesInstance:=CreateLiveChatMessagesResource;
  14773. Result:=FLiveChatMessagesInstance;
  14774. end;
  14775. Function TYoutubeAPI.CreateLiveChatMessagesResource : TLiveChatMessagesResource;
  14776. begin
  14777. Result:=CreateLiveChatMessagesResource(Self);
  14778. end;
  14779. Function TYoutubeAPI.CreateLiveChatMessagesResource(AOwner : TComponent) : TLiveChatMessagesResource;
  14780. begin
  14781. Result:=TLiveChatMessagesResource.Create(AOwner);
  14782. Result.API:=Self.API;
  14783. end;
  14784. Function TYoutubeAPI.GetLiveChatModeratorsInstance : TLiveChatModeratorsResource;
  14785. begin
  14786. if (FLiveChatModeratorsInstance=Nil) then
  14787. FLiveChatModeratorsInstance:=CreateLiveChatModeratorsResource;
  14788. Result:=FLiveChatModeratorsInstance;
  14789. end;
  14790. Function TYoutubeAPI.CreateLiveChatModeratorsResource : TLiveChatModeratorsResource;
  14791. begin
  14792. Result:=CreateLiveChatModeratorsResource(Self);
  14793. end;
  14794. Function TYoutubeAPI.CreateLiveChatModeratorsResource(AOwner : TComponent) : TLiveChatModeratorsResource;
  14795. begin
  14796. Result:=TLiveChatModeratorsResource.Create(AOwner);
  14797. Result.API:=Self.API;
  14798. end;
  14799. Function TYoutubeAPI.GetLiveStreamsInstance : TLiveStreamsResource;
  14800. begin
  14801. if (FLiveStreamsInstance=Nil) then
  14802. FLiveStreamsInstance:=CreateLiveStreamsResource;
  14803. Result:=FLiveStreamsInstance;
  14804. end;
  14805. Function TYoutubeAPI.CreateLiveStreamsResource : TLiveStreamsResource;
  14806. begin
  14807. Result:=CreateLiveStreamsResource(Self);
  14808. end;
  14809. Function TYoutubeAPI.CreateLiveStreamsResource(AOwner : TComponent) : TLiveStreamsResource;
  14810. begin
  14811. Result:=TLiveStreamsResource.Create(AOwner);
  14812. Result.API:=Self.API;
  14813. end;
  14814. Function TYoutubeAPI.GetPlaylistItemsInstance : TPlaylistItemsResource;
  14815. begin
  14816. if (FPlaylistItemsInstance=Nil) then
  14817. FPlaylistItemsInstance:=CreatePlaylistItemsResource;
  14818. Result:=FPlaylistItemsInstance;
  14819. end;
  14820. Function TYoutubeAPI.CreatePlaylistItemsResource : TPlaylistItemsResource;
  14821. begin
  14822. Result:=CreatePlaylistItemsResource(Self);
  14823. end;
  14824. Function TYoutubeAPI.CreatePlaylistItemsResource(AOwner : TComponent) : TPlaylistItemsResource;
  14825. begin
  14826. Result:=TPlaylistItemsResource.Create(AOwner);
  14827. Result.API:=Self.API;
  14828. end;
  14829. Function TYoutubeAPI.GetPlaylistsInstance : TPlaylistsResource;
  14830. begin
  14831. if (FPlaylistsInstance=Nil) then
  14832. FPlaylistsInstance:=CreatePlaylistsResource;
  14833. Result:=FPlaylistsInstance;
  14834. end;
  14835. Function TYoutubeAPI.CreatePlaylistsResource : TPlaylistsResource;
  14836. begin
  14837. Result:=CreatePlaylistsResource(Self);
  14838. end;
  14839. Function TYoutubeAPI.CreatePlaylistsResource(AOwner : TComponent) : TPlaylistsResource;
  14840. begin
  14841. Result:=TPlaylistsResource.Create(AOwner);
  14842. Result.API:=Self.API;
  14843. end;
  14844. Function TYoutubeAPI.GetSearchInstance : TSearchResource;
  14845. begin
  14846. if (FSearchInstance=Nil) then
  14847. FSearchInstance:=CreateSearchResource;
  14848. Result:=FSearchInstance;
  14849. end;
  14850. Function TYoutubeAPI.CreateSearchResource : TSearchResource;
  14851. begin
  14852. Result:=CreateSearchResource(Self);
  14853. end;
  14854. Function TYoutubeAPI.CreateSearchResource(AOwner : TComponent) : TSearchResource;
  14855. begin
  14856. Result:=TSearchResource.Create(AOwner);
  14857. Result.API:=Self.API;
  14858. end;
  14859. Function TYoutubeAPI.GetSponsorsInstance : TSponsorsResource;
  14860. begin
  14861. if (FSponsorsInstance=Nil) then
  14862. FSponsorsInstance:=CreateSponsorsResource;
  14863. Result:=FSponsorsInstance;
  14864. end;
  14865. Function TYoutubeAPI.CreateSponsorsResource : TSponsorsResource;
  14866. begin
  14867. Result:=CreateSponsorsResource(Self);
  14868. end;
  14869. Function TYoutubeAPI.CreateSponsorsResource(AOwner : TComponent) : TSponsorsResource;
  14870. begin
  14871. Result:=TSponsorsResource.Create(AOwner);
  14872. Result.API:=Self.API;
  14873. end;
  14874. Function TYoutubeAPI.GetSubscriptionsInstance : TSubscriptionsResource;
  14875. begin
  14876. if (FSubscriptionsInstance=Nil) then
  14877. FSubscriptionsInstance:=CreateSubscriptionsResource;
  14878. Result:=FSubscriptionsInstance;
  14879. end;
  14880. Function TYoutubeAPI.CreateSubscriptionsResource : TSubscriptionsResource;
  14881. begin
  14882. Result:=CreateSubscriptionsResource(Self);
  14883. end;
  14884. Function TYoutubeAPI.CreateSubscriptionsResource(AOwner : TComponent) : TSubscriptionsResource;
  14885. begin
  14886. Result:=TSubscriptionsResource.Create(AOwner);
  14887. Result.API:=Self.API;
  14888. end;
  14889. Function TYoutubeAPI.GetThumbnailsInstance : TThumbnailsResource;
  14890. begin
  14891. if (FThumbnailsInstance=Nil) then
  14892. FThumbnailsInstance:=CreateThumbnailsResource;
  14893. Result:=FThumbnailsInstance;
  14894. end;
  14895. Function TYoutubeAPI.CreateThumbnailsResource : TThumbnailsResource;
  14896. begin
  14897. Result:=CreateThumbnailsResource(Self);
  14898. end;
  14899. Function TYoutubeAPI.CreateThumbnailsResource(AOwner : TComponent) : TThumbnailsResource;
  14900. begin
  14901. Result:=TThumbnailsResource.Create(AOwner);
  14902. Result.API:=Self.API;
  14903. end;
  14904. Function TYoutubeAPI.GetVideoAbuseReportReasonsInstance : TVideoAbuseReportReasonsResource;
  14905. begin
  14906. if (FVideoAbuseReportReasonsInstance=Nil) then
  14907. FVideoAbuseReportReasonsInstance:=CreateVideoAbuseReportReasonsResource;
  14908. Result:=FVideoAbuseReportReasonsInstance;
  14909. end;
  14910. Function TYoutubeAPI.CreateVideoAbuseReportReasonsResource : TVideoAbuseReportReasonsResource;
  14911. begin
  14912. Result:=CreateVideoAbuseReportReasonsResource(Self);
  14913. end;
  14914. Function TYoutubeAPI.CreateVideoAbuseReportReasonsResource(AOwner : TComponent) : TVideoAbuseReportReasonsResource;
  14915. begin
  14916. Result:=TVideoAbuseReportReasonsResource.Create(AOwner);
  14917. Result.API:=Self.API;
  14918. end;
  14919. Function TYoutubeAPI.GetVideoCategoriesInstance : TVideoCategoriesResource;
  14920. begin
  14921. if (FVideoCategoriesInstance=Nil) then
  14922. FVideoCategoriesInstance:=CreateVideoCategoriesResource;
  14923. Result:=FVideoCategoriesInstance;
  14924. end;
  14925. Function TYoutubeAPI.CreateVideoCategoriesResource : TVideoCategoriesResource;
  14926. begin
  14927. Result:=CreateVideoCategoriesResource(Self);
  14928. end;
  14929. Function TYoutubeAPI.CreateVideoCategoriesResource(AOwner : TComponent) : TVideoCategoriesResource;
  14930. begin
  14931. Result:=TVideoCategoriesResource.Create(AOwner);
  14932. Result.API:=Self.API;
  14933. end;
  14934. Function TYoutubeAPI.GetVideosInstance : TVideosResource;
  14935. begin
  14936. if (FVideosInstance=Nil) then
  14937. FVideosInstance:=CreateVideosResource;
  14938. Result:=FVideosInstance;
  14939. end;
  14940. Function TYoutubeAPI.CreateVideosResource : TVideosResource;
  14941. begin
  14942. Result:=CreateVideosResource(Self);
  14943. end;
  14944. Function TYoutubeAPI.CreateVideosResource(AOwner : TComponent) : TVideosResource;
  14945. begin
  14946. Result:=TVideosResource.Create(AOwner);
  14947. Result.API:=Self.API;
  14948. end;
  14949. Function TYoutubeAPI.GetWatermarksInstance : TWatermarksResource;
  14950. begin
  14951. if (FWatermarksInstance=Nil) then
  14952. FWatermarksInstance:=CreateWatermarksResource;
  14953. Result:=FWatermarksInstance;
  14954. end;
  14955. Function TYoutubeAPI.CreateWatermarksResource : TWatermarksResource;
  14956. begin
  14957. Result:=CreateWatermarksResource(Self);
  14958. end;
  14959. Function TYoutubeAPI.CreateWatermarksResource(AOwner : TComponent) : TWatermarksResource;
  14960. begin
  14961. Result:=TWatermarksResource.Create(AOwner);
  14962. Result.API:=Self.API;
  14963. end;
  14964. initialization
  14965. TYoutubeAPI.RegisterAPI;
  14966. end.