googlegames.pp 353 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328
  1. unit googlegames;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TAchievementDefinition = Class;
  9. TAchievementDefinitionsListResponse = Class;
  10. TAchievementIncrementResponse = Class;
  11. TAchievementRevealResponse = Class;
  12. TAchievementSetStepsAtLeastResponse = Class;
  13. TAchievementUnlockResponse = Class;
  14. TAchievementUpdateMultipleRequest = Class;
  15. TAchievementUpdateMultipleResponse = Class;
  16. TAchievementUpdateRequest = Class;
  17. TAchievementUpdateResponse = Class;
  18. TAggregateStats = Class;
  19. TAnonymousPlayer = Class;
  20. TApplication = Class;
  21. TApplicationCategory = Class;
  22. TApplicationVerifyResponse = Class;
  23. TCategory = Class;
  24. TCategoryListResponse = Class;
  25. TEventBatchRecordFailure = Class;
  26. TEventChild = Class;
  27. TEventDefinition = Class;
  28. TEventDefinitionListResponse = Class;
  29. TEventPeriodRange = Class;
  30. TEventPeriodUpdate = Class;
  31. TEventRecordFailure = Class;
  32. TEventRecordRequest = Class;
  33. TEventUpdateRequest = Class;
  34. TEventUpdateResponse = Class;
  35. TGamesAchievementIncrement = Class;
  36. TGamesAchievementSetStepsAtLeast = Class;
  37. TImageAsset = Class;
  38. TInstance = Class;
  39. TInstanceAndroidDetails = Class;
  40. TInstanceIosDetails = Class;
  41. TInstanceWebDetails = Class;
  42. TLeaderboard = Class;
  43. TLeaderboardEntry = Class;
  44. TLeaderboardListResponse = Class;
  45. TLeaderboardScoreRank = Class;
  46. TLeaderboardScores = Class;
  47. TMetagameConfig = Class;
  48. TNetworkDiagnostics = Class;
  49. TParticipantResult = Class;
  50. TPeerChannelDiagnostics = Class;
  51. TPeerSessionDiagnostics = Class;
  52. TPlayed = Class;
  53. TPlayer = Class;
  54. TPlayerAchievement = Class;
  55. TPlayerAchievementListResponse = Class;
  56. TPlayerEvent = Class;
  57. TPlayerEventListResponse = Class;
  58. TPlayerExperienceInfo = Class;
  59. TPlayerLeaderboardScore = Class;
  60. TPlayerLeaderboardScoreListResponse = Class;
  61. TPlayerLevel = Class;
  62. TPlayerListResponse = Class;
  63. TPlayerScore = Class;
  64. TPlayerScoreListResponse = Class;
  65. TPlayerScoreResponse = Class;
  66. TPlayerScoreSubmissionList = Class;
  67. TProfileSettings = Class;
  68. TPushToken = Class;
  69. TPushTokenId = Class;
  70. TQuest = Class;
  71. TQuestContribution = Class;
  72. TQuestCriterion = Class;
  73. TQuestListResponse = Class;
  74. TQuestMilestone = Class;
  75. TRevisionCheckResponse = Class;
  76. TRoom = Class;
  77. TRoomAutoMatchStatus = Class;
  78. TRoomAutoMatchingCriteria = Class;
  79. TRoomClientAddress = Class;
  80. TRoomCreateRequest = Class;
  81. TRoomJoinRequest = Class;
  82. TRoomLeaveDiagnostics = Class;
  83. TRoomLeaveRequest = Class;
  84. TRoomList = Class;
  85. TRoomModification = Class;
  86. TRoomP2PStatus = Class;
  87. TRoomP2PStatuses = Class;
  88. TRoomParticipant = Class;
  89. TRoomStatus = Class;
  90. TScoreSubmission = Class;
  91. TSnapshot = Class;
  92. TSnapshotImage = Class;
  93. TSnapshotListResponse = Class;
  94. TTurnBasedAutoMatchingCriteria = Class;
  95. TTurnBasedMatch = Class;
  96. TTurnBasedMatchCreateRequest = Class;
  97. TTurnBasedMatchData = Class;
  98. TTurnBasedMatchDataRequest = Class;
  99. TTurnBasedMatchList = Class;
  100. TTurnBasedMatchModification = Class;
  101. TTurnBasedMatchParticipant = Class;
  102. TTurnBasedMatchRematch = Class;
  103. TTurnBasedMatchResults = Class;
  104. TTurnBasedMatchSync = Class;
  105. TTurnBasedMatchTurn = Class;
  106. TAchievementDefinitionArray = Array of TAchievementDefinition;
  107. TAchievementDefinitionsListResponseArray = Array of TAchievementDefinitionsListResponse;
  108. TAchievementIncrementResponseArray = Array of TAchievementIncrementResponse;
  109. TAchievementRevealResponseArray = Array of TAchievementRevealResponse;
  110. TAchievementSetStepsAtLeastResponseArray = Array of TAchievementSetStepsAtLeastResponse;
  111. TAchievementUnlockResponseArray = Array of TAchievementUnlockResponse;
  112. TAchievementUpdateMultipleRequestArray = Array of TAchievementUpdateMultipleRequest;
  113. TAchievementUpdateMultipleResponseArray = Array of TAchievementUpdateMultipleResponse;
  114. TAchievementUpdateRequestArray = Array of TAchievementUpdateRequest;
  115. TAchievementUpdateResponseArray = Array of TAchievementUpdateResponse;
  116. TAggregateStatsArray = Array of TAggregateStats;
  117. TAnonymousPlayerArray = Array of TAnonymousPlayer;
  118. TApplicationArray = Array of TApplication;
  119. TApplicationCategoryArray = Array of TApplicationCategory;
  120. TApplicationVerifyResponseArray = Array of TApplicationVerifyResponse;
  121. TCategoryArray = Array of TCategory;
  122. TCategoryListResponseArray = Array of TCategoryListResponse;
  123. TEventBatchRecordFailureArray = Array of TEventBatchRecordFailure;
  124. TEventChildArray = Array of TEventChild;
  125. TEventDefinitionArray = Array of TEventDefinition;
  126. TEventDefinitionListResponseArray = Array of TEventDefinitionListResponse;
  127. TEventPeriodRangeArray = Array of TEventPeriodRange;
  128. TEventPeriodUpdateArray = Array of TEventPeriodUpdate;
  129. TEventRecordFailureArray = Array of TEventRecordFailure;
  130. TEventRecordRequestArray = Array of TEventRecordRequest;
  131. TEventUpdateRequestArray = Array of TEventUpdateRequest;
  132. TEventUpdateResponseArray = Array of TEventUpdateResponse;
  133. TGamesAchievementIncrementArray = Array of TGamesAchievementIncrement;
  134. TGamesAchievementSetStepsAtLeastArray = Array of TGamesAchievementSetStepsAtLeast;
  135. TImageAssetArray = Array of TImageAsset;
  136. TInstanceArray = Array of TInstance;
  137. TInstanceAndroidDetailsArray = Array of TInstanceAndroidDetails;
  138. TInstanceIosDetailsArray = Array of TInstanceIosDetails;
  139. TInstanceWebDetailsArray = Array of TInstanceWebDetails;
  140. TLeaderboardArray = Array of TLeaderboard;
  141. TLeaderboardEntryArray = Array of TLeaderboardEntry;
  142. TLeaderboardListResponseArray = Array of TLeaderboardListResponse;
  143. TLeaderboardScoreRankArray = Array of TLeaderboardScoreRank;
  144. TLeaderboardScoresArray = Array of TLeaderboardScores;
  145. TMetagameConfigArray = Array of TMetagameConfig;
  146. TNetworkDiagnosticsArray = Array of TNetworkDiagnostics;
  147. TParticipantResultArray = Array of TParticipantResult;
  148. TPeerChannelDiagnosticsArray = Array of TPeerChannelDiagnostics;
  149. TPeerSessionDiagnosticsArray = Array of TPeerSessionDiagnostics;
  150. TPlayedArray = Array of TPlayed;
  151. TPlayerArray = Array of TPlayer;
  152. TPlayerAchievementArray = Array of TPlayerAchievement;
  153. TPlayerAchievementListResponseArray = Array of TPlayerAchievementListResponse;
  154. TPlayerEventArray = Array of TPlayerEvent;
  155. TPlayerEventListResponseArray = Array of TPlayerEventListResponse;
  156. TPlayerExperienceInfoArray = Array of TPlayerExperienceInfo;
  157. TPlayerLeaderboardScoreArray = Array of TPlayerLeaderboardScore;
  158. TPlayerLeaderboardScoreListResponseArray = Array of TPlayerLeaderboardScoreListResponse;
  159. TPlayerLevelArray = Array of TPlayerLevel;
  160. TPlayerListResponseArray = Array of TPlayerListResponse;
  161. TPlayerScoreArray = Array of TPlayerScore;
  162. TPlayerScoreListResponseArray = Array of TPlayerScoreListResponse;
  163. TPlayerScoreResponseArray = Array of TPlayerScoreResponse;
  164. TPlayerScoreSubmissionListArray = Array of TPlayerScoreSubmissionList;
  165. TProfileSettingsArray = Array of TProfileSettings;
  166. TPushTokenArray = Array of TPushToken;
  167. TPushTokenIdArray = Array of TPushTokenId;
  168. TQuestArray = Array of TQuest;
  169. TQuestContributionArray = Array of TQuestContribution;
  170. TQuestCriterionArray = Array of TQuestCriterion;
  171. TQuestListResponseArray = Array of TQuestListResponse;
  172. TQuestMilestoneArray = Array of TQuestMilestone;
  173. TRevisionCheckResponseArray = Array of TRevisionCheckResponse;
  174. TRoomArray = Array of TRoom;
  175. TRoomAutoMatchStatusArray = Array of TRoomAutoMatchStatus;
  176. TRoomAutoMatchingCriteriaArray = Array of TRoomAutoMatchingCriteria;
  177. TRoomClientAddressArray = Array of TRoomClientAddress;
  178. TRoomCreateRequestArray = Array of TRoomCreateRequest;
  179. TRoomJoinRequestArray = Array of TRoomJoinRequest;
  180. TRoomLeaveDiagnosticsArray = Array of TRoomLeaveDiagnostics;
  181. TRoomLeaveRequestArray = Array of TRoomLeaveRequest;
  182. TRoomListArray = Array of TRoomList;
  183. TRoomModificationArray = Array of TRoomModification;
  184. TRoomP2PStatusArray = Array of TRoomP2PStatus;
  185. TRoomP2PStatusesArray = Array of TRoomP2PStatuses;
  186. TRoomParticipantArray = Array of TRoomParticipant;
  187. TRoomStatusArray = Array of TRoomStatus;
  188. TScoreSubmissionArray = Array of TScoreSubmission;
  189. TSnapshotArray = Array of TSnapshot;
  190. TSnapshotImageArray = Array of TSnapshotImage;
  191. TSnapshotListResponseArray = Array of TSnapshotListResponse;
  192. TTurnBasedAutoMatchingCriteriaArray = Array of TTurnBasedAutoMatchingCriteria;
  193. TTurnBasedMatchArray = Array of TTurnBasedMatch;
  194. TTurnBasedMatchCreateRequestArray = Array of TTurnBasedMatchCreateRequest;
  195. TTurnBasedMatchDataArray = Array of TTurnBasedMatchData;
  196. TTurnBasedMatchDataRequestArray = Array of TTurnBasedMatchDataRequest;
  197. TTurnBasedMatchListArray = Array of TTurnBasedMatchList;
  198. TTurnBasedMatchModificationArray = Array of TTurnBasedMatchModification;
  199. TTurnBasedMatchParticipantArray = Array of TTurnBasedMatchParticipant;
  200. TTurnBasedMatchRematchArray = Array of TTurnBasedMatchRematch;
  201. TTurnBasedMatchResultsArray = Array of TTurnBasedMatchResults;
  202. TTurnBasedMatchSyncArray = Array of TTurnBasedMatchSync;
  203. TTurnBasedMatchTurnArray = Array of TTurnBasedMatchTurn;
  204. //Anonymous types, using auto-generated names
  205. TPlayerTypename = Class;
  206. TPushTokenIdTypeios = Class;
  207. TAchievementDefinitionsListResponseTypeitemsArray = Array of TAchievementDefinition;
  208. TAchievementUpdateMultipleRequestTypeupdatesArray = Array of TAchievementUpdateRequest;
  209. TAchievementUpdateMultipleResponseTypeupdatedAchievementsArray = Array of TAchievementUpdateResponse;
  210. TApplicationTypeassetsArray = Array of TImageAsset;
  211. TApplicationTypeinstancesArray = Array of TInstance;
  212. TCategoryListResponseTypeitemsArray = Array of TCategory;
  213. TEventDefinitionTypechildEventsArray = Array of TEventChild;
  214. TEventDefinitionListResponseTypeitemsArray = Array of TEventDefinition;
  215. TEventPeriodUpdateTypeupdatesArray = Array of TEventUpdateRequest;
  216. TEventRecordRequestTypetimePeriodsArray = Array of TEventPeriodUpdate;
  217. TEventUpdateResponseTypebatchFailuresArray = Array of TEventBatchRecordFailure;
  218. TEventUpdateResponseTypeeventFailuresArray = Array of TEventRecordFailure;
  219. TEventUpdateResponseTypeplayerEventsArray = Array of TPlayerEvent;
  220. TLeaderboardListResponseTypeitemsArray = Array of TLeaderboard;
  221. TLeaderboardScoresTypeitemsArray = Array of TLeaderboardEntry;
  222. TMetagameConfigTypeplayerLevelsArray = Array of TPlayerLevel;
  223. TPlayerAchievementListResponseTypeitemsArray = Array of TPlayerAchievement;
  224. TPlayerEventListResponseTypeitemsArray = Array of TPlayerEvent;
  225. TPlayerLeaderboardScoreListResponseTypeitemsArray = Array of TPlayerLeaderboardScore;
  226. TPlayerListResponseTypeitemsArray = Array of TPlayer;
  227. TPlayerScoreListResponseTypesubmittedScoresArray = Array of TPlayerScoreResponse;
  228. TPlayerScoreResponseTypeunbeatenScoresArray = Array of TPlayerScore;
  229. TPlayerScoreSubmissionListTypescoresArray = Array of TScoreSubmission;
  230. TQuestTypemilestonesArray = Array of TQuestMilestone;
  231. TQuestListResponseTypeitemsArray = Array of TQuest;
  232. TQuestMilestoneTypecriteriaArray = Array of TQuestCriterion;
  233. TRoomTypeparticipantsArray = Array of TRoomParticipant;
  234. TRoomLeaveDiagnosticsTypepeerSessionArray = Array of TPeerSessionDiagnostics;
  235. TRoomListTypeitemsArray = Array of TRoom;
  236. TRoomP2PStatusesTypeupdatesArray = Array of TRoomP2PStatus;
  237. TRoomStatusTypeparticipantsArray = Array of TRoomParticipant;
  238. TSnapshotListResponseTypeitemsArray = Array of TSnapshot;
  239. TTurnBasedMatchTypeparticipantsArray = Array of TTurnBasedMatchParticipant;
  240. TTurnBasedMatchTyperesultsArray = Array of TParticipantResult;
  241. TTurnBasedMatchListTypeitemsArray = Array of TTurnBasedMatch;
  242. TTurnBasedMatchResultsTyperesultsArray = Array of TParticipantResult;
  243. TTurnBasedMatchSyncTypeitemsArray = Array of TTurnBasedMatch;
  244. TTurnBasedMatchTurnTyperesultsArray = Array of TParticipantResult;
  245. { --------------------------------------------------------------------
  246. TAchievementDefinition
  247. --------------------------------------------------------------------}
  248. TAchievementDefinition = Class(TGoogleBaseObject)
  249. Private
  250. FachievementType : String;
  251. Fdescription : String;
  252. FexperiencePoints : String;
  253. FformattedTotalSteps : String;
  254. Fid : String;
  255. FinitialState : String;
  256. FisRevealedIconUrlDefault : boolean;
  257. FisUnlockedIconUrlDefault : boolean;
  258. Fkind : String;
  259. Fname : String;
  260. FrevealedIconUrl : String;
  261. FtotalSteps : integer;
  262. FunlockedIconUrl : String;
  263. Protected
  264. //Property setters
  265. Procedure SetachievementType(AIndex : Integer; const AValue : String); virtual;
  266. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  267. Procedure SetexperiencePoints(AIndex : Integer; const AValue : String); virtual;
  268. Procedure SetformattedTotalSteps(AIndex : Integer; const AValue : String); virtual;
  269. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  270. Procedure SetinitialState(AIndex : Integer; const AValue : String); virtual;
  271. Procedure SetisRevealedIconUrlDefault(AIndex : Integer; const AValue : boolean); virtual;
  272. Procedure SetisUnlockedIconUrlDefault(AIndex : Integer; const AValue : boolean); virtual;
  273. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  274. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  275. Procedure SetrevealedIconUrl(AIndex : Integer; const AValue : String); virtual;
  276. Procedure SettotalSteps(AIndex : Integer; const AValue : integer); virtual;
  277. Procedure SetunlockedIconUrl(AIndex : Integer; const AValue : String); virtual;
  278. Public
  279. Published
  280. Property achievementType : String Index 0 Read FachievementType Write SetachievementType;
  281. Property description : String Index 8 Read Fdescription Write Setdescription;
  282. Property experiencePoints : String Index 16 Read FexperiencePoints Write SetexperiencePoints;
  283. Property formattedTotalSteps : String Index 24 Read FformattedTotalSteps Write SetformattedTotalSteps;
  284. Property id : String Index 32 Read Fid Write Setid;
  285. Property initialState : String Index 40 Read FinitialState Write SetinitialState;
  286. Property isRevealedIconUrlDefault : boolean Index 48 Read FisRevealedIconUrlDefault Write SetisRevealedIconUrlDefault;
  287. Property isUnlockedIconUrlDefault : boolean Index 56 Read FisUnlockedIconUrlDefault Write SetisUnlockedIconUrlDefault;
  288. Property kind : String Index 64 Read Fkind Write Setkind;
  289. Property name : String Index 72 Read Fname Write Setname;
  290. Property revealedIconUrl : String Index 80 Read FrevealedIconUrl Write SetrevealedIconUrl;
  291. Property totalSteps : integer Index 88 Read FtotalSteps Write SettotalSteps;
  292. Property unlockedIconUrl : String Index 96 Read FunlockedIconUrl Write SetunlockedIconUrl;
  293. end;
  294. TAchievementDefinitionClass = Class of TAchievementDefinition;
  295. { --------------------------------------------------------------------
  296. TAchievementDefinitionsListResponse
  297. --------------------------------------------------------------------}
  298. TAchievementDefinitionsListResponse = Class(TGoogleBaseObject)
  299. Private
  300. Fitems : TAchievementDefinitionsListResponseTypeitemsArray;
  301. Fkind : String;
  302. FnextPageToken : String;
  303. Protected
  304. //Property setters
  305. Procedure Setitems(AIndex : Integer; const AValue : TAchievementDefinitionsListResponseTypeitemsArray); virtual;
  306. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  307. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  308. //2.6.4. bug workaround
  309. {$IFDEF VER2_6}
  310. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  311. {$ENDIF VER2_6}
  312. Public
  313. Published
  314. Property items : TAchievementDefinitionsListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  315. Property kind : String Index 8 Read Fkind Write Setkind;
  316. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  317. end;
  318. TAchievementDefinitionsListResponseClass = Class of TAchievementDefinitionsListResponse;
  319. { --------------------------------------------------------------------
  320. TAchievementIncrementResponse
  321. --------------------------------------------------------------------}
  322. TAchievementIncrementResponse = Class(TGoogleBaseObject)
  323. Private
  324. FcurrentSteps : integer;
  325. Fkind : String;
  326. FnewlyUnlocked : boolean;
  327. Protected
  328. //Property setters
  329. Procedure SetcurrentSteps(AIndex : Integer; const AValue : integer); virtual;
  330. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  331. Procedure SetnewlyUnlocked(AIndex : Integer; const AValue : boolean); virtual;
  332. Public
  333. Published
  334. Property currentSteps : integer Index 0 Read FcurrentSteps Write SetcurrentSteps;
  335. Property kind : String Index 8 Read Fkind Write Setkind;
  336. Property newlyUnlocked : boolean Index 16 Read FnewlyUnlocked Write SetnewlyUnlocked;
  337. end;
  338. TAchievementIncrementResponseClass = Class of TAchievementIncrementResponse;
  339. { --------------------------------------------------------------------
  340. TAchievementRevealResponse
  341. --------------------------------------------------------------------}
  342. TAchievementRevealResponse = Class(TGoogleBaseObject)
  343. Private
  344. FcurrentState : String;
  345. Fkind : String;
  346. Protected
  347. //Property setters
  348. Procedure SetcurrentState(AIndex : Integer; const AValue : String); virtual;
  349. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  350. Public
  351. Published
  352. Property currentState : String Index 0 Read FcurrentState Write SetcurrentState;
  353. Property kind : String Index 8 Read Fkind Write Setkind;
  354. end;
  355. TAchievementRevealResponseClass = Class of TAchievementRevealResponse;
  356. { --------------------------------------------------------------------
  357. TAchievementSetStepsAtLeastResponse
  358. --------------------------------------------------------------------}
  359. TAchievementSetStepsAtLeastResponse = Class(TGoogleBaseObject)
  360. Private
  361. FcurrentSteps : integer;
  362. Fkind : String;
  363. FnewlyUnlocked : boolean;
  364. Protected
  365. //Property setters
  366. Procedure SetcurrentSteps(AIndex : Integer; const AValue : integer); virtual;
  367. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  368. Procedure SetnewlyUnlocked(AIndex : Integer; const AValue : boolean); virtual;
  369. Public
  370. Published
  371. Property currentSteps : integer Index 0 Read FcurrentSteps Write SetcurrentSteps;
  372. Property kind : String Index 8 Read Fkind Write Setkind;
  373. Property newlyUnlocked : boolean Index 16 Read FnewlyUnlocked Write SetnewlyUnlocked;
  374. end;
  375. TAchievementSetStepsAtLeastResponseClass = Class of TAchievementSetStepsAtLeastResponse;
  376. { --------------------------------------------------------------------
  377. TAchievementUnlockResponse
  378. --------------------------------------------------------------------}
  379. TAchievementUnlockResponse = Class(TGoogleBaseObject)
  380. Private
  381. Fkind : String;
  382. FnewlyUnlocked : boolean;
  383. Protected
  384. //Property setters
  385. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  386. Procedure SetnewlyUnlocked(AIndex : Integer; const AValue : boolean); virtual;
  387. Public
  388. Published
  389. Property kind : String Index 0 Read Fkind Write Setkind;
  390. Property newlyUnlocked : boolean Index 8 Read FnewlyUnlocked Write SetnewlyUnlocked;
  391. end;
  392. TAchievementUnlockResponseClass = Class of TAchievementUnlockResponse;
  393. { --------------------------------------------------------------------
  394. TAchievementUpdateMultipleRequest
  395. --------------------------------------------------------------------}
  396. TAchievementUpdateMultipleRequest = Class(TGoogleBaseObject)
  397. Private
  398. Fkind : String;
  399. Fupdates : TAchievementUpdateMultipleRequestTypeupdatesArray;
  400. Protected
  401. //Property setters
  402. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  403. Procedure Setupdates(AIndex : Integer; const AValue : TAchievementUpdateMultipleRequestTypeupdatesArray); virtual;
  404. //2.6.4. bug workaround
  405. {$IFDEF VER2_6}
  406. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  407. {$ENDIF VER2_6}
  408. Public
  409. Published
  410. Property kind : String Index 0 Read Fkind Write Setkind;
  411. Property updates : TAchievementUpdateMultipleRequestTypeupdatesArray Index 8 Read Fupdates Write Setupdates;
  412. end;
  413. TAchievementUpdateMultipleRequestClass = Class of TAchievementUpdateMultipleRequest;
  414. { --------------------------------------------------------------------
  415. TAchievementUpdateMultipleResponse
  416. --------------------------------------------------------------------}
  417. TAchievementUpdateMultipleResponse = Class(TGoogleBaseObject)
  418. Private
  419. Fkind : String;
  420. FupdatedAchievements : TAchievementUpdateMultipleResponseTypeupdatedAchievementsArray;
  421. Protected
  422. //Property setters
  423. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  424. Procedure SetupdatedAchievements(AIndex : Integer; const AValue : TAchievementUpdateMultipleResponseTypeupdatedAchievementsArray); virtual;
  425. //2.6.4. bug workaround
  426. {$IFDEF VER2_6}
  427. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  428. {$ENDIF VER2_6}
  429. Public
  430. Published
  431. Property kind : String Index 0 Read Fkind Write Setkind;
  432. Property updatedAchievements : TAchievementUpdateMultipleResponseTypeupdatedAchievementsArray Index 8 Read FupdatedAchievements Write SetupdatedAchievements;
  433. end;
  434. TAchievementUpdateMultipleResponseClass = Class of TAchievementUpdateMultipleResponse;
  435. { --------------------------------------------------------------------
  436. TAchievementUpdateRequest
  437. --------------------------------------------------------------------}
  438. TAchievementUpdateRequest = Class(TGoogleBaseObject)
  439. Private
  440. FachievementId : String;
  441. FincrementPayload : TGamesAchievementIncrement;
  442. Fkind : String;
  443. FsetStepsAtLeastPayload : TGamesAchievementSetStepsAtLeast;
  444. FupdateType : String;
  445. Protected
  446. //Property setters
  447. Procedure SetachievementId(AIndex : Integer; const AValue : String); virtual;
  448. Procedure SetincrementPayload(AIndex : Integer; const AValue : TGamesAchievementIncrement); virtual;
  449. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  450. Procedure SetsetStepsAtLeastPayload(AIndex : Integer; const AValue : TGamesAchievementSetStepsAtLeast); virtual;
  451. Procedure SetupdateType(AIndex : Integer; const AValue : String); virtual;
  452. Public
  453. Published
  454. Property achievementId : String Index 0 Read FachievementId Write SetachievementId;
  455. Property incrementPayload : TGamesAchievementIncrement Index 8 Read FincrementPayload Write SetincrementPayload;
  456. Property kind : String Index 16 Read Fkind Write Setkind;
  457. Property setStepsAtLeastPayload : TGamesAchievementSetStepsAtLeast Index 24 Read FsetStepsAtLeastPayload Write SetsetStepsAtLeastPayload;
  458. Property updateType : String Index 32 Read FupdateType Write SetupdateType;
  459. end;
  460. TAchievementUpdateRequestClass = Class of TAchievementUpdateRequest;
  461. { --------------------------------------------------------------------
  462. TAchievementUpdateResponse
  463. --------------------------------------------------------------------}
  464. TAchievementUpdateResponse = Class(TGoogleBaseObject)
  465. Private
  466. FachievementId : String;
  467. FcurrentState : String;
  468. FcurrentSteps : integer;
  469. Fkind : String;
  470. FnewlyUnlocked : boolean;
  471. FupdateOccurred : boolean;
  472. Protected
  473. //Property setters
  474. Procedure SetachievementId(AIndex : Integer; const AValue : String); virtual;
  475. Procedure SetcurrentState(AIndex : Integer; const AValue : String); virtual;
  476. Procedure SetcurrentSteps(AIndex : Integer; const AValue : integer); virtual;
  477. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  478. Procedure SetnewlyUnlocked(AIndex : Integer; const AValue : boolean); virtual;
  479. Procedure SetupdateOccurred(AIndex : Integer; const AValue : boolean); virtual;
  480. Public
  481. Published
  482. Property achievementId : String Index 0 Read FachievementId Write SetachievementId;
  483. Property currentState : String Index 8 Read FcurrentState Write SetcurrentState;
  484. Property currentSteps : integer Index 16 Read FcurrentSteps Write SetcurrentSteps;
  485. Property kind : String Index 24 Read Fkind Write Setkind;
  486. Property newlyUnlocked : boolean Index 32 Read FnewlyUnlocked Write SetnewlyUnlocked;
  487. Property updateOccurred : boolean Index 40 Read FupdateOccurred Write SetupdateOccurred;
  488. end;
  489. TAchievementUpdateResponseClass = Class of TAchievementUpdateResponse;
  490. { --------------------------------------------------------------------
  491. TAggregateStats
  492. --------------------------------------------------------------------}
  493. TAggregateStats = Class(TGoogleBaseObject)
  494. Private
  495. Fcount : String;
  496. Fkind : String;
  497. Fmax : String;
  498. Fmin : String;
  499. Fsum : String;
  500. Protected
  501. //Property setters
  502. Procedure Setcount(AIndex : Integer; const AValue : String); virtual;
  503. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  504. Procedure Setmax(AIndex : Integer; const AValue : String); virtual;
  505. Procedure Setmin(AIndex : Integer; const AValue : String); virtual;
  506. Procedure Setsum(AIndex : Integer; const AValue : String); virtual;
  507. Public
  508. Published
  509. Property count : String Index 0 Read Fcount Write Setcount;
  510. Property kind : String Index 8 Read Fkind Write Setkind;
  511. Property max : String Index 16 Read Fmax Write Setmax;
  512. Property min : String Index 24 Read Fmin Write Setmin;
  513. Property sum : String Index 32 Read Fsum Write Setsum;
  514. end;
  515. TAggregateStatsClass = Class of TAggregateStats;
  516. { --------------------------------------------------------------------
  517. TAnonymousPlayer
  518. --------------------------------------------------------------------}
  519. TAnonymousPlayer = Class(TGoogleBaseObject)
  520. Private
  521. FavatarImageUrl : String;
  522. FdisplayName : String;
  523. Fkind : String;
  524. Protected
  525. //Property setters
  526. Procedure SetavatarImageUrl(AIndex : Integer; const AValue : String); virtual;
  527. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  528. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  529. Public
  530. Published
  531. Property avatarImageUrl : String Index 0 Read FavatarImageUrl Write SetavatarImageUrl;
  532. Property displayName : String Index 8 Read FdisplayName Write SetdisplayName;
  533. Property kind : String Index 16 Read Fkind Write Setkind;
  534. end;
  535. TAnonymousPlayerClass = Class of TAnonymousPlayer;
  536. { --------------------------------------------------------------------
  537. TApplication
  538. --------------------------------------------------------------------}
  539. TApplication = Class(TGoogleBaseObject)
  540. Private
  541. Fachievement_count : integer;
  542. Fassets : TApplicationTypeassetsArray;
  543. Fauthor : String;
  544. Fcategory : TApplicationCategory;
  545. Fdescription : String;
  546. FenabledFeatures : TStringArray;
  547. Fid : String;
  548. Finstances : TApplicationTypeinstancesArray;
  549. Fkind : String;
  550. FlastUpdatedTimestamp : String;
  551. Fleaderboard_count : integer;
  552. Fname : String;
  553. FthemeColor : String;
  554. Protected
  555. //Property setters
  556. Procedure Setachievement_count(AIndex : Integer; const AValue : integer); virtual;
  557. Procedure Setassets(AIndex : Integer; const AValue : TApplicationTypeassetsArray); virtual;
  558. Procedure Setauthor(AIndex : Integer; const AValue : String); virtual;
  559. Procedure Setcategory(AIndex : Integer; const AValue : TApplicationCategory); virtual;
  560. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  561. Procedure SetenabledFeatures(AIndex : Integer; const AValue : TStringArray); virtual;
  562. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  563. Procedure Setinstances(AIndex : Integer; const AValue : TApplicationTypeinstancesArray); virtual;
  564. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  565. Procedure SetlastUpdatedTimestamp(AIndex : Integer; const AValue : String); virtual;
  566. Procedure Setleaderboard_count(AIndex : Integer; const AValue : integer); virtual;
  567. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  568. Procedure SetthemeColor(AIndex : Integer; const AValue : String); virtual;
  569. //2.6.4. bug workaround
  570. {$IFDEF VER2_6}
  571. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  572. {$ENDIF VER2_6}
  573. Public
  574. Published
  575. Property achievement_count : integer Index 0 Read Fachievement_count Write Setachievement_count;
  576. Property assets : TApplicationTypeassetsArray Index 8 Read Fassets Write Setassets;
  577. Property author : String Index 16 Read Fauthor Write Setauthor;
  578. Property category : TApplicationCategory Index 24 Read Fcategory Write Setcategory;
  579. Property description : String Index 32 Read Fdescription Write Setdescription;
  580. Property enabledFeatures : TStringArray Index 40 Read FenabledFeatures Write SetenabledFeatures;
  581. Property id : String Index 48 Read Fid Write Setid;
  582. Property instances : TApplicationTypeinstancesArray Index 56 Read Finstances Write Setinstances;
  583. Property kind : String Index 64 Read Fkind Write Setkind;
  584. Property lastUpdatedTimestamp : String Index 72 Read FlastUpdatedTimestamp Write SetlastUpdatedTimestamp;
  585. Property leaderboard_count : integer Index 80 Read Fleaderboard_count Write Setleaderboard_count;
  586. Property name : String Index 88 Read Fname Write Setname;
  587. Property themeColor : String Index 96 Read FthemeColor Write SetthemeColor;
  588. end;
  589. TApplicationClass = Class of TApplication;
  590. { --------------------------------------------------------------------
  591. TApplicationCategory
  592. --------------------------------------------------------------------}
  593. TApplicationCategory = Class(TGoogleBaseObject)
  594. Private
  595. Fkind : String;
  596. Fprimary : String;
  597. Fsecondary : String;
  598. Protected
  599. //Property setters
  600. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  601. Procedure Setprimary(AIndex : Integer; const AValue : String); virtual;
  602. Procedure Setsecondary(AIndex : Integer; const AValue : String); virtual;
  603. Public
  604. Published
  605. Property kind : String Index 0 Read Fkind Write Setkind;
  606. Property primary : String Index 8 Read Fprimary Write Setprimary;
  607. Property secondary : String Index 16 Read Fsecondary Write Setsecondary;
  608. end;
  609. TApplicationCategoryClass = Class of TApplicationCategory;
  610. { --------------------------------------------------------------------
  611. TApplicationVerifyResponse
  612. --------------------------------------------------------------------}
  613. TApplicationVerifyResponse = Class(TGoogleBaseObject)
  614. Private
  615. Falternate_player_id : String;
  616. Fkind : String;
  617. Fplayer_id : String;
  618. Protected
  619. //Property setters
  620. Procedure Setalternate_player_id(AIndex : Integer; const AValue : String); virtual;
  621. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  622. Procedure Setplayer_id(AIndex : Integer; const AValue : String); virtual;
  623. Public
  624. Published
  625. Property alternate_player_id : String Index 0 Read Falternate_player_id Write Setalternate_player_id;
  626. Property kind : String Index 8 Read Fkind Write Setkind;
  627. Property player_id : String Index 16 Read Fplayer_id Write Setplayer_id;
  628. end;
  629. TApplicationVerifyResponseClass = Class of TApplicationVerifyResponse;
  630. { --------------------------------------------------------------------
  631. TCategory
  632. --------------------------------------------------------------------}
  633. TCategory = Class(TGoogleBaseObject)
  634. Private
  635. Fcategory : String;
  636. FexperiencePoints : String;
  637. Fkind : String;
  638. Protected
  639. //Property setters
  640. Procedure Setcategory(AIndex : Integer; const AValue : String); virtual;
  641. Procedure SetexperiencePoints(AIndex : Integer; const AValue : String); virtual;
  642. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  643. Public
  644. Published
  645. Property category : String Index 0 Read Fcategory Write Setcategory;
  646. Property experiencePoints : String Index 8 Read FexperiencePoints Write SetexperiencePoints;
  647. Property kind : String Index 16 Read Fkind Write Setkind;
  648. end;
  649. TCategoryClass = Class of TCategory;
  650. { --------------------------------------------------------------------
  651. TCategoryListResponse
  652. --------------------------------------------------------------------}
  653. TCategoryListResponse = Class(TGoogleBaseObject)
  654. Private
  655. Fitems : TCategoryListResponseTypeitemsArray;
  656. Fkind : String;
  657. FnextPageToken : String;
  658. Protected
  659. //Property setters
  660. Procedure Setitems(AIndex : Integer; const AValue : TCategoryListResponseTypeitemsArray); virtual;
  661. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  662. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  663. //2.6.4. bug workaround
  664. {$IFDEF VER2_6}
  665. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  666. {$ENDIF VER2_6}
  667. Public
  668. Published
  669. Property items : TCategoryListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  670. Property kind : String Index 8 Read Fkind Write Setkind;
  671. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  672. end;
  673. TCategoryListResponseClass = Class of TCategoryListResponse;
  674. { --------------------------------------------------------------------
  675. TEventBatchRecordFailure
  676. --------------------------------------------------------------------}
  677. TEventBatchRecordFailure = Class(TGoogleBaseObject)
  678. Private
  679. FfailureCause : String;
  680. Fkind : String;
  681. Frange : TEventPeriodRange;
  682. Protected
  683. //Property setters
  684. Procedure SetfailureCause(AIndex : Integer; const AValue : String); virtual;
  685. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  686. Procedure Setrange(AIndex : Integer; const AValue : TEventPeriodRange); virtual;
  687. Public
  688. Published
  689. Property failureCause : String Index 0 Read FfailureCause Write SetfailureCause;
  690. Property kind : String Index 8 Read Fkind Write Setkind;
  691. Property range : TEventPeriodRange Index 16 Read Frange Write Setrange;
  692. end;
  693. TEventBatchRecordFailureClass = Class of TEventBatchRecordFailure;
  694. { --------------------------------------------------------------------
  695. TEventChild
  696. --------------------------------------------------------------------}
  697. TEventChild = Class(TGoogleBaseObject)
  698. Private
  699. FchildId : String;
  700. Fkind : String;
  701. Protected
  702. //Property setters
  703. Procedure SetchildId(AIndex : Integer; const AValue : String); virtual;
  704. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  705. Public
  706. Published
  707. Property childId : String Index 0 Read FchildId Write SetchildId;
  708. Property kind : String Index 8 Read Fkind Write Setkind;
  709. end;
  710. TEventChildClass = Class of TEventChild;
  711. { --------------------------------------------------------------------
  712. TEventDefinition
  713. --------------------------------------------------------------------}
  714. TEventDefinition = Class(TGoogleBaseObject)
  715. Private
  716. FchildEvents : TEventDefinitionTypechildEventsArray;
  717. Fdescription : String;
  718. FdisplayName : String;
  719. Fid : String;
  720. FimageUrl : String;
  721. FisDefaultImageUrl : boolean;
  722. Fkind : String;
  723. Fvisibility : String;
  724. Protected
  725. //Property setters
  726. Procedure SetchildEvents(AIndex : Integer; const AValue : TEventDefinitionTypechildEventsArray); virtual;
  727. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  728. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  729. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  730. Procedure SetimageUrl(AIndex : Integer; const AValue : String); virtual;
  731. Procedure SetisDefaultImageUrl(AIndex : Integer; const AValue : boolean); virtual;
  732. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  733. Procedure Setvisibility(AIndex : Integer; const AValue : String); virtual;
  734. //2.6.4. bug workaround
  735. {$IFDEF VER2_6}
  736. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  737. {$ENDIF VER2_6}
  738. Public
  739. Published
  740. Property childEvents : TEventDefinitionTypechildEventsArray Index 0 Read FchildEvents Write SetchildEvents;
  741. Property description : String Index 8 Read Fdescription Write Setdescription;
  742. Property displayName : String Index 16 Read FdisplayName Write SetdisplayName;
  743. Property id : String Index 24 Read Fid Write Setid;
  744. Property imageUrl : String Index 32 Read FimageUrl Write SetimageUrl;
  745. Property isDefaultImageUrl : boolean Index 40 Read FisDefaultImageUrl Write SetisDefaultImageUrl;
  746. Property kind : String Index 48 Read Fkind Write Setkind;
  747. Property visibility : String Index 56 Read Fvisibility Write Setvisibility;
  748. end;
  749. TEventDefinitionClass = Class of TEventDefinition;
  750. { --------------------------------------------------------------------
  751. TEventDefinitionListResponse
  752. --------------------------------------------------------------------}
  753. TEventDefinitionListResponse = Class(TGoogleBaseObject)
  754. Private
  755. Fitems : TEventDefinitionListResponseTypeitemsArray;
  756. Fkind : String;
  757. FnextPageToken : String;
  758. Protected
  759. //Property setters
  760. Procedure Setitems(AIndex : Integer; const AValue : TEventDefinitionListResponseTypeitemsArray); virtual;
  761. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  762. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  763. //2.6.4. bug workaround
  764. {$IFDEF VER2_6}
  765. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  766. {$ENDIF VER2_6}
  767. Public
  768. Published
  769. Property items : TEventDefinitionListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  770. Property kind : String Index 8 Read Fkind Write Setkind;
  771. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  772. end;
  773. TEventDefinitionListResponseClass = Class of TEventDefinitionListResponse;
  774. { --------------------------------------------------------------------
  775. TEventPeriodRange
  776. --------------------------------------------------------------------}
  777. TEventPeriodRange = Class(TGoogleBaseObject)
  778. Private
  779. Fkind : String;
  780. FperiodEndMillis : String;
  781. FperiodStartMillis : String;
  782. Protected
  783. //Property setters
  784. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  785. Procedure SetperiodEndMillis(AIndex : Integer; const AValue : String); virtual;
  786. Procedure SetperiodStartMillis(AIndex : Integer; const AValue : String); virtual;
  787. Public
  788. Published
  789. Property kind : String Index 0 Read Fkind Write Setkind;
  790. Property periodEndMillis : String Index 8 Read FperiodEndMillis Write SetperiodEndMillis;
  791. Property periodStartMillis : String Index 16 Read FperiodStartMillis Write SetperiodStartMillis;
  792. end;
  793. TEventPeriodRangeClass = Class of TEventPeriodRange;
  794. { --------------------------------------------------------------------
  795. TEventPeriodUpdate
  796. --------------------------------------------------------------------}
  797. TEventPeriodUpdate = Class(TGoogleBaseObject)
  798. Private
  799. Fkind : String;
  800. FtimePeriod : TEventPeriodRange;
  801. Fupdates : TEventPeriodUpdateTypeupdatesArray;
  802. Protected
  803. //Property setters
  804. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  805. Procedure SettimePeriod(AIndex : Integer; const AValue : TEventPeriodRange); virtual;
  806. Procedure Setupdates(AIndex : Integer; const AValue : TEventPeriodUpdateTypeupdatesArray); virtual;
  807. //2.6.4. bug workaround
  808. {$IFDEF VER2_6}
  809. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  810. {$ENDIF VER2_6}
  811. Public
  812. Published
  813. Property kind : String Index 0 Read Fkind Write Setkind;
  814. Property timePeriod : TEventPeriodRange Index 8 Read FtimePeriod Write SettimePeriod;
  815. Property updates : TEventPeriodUpdateTypeupdatesArray Index 16 Read Fupdates Write Setupdates;
  816. end;
  817. TEventPeriodUpdateClass = Class of TEventPeriodUpdate;
  818. { --------------------------------------------------------------------
  819. TEventRecordFailure
  820. --------------------------------------------------------------------}
  821. TEventRecordFailure = Class(TGoogleBaseObject)
  822. Private
  823. FeventId : String;
  824. FfailureCause : String;
  825. Fkind : String;
  826. Protected
  827. //Property setters
  828. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  829. Procedure SetfailureCause(AIndex : Integer; const AValue : String); virtual;
  830. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  831. Public
  832. Published
  833. Property eventId : String Index 0 Read FeventId Write SeteventId;
  834. Property failureCause : String Index 8 Read FfailureCause Write SetfailureCause;
  835. Property kind : String Index 16 Read Fkind Write Setkind;
  836. end;
  837. TEventRecordFailureClass = Class of TEventRecordFailure;
  838. { --------------------------------------------------------------------
  839. TEventRecordRequest
  840. --------------------------------------------------------------------}
  841. TEventRecordRequest = Class(TGoogleBaseObject)
  842. Private
  843. FcurrentTimeMillis : String;
  844. Fkind : String;
  845. FrequestId : String;
  846. FtimePeriods : TEventRecordRequestTypetimePeriodsArray;
  847. Protected
  848. //Property setters
  849. Procedure SetcurrentTimeMillis(AIndex : Integer; const AValue : String); virtual;
  850. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  851. Procedure SetrequestId(AIndex : Integer; const AValue : String); virtual;
  852. Procedure SettimePeriods(AIndex : Integer; const AValue : TEventRecordRequestTypetimePeriodsArray); virtual;
  853. //2.6.4. bug workaround
  854. {$IFDEF VER2_6}
  855. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  856. {$ENDIF VER2_6}
  857. Public
  858. Published
  859. Property currentTimeMillis : String Index 0 Read FcurrentTimeMillis Write SetcurrentTimeMillis;
  860. Property kind : String Index 8 Read Fkind Write Setkind;
  861. Property requestId : String Index 16 Read FrequestId Write SetrequestId;
  862. Property timePeriods : TEventRecordRequestTypetimePeriodsArray Index 24 Read FtimePeriods Write SettimePeriods;
  863. end;
  864. TEventRecordRequestClass = Class of TEventRecordRequest;
  865. { --------------------------------------------------------------------
  866. TEventUpdateRequest
  867. --------------------------------------------------------------------}
  868. TEventUpdateRequest = Class(TGoogleBaseObject)
  869. Private
  870. FdefinitionId : String;
  871. Fkind : String;
  872. FupdateCount : String;
  873. Protected
  874. //Property setters
  875. Procedure SetdefinitionId(AIndex : Integer; const AValue : String); virtual;
  876. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  877. Procedure SetupdateCount(AIndex : Integer; const AValue : String); virtual;
  878. Public
  879. Published
  880. Property definitionId : String Index 0 Read FdefinitionId Write SetdefinitionId;
  881. Property kind : String Index 8 Read Fkind Write Setkind;
  882. Property updateCount : String Index 16 Read FupdateCount Write SetupdateCount;
  883. end;
  884. TEventUpdateRequestClass = Class of TEventUpdateRequest;
  885. { --------------------------------------------------------------------
  886. TEventUpdateResponse
  887. --------------------------------------------------------------------}
  888. TEventUpdateResponse = Class(TGoogleBaseObject)
  889. Private
  890. FbatchFailures : TEventUpdateResponseTypebatchFailuresArray;
  891. FeventFailures : TEventUpdateResponseTypeeventFailuresArray;
  892. Fkind : String;
  893. FplayerEvents : TEventUpdateResponseTypeplayerEventsArray;
  894. Protected
  895. //Property setters
  896. Procedure SetbatchFailures(AIndex : Integer; const AValue : TEventUpdateResponseTypebatchFailuresArray); virtual;
  897. Procedure SeteventFailures(AIndex : Integer; const AValue : TEventUpdateResponseTypeeventFailuresArray); virtual;
  898. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  899. Procedure SetplayerEvents(AIndex : Integer; const AValue : TEventUpdateResponseTypeplayerEventsArray); virtual;
  900. //2.6.4. bug workaround
  901. {$IFDEF VER2_6}
  902. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  903. {$ENDIF VER2_6}
  904. Public
  905. Published
  906. Property batchFailures : TEventUpdateResponseTypebatchFailuresArray Index 0 Read FbatchFailures Write SetbatchFailures;
  907. Property eventFailures : TEventUpdateResponseTypeeventFailuresArray Index 8 Read FeventFailures Write SeteventFailures;
  908. Property kind : String Index 16 Read Fkind Write Setkind;
  909. Property playerEvents : TEventUpdateResponseTypeplayerEventsArray Index 24 Read FplayerEvents Write SetplayerEvents;
  910. end;
  911. TEventUpdateResponseClass = Class of TEventUpdateResponse;
  912. { --------------------------------------------------------------------
  913. TGamesAchievementIncrement
  914. --------------------------------------------------------------------}
  915. TGamesAchievementIncrement = Class(TGoogleBaseObject)
  916. Private
  917. Fkind : String;
  918. FrequestId : String;
  919. Fsteps : integer;
  920. Protected
  921. //Property setters
  922. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  923. Procedure SetrequestId(AIndex : Integer; const AValue : String); virtual;
  924. Procedure Setsteps(AIndex : Integer; const AValue : integer); virtual;
  925. Public
  926. Published
  927. Property kind : String Index 0 Read Fkind Write Setkind;
  928. Property requestId : String Index 8 Read FrequestId Write SetrequestId;
  929. Property steps : integer Index 16 Read Fsteps Write Setsteps;
  930. end;
  931. TGamesAchievementIncrementClass = Class of TGamesAchievementIncrement;
  932. { --------------------------------------------------------------------
  933. TGamesAchievementSetStepsAtLeast
  934. --------------------------------------------------------------------}
  935. TGamesAchievementSetStepsAtLeast = Class(TGoogleBaseObject)
  936. Private
  937. Fkind : String;
  938. Fsteps : integer;
  939. Protected
  940. //Property setters
  941. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  942. Procedure Setsteps(AIndex : Integer; const AValue : integer); virtual;
  943. Public
  944. Published
  945. Property kind : String Index 0 Read Fkind Write Setkind;
  946. Property steps : integer Index 8 Read Fsteps Write Setsteps;
  947. end;
  948. TGamesAchievementSetStepsAtLeastClass = Class of TGamesAchievementSetStepsAtLeast;
  949. { --------------------------------------------------------------------
  950. TImageAsset
  951. --------------------------------------------------------------------}
  952. TImageAsset = Class(TGoogleBaseObject)
  953. Private
  954. Fheight : integer;
  955. Fkind : String;
  956. Fname : String;
  957. Furl : String;
  958. Fwidth : integer;
  959. Protected
  960. //Property setters
  961. Procedure Setheight(AIndex : Integer; const AValue : integer); virtual;
  962. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  963. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  964. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  965. Procedure Setwidth(AIndex : Integer; const AValue : integer); virtual;
  966. Public
  967. Published
  968. Property height : integer Index 0 Read Fheight Write Setheight;
  969. Property kind : String Index 8 Read Fkind Write Setkind;
  970. Property name : String Index 16 Read Fname Write Setname;
  971. Property url : String Index 24 Read Furl Write Seturl;
  972. Property width : integer Index 32 Read Fwidth Write Setwidth;
  973. end;
  974. TImageAssetClass = Class of TImageAsset;
  975. { --------------------------------------------------------------------
  976. TInstance
  977. --------------------------------------------------------------------}
  978. TInstance = Class(TGoogleBaseObject)
  979. Private
  980. FacquisitionUri : String;
  981. FandroidInstance : TInstanceAndroidDetails;
  982. FiosInstance : TInstanceIosDetails;
  983. Fkind : String;
  984. Fname : String;
  985. FplatformType : String;
  986. FrealtimePlay : boolean;
  987. FturnBasedPlay : boolean;
  988. FwebInstance : TInstanceWebDetails;
  989. Protected
  990. //Property setters
  991. Procedure SetacquisitionUri(AIndex : Integer; const AValue : String); virtual;
  992. Procedure SetandroidInstance(AIndex : Integer; const AValue : TInstanceAndroidDetails); virtual;
  993. Procedure SetiosInstance(AIndex : Integer; const AValue : TInstanceIosDetails); virtual;
  994. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  995. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  996. Procedure SetplatformType(AIndex : Integer; const AValue : String); virtual;
  997. Procedure SetrealtimePlay(AIndex : Integer; const AValue : boolean); virtual;
  998. Procedure SetturnBasedPlay(AIndex : Integer; const AValue : boolean); virtual;
  999. Procedure SetwebInstance(AIndex : Integer; const AValue : TInstanceWebDetails); virtual;
  1000. Public
  1001. Published
  1002. Property acquisitionUri : String Index 0 Read FacquisitionUri Write SetacquisitionUri;
  1003. Property androidInstance : TInstanceAndroidDetails Index 8 Read FandroidInstance Write SetandroidInstance;
  1004. Property iosInstance : TInstanceIosDetails Index 16 Read FiosInstance Write SetiosInstance;
  1005. Property kind : String Index 24 Read Fkind Write Setkind;
  1006. Property name : String Index 32 Read Fname Write Setname;
  1007. Property platformType : String Index 40 Read FplatformType Write SetplatformType;
  1008. Property realtimePlay : boolean Index 48 Read FrealtimePlay Write SetrealtimePlay;
  1009. Property turnBasedPlay : boolean Index 56 Read FturnBasedPlay Write SetturnBasedPlay;
  1010. Property webInstance : TInstanceWebDetails Index 64 Read FwebInstance Write SetwebInstance;
  1011. end;
  1012. TInstanceClass = Class of TInstance;
  1013. { --------------------------------------------------------------------
  1014. TInstanceAndroidDetails
  1015. --------------------------------------------------------------------}
  1016. TInstanceAndroidDetails = Class(TGoogleBaseObject)
  1017. Private
  1018. FenablePiracyCheck : boolean;
  1019. Fkind : String;
  1020. FpackageName : String;
  1021. Fpreferred : boolean;
  1022. Protected
  1023. //Property setters
  1024. Procedure SetenablePiracyCheck(AIndex : Integer; const AValue : boolean); virtual;
  1025. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1026. Procedure SetpackageName(AIndex : Integer; const AValue : String); virtual;
  1027. Procedure Setpreferred(AIndex : Integer; const AValue : boolean); virtual;
  1028. Public
  1029. Published
  1030. Property enablePiracyCheck : boolean Index 0 Read FenablePiracyCheck Write SetenablePiracyCheck;
  1031. Property kind : String Index 8 Read Fkind Write Setkind;
  1032. Property packageName : String Index 16 Read FpackageName Write SetpackageName;
  1033. Property preferred : boolean Index 24 Read Fpreferred Write Setpreferred;
  1034. end;
  1035. TInstanceAndroidDetailsClass = Class of TInstanceAndroidDetails;
  1036. { --------------------------------------------------------------------
  1037. TInstanceIosDetails
  1038. --------------------------------------------------------------------}
  1039. TInstanceIosDetails = Class(TGoogleBaseObject)
  1040. Private
  1041. FbundleIdentifier : String;
  1042. FitunesAppId : String;
  1043. Fkind : String;
  1044. FpreferredForIpad : boolean;
  1045. FpreferredForIphone : boolean;
  1046. FsupportIpad : boolean;
  1047. FsupportIphone : boolean;
  1048. Protected
  1049. //Property setters
  1050. Procedure SetbundleIdentifier(AIndex : Integer; const AValue : String); virtual;
  1051. Procedure SetitunesAppId(AIndex : Integer; const AValue : String); virtual;
  1052. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1053. Procedure SetpreferredForIpad(AIndex : Integer; const AValue : boolean); virtual;
  1054. Procedure SetpreferredForIphone(AIndex : Integer; const AValue : boolean); virtual;
  1055. Procedure SetsupportIpad(AIndex : Integer; const AValue : boolean); virtual;
  1056. Procedure SetsupportIphone(AIndex : Integer; const AValue : boolean); virtual;
  1057. Public
  1058. Published
  1059. Property bundleIdentifier : String Index 0 Read FbundleIdentifier Write SetbundleIdentifier;
  1060. Property itunesAppId : String Index 8 Read FitunesAppId Write SetitunesAppId;
  1061. Property kind : String Index 16 Read Fkind Write Setkind;
  1062. Property preferredForIpad : boolean Index 24 Read FpreferredForIpad Write SetpreferredForIpad;
  1063. Property preferredForIphone : boolean Index 32 Read FpreferredForIphone Write SetpreferredForIphone;
  1064. Property supportIpad : boolean Index 40 Read FsupportIpad Write SetsupportIpad;
  1065. Property supportIphone : boolean Index 48 Read FsupportIphone Write SetsupportIphone;
  1066. end;
  1067. TInstanceIosDetailsClass = Class of TInstanceIosDetails;
  1068. { --------------------------------------------------------------------
  1069. TInstanceWebDetails
  1070. --------------------------------------------------------------------}
  1071. TInstanceWebDetails = Class(TGoogleBaseObject)
  1072. Private
  1073. Fkind : String;
  1074. FlaunchUrl : String;
  1075. Fpreferred : boolean;
  1076. Protected
  1077. //Property setters
  1078. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1079. Procedure SetlaunchUrl(AIndex : Integer; const AValue : String); virtual;
  1080. Procedure Setpreferred(AIndex : Integer; const AValue : boolean); virtual;
  1081. Public
  1082. Published
  1083. Property kind : String Index 0 Read Fkind Write Setkind;
  1084. Property launchUrl : String Index 8 Read FlaunchUrl Write SetlaunchUrl;
  1085. Property preferred : boolean Index 16 Read Fpreferred Write Setpreferred;
  1086. end;
  1087. TInstanceWebDetailsClass = Class of TInstanceWebDetails;
  1088. { --------------------------------------------------------------------
  1089. TLeaderboard
  1090. --------------------------------------------------------------------}
  1091. TLeaderboard = Class(TGoogleBaseObject)
  1092. Private
  1093. FiconUrl : String;
  1094. Fid : String;
  1095. FisIconUrlDefault : boolean;
  1096. Fkind : String;
  1097. Fname : String;
  1098. Forder : String;
  1099. Protected
  1100. //Property setters
  1101. Procedure SeticonUrl(AIndex : Integer; const AValue : String); virtual;
  1102. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1103. Procedure SetisIconUrlDefault(AIndex : Integer; const AValue : boolean); virtual;
  1104. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1105. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1106. Procedure Setorder(AIndex : Integer; const AValue : String); virtual;
  1107. Public
  1108. Published
  1109. Property iconUrl : String Index 0 Read FiconUrl Write SeticonUrl;
  1110. Property id : String Index 8 Read Fid Write Setid;
  1111. Property isIconUrlDefault : boolean Index 16 Read FisIconUrlDefault Write SetisIconUrlDefault;
  1112. Property kind : String Index 24 Read Fkind Write Setkind;
  1113. Property name : String Index 32 Read Fname Write Setname;
  1114. Property order : String Index 40 Read Forder Write Setorder;
  1115. end;
  1116. TLeaderboardClass = Class of TLeaderboard;
  1117. { --------------------------------------------------------------------
  1118. TLeaderboardEntry
  1119. --------------------------------------------------------------------}
  1120. TLeaderboardEntry = Class(TGoogleBaseObject)
  1121. Private
  1122. FformattedScore : String;
  1123. FformattedScoreRank : String;
  1124. Fkind : String;
  1125. Fplayer : TPlayer;
  1126. FscoreRank : String;
  1127. FscoreTag : String;
  1128. FscoreValue : String;
  1129. FtimeSpan : String;
  1130. FwriteTimestampMillis : String;
  1131. Protected
  1132. //Property setters
  1133. Procedure SetformattedScore(AIndex : Integer; const AValue : String); virtual;
  1134. Procedure SetformattedScoreRank(AIndex : Integer; const AValue : String); virtual;
  1135. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1136. Procedure Setplayer(AIndex : Integer; const AValue : TPlayer); virtual;
  1137. Procedure SetscoreRank(AIndex : Integer; const AValue : String); virtual;
  1138. Procedure SetscoreTag(AIndex : Integer; const AValue : String); virtual;
  1139. Procedure SetscoreValue(AIndex : Integer; const AValue : String); virtual;
  1140. Procedure SettimeSpan(AIndex : Integer; const AValue : String); virtual;
  1141. Procedure SetwriteTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  1142. Public
  1143. Published
  1144. Property formattedScore : String Index 0 Read FformattedScore Write SetformattedScore;
  1145. Property formattedScoreRank : String Index 8 Read FformattedScoreRank Write SetformattedScoreRank;
  1146. Property kind : String Index 16 Read Fkind Write Setkind;
  1147. Property player : TPlayer Index 24 Read Fplayer Write Setplayer;
  1148. Property scoreRank : String Index 32 Read FscoreRank Write SetscoreRank;
  1149. Property scoreTag : String Index 40 Read FscoreTag Write SetscoreTag;
  1150. Property scoreValue : String Index 48 Read FscoreValue Write SetscoreValue;
  1151. Property timeSpan : String Index 56 Read FtimeSpan Write SettimeSpan;
  1152. Property writeTimestampMillis : String Index 64 Read FwriteTimestampMillis Write SetwriteTimestampMillis;
  1153. end;
  1154. TLeaderboardEntryClass = Class of TLeaderboardEntry;
  1155. { --------------------------------------------------------------------
  1156. TLeaderboardListResponse
  1157. --------------------------------------------------------------------}
  1158. TLeaderboardListResponse = Class(TGoogleBaseObject)
  1159. Private
  1160. Fitems : TLeaderboardListResponseTypeitemsArray;
  1161. Fkind : String;
  1162. FnextPageToken : String;
  1163. Protected
  1164. //Property setters
  1165. Procedure Setitems(AIndex : Integer; const AValue : TLeaderboardListResponseTypeitemsArray); virtual;
  1166. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1167. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1168. //2.6.4. bug workaround
  1169. {$IFDEF VER2_6}
  1170. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1171. {$ENDIF VER2_6}
  1172. Public
  1173. Published
  1174. Property items : TLeaderboardListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  1175. Property kind : String Index 8 Read Fkind Write Setkind;
  1176. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  1177. end;
  1178. TLeaderboardListResponseClass = Class of TLeaderboardListResponse;
  1179. { --------------------------------------------------------------------
  1180. TLeaderboardScoreRank
  1181. --------------------------------------------------------------------}
  1182. TLeaderboardScoreRank = Class(TGoogleBaseObject)
  1183. Private
  1184. FformattedNumScores : String;
  1185. FformattedRank : String;
  1186. Fkind : String;
  1187. FnumScores : String;
  1188. Frank : String;
  1189. Protected
  1190. //Property setters
  1191. Procedure SetformattedNumScores(AIndex : Integer; const AValue : String); virtual;
  1192. Procedure SetformattedRank(AIndex : Integer; const AValue : String); virtual;
  1193. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1194. Procedure SetnumScores(AIndex : Integer; const AValue : String); virtual;
  1195. Procedure Setrank(AIndex : Integer; const AValue : String); virtual;
  1196. Public
  1197. Published
  1198. Property formattedNumScores : String Index 0 Read FformattedNumScores Write SetformattedNumScores;
  1199. Property formattedRank : String Index 8 Read FformattedRank Write SetformattedRank;
  1200. Property kind : String Index 16 Read Fkind Write Setkind;
  1201. Property numScores : String Index 24 Read FnumScores Write SetnumScores;
  1202. Property rank : String Index 32 Read Frank Write Setrank;
  1203. end;
  1204. TLeaderboardScoreRankClass = Class of TLeaderboardScoreRank;
  1205. { --------------------------------------------------------------------
  1206. TLeaderboardScores
  1207. --------------------------------------------------------------------}
  1208. TLeaderboardScores = Class(TGoogleBaseObject)
  1209. Private
  1210. Fitems : TLeaderboardScoresTypeitemsArray;
  1211. Fkind : String;
  1212. FnextPageToken : String;
  1213. FnumScores : String;
  1214. FplayerScore : TLeaderboardEntry;
  1215. FprevPageToken : String;
  1216. Protected
  1217. //Property setters
  1218. Procedure Setitems(AIndex : Integer; const AValue : TLeaderboardScoresTypeitemsArray); virtual;
  1219. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1220. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1221. Procedure SetnumScores(AIndex : Integer; const AValue : String); virtual;
  1222. Procedure SetplayerScore(AIndex : Integer; const AValue : TLeaderboardEntry); virtual;
  1223. Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
  1224. //2.6.4. bug workaround
  1225. {$IFDEF VER2_6}
  1226. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1227. {$ENDIF VER2_6}
  1228. Public
  1229. Published
  1230. Property items : TLeaderboardScoresTypeitemsArray Index 0 Read Fitems Write Setitems;
  1231. Property kind : String Index 8 Read Fkind Write Setkind;
  1232. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  1233. Property numScores : String Index 24 Read FnumScores Write SetnumScores;
  1234. Property playerScore : TLeaderboardEntry Index 32 Read FplayerScore Write SetplayerScore;
  1235. Property prevPageToken : String Index 40 Read FprevPageToken Write SetprevPageToken;
  1236. end;
  1237. TLeaderboardScoresClass = Class of TLeaderboardScores;
  1238. { --------------------------------------------------------------------
  1239. TMetagameConfig
  1240. --------------------------------------------------------------------}
  1241. TMetagameConfig = Class(TGoogleBaseObject)
  1242. Private
  1243. FcurrentVersion : integer;
  1244. Fkind : String;
  1245. FplayerLevels : TMetagameConfigTypeplayerLevelsArray;
  1246. Protected
  1247. //Property setters
  1248. Procedure SetcurrentVersion(AIndex : Integer; const AValue : integer); virtual;
  1249. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1250. Procedure SetplayerLevels(AIndex : Integer; const AValue : TMetagameConfigTypeplayerLevelsArray); virtual;
  1251. //2.6.4. bug workaround
  1252. {$IFDEF VER2_6}
  1253. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1254. {$ENDIF VER2_6}
  1255. Public
  1256. Published
  1257. Property currentVersion : integer Index 0 Read FcurrentVersion Write SetcurrentVersion;
  1258. Property kind : String Index 8 Read Fkind Write Setkind;
  1259. Property playerLevels : TMetagameConfigTypeplayerLevelsArray Index 16 Read FplayerLevels Write SetplayerLevels;
  1260. end;
  1261. TMetagameConfigClass = Class of TMetagameConfig;
  1262. { --------------------------------------------------------------------
  1263. TNetworkDiagnostics
  1264. --------------------------------------------------------------------}
  1265. TNetworkDiagnostics = Class(TGoogleBaseObject)
  1266. Private
  1267. FandroidNetworkSubtype : integer;
  1268. FandroidNetworkType : integer;
  1269. FiosNetworkType : integer;
  1270. Fkind : String;
  1271. FnetworkOperatorCode : String;
  1272. FnetworkOperatorName : String;
  1273. FregistrationLatencyMillis : integer;
  1274. Protected
  1275. //Property setters
  1276. Procedure SetandroidNetworkSubtype(AIndex : Integer; const AValue : integer); virtual;
  1277. Procedure SetandroidNetworkType(AIndex : Integer; const AValue : integer); virtual;
  1278. Procedure SetiosNetworkType(AIndex : Integer; const AValue : integer); virtual;
  1279. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1280. Procedure SetnetworkOperatorCode(AIndex : Integer; const AValue : String); virtual;
  1281. Procedure SetnetworkOperatorName(AIndex : Integer; const AValue : String); virtual;
  1282. Procedure SetregistrationLatencyMillis(AIndex : Integer; const AValue : integer); virtual;
  1283. Public
  1284. Published
  1285. Property androidNetworkSubtype : integer Index 0 Read FandroidNetworkSubtype Write SetandroidNetworkSubtype;
  1286. Property androidNetworkType : integer Index 8 Read FandroidNetworkType Write SetandroidNetworkType;
  1287. Property iosNetworkType : integer Index 16 Read FiosNetworkType Write SetiosNetworkType;
  1288. Property kind : String Index 24 Read Fkind Write Setkind;
  1289. Property networkOperatorCode : String Index 32 Read FnetworkOperatorCode Write SetnetworkOperatorCode;
  1290. Property networkOperatorName : String Index 40 Read FnetworkOperatorName Write SetnetworkOperatorName;
  1291. Property registrationLatencyMillis : integer Index 48 Read FregistrationLatencyMillis Write SetregistrationLatencyMillis;
  1292. end;
  1293. TNetworkDiagnosticsClass = Class of TNetworkDiagnostics;
  1294. { --------------------------------------------------------------------
  1295. TParticipantResult
  1296. --------------------------------------------------------------------}
  1297. TParticipantResult = Class(TGoogleBaseObject)
  1298. Private
  1299. Fkind : String;
  1300. FparticipantId : String;
  1301. Fplacing : integer;
  1302. Fresult : String;
  1303. Protected
  1304. //Property setters
  1305. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1306. Procedure SetparticipantId(AIndex : Integer; const AValue : String); virtual;
  1307. Procedure Setplacing(AIndex : Integer; const AValue : integer); virtual;
  1308. Procedure Setresult(AIndex : Integer; const AValue : String); virtual;
  1309. Public
  1310. Published
  1311. Property kind : String Index 0 Read Fkind Write Setkind;
  1312. Property participantId : String Index 8 Read FparticipantId Write SetparticipantId;
  1313. Property placing : integer Index 16 Read Fplacing Write Setplacing;
  1314. Property result : String Index 24 Read Fresult Write Setresult;
  1315. end;
  1316. TParticipantResultClass = Class of TParticipantResult;
  1317. { --------------------------------------------------------------------
  1318. TPeerChannelDiagnostics
  1319. --------------------------------------------------------------------}
  1320. TPeerChannelDiagnostics = Class(TGoogleBaseObject)
  1321. Private
  1322. FbytesReceived : TAggregateStats;
  1323. FbytesSent : TAggregateStats;
  1324. Fkind : String;
  1325. FnumMessagesLost : integer;
  1326. FnumMessagesReceived : integer;
  1327. FnumMessagesSent : integer;
  1328. FnumSendFailures : integer;
  1329. FroundtripLatencyMillis : TAggregateStats;
  1330. Protected
  1331. //Property setters
  1332. Procedure SetbytesReceived(AIndex : Integer; const AValue : TAggregateStats); virtual;
  1333. Procedure SetbytesSent(AIndex : Integer; const AValue : TAggregateStats); virtual;
  1334. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1335. Procedure SetnumMessagesLost(AIndex : Integer; const AValue : integer); virtual;
  1336. Procedure SetnumMessagesReceived(AIndex : Integer; const AValue : integer); virtual;
  1337. Procedure SetnumMessagesSent(AIndex : Integer; const AValue : integer); virtual;
  1338. Procedure SetnumSendFailures(AIndex : Integer; const AValue : integer); virtual;
  1339. Procedure SetroundtripLatencyMillis(AIndex : Integer; const AValue : TAggregateStats); virtual;
  1340. Public
  1341. Published
  1342. Property bytesReceived : TAggregateStats Index 0 Read FbytesReceived Write SetbytesReceived;
  1343. Property bytesSent : TAggregateStats Index 8 Read FbytesSent Write SetbytesSent;
  1344. Property kind : String Index 16 Read Fkind Write Setkind;
  1345. Property numMessagesLost : integer Index 24 Read FnumMessagesLost Write SetnumMessagesLost;
  1346. Property numMessagesReceived : integer Index 32 Read FnumMessagesReceived Write SetnumMessagesReceived;
  1347. Property numMessagesSent : integer Index 40 Read FnumMessagesSent Write SetnumMessagesSent;
  1348. Property numSendFailures : integer Index 48 Read FnumSendFailures Write SetnumSendFailures;
  1349. Property roundtripLatencyMillis : TAggregateStats Index 56 Read FroundtripLatencyMillis Write SetroundtripLatencyMillis;
  1350. end;
  1351. TPeerChannelDiagnosticsClass = Class of TPeerChannelDiagnostics;
  1352. { --------------------------------------------------------------------
  1353. TPeerSessionDiagnostics
  1354. --------------------------------------------------------------------}
  1355. TPeerSessionDiagnostics = Class(TGoogleBaseObject)
  1356. Private
  1357. FconnectedTimestampMillis : String;
  1358. Fkind : String;
  1359. FparticipantId : String;
  1360. FreliableChannel : TPeerChannelDiagnostics;
  1361. FunreliableChannel : TPeerChannelDiagnostics;
  1362. Protected
  1363. //Property setters
  1364. Procedure SetconnectedTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  1365. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1366. Procedure SetparticipantId(AIndex : Integer; const AValue : String); virtual;
  1367. Procedure SetreliableChannel(AIndex : Integer; const AValue : TPeerChannelDiagnostics); virtual;
  1368. Procedure SetunreliableChannel(AIndex : Integer; const AValue : TPeerChannelDiagnostics); virtual;
  1369. Public
  1370. Published
  1371. Property connectedTimestampMillis : String Index 0 Read FconnectedTimestampMillis Write SetconnectedTimestampMillis;
  1372. Property kind : String Index 8 Read Fkind Write Setkind;
  1373. Property participantId : String Index 16 Read FparticipantId Write SetparticipantId;
  1374. Property reliableChannel : TPeerChannelDiagnostics Index 24 Read FreliableChannel Write SetreliableChannel;
  1375. Property unreliableChannel : TPeerChannelDiagnostics Index 32 Read FunreliableChannel Write SetunreliableChannel;
  1376. end;
  1377. TPeerSessionDiagnosticsClass = Class of TPeerSessionDiagnostics;
  1378. { --------------------------------------------------------------------
  1379. TPlayed
  1380. --------------------------------------------------------------------}
  1381. TPlayed = Class(TGoogleBaseObject)
  1382. Private
  1383. FautoMatched : boolean;
  1384. Fkind : String;
  1385. FtimeMillis : String;
  1386. Protected
  1387. //Property setters
  1388. Procedure SetautoMatched(AIndex : Integer; const AValue : boolean); virtual;
  1389. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1390. Procedure SettimeMillis(AIndex : Integer; const AValue : String); virtual;
  1391. Public
  1392. Published
  1393. Property autoMatched : boolean Index 0 Read FautoMatched Write SetautoMatched;
  1394. Property kind : String Index 8 Read Fkind Write Setkind;
  1395. Property timeMillis : String Index 16 Read FtimeMillis Write SettimeMillis;
  1396. end;
  1397. TPlayedClass = Class of TPlayed;
  1398. { --------------------------------------------------------------------
  1399. TPlayerTypename
  1400. --------------------------------------------------------------------}
  1401. TPlayerTypename = Class(TGoogleBaseObject)
  1402. Private
  1403. FfamilyName : String;
  1404. FgivenName : String;
  1405. Protected
  1406. //Property setters
  1407. Procedure SetfamilyName(AIndex : Integer; const AValue : String); virtual;
  1408. Procedure SetgivenName(AIndex : Integer; const AValue : String); virtual;
  1409. Public
  1410. Published
  1411. Property familyName : String Index 0 Read FfamilyName Write SetfamilyName;
  1412. Property givenName : String Index 8 Read FgivenName Write SetgivenName;
  1413. end;
  1414. TPlayerTypenameClass = Class of TPlayerTypename;
  1415. { --------------------------------------------------------------------
  1416. TPlayer
  1417. --------------------------------------------------------------------}
  1418. TPlayer = Class(TGoogleBaseObject)
  1419. Private
  1420. FavatarImageUrl : String;
  1421. FbannerUrlLandscape : String;
  1422. FbannerUrlPortrait : String;
  1423. FdisplayName : String;
  1424. FexperienceInfo : TPlayerExperienceInfo;
  1425. Fkind : String;
  1426. FlastPlayedWith : TPlayed;
  1427. Fname : TPlayerTypename;
  1428. ForiginalPlayerId : String;
  1429. FplayerId : String;
  1430. FprofileSettings : TProfileSettings;
  1431. Ftitle : String;
  1432. Protected
  1433. //Property setters
  1434. Procedure SetavatarImageUrl(AIndex : Integer; const AValue : String); virtual;
  1435. Procedure SetbannerUrlLandscape(AIndex : Integer; const AValue : String); virtual;
  1436. Procedure SetbannerUrlPortrait(AIndex : Integer; const AValue : String); virtual;
  1437. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  1438. Procedure SetexperienceInfo(AIndex : Integer; const AValue : TPlayerExperienceInfo); virtual;
  1439. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1440. Procedure SetlastPlayedWith(AIndex : Integer; const AValue : TPlayed); virtual;
  1441. Procedure Setname(AIndex : Integer; const AValue : TPlayerTypename); virtual;
  1442. Procedure SetoriginalPlayerId(AIndex : Integer; const AValue : String); virtual;
  1443. Procedure SetplayerId(AIndex : Integer; const AValue : String); virtual;
  1444. Procedure SetprofileSettings(AIndex : Integer; const AValue : TProfileSettings); virtual;
  1445. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1446. Public
  1447. Published
  1448. Property avatarImageUrl : String Index 0 Read FavatarImageUrl Write SetavatarImageUrl;
  1449. Property bannerUrlLandscape : String Index 8 Read FbannerUrlLandscape Write SetbannerUrlLandscape;
  1450. Property bannerUrlPortrait : String Index 16 Read FbannerUrlPortrait Write SetbannerUrlPortrait;
  1451. Property displayName : String Index 24 Read FdisplayName Write SetdisplayName;
  1452. Property experienceInfo : TPlayerExperienceInfo Index 32 Read FexperienceInfo Write SetexperienceInfo;
  1453. Property kind : String Index 40 Read Fkind Write Setkind;
  1454. Property lastPlayedWith : TPlayed Index 48 Read FlastPlayedWith Write SetlastPlayedWith;
  1455. Property name : TPlayerTypename Index 56 Read Fname Write Setname;
  1456. Property originalPlayerId : String Index 64 Read ForiginalPlayerId Write SetoriginalPlayerId;
  1457. Property playerId : String Index 72 Read FplayerId Write SetplayerId;
  1458. Property profileSettings : TProfileSettings Index 80 Read FprofileSettings Write SetprofileSettings;
  1459. Property title : String Index 88 Read Ftitle Write Settitle;
  1460. end;
  1461. TPlayerClass = Class of TPlayer;
  1462. { --------------------------------------------------------------------
  1463. TPlayerAchievement
  1464. --------------------------------------------------------------------}
  1465. TPlayerAchievement = Class(TGoogleBaseObject)
  1466. Private
  1467. FachievementState : String;
  1468. FcurrentSteps : integer;
  1469. FexperiencePoints : String;
  1470. FformattedCurrentStepsString : String;
  1471. Fid : String;
  1472. Fkind : String;
  1473. FlastUpdatedTimestamp : String;
  1474. Protected
  1475. //Property setters
  1476. Procedure SetachievementState(AIndex : Integer; const AValue : String); virtual;
  1477. Procedure SetcurrentSteps(AIndex : Integer; const AValue : integer); virtual;
  1478. Procedure SetexperiencePoints(AIndex : Integer; const AValue : String); virtual;
  1479. Procedure SetformattedCurrentStepsString(AIndex : Integer; const AValue : String); virtual;
  1480. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1481. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1482. Procedure SetlastUpdatedTimestamp(AIndex : Integer; const AValue : String); virtual;
  1483. Public
  1484. Published
  1485. Property achievementState : String Index 0 Read FachievementState Write SetachievementState;
  1486. Property currentSteps : integer Index 8 Read FcurrentSteps Write SetcurrentSteps;
  1487. Property experiencePoints : String Index 16 Read FexperiencePoints Write SetexperiencePoints;
  1488. Property formattedCurrentStepsString : String Index 24 Read FformattedCurrentStepsString Write SetformattedCurrentStepsString;
  1489. Property id : String Index 32 Read Fid Write Setid;
  1490. Property kind : String Index 40 Read Fkind Write Setkind;
  1491. Property lastUpdatedTimestamp : String Index 48 Read FlastUpdatedTimestamp Write SetlastUpdatedTimestamp;
  1492. end;
  1493. TPlayerAchievementClass = Class of TPlayerAchievement;
  1494. { --------------------------------------------------------------------
  1495. TPlayerAchievementListResponse
  1496. --------------------------------------------------------------------}
  1497. TPlayerAchievementListResponse = Class(TGoogleBaseObject)
  1498. Private
  1499. Fitems : TPlayerAchievementListResponseTypeitemsArray;
  1500. Fkind : String;
  1501. FnextPageToken : String;
  1502. Protected
  1503. //Property setters
  1504. Procedure Setitems(AIndex : Integer; const AValue : TPlayerAchievementListResponseTypeitemsArray); virtual;
  1505. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1506. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1507. //2.6.4. bug workaround
  1508. {$IFDEF VER2_6}
  1509. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1510. {$ENDIF VER2_6}
  1511. Public
  1512. Published
  1513. Property items : TPlayerAchievementListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  1514. Property kind : String Index 8 Read Fkind Write Setkind;
  1515. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  1516. end;
  1517. TPlayerAchievementListResponseClass = Class of TPlayerAchievementListResponse;
  1518. { --------------------------------------------------------------------
  1519. TPlayerEvent
  1520. --------------------------------------------------------------------}
  1521. TPlayerEvent = Class(TGoogleBaseObject)
  1522. Private
  1523. FdefinitionId : String;
  1524. FformattedNumEvents : String;
  1525. Fkind : String;
  1526. FnumEvents : String;
  1527. FplayerId : String;
  1528. Protected
  1529. //Property setters
  1530. Procedure SetdefinitionId(AIndex : Integer; const AValue : String); virtual;
  1531. Procedure SetformattedNumEvents(AIndex : Integer; const AValue : String); virtual;
  1532. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1533. Procedure SetnumEvents(AIndex : Integer; const AValue : String); virtual;
  1534. Procedure SetplayerId(AIndex : Integer; const AValue : String); virtual;
  1535. Public
  1536. Published
  1537. Property definitionId : String Index 0 Read FdefinitionId Write SetdefinitionId;
  1538. Property formattedNumEvents : String Index 8 Read FformattedNumEvents Write SetformattedNumEvents;
  1539. Property kind : String Index 16 Read Fkind Write Setkind;
  1540. Property numEvents : String Index 24 Read FnumEvents Write SetnumEvents;
  1541. Property playerId : String Index 32 Read FplayerId Write SetplayerId;
  1542. end;
  1543. TPlayerEventClass = Class of TPlayerEvent;
  1544. { --------------------------------------------------------------------
  1545. TPlayerEventListResponse
  1546. --------------------------------------------------------------------}
  1547. TPlayerEventListResponse = Class(TGoogleBaseObject)
  1548. Private
  1549. Fitems : TPlayerEventListResponseTypeitemsArray;
  1550. Fkind : String;
  1551. FnextPageToken : String;
  1552. Protected
  1553. //Property setters
  1554. Procedure Setitems(AIndex : Integer; const AValue : TPlayerEventListResponseTypeitemsArray); virtual;
  1555. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1556. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1557. //2.6.4. bug workaround
  1558. {$IFDEF VER2_6}
  1559. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1560. {$ENDIF VER2_6}
  1561. Public
  1562. Published
  1563. Property items : TPlayerEventListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  1564. Property kind : String Index 8 Read Fkind Write Setkind;
  1565. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  1566. end;
  1567. TPlayerEventListResponseClass = Class of TPlayerEventListResponse;
  1568. { --------------------------------------------------------------------
  1569. TPlayerExperienceInfo
  1570. --------------------------------------------------------------------}
  1571. TPlayerExperienceInfo = Class(TGoogleBaseObject)
  1572. Private
  1573. FcurrentExperiencePoints : String;
  1574. FcurrentLevel : TPlayerLevel;
  1575. Fkind : String;
  1576. FlastLevelUpTimestampMillis : String;
  1577. FnextLevel : TPlayerLevel;
  1578. Protected
  1579. //Property setters
  1580. Procedure SetcurrentExperiencePoints(AIndex : Integer; const AValue : String); virtual;
  1581. Procedure SetcurrentLevel(AIndex : Integer; const AValue : TPlayerLevel); virtual;
  1582. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1583. Procedure SetlastLevelUpTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  1584. Procedure SetnextLevel(AIndex : Integer; const AValue : TPlayerLevel); virtual;
  1585. Public
  1586. Published
  1587. Property currentExperiencePoints : String Index 0 Read FcurrentExperiencePoints Write SetcurrentExperiencePoints;
  1588. Property currentLevel : TPlayerLevel Index 8 Read FcurrentLevel Write SetcurrentLevel;
  1589. Property kind : String Index 16 Read Fkind Write Setkind;
  1590. Property lastLevelUpTimestampMillis : String Index 24 Read FlastLevelUpTimestampMillis Write SetlastLevelUpTimestampMillis;
  1591. Property nextLevel : TPlayerLevel Index 32 Read FnextLevel Write SetnextLevel;
  1592. end;
  1593. TPlayerExperienceInfoClass = Class of TPlayerExperienceInfo;
  1594. { --------------------------------------------------------------------
  1595. TPlayerLeaderboardScore
  1596. --------------------------------------------------------------------}
  1597. TPlayerLeaderboardScore = Class(TGoogleBaseObject)
  1598. Private
  1599. Fkind : String;
  1600. Fleaderboard_id : String;
  1601. FpublicRank : TLeaderboardScoreRank;
  1602. FscoreString : String;
  1603. FscoreTag : String;
  1604. FscoreValue : String;
  1605. FsocialRank : TLeaderboardScoreRank;
  1606. FtimeSpan : String;
  1607. FwriteTimestamp : String;
  1608. Protected
  1609. //Property setters
  1610. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1611. Procedure Setleaderboard_id(AIndex : Integer; const AValue : String); virtual;
  1612. Procedure SetpublicRank(AIndex : Integer; const AValue : TLeaderboardScoreRank); virtual;
  1613. Procedure SetscoreString(AIndex : Integer; const AValue : String); virtual;
  1614. Procedure SetscoreTag(AIndex : Integer; const AValue : String); virtual;
  1615. Procedure SetscoreValue(AIndex : Integer; const AValue : String); virtual;
  1616. Procedure SetsocialRank(AIndex : Integer; const AValue : TLeaderboardScoreRank); virtual;
  1617. Procedure SettimeSpan(AIndex : Integer; const AValue : String); virtual;
  1618. Procedure SetwriteTimestamp(AIndex : Integer; const AValue : String); virtual;
  1619. Public
  1620. Published
  1621. Property kind : String Index 0 Read Fkind Write Setkind;
  1622. Property leaderboard_id : String Index 8 Read Fleaderboard_id Write Setleaderboard_id;
  1623. Property publicRank : TLeaderboardScoreRank Index 16 Read FpublicRank Write SetpublicRank;
  1624. Property scoreString : String Index 24 Read FscoreString Write SetscoreString;
  1625. Property scoreTag : String Index 32 Read FscoreTag Write SetscoreTag;
  1626. Property scoreValue : String Index 40 Read FscoreValue Write SetscoreValue;
  1627. Property socialRank : TLeaderboardScoreRank Index 48 Read FsocialRank Write SetsocialRank;
  1628. Property timeSpan : String Index 56 Read FtimeSpan Write SettimeSpan;
  1629. Property writeTimestamp : String Index 64 Read FwriteTimestamp Write SetwriteTimestamp;
  1630. end;
  1631. TPlayerLeaderboardScoreClass = Class of TPlayerLeaderboardScore;
  1632. { --------------------------------------------------------------------
  1633. TPlayerLeaderboardScoreListResponse
  1634. --------------------------------------------------------------------}
  1635. TPlayerLeaderboardScoreListResponse = Class(TGoogleBaseObject)
  1636. Private
  1637. Fitems : TPlayerLeaderboardScoreListResponseTypeitemsArray;
  1638. Fkind : String;
  1639. FnextPageToken : String;
  1640. Fplayer : TPlayer;
  1641. Protected
  1642. //Property setters
  1643. Procedure Setitems(AIndex : Integer; const AValue : TPlayerLeaderboardScoreListResponseTypeitemsArray); virtual;
  1644. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1645. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1646. Procedure Setplayer(AIndex : Integer; const AValue : TPlayer); virtual;
  1647. //2.6.4. bug workaround
  1648. {$IFDEF VER2_6}
  1649. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1650. {$ENDIF VER2_6}
  1651. Public
  1652. Published
  1653. Property items : TPlayerLeaderboardScoreListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  1654. Property kind : String Index 8 Read Fkind Write Setkind;
  1655. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  1656. Property player : TPlayer Index 24 Read Fplayer Write Setplayer;
  1657. end;
  1658. TPlayerLeaderboardScoreListResponseClass = Class of TPlayerLeaderboardScoreListResponse;
  1659. { --------------------------------------------------------------------
  1660. TPlayerLevel
  1661. --------------------------------------------------------------------}
  1662. TPlayerLevel = Class(TGoogleBaseObject)
  1663. Private
  1664. Fkind : String;
  1665. Flevel : integer;
  1666. FmaxExperiencePoints : String;
  1667. FminExperiencePoints : String;
  1668. Protected
  1669. //Property setters
  1670. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1671. Procedure Setlevel(AIndex : Integer; const AValue : integer); virtual;
  1672. Procedure SetmaxExperiencePoints(AIndex : Integer; const AValue : String); virtual;
  1673. Procedure SetminExperiencePoints(AIndex : Integer; const AValue : String); virtual;
  1674. Public
  1675. Published
  1676. Property kind : String Index 0 Read Fkind Write Setkind;
  1677. Property level : integer Index 8 Read Flevel Write Setlevel;
  1678. Property maxExperiencePoints : String Index 16 Read FmaxExperiencePoints Write SetmaxExperiencePoints;
  1679. Property minExperiencePoints : String Index 24 Read FminExperiencePoints Write SetminExperiencePoints;
  1680. end;
  1681. TPlayerLevelClass = Class of TPlayerLevel;
  1682. { --------------------------------------------------------------------
  1683. TPlayerListResponse
  1684. --------------------------------------------------------------------}
  1685. TPlayerListResponse = Class(TGoogleBaseObject)
  1686. Private
  1687. Fitems : TPlayerListResponseTypeitemsArray;
  1688. Fkind : String;
  1689. FnextPageToken : String;
  1690. Protected
  1691. //Property setters
  1692. Procedure Setitems(AIndex : Integer; const AValue : TPlayerListResponseTypeitemsArray); virtual;
  1693. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1694. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1695. //2.6.4. bug workaround
  1696. {$IFDEF VER2_6}
  1697. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1698. {$ENDIF VER2_6}
  1699. Public
  1700. Published
  1701. Property items : TPlayerListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  1702. Property kind : String Index 8 Read Fkind Write Setkind;
  1703. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  1704. end;
  1705. TPlayerListResponseClass = Class of TPlayerListResponse;
  1706. { --------------------------------------------------------------------
  1707. TPlayerScore
  1708. --------------------------------------------------------------------}
  1709. TPlayerScore = Class(TGoogleBaseObject)
  1710. Private
  1711. FformattedScore : String;
  1712. Fkind : String;
  1713. Fscore : String;
  1714. FscoreTag : String;
  1715. FtimeSpan : String;
  1716. Protected
  1717. //Property setters
  1718. Procedure SetformattedScore(AIndex : Integer; const AValue : String); virtual;
  1719. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1720. Procedure Setscore(AIndex : Integer; const AValue : String); virtual;
  1721. Procedure SetscoreTag(AIndex : Integer; const AValue : String); virtual;
  1722. Procedure SettimeSpan(AIndex : Integer; const AValue : String); virtual;
  1723. Public
  1724. Published
  1725. Property formattedScore : String Index 0 Read FformattedScore Write SetformattedScore;
  1726. Property kind : String Index 8 Read Fkind Write Setkind;
  1727. Property score : String Index 16 Read Fscore Write Setscore;
  1728. Property scoreTag : String Index 24 Read FscoreTag Write SetscoreTag;
  1729. Property timeSpan : String Index 32 Read FtimeSpan Write SettimeSpan;
  1730. end;
  1731. TPlayerScoreClass = Class of TPlayerScore;
  1732. { --------------------------------------------------------------------
  1733. TPlayerScoreListResponse
  1734. --------------------------------------------------------------------}
  1735. TPlayerScoreListResponse = Class(TGoogleBaseObject)
  1736. Private
  1737. Fkind : String;
  1738. FsubmittedScores : TPlayerScoreListResponseTypesubmittedScoresArray;
  1739. Protected
  1740. //Property setters
  1741. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1742. Procedure SetsubmittedScores(AIndex : Integer; const AValue : TPlayerScoreListResponseTypesubmittedScoresArray); virtual;
  1743. //2.6.4. bug workaround
  1744. {$IFDEF VER2_6}
  1745. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1746. {$ENDIF VER2_6}
  1747. Public
  1748. Published
  1749. Property kind : String Index 0 Read Fkind Write Setkind;
  1750. Property submittedScores : TPlayerScoreListResponseTypesubmittedScoresArray Index 8 Read FsubmittedScores Write SetsubmittedScores;
  1751. end;
  1752. TPlayerScoreListResponseClass = Class of TPlayerScoreListResponse;
  1753. { --------------------------------------------------------------------
  1754. TPlayerScoreResponse
  1755. --------------------------------------------------------------------}
  1756. TPlayerScoreResponse = Class(TGoogleBaseObject)
  1757. Private
  1758. FbeatenScoreTimeSpans : TStringArray;
  1759. FformattedScore : String;
  1760. Fkind : String;
  1761. FleaderboardId : String;
  1762. FscoreTag : String;
  1763. FunbeatenScores : TPlayerScoreResponseTypeunbeatenScoresArray;
  1764. Protected
  1765. //Property setters
  1766. Procedure SetbeatenScoreTimeSpans(AIndex : Integer; const AValue : TStringArray); virtual;
  1767. Procedure SetformattedScore(AIndex : Integer; const AValue : String); virtual;
  1768. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1769. Procedure SetleaderboardId(AIndex : Integer; const AValue : String); virtual;
  1770. Procedure SetscoreTag(AIndex : Integer; const AValue : String); virtual;
  1771. Procedure SetunbeatenScores(AIndex : Integer; const AValue : TPlayerScoreResponseTypeunbeatenScoresArray); virtual;
  1772. //2.6.4. bug workaround
  1773. {$IFDEF VER2_6}
  1774. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1775. {$ENDIF VER2_6}
  1776. Public
  1777. Published
  1778. Property beatenScoreTimeSpans : TStringArray Index 0 Read FbeatenScoreTimeSpans Write SetbeatenScoreTimeSpans;
  1779. Property formattedScore : String Index 8 Read FformattedScore Write SetformattedScore;
  1780. Property kind : String Index 16 Read Fkind Write Setkind;
  1781. Property leaderboardId : String Index 24 Read FleaderboardId Write SetleaderboardId;
  1782. Property scoreTag : String Index 32 Read FscoreTag Write SetscoreTag;
  1783. Property unbeatenScores : TPlayerScoreResponseTypeunbeatenScoresArray Index 40 Read FunbeatenScores Write SetunbeatenScores;
  1784. end;
  1785. TPlayerScoreResponseClass = Class of TPlayerScoreResponse;
  1786. { --------------------------------------------------------------------
  1787. TPlayerScoreSubmissionList
  1788. --------------------------------------------------------------------}
  1789. TPlayerScoreSubmissionList = Class(TGoogleBaseObject)
  1790. Private
  1791. Fkind : String;
  1792. Fscores : TPlayerScoreSubmissionListTypescoresArray;
  1793. Protected
  1794. //Property setters
  1795. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1796. Procedure Setscores(AIndex : Integer; const AValue : TPlayerScoreSubmissionListTypescoresArray); virtual;
  1797. //2.6.4. bug workaround
  1798. {$IFDEF VER2_6}
  1799. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1800. {$ENDIF VER2_6}
  1801. Public
  1802. Published
  1803. Property kind : String Index 0 Read Fkind Write Setkind;
  1804. Property scores : TPlayerScoreSubmissionListTypescoresArray Index 8 Read Fscores Write Setscores;
  1805. end;
  1806. TPlayerScoreSubmissionListClass = Class of TPlayerScoreSubmissionList;
  1807. { --------------------------------------------------------------------
  1808. TProfileSettings
  1809. --------------------------------------------------------------------}
  1810. TProfileSettings = Class(TGoogleBaseObject)
  1811. Private
  1812. Fkind : String;
  1813. FprofileVisible : boolean;
  1814. Protected
  1815. //Property setters
  1816. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1817. Procedure SetprofileVisible(AIndex : Integer; const AValue : boolean); virtual;
  1818. Public
  1819. Published
  1820. Property kind : String Index 0 Read Fkind Write Setkind;
  1821. Property profileVisible : boolean Index 8 Read FprofileVisible Write SetprofileVisible;
  1822. end;
  1823. TProfileSettingsClass = Class of TProfileSettings;
  1824. { --------------------------------------------------------------------
  1825. TPushToken
  1826. --------------------------------------------------------------------}
  1827. TPushToken = Class(TGoogleBaseObject)
  1828. Private
  1829. FclientRevision : String;
  1830. Fid : TPushTokenId;
  1831. Fkind : String;
  1832. Flanguage : String;
  1833. Protected
  1834. //Property setters
  1835. Procedure SetclientRevision(AIndex : Integer; const AValue : String); virtual;
  1836. Procedure Setid(AIndex : Integer; const AValue : TPushTokenId); virtual;
  1837. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1838. Procedure Setlanguage(AIndex : Integer; const AValue : String); virtual;
  1839. Public
  1840. Published
  1841. Property clientRevision : String Index 0 Read FclientRevision Write SetclientRevision;
  1842. Property id : TPushTokenId Index 8 Read Fid Write Setid;
  1843. Property kind : String Index 16 Read Fkind Write Setkind;
  1844. Property language : String Index 24 Read Flanguage Write Setlanguage;
  1845. end;
  1846. TPushTokenClass = Class of TPushToken;
  1847. { --------------------------------------------------------------------
  1848. TPushTokenIdTypeios
  1849. --------------------------------------------------------------------}
  1850. TPushTokenIdTypeios = Class(TGoogleBaseObject)
  1851. Private
  1852. Fapns_device_token : String;
  1853. Fapns_environment : String;
  1854. Protected
  1855. //Property setters
  1856. Procedure Setapns_device_token(AIndex : Integer; const AValue : String); virtual;
  1857. Procedure Setapns_environment(AIndex : Integer; const AValue : String); virtual;
  1858. Public
  1859. Published
  1860. Property apns_device_token : String Index 0 Read Fapns_device_token Write Setapns_device_token;
  1861. Property apns_environment : String Index 8 Read Fapns_environment Write Setapns_environment;
  1862. end;
  1863. TPushTokenIdTypeiosClass = Class of TPushTokenIdTypeios;
  1864. { --------------------------------------------------------------------
  1865. TPushTokenId
  1866. --------------------------------------------------------------------}
  1867. TPushTokenId = Class(TGoogleBaseObject)
  1868. Private
  1869. Fios : TPushTokenIdTypeios;
  1870. Fkind : String;
  1871. Protected
  1872. //Property setters
  1873. Procedure Setios(AIndex : Integer; const AValue : TPushTokenIdTypeios); virtual;
  1874. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1875. Public
  1876. Published
  1877. Property ios : TPushTokenIdTypeios Index 0 Read Fios Write Setios;
  1878. Property kind : String Index 8 Read Fkind Write Setkind;
  1879. end;
  1880. TPushTokenIdClass = Class of TPushTokenId;
  1881. { --------------------------------------------------------------------
  1882. TQuest
  1883. --------------------------------------------------------------------}
  1884. TQuest = Class(TGoogleBaseObject)
  1885. Private
  1886. FacceptedTimestampMillis : String;
  1887. FapplicationId : String;
  1888. FbannerUrl : String;
  1889. Fdescription : String;
  1890. FendTimestampMillis : String;
  1891. FiconUrl : String;
  1892. Fid : String;
  1893. FisDefaultBannerUrl : boolean;
  1894. FisDefaultIconUrl : boolean;
  1895. Fkind : String;
  1896. FlastUpdatedTimestampMillis : String;
  1897. Fmilestones : TQuestTypemilestonesArray;
  1898. Fname : String;
  1899. FnotifyTimestampMillis : String;
  1900. FstartTimestampMillis : String;
  1901. Fstate : String;
  1902. Protected
  1903. //Property setters
  1904. Procedure SetacceptedTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  1905. Procedure SetapplicationId(AIndex : Integer; const AValue : String); virtual;
  1906. Procedure SetbannerUrl(AIndex : Integer; const AValue : String); virtual;
  1907. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1908. Procedure SetendTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  1909. Procedure SeticonUrl(AIndex : Integer; const AValue : String); virtual;
  1910. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1911. Procedure SetisDefaultBannerUrl(AIndex : Integer; const AValue : boolean); virtual;
  1912. Procedure SetisDefaultIconUrl(AIndex : Integer; const AValue : boolean); virtual;
  1913. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1914. Procedure SetlastUpdatedTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  1915. Procedure Setmilestones(AIndex : Integer; const AValue : TQuestTypemilestonesArray); virtual;
  1916. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1917. Procedure SetnotifyTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  1918. Procedure SetstartTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  1919. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  1920. //2.6.4. bug workaround
  1921. {$IFDEF VER2_6}
  1922. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1923. {$ENDIF VER2_6}
  1924. Public
  1925. Published
  1926. Property acceptedTimestampMillis : String Index 0 Read FacceptedTimestampMillis Write SetacceptedTimestampMillis;
  1927. Property applicationId : String Index 8 Read FapplicationId Write SetapplicationId;
  1928. Property bannerUrl : String Index 16 Read FbannerUrl Write SetbannerUrl;
  1929. Property description : String Index 24 Read Fdescription Write Setdescription;
  1930. Property endTimestampMillis : String Index 32 Read FendTimestampMillis Write SetendTimestampMillis;
  1931. Property iconUrl : String Index 40 Read FiconUrl Write SeticonUrl;
  1932. Property id : String Index 48 Read Fid Write Setid;
  1933. Property isDefaultBannerUrl : boolean Index 56 Read FisDefaultBannerUrl Write SetisDefaultBannerUrl;
  1934. Property isDefaultIconUrl : boolean Index 64 Read FisDefaultIconUrl Write SetisDefaultIconUrl;
  1935. Property kind : String Index 72 Read Fkind Write Setkind;
  1936. Property lastUpdatedTimestampMillis : String Index 80 Read FlastUpdatedTimestampMillis Write SetlastUpdatedTimestampMillis;
  1937. Property milestones : TQuestTypemilestonesArray Index 88 Read Fmilestones Write Setmilestones;
  1938. Property name : String Index 96 Read Fname Write Setname;
  1939. Property notifyTimestampMillis : String Index 104 Read FnotifyTimestampMillis Write SetnotifyTimestampMillis;
  1940. Property startTimestampMillis : String Index 112 Read FstartTimestampMillis Write SetstartTimestampMillis;
  1941. Property state : String Index 120 Read Fstate Write Setstate;
  1942. end;
  1943. TQuestClass = Class of TQuest;
  1944. { --------------------------------------------------------------------
  1945. TQuestContribution
  1946. --------------------------------------------------------------------}
  1947. TQuestContribution = Class(TGoogleBaseObject)
  1948. Private
  1949. FformattedValue : String;
  1950. Fkind : String;
  1951. Fvalue : String;
  1952. Protected
  1953. //Property setters
  1954. Procedure SetformattedValue(AIndex : Integer; const AValue : String); virtual;
  1955. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1956. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  1957. Public
  1958. Published
  1959. Property formattedValue : String Index 0 Read FformattedValue Write SetformattedValue;
  1960. Property kind : String Index 8 Read Fkind Write Setkind;
  1961. Property value : String Index 16 Read Fvalue Write Setvalue;
  1962. end;
  1963. TQuestContributionClass = Class of TQuestContribution;
  1964. { --------------------------------------------------------------------
  1965. TQuestCriterion
  1966. --------------------------------------------------------------------}
  1967. TQuestCriterion = Class(TGoogleBaseObject)
  1968. Private
  1969. FcompletionContribution : TQuestContribution;
  1970. FcurrentContribution : TQuestContribution;
  1971. FeventId : String;
  1972. FinitialPlayerProgress : TQuestContribution;
  1973. Fkind : String;
  1974. Protected
  1975. //Property setters
  1976. Procedure SetcompletionContribution(AIndex : Integer; const AValue : TQuestContribution); virtual;
  1977. Procedure SetcurrentContribution(AIndex : Integer; const AValue : TQuestContribution); virtual;
  1978. Procedure SeteventId(AIndex : Integer; const AValue : String); virtual;
  1979. Procedure SetinitialPlayerProgress(AIndex : Integer; const AValue : TQuestContribution); virtual;
  1980. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1981. Public
  1982. Published
  1983. Property completionContribution : TQuestContribution Index 0 Read FcompletionContribution Write SetcompletionContribution;
  1984. Property currentContribution : TQuestContribution Index 8 Read FcurrentContribution Write SetcurrentContribution;
  1985. Property eventId : String Index 16 Read FeventId Write SeteventId;
  1986. Property initialPlayerProgress : TQuestContribution Index 24 Read FinitialPlayerProgress Write SetinitialPlayerProgress;
  1987. Property kind : String Index 32 Read Fkind Write Setkind;
  1988. end;
  1989. TQuestCriterionClass = Class of TQuestCriterion;
  1990. { --------------------------------------------------------------------
  1991. TQuestListResponse
  1992. --------------------------------------------------------------------}
  1993. TQuestListResponse = Class(TGoogleBaseObject)
  1994. Private
  1995. Fitems : TQuestListResponseTypeitemsArray;
  1996. Fkind : String;
  1997. FnextPageToken : String;
  1998. Protected
  1999. //Property setters
  2000. Procedure Setitems(AIndex : Integer; const AValue : TQuestListResponseTypeitemsArray); virtual;
  2001. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2002. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  2003. //2.6.4. bug workaround
  2004. {$IFDEF VER2_6}
  2005. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2006. {$ENDIF VER2_6}
  2007. Public
  2008. Published
  2009. Property items : TQuestListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  2010. Property kind : String Index 8 Read Fkind Write Setkind;
  2011. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  2012. end;
  2013. TQuestListResponseClass = Class of TQuestListResponse;
  2014. { --------------------------------------------------------------------
  2015. TQuestMilestone
  2016. --------------------------------------------------------------------}
  2017. TQuestMilestone = Class(TGoogleBaseObject)
  2018. Private
  2019. FcompletionRewardData : String;
  2020. Fcriteria : TQuestMilestoneTypecriteriaArray;
  2021. Fid : String;
  2022. Fkind : String;
  2023. Fstate : String;
  2024. Protected
  2025. //Property setters
  2026. Procedure SetcompletionRewardData(AIndex : Integer; const AValue : String); virtual;
  2027. Procedure Setcriteria(AIndex : Integer; const AValue : TQuestMilestoneTypecriteriaArray); virtual;
  2028. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2029. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2030. Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
  2031. //2.6.4. bug workaround
  2032. {$IFDEF VER2_6}
  2033. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2034. {$ENDIF VER2_6}
  2035. Public
  2036. Published
  2037. Property completionRewardData : String Index 0 Read FcompletionRewardData Write SetcompletionRewardData;
  2038. Property criteria : TQuestMilestoneTypecriteriaArray Index 8 Read Fcriteria Write Setcriteria;
  2039. Property id : String Index 16 Read Fid Write Setid;
  2040. Property kind : String Index 24 Read Fkind Write Setkind;
  2041. Property state : String Index 32 Read Fstate Write Setstate;
  2042. end;
  2043. TQuestMilestoneClass = Class of TQuestMilestone;
  2044. { --------------------------------------------------------------------
  2045. TRevisionCheckResponse
  2046. --------------------------------------------------------------------}
  2047. TRevisionCheckResponse = Class(TGoogleBaseObject)
  2048. Private
  2049. FapiVersion : String;
  2050. Fkind : String;
  2051. FrevisionStatus : String;
  2052. Protected
  2053. //Property setters
  2054. Procedure SetapiVersion(AIndex : Integer; const AValue : String); virtual;
  2055. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2056. Procedure SetrevisionStatus(AIndex : Integer; const AValue : String); virtual;
  2057. Public
  2058. Published
  2059. Property apiVersion : String Index 0 Read FapiVersion Write SetapiVersion;
  2060. Property kind : String Index 8 Read Fkind Write Setkind;
  2061. Property revisionStatus : String Index 16 Read FrevisionStatus Write SetrevisionStatus;
  2062. end;
  2063. TRevisionCheckResponseClass = Class of TRevisionCheckResponse;
  2064. { --------------------------------------------------------------------
  2065. TRoom
  2066. --------------------------------------------------------------------}
  2067. TRoom = Class(TGoogleBaseObject)
  2068. Private
  2069. FapplicationId : String;
  2070. FautoMatchingCriteria : TRoomAutoMatchingCriteria;
  2071. FautoMatchingStatus : TRoomAutoMatchStatus;
  2072. FcreationDetails : TRoomModification;
  2073. Fdescription : String;
  2074. FinviterId : String;
  2075. Fkind : String;
  2076. FlastUpdateDetails : TRoomModification;
  2077. Fparticipants : TRoomTypeparticipantsArray;
  2078. FroomId : String;
  2079. FroomStatusVersion : integer;
  2080. Fstatus : String;
  2081. Fvariant : integer;
  2082. Protected
  2083. //Property setters
  2084. Procedure SetapplicationId(AIndex : Integer; const AValue : String); virtual;
  2085. Procedure SetautoMatchingCriteria(AIndex : Integer; const AValue : TRoomAutoMatchingCriteria); virtual;
  2086. Procedure SetautoMatchingStatus(AIndex : Integer; const AValue : TRoomAutoMatchStatus); virtual;
  2087. Procedure SetcreationDetails(AIndex : Integer; const AValue : TRoomModification); virtual;
  2088. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  2089. Procedure SetinviterId(AIndex : Integer; const AValue : String); virtual;
  2090. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2091. Procedure SetlastUpdateDetails(AIndex : Integer; const AValue : TRoomModification); virtual;
  2092. Procedure Setparticipants(AIndex : Integer; const AValue : TRoomTypeparticipantsArray); virtual;
  2093. Procedure SetroomId(AIndex : Integer; const AValue : String); virtual;
  2094. Procedure SetroomStatusVersion(AIndex : Integer; const AValue : integer); virtual;
  2095. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2096. Procedure Setvariant(AIndex : Integer; const AValue : integer); virtual;
  2097. //2.6.4. bug workaround
  2098. {$IFDEF VER2_6}
  2099. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2100. {$ENDIF VER2_6}
  2101. Public
  2102. Published
  2103. Property applicationId : String Index 0 Read FapplicationId Write SetapplicationId;
  2104. Property autoMatchingCriteria : TRoomAutoMatchingCriteria Index 8 Read FautoMatchingCriteria Write SetautoMatchingCriteria;
  2105. Property autoMatchingStatus : TRoomAutoMatchStatus Index 16 Read FautoMatchingStatus Write SetautoMatchingStatus;
  2106. Property creationDetails : TRoomModification Index 24 Read FcreationDetails Write SetcreationDetails;
  2107. Property description : String Index 32 Read Fdescription Write Setdescription;
  2108. Property inviterId : String Index 40 Read FinviterId Write SetinviterId;
  2109. Property kind : String Index 48 Read Fkind Write Setkind;
  2110. Property lastUpdateDetails : TRoomModification Index 56 Read FlastUpdateDetails Write SetlastUpdateDetails;
  2111. Property participants : TRoomTypeparticipantsArray Index 64 Read Fparticipants Write Setparticipants;
  2112. Property roomId : String Index 72 Read FroomId Write SetroomId;
  2113. Property roomStatusVersion : integer Index 80 Read FroomStatusVersion Write SetroomStatusVersion;
  2114. Property status : String Index 88 Read Fstatus Write Setstatus;
  2115. Property variant : integer Index 96 Read Fvariant Write Setvariant;
  2116. end;
  2117. TRoomClass = Class of TRoom;
  2118. { --------------------------------------------------------------------
  2119. TRoomAutoMatchStatus
  2120. --------------------------------------------------------------------}
  2121. TRoomAutoMatchStatus = Class(TGoogleBaseObject)
  2122. Private
  2123. Fkind : String;
  2124. FwaitEstimateSeconds : integer;
  2125. Protected
  2126. //Property setters
  2127. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2128. Procedure SetwaitEstimateSeconds(AIndex : Integer; const AValue : integer); virtual;
  2129. Public
  2130. Published
  2131. Property kind : String Index 0 Read Fkind Write Setkind;
  2132. Property waitEstimateSeconds : integer Index 8 Read FwaitEstimateSeconds Write SetwaitEstimateSeconds;
  2133. end;
  2134. TRoomAutoMatchStatusClass = Class of TRoomAutoMatchStatus;
  2135. { --------------------------------------------------------------------
  2136. TRoomAutoMatchingCriteria
  2137. --------------------------------------------------------------------}
  2138. TRoomAutoMatchingCriteria = Class(TGoogleBaseObject)
  2139. Private
  2140. FexclusiveBitmask : String;
  2141. Fkind : String;
  2142. FmaxAutoMatchingPlayers : integer;
  2143. FminAutoMatchingPlayers : integer;
  2144. Protected
  2145. //Property setters
  2146. Procedure SetexclusiveBitmask(AIndex : Integer; const AValue : String); virtual;
  2147. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2148. Procedure SetmaxAutoMatchingPlayers(AIndex : Integer; const AValue : integer); virtual;
  2149. Procedure SetminAutoMatchingPlayers(AIndex : Integer; const AValue : integer); virtual;
  2150. Public
  2151. Published
  2152. Property exclusiveBitmask : String Index 0 Read FexclusiveBitmask Write SetexclusiveBitmask;
  2153. Property kind : String Index 8 Read Fkind Write Setkind;
  2154. Property maxAutoMatchingPlayers : integer Index 16 Read FmaxAutoMatchingPlayers Write SetmaxAutoMatchingPlayers;
  2155. Property minAutoMatchingPlayers : integer Index 24 Read FminAutoMatchingPlayers Write SetminAutoMatchingPlayers;
  2156. end;
  2157. TRoomAutoMatchingCriteriaClass = Class of TRoomAutoMatchingCriteria;
  2158. { --------------------------------------------------------------------
  2159. TRoomClientAddress
  2160. --------------------------------------------------------------------}
  2161. TRoomClientAddress = Class(TGoogleBaseObject)
  2162. Private
  2163. Fkind : String;
  2164. FxmppAddress : String;
  2165. Protected
  2166. //Property setters
  2167. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2168. Procedure SetxmppAddress(AIndex : Integer; const AValue : String); virtual;
  2169. Public
  2170. Published
  2171. Property kind : String Index 0 Read Fkind Write Setkind;
  2172. Property xmppAddress : String Index 8 Read FxmppAddress Write SetxmppAddress;
  2173. end;
  2174. TRoomClientAddressClass = Class of TRoomClientAddress;
  2175. { --------------------------------------------------------------------
  2176. TRoomCreateRequest
  2177. --------------------------------------------------------------------}
  2178. TRoomCreateRequest = Class(TGoogleBaseObject)
  2179. Private
  2180. FautoMatchingCriteria : TRoomAutoMatchingCriteria;
  2181. Fcapabilities : TStringArray;
  2182. FclientAddress : TRoomClientAddress;
  2183. FinvitedPlayerIds : TStringArray;
  2184. Fkind : String;
  2185. FnetworkDiagnostics : TNetworkDiagnostics;
  2186. FrequestId : String;
  2187. Fvariant : integer;
  2188. Protected
  2189. //Property setters
  2190. Procedure SetautoMatchingCriteria(AIndex : Integer; const AValue : TRoomAutoMatchingCriteria); virtual;
  2191. Procedure Setcapabilities(AIndex : Integer; const AValue : TStringArray); virtual;
  2192. Procedure SetclientAddress(AIndex : Integer; const AValue : TRoomClientAddress); virtual;
  2193. Procedure SetinvitedPlayerIds(AIndex : Integer; const AValue : TStringArray); virtual;
  2194. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2195. Procedure SetnetworkDiagnostics(AIndex : Integer; const AValue : TNetworkDiagnostics); virtual;
  2196. Procedure SetrequestId(AIndex : Integer; const AValue : String); virtual;
  2197. Procedure Setvariant(AIndex : Integer; const AValue : integer); virtual;
  2198. //2.6.4. bug workaround
  2199. {$IFDEF VER2_6}
  2200. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2201. {$ENDIF VER2_6}
  2202. Public
  2203. Published
  2204. Property autoMatchingCriteria : TRoomAutoMatchingCriteria Index 0 Read FautoMatchingCriteria Write SetautoMatchingCriteria;
  2205. Property capabilities : TStringArray Index 8 Read Fcapabilities Write Setcapabilities;
  2206. Property clientAddress : TRoomClientAddress Index 16 Read FclientAddress Write SetclientAddress;
  2207. Property invitedPlayerIds : TStringArray Index 24 Read FinvitedPlayerIds Write SetinvitedPlayerIds;
  2208. Property kind : String Index 32 Read Fkind Write Setkind;
  2209. Property networkDiagnostics : TNetworkDiagnostics Index 40 Read FnetworkDiagnostics Write SetnetworkDiagnostics;
  2210. Property requestId : String Index 48 Read FrequestId Write SetrequestId;
  2211. Property variant : integer Index 56 Read Fvariant Write Setvariant;
  2212. end;
  2213. TRoomCreateRequestClass = Class of TRoomCreateRequest;
  2214. { --------------------------------------------------------------------
  2215. TRoomJoinRequest
  2216. --------------------------------------------------------------------}
  2217. TRoomJoinRequest = Class(TGoogleBaseObject)
  2218. Private
  2219. Fcapabilities : TStringArray;
  2220. FclientAddress : TRoomClientAddress;
  2221. Fkind : String;
  2222. FnetworkDiagnostics : TNetworkDiagnostics;
  2223. Protected
  2224. //Property setters
  2225. Procedure Setcapabilities(AIndex : Integer; const AValue : TStringArray); virtual;
  2226. Procedure SetclientAddress(AIndex : Integer; const AValue : TRoomClientAddress); virtual;
  2227. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2228. Procedure SetnetworkDiagnostics(AIndex : Integer; const AValue : TNetworkDiagnostics); virtual;
  2229. //2.6.4. bug workaround
  2230. {$IFDEF VER2_6}
  2231. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2232. {$ENDIF VER2_6}
  2233. Public
  2234. Published
  2235. Property capabilities : TStringArray Index 0 Read Fcapabilities Write Setcapabilities;
  2236. Property clientAddress : TRoomClientAddress Index 8 Read FclientAddress Write SetclientAddress;
  2237. Property kind : String Index 16 Read Fkind Write Setkind;
  2238. Property networkDiagnostics : TNetworkDiagnostics Index 24 Read FnetworkDiagnostics Write SetnetworkDiagnostics;
  2239. end;
  2240. TRoomJoinRequestClass = Class of TRoomJoinRequest;
  2241. { --------------------------------------------------------------------
  2242. TRoomLeaveDiagnostics
  2243. --------------------------------------------------------------------}
  2244. TRoomLeaveDiagnostics = Class(TGoogleBaseObject)
  2245. Private
  2246. FandroidNetworkSubtype : integer;
  2247. FandroidNetworkType : integer;
  2248. FiosNetworkType : integer;
  2249. Fkind : String;
  2250. FnetworkOperatorCode : String;
  2251. FnetworkOperatorName : String;
  2252. FpeerSession : TRoomLeaveDiagnosticsTypepeerSessionArray;
  2253. FsocketsUsed : boolean;
  2254. Protected
  2255. //Property setters
  2256. Procedure SetandroidNetworkSubtype(AIndex : Integer; const AValue : integer); virtual;
  2257. Procedure SetandroidNetworkType(AIndex : Integer; const AValue : integer); virtual;
  2258. Procedure SetiosNetworkType(AIndex : Integer; const AValue : integer); virtual;
  2259. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2260. Procedure SetnetworkOperatorCode(AIndex : Integer; const AValue : String); virtual;
  2261. Procedure SetnetworkOperatorName(AIndex : Integer; const AValue : String); virtual;
  2262. Procedure SetpeerSession(AIndex : Integer; const AValue : TRoomLeaveDiagnosticsTypepeerSessionArray); virtual;
  2263. Procedure SetsocketsUsed(AIndex : Integer; const AValue : boolean); virtual;
  2264. //2.6.4. bug workaround
  2265. {$IFDEF VER2_6}
  2266. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2267. {$ENDIF VER2_6}
  2268. Public
  2269. Published
  2270. Property androidNetworkSubtype : integer Index 0 Read FandroidNetworkSubtype Write SetandroidNetworkSubtype;
  2271. Property androidNetworkType : integer Index 8 Read FandroidNetworkType Write SetandroidNetworkType;
  2272. Property iosNetworkType : integer Index 16 Read FiosNetworkType Write SetiosNetworkType;
  2273. Property kind : String Index 24 Read Fkind Write Setkind;
  2274. Property networkOperatorCode : String Index 32 Read FnetworkOperatorCode Write SetnetworkOperatorCode;
  2275. Property networkOperatorName : String Index 40 Read FnetworkOperatorName Write SetnetworkOperatorName;
  2276. Property peerSession : TRoomLeaveDiagnosticsTypepeerSessionArray Index 48 Read FpeerSession Write SetpeerSession;
  2277. Property socketsUsed : boolean Index 56 Read FsocketsUsed Write SetsocketsUsed;
  2278. end;
  2279. TRoomLeaveDiagnosticsClass = Class of TRoomLeaveDiagnostics;
  2280. { --------------------------------------------------------------------
  2281. TRoomLeaveRequest
  2282. --------------------------------------------------------------------}
  2283. TRoomLeaveRequest = Class(TGoogleBaseObject)
  2284. Private
  2285. Fkind : String;
  2286. FleaveDiagnostics : TRoomLeaveDiagnostics;
  2287. Freason : String;
  2288. Protected
  2289. //Property setters
  2290. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2291. Procedure SetleaveDiagnostics(AIndex : Integer; const AValue : TRoomLeaveDiagnostics); virtual;
  2292. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  2293. Public
  2294. Published
  2295. Property kind : String Index 0 Read Fkind Write Setkind;
  2296. Property leaveDiagnostics : TRoomLeaveDiagnostics Index 8 Read FleaveDiagnostics Write SetleaveDiagnostics;
  2297. Property reason : String Index 16 Read Freason Write Setreason;
  2298. end;
  2299. TRoomLeaveRequestClass = Class of TRoomLeaveRequest;
  2300. { --------------------------------------------------------------------
  2301. TRoomList
  2302. --------------------------------------------------------------------}
  2303. TRoomList = Class(TGoogleBaseObject)
  2304. Private
  2305. Fitems : TRoomListTypeitemsArray;
  2306. Fkind : String;
  2307. FnextPageToken : String;
  2308. Protected
  2309. //Property setters
  2310. Procedure Setitems(AIndex : Integer; const AValue : TRoomListTypeitemsArray); virtual;
  2311. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2312. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  2313. //2.6.4. bug workaround
  2314. {$IFDEF VER2_6}
  2315. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2316. {$ENDIF VER2_6}
  2317. Public
  2318. Published
  2319. Property items : TRoomListTypeitemsArray Index 0 Read Fitems Write Setitems;
  2320. Property kind : String Index 8 Read Fkind Write Setkind;
  2321. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  2322. end;
  2323. TRoomListClass = Class of TRoomList;
  2324. { --------------------------------------------------------------------
  2325. TRoomModification
  2326. --------------------------------------------------------------------}
  2327. TRoomModification = Class(TGoogleBaseObject)
  2328. Private
  2329. Fkind : String;
  2330. FmodifiedTimestampMillis : String;
  2331. FparticipantId : String;
  2332. Protected
  2333. //Property setters
  2334. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2335. Procedure SetmodifiedTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  2336. Procedure SetparticipantId(AIndex : Integer; const AValue : String); virtual;
  2337. Public
  2338. Published
  2339. Property kind : String Index 0 Read Fkind Write Setkind;
  2340. Property modifiedTimestampMillis : String Index 8 Read FmodifiedTimestampMillis Write SetmodifiedTimestampMillis;
  2341. Property participantId : String Index 16 Read FparticipantId Write SetparticipantId;
  2342. end;
  2343. TRoomModificationClass = Class of TRoomModification;
  2344. { --------------------------------------------------------------------
  2345. TRoomP2PStatus
  2346. --------------------------------------------------------------------}
  2347. TRoomP2PStatus = Class(TGoogleBaseObject)
  2348. Private
  2349. FconnectionSetupLatencyMillis : integer;
  2350. Ferror : String;
  2351. Ferror_reason : String;
  2352. Fkind : String;
  2353. FparticipantId : String;
  2354. Fstatus : String;
  2355. FunreliableRoundtripLatencyMillis : integer;
  2356. Protected
  2357. //Property setters
  2358. Procedure SetconnectionSetupLatencyMillis(AIndex : Integer; const AValue : integer); virtual;
  2359. Procedure Seterror(AIndex : Integer; const AValue : String); virtual;
  2360. Procedure Seterror_reason(AIndex : Integer; const AValue : String); virtual;
  2361. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2362. Procedure SetparticipantId(AIndex : Integer; const AValue : String); virtual;
  2363. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2364. Procedure SetunreliableRoundtripLatencyMillis(AIndex : Integer; const AValue : integer); virtual;
  2365. Public
  2366. Published
  2367. Property connectionSetupLatencyMillis : integer Index 0 Read FconnectionSetupLatencyMillis Write SetconnectionSetupLatencyMillis;
  2368. Property error : String Index 8 Read Ferror Write Seterror;
  2369. Property error_reason : String Index 16 Read Ferror_reason Write Seterror_reason;
  2370. Property kind : String Index 24 Read Fkind Write Setkind;
  2371. Property participantId : String Index 32 Read FparticipantId Write SetparticipantId;
  2372. Property status : String Index 40 Read Fstatus Write Setstatus;
  2373. Property unreliableRoundtripLatencyMillis : integer Index 48 Read FunreliableRoundtripLatencyMillis Write SetunreliableRoundtripLatencyMillis;
  2374. end;
  2375. TRoomP2PStatusClass = Class of TRoomP2PStatus;
  2376. { --------------------------------------------------------------------
  2377. TRoomP2PStatuses
  2378. --------------------------------------------------------------------}
  2379. TRoomP2PStatuses = Class(TGoogleBaseObject)
  2380. Private
  2381. Fkind : String;
  2382. Fupdates : TRoomP2PStatusesTypeupdatesArray;
  2383. Protected
  2384. //Property setters
  2385. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2386. Procedure Setupdates(AIndex : Integer; const AValue : TRoomP2PStatusesTypeupdatesArray); virtual;
  2387. //2.6.4. bug workaround
  2388. {$IFDEF VER2_6}
  2389. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2390. {$ENDIF VER2_6}
  2391. Public
  2392. Published
  2393. Property kind : String Index 0 Read Fkind Write Setkind;
  2394. Property updates : TRoomP2PStatusesTypeupdatesArray Index 8 Read Fupdates Write Setupdates;
  2395. end;
  2396. TRoomP2PStatusesClass = Class of TRoomP2PStatuses;
  2397. { --------------------------------------------------------------------
  2398. TRoomParticipant
  2399. --------------------------------------------------------------------}
  2400. TRoomParticipant = Class(TGoogleBaseObject)
  2401. Private
  2402. FautoMatched : boolean;
  2403. FautoMatchedPlayer : TAnonymousPlayer;
  2404. Fcapabilities : TStringArray;
  2405. FclientAddress : TRoomClientAddress;
  2406. Fconnected : boolean;
  2407. Fid : String;
  2408. Fkind : String;
  2409. FleaveReason : String;
  2410. Fplayer : TPlayer;
  2411. Fstatus : String;
  2412. Protected
  2413. //Property setters
  2414. Procedure SetautoMatched(AIndex : Integer; const AValue : boolean); virtual;
  2415. Procedure SetautoMatchedPlayer(AIndex : Integer; const AValue : TAnonymousPlayer); virtual;
  2416. Procedure Setcapabilities(AIndex : Integer; const AValue : TStringArray); virtual;
  2417. Procedure SetclientAddress(AIndex : Integer; const AValue : TRoomClientAddress); virtual;
  2418. Procedure Setconnected(AIndex : Integer; const AValue : boolean); virtual;
  2419. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2420. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2421. Procedure SetleaveReason(AIndex : Integer; const AValue : String); virtual;
  2422. Procedure Setplayer(AIndex : Integer; const AValue : TPlayer); virtual;
  2423. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2424. //2.6.4. bug workaround
  2425. {$IFDEF VER2_6}
  2426. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2427. {$ENDIF VER2_6}
  2428. Public
  2429. Published
  2430. Property autoMatched : boolean Index 0 Read FautoMatched Write SetautoMatched;
  2431. Property autoMatchedPlayer : TAnonymousPlayer Index 8 Read FautoMatchedPlayer Write SetautoMatchedPlayer;
  2432. Property capabilities : TStringArray Index 16 Read Fcapabilities Write Setcapabilities;
  2433. Property clientAddress : TRoomClientAddress Index 24 Read FclientAddress Write SetclientAddress;
  2434. Property connected : boolean Index 32 Read Fconnected Write Setconnected;
  2435. Property id : String Index 40 Read Fid Write Setid;
  2436. Property kind : String Index 48 Read Fkind Write Setkind;
  2437. Property leaveReason : String Index 56 Read FleaveReason Write SetleaveReason;
  2438. Property player : TPlayer Index 64 Read Fplayer Write Setplayer;
  2439. Property status : String Index 72 Read Fstatus Write Setstatus;
  2440. end;
  2441. TRoomParticipantClass = Class of TRoomParticipant;
  2442. { --------------------------------------------------------------------
  2443. TRoomStatus
  2444. --------------------------------------------------------------------}
  2445. TRoomStatus = Class(TGoogleBaseObject)
  2446. Private
  2447. FautoMatchingStatus : TRoomAutoMatchStatus;
  2448. Fkind : String;
  2449. Fparticipants : TRoomStatusTypeparticipantsArray;
  2450. FroomId : String;
  2451. Fstatus : String;
  2452. FstatusVersion : integer;
  2453. Protected
  2454. //Property setters
  2455. Procedure SetautoMatchingStatus(AIndex : Integer; const AValue : TRoomAutoMatchStatus); virtual;
  2456. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2457. Procedure Setparticipants(AIndex : Integer; const AValue : TRoomStatusTypeparticipantsArray); virtual;
  2458. Procedure SetroomId(AIndex : Integer; const AValue : String); virtual;
  2459. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2460. Procedure SetstatusVersion(AIndex : Integer; const AValue : integer); virtual;
  2461. //2.6.4. bug workaround
  2462. {$IFDEF VER2_6}
  2463. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2464. {$ENDIF VER2_6}
  2465. Public
  2466. Published
  2467. Property autoMatchingStatus : TRoomAutoMatchStatus Index 0 Read FautoMatchingStatus Write SetautoMatchingStatus;
  2468. Property kind : String Index 8 Read Fkind Write Setkind;
  2469. Property participants : TRoomStatusTypeparticipantsArray Index 16 Read Fparticipants Write Setparticipants;
  2470. Property roomId : String Index 24 Read FroomId Write SetroomId;
  2471. Property status : String Index 32 Read Fstatus Write Setstatus;
  2472. Property statusVersion : integer Index 40 Read FstatusVersion Write SetstatusVersion;
  2473. end;
  2474. TRoomStatusClass = Class of TRoomStatus;
  2475. { --------------------------------------------------------------------
  2476. TScoreSubmission
  2477. --------------------------------------------------------------------}
  2478. TScoreSubmission = Class(TGoogleBaseObject)
  2479. Private
  2480. Fkind : String;
  2481. FleaderboardId : String;
  2482. Fscore : String;
  2483. FscoreTag : String;
  2484. Fsignature : String;
  2485. Protected
  2486. //Property setters
  2487. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2488. Procedure SetleaderboardId(AIndex : Integer; const AValue : String); virtual;
  2489. Procedure Setscore(AIndex : Integer; const AValue : String); virtual;
  2490. Procedure SetscoreTag(AIndex : Integer; const AValue : String); virtual;
  2491. Procedure Setsignature(AIndex : Integer; const AValue : String); virtual;
  2492. Public
  2493. Published
  2494. Property kind : String Index 0 Read Fkind Write Setkind;
  2495. Property leaderboardId : String Index 8 Read FleaderboardId Write SetleaderboardId;
  2496. Property score : String Index 16 Read Fscore Write Setscore;
  2497. Property scoreTag : String Index 24 Read FscoreTag Write SetscoreTag;
  2498. Property signature : String Index 32 Read Fsignature Write Setsignature;
  2499. end;
  2500. TScoreSubmissionClass = Class of TScoreSubmission;
  2501. { --------------------------------------------------------------------
  2502. TSnapshot
  2503. --------------------------------------------------------------------}
  2504. TSnapshot = Class(TGoogleBaseObject)
  2505. Private
  2506. FcoverImage : TSnapshotImage;
  2507. Fdescription : String;
  2508. FdriveId : String;
  2509. FdurationMillis : String;
  2510. Fid : String;
  2511. Fkind : String;
  2512. FlastModifiedMillis : String;
  2513. FprogressValue : String;
  2514. Ftitle : String;
  2515. F_type : String;
  2516. FuniqueName : String;
  2517. Protected
  2518. Class Function ExportPropertyName(Const AName : String) : string; override;
  2519. //Property setters
  2520. Procedure SetcoverImage(AIndex : Integer; const AValue : TSnapshotImage); virtual;
  2521. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  2522. Procedure SetdriveId(AIndex : Integer; const AValue : String); virtual;
  2523. Procedure SetdurationMillis(AIndex : Integer; const AValue : String); virtual;
  2524. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2525. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2526. Procedure SetlastModifiedMillis(AIndex : Integer; const AValue : String); virtual;
  2527. Procedure SetprogressValue(AIndex : Integer; const AValue : String); virtual;
  2528. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  2529. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2530. Procedure SetuniqueName(AIndex : Integer; const AValue : String); virtual;
  2531. Public
  2532. Published
  2533. Property coverImage : TSnapshotImage Index 0 Read FcoverImage Write SetcoverImage;
  2534. Property description : String Index 8 Read Fdescription Write Setdescription;
  2535. Property driveId : String Index 16 Read FdriveId Write SetdriveId;
  2536. Property durationMillis : String Index 24 Read FdurationMillis Write SetdurationMillis;
  2537. Property id : String Index 32 Read Fid Write Setid;
  2538. Property kind : String Index 40 Read Fkind Write Setkind;
  2539. Property lastModifiedMillis : String Index 48 Read FlastModifiedMillis Write SetlastModifiedMillis;
  2540. Property progressValue : String Index 56 Read FprogressValue Write SetprogressValue;
  2541. Property title : String Index 64 Read Ftitle Write Settitle;
  2542. Property _type : String Index 72 Read F_type Write Set_type;
  2543. Property uniqueName : String Index 80 Read FuniqueName Write SetuniqueName;
  2544. end;
  2545. TSnapshotClass = Class of TSnapshot;
  2546. { --------------------------------------------------------------------
  2547. TSnapshotImage
  2548. --------------------------------------------------------------------}
  2549. TSnapshotImage = Class(TGoogleBaseObject)
  2550. Private
  2551. Fheight : integer;
  2552. Fkind : String;
  2553. Fmime_type : String;
  2554. Furl : String;
  2555. Fwidth : integer;
  2556. Protected
  2557. //Property setters
  2558. Procedure Setheight(AIndex : Integer; const AValue : integer); virtual;
  2559. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2560. Procedure Setmime_type(AIndex : Integer; const AValue : String); virtual;
  2561. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  2562. Procedure Setwidth(AIndex : Integer; const AValue : integer); virtual;
  2563. Public
  2564. Published
  2565. Property height : integer Index 0 Read Fheight Write Setheight;
  2566. Property kind : String Index 8 Read Fkind Write Setkind;
  2567. Property mime_type : String Index 16 Read Fmime_type Write Setmime_type;
  2568. Property url : String Index 24 Read Furl Write Seturl;
  2569. Property width : integer Index 32 Read Fwidth Write Setwidth;
  2570. end;
  2571. TSnapshotImageClass = Class of TSnapshotImage;
  2572. { --------------------------------------------------------------------
  2573. TSnapshotListResponse
  2574. --------------------------------------------------------------------}
  2575. TSnapshotListResponse = Class(TGoogleBaseObject)
  2576. Private
  2577. Fitems : TSnapshotListResponseTypeitemsArray;
  2578. Fkind : String;
  2579. FnextPageToken : String;
  2580. Protected
  2581. //Property setters
  2582. Procedure Setitems(AIndex : Integer; const AValue : TSnapshotListResponseTypeitemsArray); virtual;
  2583. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2584. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  2585. //2.6.4. bug workaround
  2586. {$IFDEF VER2_6}
  2587. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2588. {$ENDIF VER2_6}
  2589. Public
  2590. Published
  2591. Property items : TSnapshotListResponseTypeitemsArray Index 0 Read Fitems Write Setitems;
  2592. Property kind : String Index 8 Read Fkind Write Setkind;
  2593. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  2594. end;
  2595. TSnapshotListResponseClass = Class of TSnapshotListResponse;
  2596. { --------------------------------------------------------------------
  2597. TTurnBasedAutoMatchingCriteria
  2598. --------------------------------------------------------------------}
  2599. TTurnBasedAutoMatchingCriteria = Class(TGoogleBaseObject)
  2600. Private
  2601. FexclusiveBitmask : String;
  2602. Fkind : String;
  2603. FmaxAutoMatchingPlayers : integer;
  2604. FminAutoMatchingPlayers : integer;
  2605. Protected
  2606. //Property setters
  2607. Procedure SetexclusiveBitmask(AIndex : Integer; const AValue : String); virtual;
  2608. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2609. Procedure SetmaxAutoMatchingPlayers(AIndex : Integer; const AValue : integer); virtual;
  2610. Procedure SetminAutoMatchingPlayers(AIndex : Integer; const AValue : integer); virtual;
  2611. Public
  2612. Published
  2613. Property exclusiveBitmask : String Index 0 Read FexclusiveBitmask Write SetexclusiveBitmask;
  2614. Property kind : String Index 8 Read Fkind Write Setkind;
  2615. Property maxAutoMatchingPlayers : integer Index 16 Read FmaxAutoMatchingPlayers Write SetmaxAutoMatchingPlayers;
  2616. Property minAutoMatchingPlayers : integer Index 24 Read FminAutoMatchingPlayers Write SetminAutoMatchingPlayers;
  2617. end;
  2618. TTurnBasedAutoMatchingCriteriaClass = Class of TTurnBasedAutoMatchingCriteria;
  2619. { --------------------------------------------------------------------
  2620. TTurnBasedMatch
  2621. --------------------------------------------------------------------}
  2622. TTurnBasedMatch = Class(TGoogleBaseObject)
  2623. Private
  2624. FapplicationId : String;
  2625. FautoMatchingCriteria : TTurnBasedAutoMatchingCriteria;
  2626. FcreationDetails : TTurnBasedMatchModification;
  2627. Fdata : TTurnBasedMatchData;
  2628. Fdescription : String;
  2629. FinviterId : String;
  2630. Fkind : String;
  2631. FlastUpdateDetails : TTurnBasedMatchModification;
  2632. FmatchId : String;
  2633. FmatchNumber : integer;
  2634. FmatchVersion : integer;
  2635. Fparticipants : TTurnBasedMatchTypeparticipantsArray;
  2636. FpendingParticipantId : String;
  2637. FpreviousMatchData : TTurnBasedMatchData;
  2638. FrematchId : String;
  2639. Fresults : TTurnBasedMatchTyperesultsArray;
  2640. Fstatus : String;
  2641. FuserMatchStatus : String;
  2642. Fvariant : integer;
  2643. FwithParticipantId : String;
  2644. Protected
  2645. //Property setters
  2646. Procedure SetapplicationId(AIndex : Integer; const AValue : String); virtual;
  2647. Procedure SetautoMatchingCriteria(AIndex : Integer; const AValue : TTurnBasedAutoMatchingCriteria); virtual;
  2648. Procedure SetcreationDetails(AIndex : Integer; const AValue : TTurnBasedMatchModification); virtual;
  2649. Procedure Setdata(AIndex : Integer; const AValue : TTurnBasedMatchData); virtual;
  2650. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  2651. Procedure SetinviterId(AIndex : Integer; const AValue : String); virtual;
  2652. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2653. Procedure SetlastUpdateDetails(AIndex : Integer; const AValue : TTurnBasedMatchModification); virtual;
  2654. Procedure SetmatchId(AIndex : Integer; const AValue : String); virtual;
  2655. Procedure SetmatchNumber(AIndex : Integer; const AValue : integer); virtual;
  2656. Procedure SetmatchVersion(AIndex : Integer; const AValue : integer); virtual;
  2657. Procedure Setparticipants(AIndex : Integer; const AValue : TTurnBasedMatchTypeparticipantsArray); virtual;
  2658. Procedure SetpendingParticipantId(AIndex : Integer; const AValue : String); virtual;
  2659. Procedure SetpreviousMatchData(AIndex : Integer; const AValue : TTurnBasedMatchData); virtual;
  2660. Procedure SetrematchId(AIndex : Integer; const AValue : String); virtual;
  2661. Procedure Setresults(AIndex : Integer; const AValue : TTurnBasedMatchTyperesultsArray); virtual;
  2662. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2663. Procedure SetuserMatchStatus(AIndex : Integer; const AValue : String); virtual;
  2664. Procedure Setvariant(AIndex : Integer; const AValue : integer); virtual;
  2665. Procedure SetwithParticipantId(AIndex : Integer; const AValue : String); virtual;
  2666. //2.6.4. bug workaround
  2667. {$IFDEF VER2_6}
  2668. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2669. {$ENDIF VER2_6}
  2670. Public
  2671. Published
  2672. Property applicationId : String Index 0 Read FapplicationId Write SetapplicationId;
  2673. Property autoMatchingCriteria : TTurnBasedAutoMatchingCriteria Index 8 Read FautoMatchingCriteria Write SetautoMatchingCriteria;
  2674. Property creationDetails : TTurnBasedMatchModification Index 16 Read FcreationDetails Write SetcreationDetails;
  2675. Property data : TTurnBasedMatchData Index 24 Read Fdata Write Setdata;
  2676. Property description : String Index 32 Read Fdescription Write Setdescription;
  2677. Property inviterId : String Index 40 Read FinviterId Write SetinviterId;
  2678. Property kind : String Index 48 Read Fkind Write Setkind;
  2679. Property lastUpdateDetails : TTurnBasedMatchModification Index 56 Read FlastUpdateDetails Write SetlastUpdateDetails;
  2680. Property matchId : String Index 64 Read FmatchId Write SetmatchId;
  2681. Property matchNumber : integer Index 72 Read FmatchNumber Write SetmatchNumber;
  2682. Property matchVersion : integer Index 80 Read FmatchVersion Write SetmatchVersion;
  2683. Property participants : TTurnBasedMatchTypeparticipantsArray Index 88 Read Fparticipants Write Setparticipants;
  2684. Property pendingParticipantId : String Index 96 Read FpendingParticipantId Write SetpendingParticipantId;
  2685. Property previousMatchData : TTurnBasedMatchData Index 104 Read FpreviousMatchData Write SetpreviousMatchData;
  2686. Property rematchId : String Index 112 Read FrematchId Write SetrematchId;
  2687. Property results : TTurnBasedMatchTyperesultsArray Index 120 Read Fresults Write Setresults;
  2688. Property status : String Index 128 Read Fstatus Write Setstatus;
  2689. Property userMatchStatus : String Index 136 Read FuserMatchStatus Write SetuserMatchStatus;
  2690. Property variant : integer Index 144 Read Fvariant Write Setvariant;
  2691. Property withParticipantId : String Index 152 Read FwithParticipantId Write SetwithParticipantId;
  2692. end;
  2693. TTurnBasedMatchClass = Class of TTurnBasedMatch;
  2694. { --------------------------------------------------------------------
  2695. TTurnBasedMatchCreateRequest
  2696. --------------------------------------------------------------------}
  2697. TTurnBasedMatchCreateRequest = Class(TGoogleBaseObject)
  2698. Private
  2699. FautoMatchingCriteria : TTurnBasedAutoMatchingCriteria;
  2700. FinvitedPlayerIds : TStringArray;
  2701. Fkind : String;
  2702. FrequestId : String;
  2703. Fvariant : integer;
  2704. Protected
  2705. //Property setters
  2706. Procedure SetautoMatchingCriteria(AIndex : Integer; const AValue : TTurnBasedAutoMatchingCriteria); virtual;
  2707. Procedure SetinvitedPlayerIds(AIndex : Integer; const AValue : TStringArray); virtual;
  2708. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2709. Procedure SetrequestId(AIndex : Integer; const AValue : String); virtual;
  2710. Procedure Setvariant(AIndex : Integer; const AValue : integer); virtual;
  2711. //2.6.4. bug workaround
  2712. {$IFDEF VER2_6}
  2713. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2714. {$ENDIF VER2_6}
  2715. Public
  2716. Published
  2717. Property autoMatchingCriteria : TTurnBasedAutoMatchingCriteria Index 0 Read FautoMatchingCriteria Write SetautoMatchingCriteria;
  2718. Property invitedPlayerIds : TStringArray Index 8 Read FinvitedPlayerIds Write SetinvitedPlayerIds;
  2719. Property kind : String Index 16 Read Fkind Write Setkind;
  2720. Property requestId : String Index 24 Read FrequestId Write SetrequestId;
  2721. Property variant : integer Index 32 Read Fvariant Write Setvariant;
  2722. end;
  2723. TTurnBasedMatchCreateRequestClass = Class of TTurnBasedMatchCreateRequest;
  2724. { --------------------------------------------------------------------
  2725. TTurnBasedMatchData
  2726. --------------------------------------------------------------------}
  2727. TTurnBasedMatchData = Class(TGoogleBaseObject)
  2728. Private
  2729. Fdata : String;
  2730. FdataAvailable : boolean;
  2731. Fkind : String;
  2732. Protected
  2733. //Property setters
  2734. Procedure Setdata(AIndex : Integer; const AValue : String); virtual;
  2735. Procedure SetdataAvailable(AIndex : Integer; const AValue : boolean); virtual;
  2736. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2737. Public
  2738. Published
  2739. Property data : String Index 0 Read Fdata Write Setdata;
  2740. Property dataAvailable : boolean Index 8 Read FdataAvailable Write SetdataAvailable;
  2741. Property kind : String Index 16 Read Fkind Write Setkind;
  2742. end;
  2743. TTurnBasedMatchDataClass = Class of TTurnBasedMatchData;
  2744. { --------------------------------------------------------------------
  2745. TTurnBasedMatchDataRequest
  2746. --------------------------------------------------------------------}
  2747. TTurnBasedMatchDataRequest = Class(TGoogleBaseObject)
  2748. Private
  2749. Fdata : String;
  2750. Fkind : String;
  2751. Protected
  2752. //Property setters
  2753. Procedure Setdata(AIndex : Integer; const AValue : String); virtual;
  2754. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2755. Public
  2756. Published
  2757. Property data : String Index 0 Read Fdata Write Setdata;
  2758. Property kind : String Index 8 Read Fkind Write Setkind;
  2759. end;
  2760. TTurnBasedMatchDataRequestClass = Class of TTurnBasedMatchDataRequest;
  2761. { --------------------------------------------------------------------
  2762. TTurnBasedMatchList
  2763. --------------------------------------------------------------------}
  2764. TTurnBasedMatchList = Class(TGoogleBaseObject)
  2765. Private
  2766. Fitems : TTurnBasedMatchListTypeitemsArray;
  2767. Fkind : String;
  2768. FnextPageToken : String;
  2769. Protected
  2770. //Property setters
  2771. Procedure Setitems(AIndex : Integer; const AValue : TTurnBasedMatchListTypeitemsArray); virtual;
  2772. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2773. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  2774. //2.6.4. bug workaround
  2775. {$IFDEF VER2_6}
  2776. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2777. {$ENDIF VER2_6}
  2778. Public
  2779. Published
  2780. Property items : TTurnBasedMatchListTypeitemsArray Index 0 Read Fitems Write Setitems;
  2781. Property kind : String Index 8 Read Fkind Write Setkind;
  2782. Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
  2783. end;
  2784. TTurnBasedMatchListClass = Class of TTurnBasedMatchList;
  2785. { --------------------------------------------------------------------
  2786. TTurnBasedMatchModification
  2787. --------------------------------------------------------------------}
  2788. TTurnBasedMatchModification = Class(TGoogleBaseObject)
  2789. Private
  2790. Fkind : String;
  2791. FmodifiedTimestampMillis : String;
  2792. FparticipantId : String;
  2793. Protected
  2794. //Property setters
  2795. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2796. Procedure SetmodifiedTimestampMillis(AIndex : Integer; const AValue : String); virtual;
  2797. Procedure SetparticipantId(AIndex : Integer; const AValue : String); virtual;
  2798. Public
  2799. Published
  2800. Property kind : String Index 0 Read Fkind Write Setkind;
  2801. Property modifiedTimestampMillis : String Index 8 Read FmodifiedTimestampMillis Write SetmodifiedTimestampMillis;
  2802. Property participantId : String Index 16 Read FparticipantId Write SetparticipantId;
  2803. end;
  2804. TTurnBasedMatchModificationClass = Class of TTurnBasedMatchModification;
  2805. { --------------------------------------------------------------------
  2806. TTurnBasedMatchParticipant
  2807. --------------------------------------------------------------------}
  2808. TTurnBasedMatchParticipant = Class(TGoogleBaseObject)
  2809. Private
  2810. FautoMatched : boolean;
  2811. FautoMatchedPlayer : TAnonymousPlayer;
  2812. Fid : String;
  2813. Fkind : String;
  2814. Fplayer : TPlayer;
  2815. Fstatus : String;
  2816. Protected
  2817. //Property setters
  2818. Procedure SetautoMatched(AIndex : Integer; const AValue : boolean); virtual;
  2819. Procedure SetautoMatchedPlayer(AIndex : Integer; const AValue : TAnonymousPlayer); virtual;
  2820. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2821. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2822. Procedure Setplayer(AIndex : Integer; const AValue : TPlayer); virtual;
  2823. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2824. Public
  2825. Published
  2826. Property autoMatched : boolean Index 0 Read FautoMatched Write SetautoMatched;
  2827. Property autoMatchedPlayer : TAnonymousPlayer Index 8 Read FautoMatchedPlayer Write SetautoMatchedPlayer;
  2828. Property id : String Index 16 Read Fid Write Setid;
  2829. Property kind : String Index 24 Read Fkind Write Setkind;
  2830. Property player : TPlayer Index 32 Read Fplayer Write Setplayer;
  2831. Property status : String Index 40 Read Fstatus Write Setstatus;
  2832. end;
  2833. TTurnBasedMatchParticipantClass = Class of TTurnBasedMatchParticipant;
  2834. { --------------------------------------------------------------------
  2835. TTurnBasedMatchRematch
  2836. --------------------------------------------------------------------}
  2837. TTurnBasedMatchRematch = Class(TGoogleBaseObject)
  2838. Private
  2839. Fkind : String;
  2840. FpreviousMatch : TTurnBasedMatch;
  2841. Frematch : TTurnBasedMatch;
  2842. Protected
  2843. //Property setters
  2844. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2845. Procedure SetpreviousMatch(AIndex : Integer; const AValue : TTurnBasedMatch); virtual;
  2846. Procedure Setrematch(AIndex : Integer; const AValue : TTurnBasedMatch); virtual;
  2847. Public
  2848. Published
  2849. Property kind : String Index 0 Read Fkind Write Setkind;
  2850. Property previousMatch : TTurnBasedMatch Index 8 Read FpreviousMatch Write SetpreviousMatch;
  2851. Property rematch : TTurnBasedMatch Index 16 Read Frematch Write Setrematch;
  2852. end;
  2853. TTurnBasedMatchRematchClass = Class of TTurnBasedMatchRematch;
  2854. { --------------------------------------------------------------------
  2855. TTurnBasedMatchResults
  2856. --------------------------------------------------------------------}
  2857. TTurnBasedMatchResults = Class(TGoogleBaseObject)
  2858. Private
  2859. Fdata : TTurnBasedMatchDataRequest;
  2860. Fkind : String;
  2861. FmatchVersion : integer;
  2862. Fresults : TTurnBasedMatchResultsTyperesultsArray;
  2863. Protected
  2864. //Property setters
  2865. Procedure Setdata(AIndex : Integer; const AValue : TTurnBasedMatchDataRequest); virtual;
  2866. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2867. Procedure SetmatchVersion(AIndex : Integer; const AValue : integer); virtual;
  2868. Procedure Setresults(AIndex : Integer; const AValue : TTurnBasedMatchResultsTyperesultsArray); virtual;
  2869. //2.6.4. bug workaround
  2870. {$IFDEF VER2_6}
  2871. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2872. {$ENDIF VER2_6}
  2873. Public
  2874. Published
  2875. Property data : TTurnBasedMatchDataRequest Index 0 Read Fdata Write Setdata;
  2876. Property kind : String Index 8 Read Fkind Write Setkind;
  2877. Property matchVersion : integer Index 16 Read FmatchVersion Write SetmatchVersion;
  2878. Property results : TTurnBasedMatchResultsTyperesultsArray Index 24 Read Fresults Write Setresults;
  2879. end;
  2880. TTurnBasedMatchResultsClass = Class of TTurnBasedMatchResults;
  2881. { --------------------------------------------------------------------
  2882. TTurnBasedMatchSync
  2883. --------------------------------------------------------------------}
  2884. TTurnBasedMatchSync = Class(TGoogleBaseObject)
  2885. Private
  2886. Fitems : TTurnBasedMatchSyncTypeitemsArray;
  2887. Fkind : String;
  2888. FmoreAvailable : boolean;
  2889. FnextPageToken : String;
  2890. Protected
  2891. //Property setters
  2892. Procedure Setitems(AIndex : Integer; const AValue : TTurnBasedMatchSyncTypeitemsArray); virtual;
  2893. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2894. Procedure SetmoreAvailable(AIndex : Integer; const AValue : boolean); virtual;
  2895. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  2896. //2.6.4. bug workaround
  2897. {$IFDEF VER2_6}
  2898. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2899. {$ENDIF VER2_6}
  2900. Public
  2901. Published
  2902. Property items : TTurnBasedMatchSyncTypeitemsArray Index 0 Read Fitems Write Setitems;
  2903. Property kind : String Index 8 Read Fkind Write Setkind;
  2904. Property moreAvailable : boolean Index 16 Read FmoreAvailable Write SetmoreAvailable;
  2905. Property nextPageToken : String Index 24 Read FnextPageToken Write SetnextPageToken;
  2906. end;
  2907. TTurnBasedMatchSyncClass = Class of TTurnBasedMatchSync;
  2908. { --------------------------------------------------------------------
  2909. TTurnBasedMatchTurn
  2910. --------------------------------------------------------------------}
  2911. TTurnBasedMatchTurn = Class(TGoogleBaseObject)
  2912. Private
  2913. Fdata : TTurnBasedMatchDataRequest;
  2914. Fkind : String;
  2915. FmatchVersion : integer;
  2916. FpendingParticipantId : String;
  2917. Fresults : TTurnBasedMatchTurnTyperesultsArray;
  2918. Protected
  2919. //Property setters
  2920. Procedure Setdata(AIndex : Integer; const AValue : TTurnBasedMatchDataRequest); virtual;
  2921. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2922. Procedure SetmatchVersion(AIndex : Integer; const AValue : integer); virtual;
  2923. Procedure SetpendingParticipantId(AIndex : Integer; const AValue : String); virtual;
  2924. Procedure Setresults(AIndex : Integer; const AValue : TTurnBasedMatchTurnTyperesultsArray); virtual;
  2925. //2.6.4. bug workaround
  2926. {$IFDEF VER2_6}
  2927. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2928. {$ENDIF VER2_6}
  2929. Public
  2930. Published
  2931. Property data : TTurnBasedMatchDataRequest Index 0 Read Fdata Write Setdata;
  2932. Property kind : String Index 8 Read Fkind Write Setkind;
  2933. Property matchVersion : integer Index 16 Read FmatchVersion Write SetmatchVersion;
  2934. Property pendingParticipantId : String Index 24 Read FpendingParticipantId Write SetpendingParticipantId;
  2935. Property results : TTurnBasedMatchTurnTyperesultsArray Index 32 Read Fresults Write Setresults;
  2936. end;
  2937. TTurnBasedMatchTurnClass = Class of TTurnBasedMatchTurn;
  2938. { --------------------------------------------------------------------
  2939. TAchievementDefinitionsResource
  2940. --------------------------------------------------------------------}
  2941. //Optional query Options for TAchievementDefinitionsResource, method List
  2942. TAchievementDefinitionsListOptions = Record
  2943. consistencyToken : int64;
  2944. language : String;
  2945. maxResults : integer;
  2946. pageToken : String;
  2947. end;
  2948. TAchievementDefinitionsResource = Class(TGoogleResource)
  2949. Public
  2950. Class Function ResourceName : String; override;
  2951. Class Function DefaultAPI : TGoogleAPIClass; override;
  2952. Function List(AQuery : string = '') : TAchievementDefinitionsListResponse;
  2953. Function List(AQuery : TAchievementDefinitionslistOptions) : TAchievementDefinitionsListResponse;
  2954. end;
  2955. { --------------------------------------------------------------------
  2956. TAchievementsResource
  2957. --------------------------------------------------------------------}
  2958. //Optional query Options for TAchievementsResource, method Increment
  2959. TAchievementsIncrementOptions = Record
  2960. consistencyToken : int64;
  2961. requestId : int64;
  2962. stepsToIncrement : integer;
  2963. end;
  2964. //Optional query Options for TAchievementsResource, method List
  2965. TAchievementsListOptions = Record
  2966. consistencyToken : int64;
  2967. language : String;
  2968. maxResults : integer;
  2969. pageToken : String;
  2970. state : String;
  2971. end;
  2972. //Optional query Options for TAchievementsResource, method Reveal
  2973. TAchievementsRevealOptions = Record
  2974. consistencyToken : int64;
  2975. end;
  2976. //Optional query Options for TAchievementsResource, method SetStepsAtLeast
  2977. TAchievementsSetStepsAtLeastOptions = Record
  2978. consistencyToken : int64;
  2979. steps : integer;
  2980. end;
  2981. //Optional query Options for TAchievementsResource, method Unlock
  2982. TAchievementsUnlockOptions = Record
  2983. consistencyToken : int64;
  2984. end;
  2985. //Optional query Options for TAchievementsResource, method UpdateMultiple
  2986. TAchievementsUpdateMultipleOptions = Record
  2987. consistencyToken : int64;
  2988. end;
  2989. TAchievementsResource = Class(TGoogleResource)
  2990. Public
  2991. Class Function ResourceName : String; override;
  2992. Class Function DefaultAPI : TGoogleAPIClass; override;
  2993. Function Increment(achievementId: string; AQuery : string = '') : TAchievementIncrementResponse;
  2994. Function Increment(achievementId: string; AQuery : TAchievementsincrementOptions) : TAchievementIncrementResponse;
  2995. Function List(playerId: string; AQuery : string = '') : TPlayerAchievementListResponse;
  2996. Function List(playerId: string; AQuery : TAchievementslistOptions) : TPlayerAchievementListResponse;
  2997. Function Reveal(achievementId: string; AQuery : string = '') : TAchievementRevealResponse;
  2998. Function Reveal(achievementId: string; AQuery : TAchievementsrevealOptions) : TAchievementRevealResponse;
  2999. Function SetStepsAtLeast(achievementId: string; AQuery : string = '') : TAchievementSetStepsAtLeastResponse;
  3000. Function SetStepsAtLeast(achievementId: string; AQuery : TAchievementssetStepsAtLeastOptions) : TAchievementSetStepsAtLeastResponse;
  3001. Function Unlock(achievementId: string; AQuery : string = '') : TAchievementUnlockResponse;
  3002. Function Unlock(achievementId: string; AQuery : TAchievementsunlockOptions) : TAchievementUnlockResponse;
  3003. Function UpdateMultiple(aAchievementUpdateMultipleRequest : TAchievementUpdateMultipleRequest; AQuery : string = '') : TAchievementUpdateMultipleResponse;
  3004. Function UpdateMultiple(aAchievementUpdateMultipleRequest : TAchievementUpdateMultipleRequest; AQuery : TAchievementsupdateMultipleOptions) : TAchievementUpdateMultipleResponse;
  3005. end;
  3006. { --------------------------------------------------------------------
  3007. TApplicationsResource
  3008. --------------------------------------------------------------------}
  3009. //Optional query Options for TApplicationsResource, method Get
  3010. TApplicationsGetOptions = Record
  3011. consistencyToken : int64;
  3012. language : String;
  3013. platformType : String;
  3014. end;
  3015. //Optional query Options for TApplicationsResource, method Played
  3016. TApplicationsPlayedOptions = Record
  3017. consistencyToken : int64;
  3018. end;
  3019. //Optional query Options for TApplicationsResource, method Verify
  3020. TApplicationsVerifyOptions = Record
  3021. consistencyToken : int64;
  3022. end;
  3023. TApplicationsResource = Class(TGoogleResource)
  3024. Public
  3025. Class Function ResourceName : String; override;
  3026. Class Function DefaultAPI : TGoogleAPIClass; override;
  3027. Function Get(applicationId: string; AQuery : string = '') : TApplication;
  3028. Function Get(applicationId: string; AQuery : TApplicationsgetOptions) : TApplication;
  3029. Procedure Played(AQuery : string = '');
  3030. Procedure Played(AQuery : TApplicationsplayedOptions);
  3031. Function Verify(applicationId: string; AQuery : string = '') : TApplicationVerifyResponse;
  3032. Function Verify(applicationId: string; AQuery : TApplicationsverifyOptions) : TApplicationVerifyResponse;
  3033. end;
  3034. { --------------------------------------------------------------------
  3035. TEventsResource
  3036. --------------------------------------------------------------------}
  3037. //Optional query Options for TEventsResource, method ListByPlayer
  3038. TEventsListByPlayerOptions = Record
  3039. consistencyToken : int64;
  3040. language : String;
  3041. maxResults : integer;
  3042. pageToken : String;
  3043. end;
  3044. //Optional query Options for TEventsResource, method ListDefinitions
  3045. TEventsListDefinitionsOptions = Record
  3046. consistencyToken : int64;
  3047. language : String;
  3048. maxResults : integer;
  3049. pageToken : String;
  3050. end;
  3051. //Optional query Options for TEventsResource, method Record
  3052. TEventsRecordOptions = Record
  3053. consistencyToken : int64;
  3054. language : String;
  3055. end;
  3056. TEventsResource = Class(TGoogleResource)
  3057. Public
  3058. Class Function ResourceName : String; override;
  3059. Class Function DefaultAPI : TGoogleAPIClass; override;
  3060. Function ListByPlayer(AQuery : string = '') : TPlayerEventListResponse;
  3061. Function ListByPlayer(AQuery : TEventslistByPlayerOptions) : TPlayerEventListResponse;
  3062. Function ListDefinitions(AQuery : string = '') : TEventDefinitionListResponse;
  3063. Function ListDefinitions(AQuery : TEventslistDefinitionsOptions) : TEventDefinitionListResponse;
  3064. Function _record(aEventRecordRequest : TEventRecordRequest; AQuery : string = '') : TEventUpdateResponse;
  3065. Function _record(aEventRecordRequest : TEventRecordRequest; AQuery : TEventsrecordOptions) : TEventUpdateResponse;
  3066. end;
  3067. { --------------------------------------------------------------------
  3068. TLeaderboardsResource
  3069. --------------------------------------------------------------------}
  3070. //Optional query Options for TLeaderboardsResource, method Get
  3071. TLeaderboardsGetOptions = Record
  3072. consistencyToken : int64;
  3073. language : String;
  3074. end;
  3075. //Optional query Options for TLeaderboardsResource, method List
  3076. TLeaderboardsListOptions = Record
  3077. consistencyToken : int64;
  3078. language : String;
  3079. maxResults : integer;
  3080. pageToken : String;
  3081. end;
  3082. TLeaderboardsResource = Class(TGoogleResource)
  3083. Public
  3084. Class Function ResourceName : String; override;
  3085. Class Function DefaultAPI : TGoogleAPIClass; override;
  3086. Function Get(leaderboardId: string; AQuery : string = '') : TLeaderboard;
  3087. Function Get(leaderboardId: string; AQuery : TLeaderboardsgetOptions) : TLeaderboard;
  3088. Function List(AQuery : string = '') : TLeaderboardListResponse;
  3089. Function List(AQuery : TLeaderboardslistOptions) : TLeaderboardListResponse;
  3090. end;
  3091. { --------------------------------------------------------------------
  3092. TMetagameResource
  3093. --------------------------------------------------------------------}
  3094. //Optional query Options for TMetagameResource, method GetMetagameConfig
  3095. TMetagameGetMetagameConfigOptions = Record
  3096. consistencyToken : int64;
  3097. end;
  3098. //Optional query Options for TMetagameResource, method ListCategoriesByPlayer
  3099. TMetagameListCategoriesByPlayerOptions = Record
  3100. consistencyToken : int64;
  3101. language : String;
  3102. maxResults : integer;
  3103. pageToken : String;
  3104. end;
  3105. TMetagameResource = Class(TGoogleResource)
  3106. Public
  3107. Class Function ResourceName : String; override;
  3108. Class Function DefaultAPI : TGoogleAPIClass; override;
  3109. Function GetMetagameConfig(AQuery : string = '') : TMetagameConfig;
  3110. Function GetMetagameConfig(AQuery : TMetagamegetMetagameConfigOptions) : TMetagameConfig;
  3111. Function ListCategoriesByPlayer(collection: string; playerId: string; AQuery : string = '') : TCategoryListResponse;
  3112. Function ListCategoriesByPlayer(collection: string; playerId: string; AQuery : TMetagamelistCategoriesByPlayerOptions) : TCategoryListResponse;
  3113. end;
  3114. { --------------------------------------------------------------------
  3115. TPlayersResource
  3116. --------------------------------------------------------------------}
  3117. //Optional query Options for TPlayersResource, method Get
  3118. TPlayersGetOptions = Record
  3119. consistencyToken : int64;
  3120. language : String;
  3121. end;
  3122. //Optional query Options for TPlayersResource, method List
  3123. TPlayersListOptions = Record
  3124. consistencyToken : int64;
  3125. language : String;
  3126. maxResults : integer;
  3127. pageToken : String;
  3128. end;
  3129. TPlayersResource = Class(TGoogleResource)
  3130. Public
  3131. Class Function ResourceName : String; override;
  3132. Class Function DefaultAPI : TGoogleAPIClass; override;
  3133. Function Get(playerId: string; AQuery : string = '') : TPlayer;
  3134. Function Get(playerId: string; AQuery : TPlayersgetOptions) : TPlayer;
  3135. Function List(collection: string; AQuery : string = '') : TPlayerListResponse;
  3136. Function List(collection: string; AQuery : TPlayerslistOptions) : TPlayerListResponse;
  3137. end;
  3138. { --------------------------------------------------------------------
  3139. TPushtokensResource
  3140. --------------------------------------------------------------------}
  3141. //Optional query Options for TPushtokensResource, method Remove
  3142. TPushtokensRemoveOptions = Record
  3143. consistencyToken : int64;
  3144. end;
  3145. //Optional query Options for TPushtokensResource, method Update
  3146. TPushtokensUpdateOptions = Record
  3147. consistencyToken : int64;
  3148. end;
  3149. TPushtokensResource = Class(TGoogleResource)
  3150. Public
  3151. Class Function ResourceName : String; override;
  3152. Class Function DefaultAPI : TGoogleAPIClass; override;
  3153. Procedure Remove(aPushTokenId : TPushTokenId; AQuery : string = '');
  3154. Procedure Remove(aPushTokenId : TPushTokenId; AQuery : TPushtokensremoveOptions);
  3155. Procedure Update(aPushToken : TPushToken; AQuery : string = '');
  3156. Procedure Update(aPushToken : TPushToken; AQuery : TPushtokensupdateOptions);
  3157. end;
  3158. { --------------------------------------------------------------------
  3159. TQuestMilestonesResource
  3160. --------------------------------------------------------------------}
  3161. //Optional query Options for TQuestMilestonesResource, method Claim
  3162. TQuestMilestonesClaimOptions = Record
  3163. consistencyToken : int64;
  3164. requestId : int64;
  3165. end;
  3166. TQuestMilestonesResource = Class(TGoogleResource)
  3167. Public
  3168. Class Function ResourceName : String; override;
  3169. Class Function DefaultAPI : TGoogleAPIClass; override;
  3170. Procedure Claim(milestoneId: string; questId: string; AQuery : string = '');
  3171. Procedure Claim(milestoneId: string; questId: string; AQuery : TQuestMilestonesclaimOptions);
  3172. end;
  3173. { --------------------------------------------------------------------
  3174. TQuestsResource
  3175. --------------------------------------------------------------------}
  3176. //Optional query Options for TQuestsResource, method Accept
  3177. TQuestsAcceptOptions = Record
  3178. consistencyToken : int64;
  3179. language : String;
  3180. end;
  3181. //Optional query Options for TQuestsResource, method List
  3182. TQuestsListOptions = Record
  3183. consistencyToken : int64;
  3184. language : String;
  3185. maxResults : integer;
  3186. pageToken : String;
  3187. end;
  3188. TQuestsResource = Class(TGoogleResource)
  3189. Public
  3190. Class Function ResourceName : String; override;
  3191. Class Function DefaultAPI : TGoogleAPIClass; override;
  3192. Function Accept(questId: string; AQuery : string = '') : TQuest;
  3193. Function Accept(questId: string; AQuery : TQuestsacceptOptions) : TQuest;
  3194. Function List(playerId: string; AQuery : string = '') : TQuestListResponse;
  3195. Function List(playerId: string; AQuery : TQuestslistOptions) : TQuestListResponse;
  3196. end;
  3197. { --------------------------------------------------------------------
  3198. TRevisionsResource
  3199. --------------------------------------------------------------------}
  3200. //Optional query Options for TRevisionsResource, method Check
  3201. TRevisionsCheckOptions = Record
  3202. clientRevision : String;
  3203. consistencyToken : int64;
  3204. end;
  3205. TRevisionsResource = Class(TGoogleResource)
  3206. Public
  3207. Class Function ResourceName : String; override;
  3208. Class Function DefaultAPI : TGoogleAPIClass; override;
  3209. Function Check(AQuery : string = '') : TRevisionCheckResponse;
  3210. Function Check(AQuery : TRevisionscheckOptions) : TRevisionCheckResponse;
  3211. end;
  3212. { --------------------------------------------------------------------
  3213. TRoomsResource
  3214. --------------------------------------------------------------------}
  3215. //Optional query Options for TRoomsResource, method Create
  3216. TRoomsCreateOptions = Record
  3217. consistencyToken : int64;
  3218. language : String;
  3219. end;
  3220. //Optional query Options for TRoomsResource, method Decline
  3221. TRoomsDeclineOptions = Record
  3222. consistencyToken : int64;
  3223. language : String;
  3224. end;
  3225. //Optional query Options for TRoomsResource, method Dismiss
  3226. TRoomsDismissOptions = Record
  3227. consistencyToken : int64;
  3228. end;
  3229. //Optional query Options for TRoomsResource, method Get
  3230. TRoomsGetOptions = Record
  3231. consistencyToken : int64;
  3232. language : String;
  3233. end;
  3234. //Optional query Options for TRoomsResource, method Join
  3235. TRoomsJoinOptions = Record
  3236. consistencyToken : int64;
  3237. language : String;
  3238. end;
  3239. //Optional query Options for TRoomsResource, method Leave
  3240. TRoomsLeaveOptions = Record
  3241. consistencyToken : int64;
  3242. language : String;
  3243. end;
  3244. //Optional query Options for TRoomsResource, method List
  3245. TRoomsListOptions = Record
  3246. consistencyToken : int64;
  3247. language : String;
  3248. maxResults : integer;
  3249. pageToken : String;
  3250. end;
  3251. //Optional query Options for TRoomsResource, method ReportStatus
  3252. TRoomsReportStatusOptions = Record
  3253. consistencyToken : int64;
  3254. language : String;
  3255. end;
  3256. TRoomsResource = Class(TGoogleResource)
  3257. Public
  3258. Class Function ResourceName : String; override;
  3259. Class Function DefaultAPI : TGoogleAPIClass; override;
  3260. Function Create(aRoomCreateRequest : TRoomCreateRequest; AQuery : string = '') : TRoom;overload;
  3261. Function Create(aRoomCreateRequest : TRoomCreateRequest; AQuery : TRoomscreateOptions) : TRoom;overload;
  3262. Function Decline(roomId: string; AQuery : string = '') : TRoom;
  3263. Function Decline(roomId: string; AQuery : TRoomsdeclineOptions) : TRoom;
  3264. Procedure Dismiss(roomId: string; AQuery : string = '');
  3265. Procedure Dismiss(roomId: string; AQuery : TRoomsdismissOptions);
  3266. Function Get(roomId: string; AQuery : string = '') : TRoom;
  3267. Function Get(roomId: string; AQuery : TRoomsgetOptions) : TRoom;
  3268. Function Join(roomId: string; aRoomJoinRequest : TRoomJoinRequest; AQuery : string = '') : TRoom;
  3269. Function Join(roomId: string; aRoomJoinRequest : TRoomJoinRequest; AQuery : TRoomsjoinOptions) : TRoom;
  3270. Function Leave(roomId: string; aRoomLeaveRequest : TRoomLeaveRequest; AQuery : string = '') : TRoom;
  3271. Function Leave(roomId: string; aRoomLeaveRequest : TRoomLeaveRequest; AQuery : TRoomsleaveOptions) : TRoom;
  3272. Function List(AQuery : string = '') : TRoomList;
  3273. Function List(AQuery : TRoomslistOptions) : TRoomList;
  3274. Function ReportStatus(roomId: string; aRoomP2PStatuses : TRoomP2PStatuses; AQuery : string = '') : TRoomStatus;
  3275. Function ReportStatus(roomId: string; aRoomP2PStatuses : TRoomP2PStatuses; AQuery : TRoomsreportStatusOptions) : TRoomStatus;
  3276. end;
  3277. { --------------------------------------------------------------------
  3278. TScoresResource
  3279. --------------------------------------------------------------------}
  3280. //Optional query Options for TScoresResource, method Get
  3281. TScoresGetOptions = Record
  3282. consistencyToken : int64;
  3283. includeRankType : String;
  3284. language : String;
  3285. maxResults : integer;
  3286. pageToken : String;
  3287. end;
  3288. //Optional query Options for TScoresResource, method List
  3289. TScoresListOptions = Record
  3290. consistencyToken : int64;
  3291. language : String;
  3292. maxResults : integer;
  3293. pageToken : String;
  3294. timeSpan : String;
  3295. end;
  3296. //Optional query Options for TScoresResource, method ListWindow
  3297. TScoresListWindowOptions = Record
  3298. consistencyToken : int64;
  3299. language : String;
  3300. maxResults : integer;
  3301. pageToken : String;
  3302. resultsAbove : integer;
  3303. returnTopIfAbsent : boolean;
  3304. timeSpan : String;
  3305. end;
  3306. //Optional query Options for TScoresResource, method Submit
  3307. TScoresSubmitOptions = Record
  3308. consistencyToken : int64;
  3309. language : String;
  3310. score : int64;
  3311. scoreTag : String;
  3312. end;
  3313. //Optional query Options for TScoresResource, method SubmitMultiple
  3314. TScoresSubmitMultipleOptions = Record
  3315. consistencyToken : int64;
  3316. language : String;
  3317. end;
  3318. TScoresResource = Class(TGoogleResource)
  3319. Public
  3320. Class Function ResourceName : String; override;
  3321. Class Function DefaultAPI : TGoogleAPIClass; override;
  3322. Function Get(leaderboardId: string; playerId: string; timeSpan: string; AQuery : string = '') : TPlayerLeaderboardScoreListResponse;
  3323. Function Get(leaderboardId: string; playerId: string; timeSpan: string; AQuery : TScoresgetOptions) : TPlayerLeaderboardScoreListResponse;
  3324. Function List(collection: string; leaderboardId: string; AQuery : string = '') : TLeaderboardScores;
  3325. Function List(collection: string; leaderboardId: string; AQuery : TScoreslistOptions) : TLeaderboardScores;
  3326. Function ListWindow(collection: string; leaderboardId: string; AQuery : string = '') : TLeaderboardScores;
  3327. Function ListWindow(collection: string; leaderboardId: string; AQuery : TScoreslistWindowOptions) : TLeaderboardScores;
  3328. Function Submit(leaderboardId: string; AQuery : string = '') : TPlayerScoreResponse;
  3329. Function Submit(leaderboardId: string; AQuery : TScoressubmitOptions) : TPlayerScoreResponse;
  3330. Function SubmitMultiple(aPlayerScoreSubmissionList : TPlayerScoreSubmissionList; AQuery : string = '') : TPlayerScoreListResponse;
  3331. Function SubmitMultiple(aPlayerScoreSubmissionList : TPlayerScoreSubmissionList; AQuery : TScoressubmitMultipleOptions) : TPlayerScoreListResponse;
  3332. end;
  3333. { --------------------------------------------------------------------
  3334. TSnapshotsResource
  3335. --------------------------------------------------------------------}
  3336. //Optional query Options for TSnapshotsResource, method Get
  3337. TSnapshotsGetOptions = Record
  3338. consistencyToken : int64;
  3339. language : String;
  3340. end;
  3341. //Optional query Options for TSnapshotsResource, method List
  3342. TSnapshotsListOptions = Record
  3343. consistencyToken : int64;
  3344. language : String;
  3345. maxResults : integer;
  3346. pageToken : String;
  3347. end;
  3348. TSnapshotsResource = Class(TGoogleResource)
  3349. Public
  3350. Class Function ResourceName : String; override;
  3351. Class Function DefaultAPI : TGoogleAPIClass; override;
  3352. Function Get(snapshotId: string; AQuery : string = '') : TSnapshot;
  3353. Function Get(snapshotId: string; AQuery : TSnapshotsgetOptions) : TSnapshot;
  3354. Function List(playerId: string; AQuery : string = '') : TSnapshotListResponse;
  3355. Function List(playerId: string; AQuery : TSnapshotslistOptions) : TSnapshotListResponse;
  3356. end;
  3357. { --------------------------------------------------------------------
  3358. TTurnBasedMatchesResource
  3359. --------------------------------------------------------------------}
  3360. //Optional query Options for TTurnBasedMatchesResource, method Cancel
  3361. TTurnBasedMatchesCancelOptions = Record
  3362. consistencyToken : int64;
  3363. end;
  3364. //Optional query Options for TTurnBasedMatchesResource, method Create
  3365. TTurnBasedMatchesCreateOptions = Record
  3366. consistencyToken : int64;
  3367. language : String;
  3368. end;
  3369. //Optional query Options for TTurnBasedMatchesResource, method Decline
  3370. TTurnBasedMatchesDeclineOptions = Record
  3371. consistencyToken : int64;
  3372. language : String;
  3373. end;
  3374. //Optional query Options for TTurnBasedMatchesResource, method Dismiss
  3375. TTurnBasedMatchesDismissOptions = Record
  3376. consistencyToken : int64;
  3377. end;
  3378. //Optional query Options for TTurnBasedMatchesResource, method Finish
  3379. TTurnBasedMatchesFinishOptions = Record
  3380. consistencyToken : int64;
  3381. language : String;
  3382. end;
  3383. //Optional query Options for TTurnBasedMatchesResource, method Get
  3384. TTurnBasedMatchesGetOptions = Record
  3385. consistencyToken : int64;
  3386. includeMatchData : boolean;
  3387. language : String;
  3388. end;
  3389. //Optional query Options for TTurnBasedMatchesResource, method Join
  3390. TTurnBasedMatchesJoinOptions = Record
  3391. consistencyToken : int64;
  3392. language : String;
  3393. end;
  3394. //Optional query Options for TTurnBasedMatchesResource, method Leave
  3395. TTurnBasedMatchesLeaveOptions = Record
  3396. consistencyToken : int64;
  3397. language : String;
  3398. end;
  3399. //Optional query Options for TTurnBasedMatchesResource, method LeaveTurn
  3400. TTurnBasedMatchesLeaveTurnOptions = Record
  3401. consistencyToken : int64;
  3402. language : String;
  3403. matchVersion : integer;
  3404. pendingParticipantId : String;
  3405. end;
  3406. //Optional query Options for TTurnBasedMatchesResource, method List
  3407. TTurnBasedMatchesListOptions = Record
  3408. consistencyToken : int64;
  3409. includeMatchData : boolean;
  3410. language : String;
  3411. maxCompletedMatches : integer;
  3412. maxResults : integer;
  3413. pageToken : String;
  3414. end;
  3415. //Optional query Options for TTurnBasedMatchesResource, method Rematch
  3416. TTurnBasedMatchesRematchOptions = Record
  3417. consistencyToken : int64;
  3418. language : String;
  3419. requestId : int64;
  3420. end;
  3421. //Optional query Options for TTurnBasedMatchesResource, method Sync
  3422. TTurnBasedMatchesSyncOptions = Record
  3423. consistencyToken : int64;
  3424. includeMatchData : boolean;
  3425. language : String;
  3426. maxCompletedMatches : integer;
  3427. maxResults : integer;
  3428. pageToken : String;
  3429. end;
  3430. //Optional query Options for TTurnBasedMatchesResource, method TakeTurn
  3431. TTurnBasedMatchesTakeTurnOptions = Record
  3432. consistencyToken : int64;
  3433. language : String;
  3434. end;
  3435. TTurnBasedMatchesResource = Class(TGoogleResource)
  3436. Public
  3437. Class Function ResourceName : String; override;
  3438. Class Function DefaultAPI : TGoogleAPIClass; override;
  3439. Procedure Cancel(matchId: string; AQuery : string = '');
  3440. Procedure Cancel(matchId: string; AQuery : TTurnBasedMatchescancelOptions);
  3441. Function Create(aTurnBasedMatchCreateRequest : TTurnBasedMatchCreateRequest; AQuery : string = '') : TTurnBasedMatch;overload;
  3442. Function Create(aTurnBasedMatchCreateRequest : TTurnBasedMatchCreateRequest; AQuery : TTurnBasedMatchescreateOptions) : TTurnBasedMatch;overload;
  3443. Function Decline(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  3444. Function Decline(matchId: string; AQuery : TTurnBasedMatchesdeclineOptions) : TTurnBasedMatch;
  3445. Procedure Dismiss(matchId: string; AQuery : string = '');
  3446. Procedure Dismiss(matchId: string; AQuery : TTurnBasedMatchesdismissOptions);
  3447. Function Finish(matchId: string; aTurnBasedMatchResults : TTurnBasedMatchResults; AQuery : string = '') : TTurnBasedMatch;
  3448. Function Finish(matchId: string; aTurnBasedMatchResults : TTurnBasedMatchResults; AQuery : TTurnBasedMatchesfinishOptions) : TTurnBasedMatch;
  3449. Function Get(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  3450. Function Get(matchId: string; AQuery : TTurnBasedMatchesgetOptions) : TTurnBasedMatch;
  3451. Function Join(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  3452. Function Join(matchId: string; AQuery : TTurnBasedMatchesjoinOptions) : TTurnBasedMatch;
  3453. Function Leave(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  3454. Function Leave(matchId: string; AQuery : TTurnBasedMatchesleaveOptions) : TTurnBasedMatch;
  3455. Function LeaveTurn(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  3456. Function LeaveTurn(matchId: string; AQuery : TTurnBasedMatchesleaveTurnOptions) : TTurnBasedMatch;
  3457. Function List(AQuery : string = '') : TTurnBasedMatchList;
  3458. Function List(AQuery : TTurnBasedMatcheslistOptions) : TTurnBasedMatchList;
  3459. Function Rematch(matchId: string; AQuery : string = '') : TTurnBasedMatchRematch;
  3460. Function Rematch(matchId: string; AQuery : TTurnBasedMatchesrematchOptions) : TTurnBasedMatchRematch;
  3461. Function Sync(AQuery : string = '') : TTurnBasedMatchSync;
  3462. Function Sync(AQuery : TTurnBasedMatchessyncOptions) : TTurnBasedMatchSync;
  3463. Function TakeTurn(matchId: string; aTurnBasedMatchTurn : TTurnBasedMatchTurn; AQuery : string = '') : TTurnBasedMatch;
  3464. Function TakeTurn(matchId: string; aTurnBasedMatchTurn : TTurnBasedMatchTurn; AQuery : TTurnBasedMatchestakeTurnOptions) : TTurnBasedMatch;
  3465. end;
  3466. { --------------------------------------------------------------------
  3467. TGamesAPI
  3468. --------------------------------------------------------------------}
  3469. TGamesAPI = Class(TGoogleAPI)
  3470. Private
  3471. FAchievementDefinitionsInstance : TAchievementDefinitionsResource;
  3472. FAchievementsInstance : TAchievementsResource;
  3473. FApplicationsInstance : TApplicationsResource;
  3474. FEventsInstance : TEventsResource;
  3475. FLeaderboardsInstance : TLeaderboardsResource;
  3476. FMetagameInstance : TMetagameResource;
  3477. FPlayersInstance : TPlayersResource;
  3478. FPushtokensInstance : TPushtokensResource;
  3479. FQuestMilestonesInstance : TQuestMilestonesResource;
  3480. FQuestsInstance : TQuestsResource;
  3481. FRevisionsInstance : TRevisionsResource;
  3482. FRoomsInstance : TRoomsResource;
  3483. FScoresInstance : TScoresResource;
  3484. FSnapshotsInstance : TSnapshotsResource;
  3485. FTurnBasedMatchesInstance : TTurnBasedMatchesResource;
  3486. Function GetAchievementDefinitionsInstance : TAchievementDefinitionsResource;virtual;
  3487. Function GetAchievementsInstance : TAchievementsResource;virtual;
  3488. Function GetApplicationsInstance : TApplicationsResource;virtual;
  3489. Function GetEventsInstance : TEventsResource;virtual;
  3490. Function GetLeaderboardsInstance : TLeaderboardsResource;virtual;
  3491. Function GetMetagameInstance : TMetagameResource;virtual;
  3492. Function GetPlayersInstance : TPlayersResource;virtual;
  3493. Function GetPushtokensInstance : TPushtokensResource;virtual;
  3494. Function GetQuestMilestonesInstance : TQuestMilestonesResource;virtual;
  3495. Function GetQuestsInstance : TQuestsResource;virtual;
  3496. Function GetRevisionsInstance : TRevisionsResource;virtual;
  3497. Function GetRoomsInstance : TRoomsResource;virtual;
  3498. Function GetScoresInstance : TScoresResource;virtual;
  3499. Function GetSnapshotsInstance : TSnapshotsResource;virtual;
  3500. Function GetTurnBasedMatchesInstance : TTurnBasedMatchesResource;virtual;
  3501. Public
  3502. //Override class functions with API info
  3503. Class Function APIName : String; override;
  3504. Class Function APIVersion : String; override;
  3505. Class Function APIRevision : String; override;
  3506. Class Function APIID : String; override;
  3507. Class Function APITitle : String; override;
  3508. Class Function APIDescription : String; override;
  3509. Class Function APIOwnerDomain : String; override;
  3510. Class Function APIOwnerName : String; override;
  3511. Class Function APIIcon16 : String; override;
  3512. Class Function APIIcon32 : String; override;
  3513. Class Function APIdocumentationLink : String; override;
  3514. Class Function APIrootUrl : string; override;
  3515. Class Function APIbasePath : string;override;
  3516. Class Function APIbaseURL : String;override;
  3517. Class Function APIProtocol : string;override;
  3518. Class Function APIservicePath : string;override;
  3519. Class Function APIbatchPath : String;override;
  3520. Class Function APIAuthScopes : TScopeInfoArray;override;
  3521. Class Function APINeedsAuth : Boolean;override;
  3522. Class Procedure RegisterAPIResources; override;
  3523. //Add create function for resources
  3524. Function CreateAchievementDefinitionsResource(AOwner : TComponent) : TAchievementDefinitionsResource;virtual;overload;
  3525. Function CreateAchievementDefinitionsResource : TAchievementDefinitionsResource;virtual;overload;
  3526. Function CreateAchievementsResource(AOwner : TComponent) : TAchievementsResource;virtual;overload;
  3527. Function CreateAchievementsResource : TAchievementsResource;virtual;overload;
  3528. Function CreateApplicationsResource(AOwner : TComponent) : TApplicationsResource;virtual;overload;
  3529. Function CreateApplicationsResource : TApplicationsResource;virtual;overload;
  3530. Function CreateEventsResource(AOwner : TComponent) : TEventsResource;virtual;overload;
  3531. Function CreateEventsResource : TEventsResource;virtual;overload;
  3532. Function CreateLeaderboardsResource(AOwner : TComponent) : TLeaderboardsResource;virtual;overload;
  3533. Function CreateLeaderboardsResource : TLeaderboardsResource;virtual;overload;
  3534. Function CreateMetagameResource(AOwner : TComponent) : TMetagameResource;virtual;overload;
  3535. Function CreateMetagameResource : TMetagameResource;virtual;overload;
  3536. Function CreatePlayersResource(AOwner : TComponent) : TPlayersResource;virtual;overload;
  3537. Function CreatePlayersResource : TPlayersResource;virtual;overload;
  3538. Function CreatePushtokensResource(AOwner : TComponent) : TPushtokensResource;virtual;overload;
  3539. Function CreatePushtokensResource : TPushtokensResource;virtual;overload;
  3540. Function CreateQuestMilestonesResource(AOwner : TComponent) : TQuestMilestonesResource;virtual;overload;
  3541. Function CreateQuestMilestonesResource : TQuestMilestonesResource;virtual;overload;
  3542. Function CreateQuestsResource(AOwner : TComponent) : TQuestsResource;virtual;overload;
  3543. Function CreateQuestsResource : TQuestsResource;virtual;overload;
  3544. Function CreateRevisionsResource(AOwner : TComponent) : TRevisionsResource;virtual;overload;
  3545. Function CreateRevisionsResource : TRevisionsResource;virtual;overload;
  3546. Function CreateRoomsResource(AOwner : TComponent) : TRoomsResource;virtual;overload;
  3547. Function CreateRoomsResource : TRoomsResource;virtual;overload;
  3548. Function CreateScoresResource(AOwner : TComponent) : TScoresResource;virtual;overload;
  3549. Function CreateScoresResource : TScoresResource;virtual;overload;
  3550. Function CreateSnapshotsResource(AOwner : TComponent) : TSnapshotsResource;virtual;overload;
  3551. Function CreateSnapshotsResource : TSnapshotsResource;virtual;overload;
  3552. Function CreateTurnBasedMatchesResource(AOwner : TComponent) : TTurnBasedMatchesResource;virtual;overload;
  3553. Function CreateTurnBasedMatchesResource : TTurnBasedMatchesResource;virtual;overload;
  3554. //Add default on-demand instances for resources
  3555. Property AchievementDefinitionsResource : TAchievementDefinitionsResource Read GetAchievementDefinitionsInstance;
  3556. Property AchievementsResource : TAchievementsResource Read GetAchievementsInstance;
  3557. Property ApplicationsResource : TApplicationsResource Read GetApplicationsInstance;
  3558. Property EventsResource : TEventsResource Read GetEventsInstance;
  3559. Property LeaderboardsResource : TLeaderboardsResource Read GetLeaderboardsInstance;
  3560. Property MetagameResource : TMetagameResource Read GetMetagameInstance;
  3561. Property PlayersResource : TPlayersResource Read GetPlayersInstance;
  3562. Property PushtokensResource : TPushtokensResource Read GetPushtokensInstance;
  3563. Property QuestMilestonesResource : TQuestMilestonesResource Read GetQuestMilestonesInstance;
  3564. Property QuestsResource : TQuestsResource Read GetQuestsInstance;
  3565. Property RevisionsResource : TRevisionsResource Read GetRevisionsInstance;
  3566. Property RoomsResource : TRoomsResource Read GetRoomsInstance;
  3567. Property ScoresResource : TScoresResource Read GetScoresInstance;
  3568. Property SnapshotsResource : TSnapshotsResource Read GetSnapshotsInstance;
  3569. Property TurnBasedMatchesResource : TTurnBasedMatchesResource Read GetTurnBasedMatchesInstance;
  3570. end;
  3571. implementation
  3572. { --------------------------------------------------------------------
  3573. TAchievementDefinition
  3574. --------------------------------------------------------------------}
  3575. Procedure TAchievementDefinition.SetachievementType(AIndex : Integer; const AValue : String);
  3576. begin
  3577. If (FachievementType=AValue) then exit;
  3578. FachievementType:=AValue;
  3579. MarkPropertyChanged(AIndex);
  3580. end;
  3581. Procedure TAchievementDefinition.Setdescription(AIndex : Integer; const AValue : String);
  3582. begin
  3583. If (Fdescription=AValue) then exit;
  3584. Fdescription:=AValue;
  3585. MarkPropertyChanged(AIndex);
  3586. end;
  3587. Procedure TAchievementDefinition.SetexperiencePoints(AIndex : Integer; const AValue : String);
  3588. begin
  3589. If (FexperiencePoints=AValue) then exit;
  3590. FexperiencePoints:=AValue;
  3591. MarkPropertyChanged(AIndex);
  3592. end;
  3593. Procedure TAchievementDefinition.SetformattedTotalSteps(AIndex : Integer; const AValue : String);
  3594. begin
  3595. If (FformattedTotalSteps=AValue) then exit;
  3596. FformattedTotalSteps:=AValue;
  3597. MarkPropertyChanged(AIndex);
  3598. end;
  3599. Procedure TAchievementDefinition.Setid(AIndex : Integer; const AValue : String);
  3600. begin
  3601. If (Fid=AValue) then exit;
  3602. Fid:=AValue;
  3603. MarkPropertyChanged(AIndex);
  3604. end;
  3605. Procedure TAchievementDefinition.SetinitialState(AIndex : Integer; const AValue : String);
  3606. begin
  3607. If (FinitialState=AValue) then exit;
  3608. FinitialState:=AValue;
  3609. MarkPropertyChanged(AIndex);
  3610. end;
  3611. Procedure TAchievementDefinition.SetisRevealedIconUrlDefault(AIndex : Integer; const AValue : boolean);
  3612. begin
  3613. If (FisRevealedIconUrlDefault=AValue) then exit;
  3614. FisRevealedIconUrlDefault:=AValue;
  3615. MarkPropertyChanged(AIndex);
  3616. end;
  3617. Procedure TAchievementDefinition.SetisUnlockedIconUrlDefault(AIndex : Integer; const AValue : boolean);
  3618. begin
  3619. If (FisUnlockedIconUrlDefault=AValue) then exit;
  3620. FisUnlockedIconUrlDefault:=AValue;
  3621. MarkPropertyChanged(AIndex);
  3622. end;
  3623. Procedure TAchievementDefinition.Setkind(AIndex : Integer; const AValue : String);
  3624. begin
  3625. If (Fkind=AValue) then exit;
  3626. Fkind:=AValue;
  3627. MarkPropertyChanged(AIndex);
  3628. end;
  3629. Procedure TAchievementDefinition.Setname(AIndex : Integer; const AValue : String);
  3630. begin
  3631. If (Fname=AValue) then exit;
  3632. Fname:=AValue;
  3633. MarkPropertyChanged(AIndex);
  3634. end;
  3635. Procedure TAchievementDefinition.SetrevealedIconUrl(AIndex : Integer; const AValue : String);
  3636. begin
  3637. If (FrevealedIconUrl=AValue) then exit;
  3638. FrevealedIconUrl:=AValue;
  3639. MarkPropertyChanged(AIndex);
  3640. end;
  3641. Procedure TAchievementDefinition.SettotalSteps(AIndex : Integer; const AValue : integer);
  3642. begin
  3643. If (FtotalSteps=AValue) then exit;
  3644. FtotalSteps:=AValue;
  3645. MarkPropertyChanged(AIndex);
  3646. end;
  3647. Procedure TAchievementDefinition.SetunlockedIconUrl(AIndex : Integer; const AValue : String);
  3648. begin
  3649. If (FunlockedIconUrl=AValue) then exit;
  3650. FunlockedIconUrl:=AValue;
  3651. MarkPropertyChanged(AIndex);
  3652. end;
  3653. { --------------------------------------------------------------------
  3654. TAchievementDefinitionsListResponse
  3655. --------------------------------------------------------------------}
  3656. Procedure TAchievementDefinitionsListResponse.Setitems(AIndex : Integer; const AValue : TAchievementDefinitionsListResponseTypeitemsArray);
  3657. begin
  3658. If (Fitems=AValue) then exit;
  3659. Fitems:=AValue;
  3660. MarkPropertyChanged(AIndex);
  3661. end;
  3662. Procedure TAchievementDefinitionsListResponse.Setkind(AIndex : Integer; const AValue : String);
  3663. begin
  3664. If (Fkind=AValue) then exit;
  3665. Fkind:=AValue;
  3666. MarkPropertyChanged(AIndex);
  3667. end;
  3668. Procedure TAchievementDefinitionsListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  3669. begin
  3670. If (FnextPageToken=AValue) then exit;
  3671. FnextPageToken:=AValue;
  3672. MarkPropertyChanged(AIndex);
  3673. end;
  3674. //2.6.4. bug workaround
  3675. {$IFDEF VER2_6}
  3676. Procedure TAchievementDefinitionsListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3677. begin
  3678. Case AName of
  3679. 'items' : SetLength(Fitems,ALength);
  3680. else
  3681. Inherited SetArrayLength(AName,ALength);
  3682. end;
  3683. end;
  3684. {$ENDIF VER2_6}
  3685. { --------------------------------------------------------------------
  3686. TAchievementIncrementResponse
  3687. --------------------------------------------------------------------}
  3688. Procedure TAchievementIncrementResponse.SetcurrentSteps(AIndex : Integer; const AValue : integer);
  3689. begin
  3690. If (FcurrentSteps=AValue) then exit;
  3691. FcurrentSteps:=AValue;
  3692. MarkPropertyChanged(AIndex);
  3693. end;
  3694. Procedure TAchievementIncrementResponse.Setkind(AIndex : Integer; const AValue : String);
  3695. begin
  3696. If (Fkind=AValue) then exit;
  3697. Fkind:=AValue;
  3698. MarkPropertyChanged(AIndex);
  3699. end;
  3700. Procedure TAchievementIncrementResponse.SetnewlyUnlocked(AIndex : Integer; const AValue : boolean);
  3701. begin
  3702. If (FnewlyUnlocked=AValue) then exit;
  3703. FnewlyUnlocked:=AValue;
  3704. MarkPropertyChanged(AIndex);
  3705. end;
  3706. { --------------------------------------------------------------------
  3707. TAchievementRevealResponse
  3708. --------------------------------------------------------------------}
  3709. Procedure TAchievementRevealResponse.SetcurrentState(AIndex : Integer; const AValue : String);
  3710. begin
  3711. If (FcurrentState=AValue) then exit;
  3712. FcurrentState:=AValue;
  3713. MarkPropertyChanged(AIndex);
  3714. end;
  3715. Procedure TAchievementRevealResponse.Setkind(AIndex : Integer; const AValue : String);
  3716. begin
  3717. If (Fkind=AValue) then exit;
  3718. Fkind:=AValue;
  3719. MarkPropertyChanged(AIndex);
  3720. end;
  3721. { --------------------------------------------------------------------
  3722. TAchievementSetStepsAtLeastResponse
  3723. --------------------------------------------------------------------}
  3724. Procedure TAchievementSetStepsAtLeastResponse.SetcurrentSteps(AIndex : Integer; const AValue : integer);
  3725. begin
  3726. If (FcurrentSteps=AValue) then exit;
  3727. FcurrentSteps:=AValue;
  3728. MarkPropertyChanged(AIndex);
  3729. end;
  3730. Procedure TAchievementSetStepsAtLeastResponse.Setkind(AIndex : Integer; const AValue : String);
  3731. begin
  3732. If (Fkind=AValue) then exit;
  3733. Fkind:=AValue;
  3734. MarkPropertyChanged(AIndex);
  3735. end;
  3736. Procedure TAchievementSetStepsAtLeastResponse.SetnewlyUnlocked(AIndex : Integer; const AValue : boolean);
  3737. begin
  3738. If (FnewlyUnlocked=AValue) then exit;
  3739. FnewlyUnlocked:=AValue;
  3740. MarkPropertyChanged(AIndex);
  3741. end;
  3742. { --------------------------------------------------------------------
  3743. TAchievementUnlockResponse
  3744. --------------------------------------------------------------------}
  3745. Procedure TAchievementUnlockResponse.Setkind(AIndex : Integer; const AValue : String);
  3746. begin
  3747. If (Fkind=AValue) then exit;
  3748. Fkind:=AValue;
  3749. MarkPropertyChanged(AIndex);
  3750. end;
  3751. Procedure TAchievementUnlockResponse.SetnewlyUnlocked(AIndex : Integer; const AValue : boolean);
  3752. begin
  3753. If (FnewlyUnlocked=AValue) then exit;
  3754. FnewlyUnlocked:=AValue;
  3755. MarkPropertyChanged(AIndex);
  3756. end;
  3757. { --------------------------------------------------------------------
  3758. TAchievementUpdateMultipleRequest
  3759. --------------------------------------------------------------------}
  3760. Procedure TAchievementUpdateMultipleRequest.Setkind(AIndex : Integer; const AValue : String);
  3761. begin
  3762. If (Fkind=AValue) then exit;
  3763. Fkind:=AValue;
  3764. MarkPropertyChanged(AIndex);
  3765. end;
  3766. Procedure TAchievementUpdateMultipleRequest.Setupdates(AIndex : Integer; const AValue : TAchievementUpdateMultipleRequestTypeupdatesArray);
  3767. begin
  3768. If (Fupdates=AValue) then exit;
  3769. Fupdates:=AValue;
  3770. MarkPropertyChanged(AIndex);
  3771. end;
  3772. //2.6.4. bug workaround
  3773. {$IFDEF VER2_6}
  3774. Procedure TAchievementUpdateMultipleRequest.SetArrayLength(Const AName : String; ALength : Longint);
  3775. begin
  3776. Case AName of
  3777. 'updates' : SetLength(Fupdates,ALength);
  3778. else
  3779. Inherited SetArrayLength(AName,ALength);
  3780. end;
  3781. end;
  3782. {$ENDIF VER2_6}
  3783. { --------------------------------------------------------------------
  3784. TAchievementUpdateMultipleResponse
  3785. --------------------------------------------------------------------}
  3786. Procedure TAchievementUpdateMultipleResponse.Setkind(AIndex : Integer; const AValue : String);
  3787. begin
  3788. If (Fkind=AValue) then exit;
  3789. Fkind:=AValue;
  3790. MarkPropertyChanged(AIndex);
  3791. end;
  3792. Procedure TAchievementUpdateMultipleResponse.SetupdatedAchievements(AIndex : Integer; const AValue : TAchievementUpdateMultipleResponseTypeupdatedAchievementsArray);
  3793. begin
  3794. If (FupdatedAchievements=AValue) then exit;
  3795. FupdatedAchievements:=AValue;
  3796. MarkPropertyChanged(AIndex);
  3797. end;
  3798. //2.6.4. bug workaround
  3799. {$IFDEF VER2_6}
  3800. Procedure TAchievementUpdateMultipleResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3801. begin
  3802. Case AName of
  3803. 'updatedachievements' : SetLength(FupdatedAchievements,ALength);
  3804. else
  3805. Inherited SetArrayLength(AName,ALength);
  3806. end;
  3807. end;
  3808. {$ENDIF VER2_6}
  3809. { --------------------------------------------------------------------
  3810. TAchievementUpdateRequest
  3811. --------------------------------------------------------------------}
  3812. Procedure TAchievementUpdateRequest.SetachievementId(AIndex : Integer; const AValue : String);
  3813. begin
  3814. If (FachievementId=AValue) then exit;
  3815. FachievementId:=AValue;
  3816. MarkPropertyChanged(AIndex);
  3817. end;
  3818. Procedure TAchievementUpdateRequest.SetincrementPayload(AIndex : Integer; const AValue : TGamesAchievementIncrement);
  3819. begin
  3820. If (FincrementPayload=AValue) then exit;
  3821. FincrementPayload:=AValue;
  3822. MarkPropertyChanged(AIndex);
  3823. end;
  3824. Procedure TAchievementUpdateRequest.Setkind(AIndex : Integer; const AValue : String);
  3825. begin
  3826. If (Fkind=AValue) then exit;
  3827. Fkind:=AValue;
  3828. MarkPropertyChanged(AIndex);
  3829. end;
  3830. Procedure TAchievementUpdateRequest.SetsetStepsAtLeastPayload(AIndex : Integer; const AValue : TGamesAchievementSetStepsAtLeast);
  3831. begin
  3832. If (FsetStepsAtLeastPayload=AValue) then exit;
  3833. FsetStepsAtLeastPayload:=AValue;
  3834. MarkPropertyChanged(AIndex);
  3835. end;
  3836. Procedure TAchievementUpdateRequest.SetupdateType(AIndex : Integer; const AValue : String);
  3837. begin
  3838. If (FupdateType=AValue) then exit;
  3839. FupdateType:=AValue;
  3840. MarkPropertyChanged(AIndex);
  3841. end;
  3842. { --------------------------------------------------------------------
  3843. TAchievementUpdateResponse
  3844. --------------------------------------------------------------------}
  3845. Procedure TAchievementUpdateResponse.SetachievementId(AIndex : Integer; const AValue : String);
  3846. begin
  3847. If (FachievementId=AValue) then exit;
  3848. FachievementId:=AValue;
  3849. MarkPropertyChanged(AIndex);
  3850. end;
  3851. Procedure TAchievementUpdateResponse.SetcurrentState(AIndex : Integer; const AValue : String);
  3852. begin
  3853. If (FcurrentState=AValue) then exit;
  3854. FcurrentState:=AValue;
  3855. MarkPropertyChanged(AIndex);
  3856. end;
  3857. Procedure TAchievementUpdateResponse.SetcurrentSteps(AIndex : Integer; const AValue : integer);
  3858. begin
  3859. If (FcurrentSteps=AValue) then exit;
  3860. FcurrentSteps:=AValue;
  3861. MarkPropertyChanged(AIndex);
  3862. end;
  3863. Procedure TAchievementUpdateResponse.Setkind(AIndex : Integer; const AValue : String);
  3864. begin
  3865. If (Fkind=AValue) then exit;
  3866. Fkind:=AValue;
  3867. MarkPropertyChanged(AIndex);
  3868. end;
  3869. Procedure TAchievementUpdateResponse.SetnewlyUnlocked(AIndex : Integer; const AValue : boolean);
  3870. begin
  3871. If (FnewlyUnlocked=AValue) then exit;
  3872. FnewlyUnlocked:=AValue;
  3873. MarkPropertyChanged(AIndex);
  3874. end;
  3875. Procedure TAchievementUpdateResponse.SetupdateOccurred(AIndex : Integer; const AValue : boolean);
  3876. begin
  3877. If (FupdateOccurred=AValue) then exit;
  3878. FupdateOccurred:=AValue;
  3879. MarkPropertyChanged(AIndex);
  3880. end;
  3881. { --------------------------------------------------------------------
  3882. TAggregateStats
  3883. --------------------------------------------------------------------}
  3884. Procedure TAggregateStats.Setcount(AIndex : Integer; const AValue : String);
  3885. begin
  3886. If (Fcount=AValue) then exit;
  3887. Fcount:=AValue;
  3888. MarkPropertyChanged(AIndex);
  3889. end;
  3890. Procedure TAggregateStats.Setkind(AIndex : Integer; const AValue : String);
  3891. begin
  3892. If (Fkind=AValue) then exit;
  3893. Fkind:=AValue;
  3894. MarkPropertyChanged(AIndex);
  3895. end;
  3896. Procedure TAggregateStats.Setmax(AIndex : Integer; const AValue : String);
  3897. begin
  3898. If (Fmax=AValue) then exit;
  3899. Fmax:=AValue;
  3900. MarkPropertyChanged(AIndex);
  3901. end;
  3902. Procedure TAggregateStats.Setmin(AIndex : Integer; const AValue : String);
  3903. begin
  3904. If (Fmin=AValue) then exit;
  3905. Fmin:=AValue;
  3906. MarkPropertyChanged(AIndex);
  3907. end;
  3908. Procedure TAggregateStats.Setsum(AIndex : Integer; const AValue : String);
  3909. begin
  3910. If (Fsum=AValue) then exit;
  3911. Fsum:=AValue;
  3912. MarkPropertyChanged(AIndex);
  3913. end;
  3914. { --------------------------------------------------------------------
  3915. TAnonymousPlayer
  3916. --------------------------------------------------------------------}
  3917. Procedure TAnonymousPlayer.SetavatarImageUrl(AIndex : Integer; const AValue : String);
  3918. begin
  3919. If (FavatarImageUrl=AValue) then exit;
  3920. FavatarImageUrl:=AValue;
  3921. MarkPropertyChanged(AIndex);
  3922. end;
  3923. Procedure TAnonymousPlayer.SetdisplayName(AIndex : Integer; const AValue : String);
  3924. begin
  3925. If (FdisplayName=AValue) then exit;
  3926. FdisplayName:=AValue;
  3927. MarkPropertyChanged(AIndex);
  3928. end;
  3929. Procedure TAnonymousPlayer.Setkind(AIndex : Integer; const AValue : String);
  3930. begin
  3931. If (Fkind=AValue) then exit;
  3932. Fkind:=AValue;
  3933. MarkPropertyChanged(AIndex);
  3934. end;
  3935. { --------------------------------------------------------------------
  3936. TApplication
  3937. --------------------------------------------------------------------}
  3938. Procedure TApplication.Setachievement_count(AIndex : Integer; const AValue : integer);
  3939. begin
  3940. If (Fachievement_count=AValue) then exit;
  3941. Fachievement_count:=AValue;
  3942. MarkPropertyChanged(AIndex);
  3943. end;
  3944. Procedure TApplication.Setassets(AIndex : Integer; const AValue : TApplicationTypeassetsArray);
  3945. begin
  3946. If (Fassets=AValue) then exit;
  3947. Fassets:=AValue;
  3948. MarkPropertyChanged(AIndex);
  3949. end;
  3950. Procedure TApplication.Setauthor(AIndex : Integer; const AValue : String);
  3951. begin
  3952. If (Fauthor=AValue) then exit;
  3953. Fauthor:=AValue;
  3954. MarkPropertyChanged(AIndex);
  3955. end;
  3956. Procedure TApplication.Setcategory(AIndex : Integer; const AValue : TApplicationCategory);
  3957. begin
  3958. If (Fcategory=AValue) then exit;
  3959. Fcategory:=AValue;
  3960. MarkPropertyChanged(AIndex);
  3961. end;
  3962. Procedure TApplication.Setdescription(AIndex : Integer; const AValue : String);
  3963. begin
  3964. If (Fdescription=AValue) then exit;
  3965. Fdescription:=AValue;
  3966. MarkPropertyChanged(AIndex);
  3967. end;
  3968. Procedure TApplication.SetenabledFeatures(AIndex : Integer; const AValue : TStringArray);
  3969. begin
  3970. If (FenabledFeatures=AValue) then exit;
  3971. FenabledFeatures:=AValue;
  3972. MarkPropertyChanged(AIndex);
  3973. end;
  3974. Procedure TApplication.Setid(AIndex : Integer; const AValue : String);
  3975. begin
  3976. If (Fid=AValue) then exit;
  3977. Fid:=AValue;
  3978. MarkPropertyChanged(AIndex);
  3979. end;
  3980. Procedure TApplication.Setinstances(AIndex : Integer; const AValue : TApplicationTypeinstancesArray);
  3981. begin
  3982. If (Finstances=AValue) then exit;
  3983. Finstances:=AValue;
  3984. MarkPropertyChanged(AIndex);
  3985. end;
  3986. Procedure TApplication.Setkind(AIndex : Integer; const AValue : String);
  3987. begin
  3988. If (Fkind=AValue) then exit;
  3989. Fkind:=AValue;
  3990. MarkPropertyChanged(AIndex);
  3991. end;
  3992. Procedure TApplication.SetlastUpdatedTimestamp(AIndex : Integer; const AValue : String);
  3993. begin
  3994. If (FlastUpdatedTimestamp=AValue) then exit;
  3995. FlastUpdatedTimestamp:=AValue;
  3996. MarkPropertyChanged(AIndex);
  3997. end;
  3998. Procedure TApplication.Setleaderboard_count(AIndex : Integer; const AValue : integer);
  3999. begin
  4000. If (Fleaderboard_count=AValue) then exit;
  4001. Fleaderboard_count:=AValue;
  4002. MarkPropertyChanged(AIndex);
  4003. end;
  4004. Procedure TApplication.Setname(AIndex : Integer; const AValue : String);
  4005. begin
  4006. If (Fname=AValue) then exit;
  4007. Fname:=AValue;
  4008. MarkPropertyChanged(AIndex);
  4009. end;
  4010. Procedure TApplication.SetthemeColor(AIndex : Integer; const AValue : String);
  4011. begin
  4012. If (FthemeColor=AValue) then exit;
  4013. FthemeColor:=AValue;
  4014. MarkPropertyChanged(AIndex);
  4015. end;
  4016. //2.6.4. bug workaround
  4017. {$IFDEF VER2_6}
  4018. Procedure TApplication.SetArrayLength(Const AName : String; ALength : Longint);
  4019. begin
  4020. Case AName of
  4021. 'assets' : SetLength(Fassets,ALength);
  4022. 'enabledfeatures' : SetLength(FenabledFeatures,ALength);
  4023. 'instances' : SetLength(Finstances,ALength);
  4024. else
  4025. Inherited SetArrayLength(AName,ALength);
  4026. end;
  4027. end;
  4028. {$ENDIF VER2_6}
  4029. { --------------------------------------------------------------------
  4030. TApplicationCategory
  4031. --------------------------------------------------------------------}
  4032. Procedure TApplicationCategory.Setkind(AIndex : Integer; const AValue : String);
  4033. begin
  4034. If (Fkind=AValue) then exit;
  4035. Fkind:=AValue;
  4036. MarkPropertyChanged(AIndex);
  4037. end;
  4038. Procedure TApplicationCategory.Setprimary(AIndex : Integer; const AValue : String);
  4039. begin
  4040. If (Fprimary=AValue) then exit;
  4041. Fprimary:=AValue;
  4042. MarkPropertyChanged(AIndex);
  4043. end;
  4044. Procedure TApplicationCategory.Setsecondary(AIndex : Integer; const AValue : String);
  4045. begin
  4046. If (Fsecondary=AValue) then exit;
  4047. Fsecondary:=AValue;
  4048. MarkPropertyChanged(AIndex);
  4049. end;
  4050. { --------------------------------------------------------------------
  4051. TApplicationVerifyResponse
  4052. --------------------------------------------------------------------}
  4053. Procedure TApplicationVerifyResponse.Setalternate_player_id(AIndex : Integer; const AValue : String);
  4054. begin
  4055. If (Falternate_player_id=AValue) then exit;
  4056. Falternate_player_id:=AValue;
  4057. MarkPropertyChanged(AIndex);
  4058. end;
  4059. Procedure TApplicationVerifyResponse.Setkind(AIndex : Integer; const AValue : String);
  4060. begin
  4061. If (Fkind=AValue) then exit;
  4062. Fkind:=AValue;
  4063. MarkPropertyChanged(AIndex);
  4064. end;
  4065. Procedure TApplicationVerifyResponse.Setplayer_id(AIndex : Integer; const AValue : String);
  4066. begin
  4067. If (Fplayer_id=AValue) then exit;
  4068. Fplayer_id:=AValue;
  4069. MarkPropertyChanged(AIndex);
  4070. end;
  4071. { --------------------------------------------------------------------
  4072. TCategory
  4073. --------------------------------------------------------------------}
  4074. Procedure TCategory.Setcategory(AIndex : Integer; const AValue : String);
  4075. begin
  4076. If (Fcategory=AValue) then exit;
  4077. Fcategory:=AValue;
  4078. MarkPropertyChanged(AIndex);
  4079. end;
  4080. Procedure TCategory.SetexperiencePoints(AIndex : Integer; const AValue : String);
  4081. begin
  4082. If (FexperiencePoints=AValue) then exit;
  4083. FexperiencePoints:=AValue;
  4084. MarkPropertyChanged(AIndex);
  4085. end;
  4086. Procedure TCategory.Setkind(AIndex : Integer; const AValue : String);
  4087. begin
  4088. If (Fkind=AValue) then exit;
  4089. Fkind:=AValue;
  4090. MarkPropertyChanged(AIndex);
  4091. end;
  4092. { --------------------------------------------------------------------
  4093. TCategoryListResponse
  4094. --------------------------------------------------------------------}
  4095. Procedure TCategoryListResponse.Setitems(AIndex : Integer; const AValue : TCategoryListResponseTypeitemsArray);
  4096. begin
  4097. If (Fitems=AValue) then exit;
  4098. Fitems:=AValue;
  4099. MarkPropertyChanged(AIndex);
  4100. end;
  4101. Procedure TCategoryListResponse.Setkind(AIndex : Integer; const AValue : String);
  4102. begin
  4103. If (Fkind=AValue) then exit;
  4104. Fkind:=AValue;
  4105. MarkPropertyChanged(AIndex);
  4106. end;
  4107. Procedure TCategoryListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  4108. begin
  4109. If (FnextPageToken=AValue) then exit;
  4110. FnextPageToken:=AValue;
  4111. MarkPropertyChanged(AIndex);
  4112. end;
  4113. //2.6.4. bug workaround
  4114. {$IFDEF VER2_6}
  4115. Procedure TCategoryListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  4116. begin
  4117. Case AName of
  4118. 'items' : SetLength(Fitems,ALength);
  4119. else
  4120. Inherited SetArrayLength(AName,ALength);
  4121. end;
  4122. end;
  4123. {$ENDIF VER2_6}
  4124. { --------------------------------------------------------------------
  4125. TEventBatchRecordFailure
  4126. --------------------------------------------------------------------}
  4127. Procedure TEventBatchRecordFailure.SetfailureCause(AIndex : Integer; const AValue : String);
  4128. begin
  4129. If (FfailureCause=AValue) then exit;
  4130. FfailureCause:=AValue;
  4131. MarkPropertyChanged(AIndex);
  4132. end;
  4133. Procedure TEventBatchRecordFailure.Setkind(AIndex : Integer; const AValue : String);
  4134. begin
  4135. If (Fkind=AValue) then exit;
  4136. Fkind:=AValue;
  4137. MarkPropertyChanged(AIndex);
  4138. end;
  4139. Procedure TEventBatchRecordFailure.Setrange(AIndex : Integer; const AValue : TEventPeriodRange);
  4140. begin
  4141. If (Frange=AValue) then exit;
  4142. Frange:=AValue;
  4143. MarkPropertyChanged(AIndex);
  4144. end;
  4145. { --------------------------------------------------------------------
  4146. TEventChild
  4147. --------------------------------------------------------------------}
  4148. Procedure TEventChild.SetchildId(AIndex : Integer; const AValue : String);
  4149. begin
  4150. If (FchildId=AValue) then exit;
  4151. FchildId:=AValue;
  4152. MarkPropertyChanged(AIndex);
  4153. end;
  4154. Procedure TEventChild.Setkind(AIndex : Integer; const AValue : String);
  4155. begin
  4156. If (Fkind=AValue) then exit;
  4157. Fkind:=AValue;
  4158. MarkPropertyChanged(AIndex);
  4159. end;
  4160. { --------------------------------------------------------------------
  4161. TEventDefinition
  4162. --------------------------------------------------------------------}
  4163. Procedure TEventDefinition.SetchildEvents(AIndex : Integer; const AValue : TEventDefinitionTypechildEventsArray);
  4164. begin
  4165. If (FchildEvents=AValue) then exit;
  4166. FchildEvents:=AValue;
  4167. MarkPropertyChanged(AIndex);
  4168. end;
  4169. Procedure TEventDefinition.Setdescription(AIndex : Integer; const AValue : String);
  4170. begin
  4171. If (Fdescription=AValue) then exit;
  4172. Fdescription:=AValue;
  4173. MarkPropertyChanged(AIndex);
  4174. end;
  4175. Procedure TEventDefinition.SetdisplayName(AIndex : Integer; const AValue : String);
  4176. begin
  4177. If (FdisplayName=AValue) then exit;
  4178. FdisplayName:=AValue;
  4179. MarkPropertyChanged(AIndex);
  4180. end;
  4181. Procedure TEventDefinition.Setid(AIndex : Integer; const AValue : String);
  4182. begin
  4183. If (Fid=AValue) then exit;
  4184. Fid:=AValue;
  4185. MarkPropertyChanged(AIndex);
  4186. end;
  4187. Procedure TEventDefinition.SetimageUrl(AIndex : Integer; const AValue : String);
  4188. begin
  4189. If (FimageUrl=AValue) then exit;
  4190. FimageUrl:=AValue;
  4191. MarkPropertyChanged(AIndex);
  4192. end;
  4193. Procedure TEventDefinition.SetisDefaultImageUrl(AIndex : Integer; const AValue : boolean);
  4194. begin
  4195. If (FisDefaultImageUrl=AValue) then exit;
  4196. FisDefaultImageUrl:=AValue;
  4197. MarkPropertyChanged(AIndex);
  4198. end;
  4199. Procedure TEventDefinition.Setkind(AIndex : Integer; const AValue : String);
  4200. begin
  4201. If (Fkind=AValue) then exit;
  4202. Fkind:=AValue;
  4203. MarkPropertyChanged(AIndex);
  4204. end;
  4205. Procedure TEventDefinition.Setvisibility(AIndex : Integer; const AValue : String);
  4206. begin
  4207. If (Fvisibility=AValue) then exit;
  4208. Fvisibility:=AValue;
  4209. MarkPropertyChanged(AIndex);
  4210. end;
  4211. //2.6.4. bug workaround
  4212. {$IFDEF VER2_6}
  4213. Procedure TEventDefinition.SetArrayLength(Const AName : String; ALength : Longint);
  4214. begin
  4215. Case AName of
  4216. 'childevents' : SetLength(FchildEvents,ALength);
  4217. else
  4218. Inherited SetArrayLength(AName,ALength);
  4219. end;
  4220. end;
  4221. {$ENDIF VER2_6}
  4222. { --------------------------------------------------------------------
  4223. TEventDefinitionListResponse
  4224. --------------------------------------------------------------------}
  4225. Procedure TEventDefinitionListResponse.Setitems(AIndex : Integer; const AValue : TEventDefinitionListResponseTypeitemsArray);
  4226. begin
  4227. If (Fitems=AValue) then exit;
  4228. Fitems:=AValue;
  4229. MarkPropertyChanged(AIndex);
  4230. end;
  4231. Procedure TEventDefinitionListResponse.Setkind(AIndex : Integer; const AValue : String);
  4232. begin
  4233. If (Fkind=AValue) then exit;
  4234. Fkind:=AValue;
  4235. MarkPropertyChanged(AIndex);
  4236. end;
  4237. Procedure TEventDefinitionListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  4238. begin
  4239. If (FnextPageToken=AValue) then exit;
  4240. FnextPageToken:=AValue;
  4241. MarkPropertyChanged(AIndex);
  4242. end;
  4243. //2.6.4. bug workaround
  4244. {$IFDEF VER2_6}
  4245. Procedure TEventDefinitionListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  4246. begin
  4247. Case AName of
  4248. 'items' : SetLength(Fitems,ALength);
  4249. else
  4250. Inherited SetArrayLength(AName,ALength);
  4251. end;
  4252. end;
  4253. {$ENDIF VER2_6}
  4254. { --------------------------------------------------------------------
  4255. TEventPeriodRange
  4256. --------------------------------------------------------------------}
  4257. Procedure TEventPeriodRange.Setkind(AIndex : Integer; const AValue : String);
  4258. begin
  4259. If (Fkind=AValue) then exit;
  4260. Fkind:=AValue;
  4261. MarkPropertyChanged(AIndex);
  4262. end;
  4263. Procedure TEventPeriodRange.SetperiodEndMillis(AIndex : Integer; const AValue : String);
  4264. begin
  4265. If (FperiodEndMillis=AValue) then exit;
  4266. FperiodEndMillis:=AValue;
  4267. MarkPropertyChanged(AIndex);
  4268. end;
  4269. Procedure TEventPeriodRange.SetperiodStartMillis(AIndex : Integer; const AValue : String);
  4270. begin
  4271. If (FperiodStartMillis=AValue) then exit;
  4272. FperiodStartMillis:=AValue;
  4273. MarkPropertyChanged(AIndex);
  4274. end;
  4275. { --------------------------------------------------------------------
  4276. TEventPeriodUpdate
  4277. --------------------------------------------------------------------}
  4278. Procedure TEventPeriodUpdate.Setkind(AIndex : Integer; const AValue : String);
  4279. begin
  4280. If (Fkind=AValue) then exit;
  4281. Fkind:=AValue;
  4282. MarkPropertyChanged(AIndex);
  4283. end;
  4284. Procedure TEventPeriodUpdate.SettimePeriod(AIndex : Integer; const AValue : TEventPeriodRange);
  4285. begin
  4286. If (FtimePeriod=AValue) then exit;
  4287. FtimePeriod:=AValue;
  4288. MarkPropertyChanged(AIndex);
  4289. end;
  4290. Procedure TEventPeriodUpdate.Setupdates(AIndex : Integer; const AValue : TEventPeriodUpdateTypeupdatesArray);
  4291. begin
  4292. If (Fupdates=AValue) then exit;
  4293. Fupdates:=AValue;
  4294. MarkPropertyChanged(AIndex);
  4295. end;
  4296. //2.6.4. bug workaround
  4297. {$IFDEF VER2_6}
  4298. Procedure TEventPeriodUpdate.SetArrayLength(Const AName : String; ALength : Longint);
  4299. begin
  4300. Case AName of
  4301. 'updates' : SetLength(Fupdates,ALength);
  4302. else
  4303. Inherited SetArrayLength(AName,ALength);
  4304. end;
  4305. end;
  4306. {$ENDIF VER2_6}
  4307. { --------------------------------------------------------------------
  4308. TEventRecordFailure
  4309. --------------------------------------------------------------------}
  4310. Procedure TEventRecordFailure.SeteventId(AIndex : Integer; const AValue : String);
  4311. begin
  4312. If (FeventId=AValue) then exit;
  4313. FeventId:=AValue;
  4314. MarkPropertyChanged(AIndex);
  4315. end;
  4316. Procedure TEventRecordFailure.SetfailureCause(AIndex : Integer; const AValue : String);
  4317. begin
  4318. If (FfailureCause=AValue) then exit;
  4319. FfailureCause:=AValue;
  4320. MarkPropertyChanged(AIndex);
  4321. end;
  4322. Procedure TEventRecordFailure.Setkind(AIndex : Integer; const AValue : String);
  4323. begin
  4324. If (Fkind=AValue) then exit;
  4325. Fkind:=AValue;
  4326. MarkPropertyChanged(AIndex);
  4327. end;
  4328. { --------------------------------------------------------------------
  4329. TEventRecordRequest
  4330. --------------------------------------------------------------------}
  4331. Procedure TEventRecordRequest.SetcurrentTimeMillis(AIndex : Integer; const AValue : String);
  4332. begin
  4333. If (FcurrentTimeMillis=AValue) then exit;
  4334. FcurrentTimeMillis:=AValue;
  4335. MarkPropertyChanged(AIndex);
  4336. end;
  4337. Procedure TEventRecordRequest.Setkind(AIndex : Integer; const AValue : String);
  4338. begin
  4339. If (Fkind=AValue) then exit;
  4340. Fkind:=AValue;
  4341. MarkPropertyChanged(AIndex);
  4342. end;
  4343. Procedure TEventRecordRequest.SetrequestId(AIndex : Integer; const AValue : String);
  4344. begin
  4345. If (FrequestId=AValue) then exit;
  4346. FrequestId:=AValue;
  4347. MarkPropertyChanged(AIndex);
  4348. end;
  4349. Procedure TEventRecordRequest.SettimePeriods(AIndex : Integer; const AValue : TEventRecordRequestTypetimePeriodsArray);
  4350. begin
  4351. If (FtimePeriods=AValue) then exit;
  4352. FtimePeriods:=AValue;
  4353. MarkPropertyChanged(AIndex);
  4354. end;
  4355. //2.6.4. bug workaround
  4356. {$IFDEF VER2_6}
  4357. Procedure TEventRecordRequest.SetArrayLength(Const AName : String; ALength : Longint);
  4358. begin
  4359. Case AName of
  4360. 'timeperiods' : SetLength(FtimePeriods,ALength);
  4361. else
  4362. Inherited SetArrayLength(AName,ALength);
  4363. end;
  4364. end;
  4365. {$ENDIF VER2_6}
  4366. { --------------------------------------------------------------------
  4367. TEventUpdateRequest
  4368. --------------------------------------------------------------------}
  4369. Procedure TEventUpdateRequest.SetdefinitionId(AIndex : Integer; const AValue : String);
  4370. begin
  4371. If (FdefinitionId=AValue) then exit;
  4372. FdefinitionId:=AValue;
  4373. MarkPropertyChanged(AIndex);
  4374. end;
  4375. Procedure TEventUpdateRequest.Setkind(AIndex : Integer; const AValue : String);
  4376. begin
  4377. If (Fkind=AValue) then exit;
  4378. Fkind:=AValue;
  4379. MarkPropertyChanged(AIndex);
  4380. end;
  4381. Procedure TEventUpdateRequest.SetupdateCount(AIndex : Integer; const AValue : String);
  4382. begin
  4383. If (FupdateCount=AValue) then exit;
  4384. FupdateCount:=AValue;
  4385. MarkPropertyChanged(AIndex);
  4386. end;
  4387. { --------------------------------------------------------------------
  4388. TEventUpdateResponse
  4389. --------------------------------------------------------------------}
  4390. Procedure TEventUpdateResponse.SetbatchFailures(AIndex : Integer; const AValue : TEventUpdateResponseTypebatchFailuresArray);
  4391. begin
  4392. If (FbatchFailures=AValue) then exit;
  4393. FbatchFailures:=AValue;
  4394. MarkPropertyChanged(AIndex);
  4395. end;
  4396. Procedure TEventUpdateResponse.SeteventFailures(AIndex : Integer; const AValue : TEventUpdateResponseTypeeventFailuresArray);
  4397. begin
  4398. If (FeventFailures=AValue) then exit;
  4399. FeventFailures:=AValue;
  4400. MarkPropertyChanged(AIndex);
  4401. end;
  4402. Procedure TEventUpdateResponse.Setkind(AIndex : Integer; const AValue : String);
  4403. begin
  4404. If (Fkind=AValue) then exit;
  4405. Fkind:=AValue;
  4406. MarkPropertyChanged(AIndex);
  4407. end;
  4408. Procedure TEventUpdateResponse.SetplayerEvents(AIndex : Integer; const AValue : TEventUpdateResponseTypeplayerEventsArray);
  4409. begin
  4410. If (FplayerEvents=AValue) then exit;
  4411. FplayerEvents:=AValue;
  4412. MarkPropertyChanged(AIndex);
  4413. end;
  4414. //2.6.4. bug workaround
  4415. {$IFDEF VER2_6}
  4416. Procedure TEventUpdateResponse.SetArrayLength(Const AName : String; ALength : Longint);
  4417. begin
  4418. Case AName of
  4419. 'batchfailures' : SetLength(FbatchFailures,ALength);
  4420. 'eventfailures' : SetLength(FeventFailures,ALength);
  4421. 'playerevents' : SetLength(FplayerEvents,ALength);
  4422. else
  4423. Inherited SetArrayLength(AName,ALength);
  4424. end;
  4425. end;
  4426. {$ENDIF VER2_6}
  4427. { --------------------------------------------------------------------
  4428. TGamesAchievementIncrement
  4429. --------------------------------------------------------------------}
  4430. Procedure TGamesAchievementIncrement.Setkind(AIndex : Integer; const AValue : String);
  4431. begin
  4432. If (Fkind=AValue) then exit;
  4433. Fkind:=AValue;
  4434. MarkPropertyChanged(AIndex);
  4435. end;
  4436. Procedure TGamesAchievementIncrement.SetrequestId(AIndex : Integer; const AValue : String);
  4437. begin
  4438. If (FrequestId=AValue) then exit;
  4439. FrequestId:=AValue;
  4440. MarkPropertyChanged(AIndex);
  4441. end;
  4442. Procedure TGamesAchievementIncrement.Setsteps(AIndex : Integer; const AValue : integer);
  4443. begin
  4444. If (Fsteps=AValue) then exit;
  4445. Fsteps:=AValue;
  4446. MarkPropertyChanged(AIndex);
  4447. end;
  4448. { --------------------------------------------------------------------
  4449. TGamesAchievementSetStepsAtLeast
  4450. --------------------------------------------------------------------}
  4451. Procedure TGamesAchievementSetStepsAtLeast.Setkind(AIndex : Integer; const AValue : String);
  4452. begin
  4453. If (Fkind=AValue) then exit;
  4454. Fkind:=AValue;
  4455. MarkPropertyChanged(AIndex);
  4456. end;
  4457. Procedure TGamesAchievementSetStepsAtLeast.Setsteps(AIndex : Integer; const AValue : integer);
  4458. begin
  4459. If (Fsteps=AValue) then exit;
  4460. Fsteps:=AValue;
  4461. MarkPropertyChanged(AIndex);
  4462. end;
  4463. { --------------------------------------------------------------------
  4464. TImageAsset
  4465. --------------------------------------------------------------------}
  4466. Procedure TImageAsset.Setheight(AIndex : Integer; const AValue : integer);
  4467. begin
  4468. If (Fheight=AValue) then exit;
  4469. Fheight:=AValue;
  4470. MarkPropertyChanged(AIndex);
  4471. end;
  4472. Procedure TImageAsset.Setkind(AIndex : Integer; const AValue : String);
  4473. begin
  4474. If (Fkind=AValue) then exit;
  4475. Fkind:=AValue;
  4476. MarkPropertyChanged(AIndex);
  4477. end;
  4478. Procedure TImageAsset.Setname(AIndex : Integer; const AValue : String);
  4479. begin
  4480. If (Fname=AValue) then exit;
  4481. Fname:=AValue;
  4482. MarkPropertyChanged(AIndex);
  4483. end;
  4484. Procedure TImageAsset.Seturl(AIndex : Integer; const AValue : String);
  4485. begin
  4486. If (Furl=AValue) then exit;
  4487. Furl:=AValue;
  4488. MarkPropertyChanged(AIndex);
  4489. end;
  4490. Procedure TImageAsset.Setwidth(AIndex : Integer; const AValue : integer);
  4491. begin
  4492. If (Fwidth=AValue) then exit;
  4493. Fwidth:=AValue;
  4494. MarkPropertyChanged(AIndex);
  4495. end;
  4496. { --------------------------------------------------------------------
  4497. TInstance
  4498. --------------------------------------------------------------------}
  4499. Procedure TInstance.SetacquisitionUri(AIndex : Integer; const AValue : String);
  4500. begin
  4501. If (FacquisitionUri=AValue) then exit;
  4502. FacquisitionUri:=AValue;
  4503. MarkPropertyChanged(AIndex);
  4504. end;
  4505. Procedure TInstance.SetandroidInstance(AIndex : Integer; const AValue : TInstanceAndroidDetails);
  4506. begin
  4507. If (FandroidInstance=AValue) then exit;
  4508. FandroidInstance:=AValue;
  4509. MarkPropertyChanged(AIndex);
  4510. end;
  4511. Procedure TInstance.SetiosInstance(AIndex : Integer; const AValue : TInstanceIosDetails);
  4512. begin
  4513. If (FiosInstance=AValue) then exit;
  4514. FiosInstance:=AValue;
  4515. MarkPropertyChanged(AIndex);
  4516. end;
  4517. Procedure TInstance.Setkind(AIndex : Integer; const AValue : String);
  4518. begin
  4519. If (Fkind=AValue) then exit;
  4520. Fkind:=AValue;
  4521. MarkPropertyChanged(AIndex);
  4522. end;
  4523. Procedure TInstance.Setname(AIndex : Integer; const AValue : String);
  4524. begin
  4525. If (Fname=AValue) then exit;
  4526. Fname:=AValue;
  4527. MarkPropertyChanged(AIndex);
  4528. end;
  4529. Procedure TInstance.SetplatformType(AIndex : Integer; const AValue : String);
  4530. begin
  4531. If (FplatformType=AValue) then exit;
  4532. FplatformType:=AValue;
  4533. MarkPropertyChanged(AIndex);
  4534. end;
  4535. Procedure TInstance.SetrealtimePlay(AIndex : Integer; const AValue : boolean);
  4536. begin
  4537. If (FrealtimePlay=AValue) then exit;
  4538. FrealtimePlay:=AValue;
  4539. MarkPropertyChanged(AIndex);
  4540. end;
  4541. Procedure TInstance.SetturnBasedPlay(AIndex : Integer; const AValue : boolean);
  4542. begin
  4543. If (FturnBasedPlay=AValue) then exit;
  4544. FturnBasedPlay:=AValue;
  4545. MarkPropertyChanged(AIndex);
  4546. end;
  4547. Procedure TInstance.SetwebInstance(AIndex : Integer; const AValue : TInstanceWebDetails);
  4548. begin
  4549. If (FwebInstance=AValue) then exit;
  4550. FwebInstance:=AValue;
  4551. MarkPropertyChanged(AIndex);
  4552. end;
  4553. { --------------------------------------------------------------------
  4554. TInstanceAndroidDetails
  4555. --------------------------------------------------------------------}
  4556. Procedure TInstanceAndroidDetails.SetenablePiracyCheck(AIndex : Integer; const AValue : boolean);
  4557. begin
  4558. If (FenablePiracyCheck=AValue) then exit;
  4559. FenablePiracyCheck:=AValue;
  4560. MarkPropertyChanged(AIndex);
  4561. end;
  4562. Procedure TInstanceAndroidDetails.Setkind(AIndex : Integer; const AValue : String);
  4563. begin
  4564. If (Fkind=AValue) then exit;
  4565. Fkind:=AValue;
  4566. MarkPropertyChanged(AIndex);
  4567. end;
  4568. Procedure TInstanceAndroidDetails.SetpackageName(AIndex : Integer; const AValue : String);
  4569. begin
  4570. If (FpackageName=AValue) then exit;
  4571. FpackageName:=AValue;
  4572. MarkPropertyChanged(AIndex);
  4573. end;
  4574. Procedure TInstanceAndroidDetails.Setpreferred(AIndex : Integer; const AValue : boolean);
  4575. begin
  4576. If (Fpreferred=AValue) then exit;
  4577. Fpreferred:=AValue;
  4578. MarkPropertyChanged(AIndex);
  4579. end;
  4580. { --------------------------------------------------------------------
  4581. TInstanceIosDetails
  4582. --------------------------------------------------------------------}
  4583. Procedure TInstanceIosDetails.SetbundleIdentifier(AIndex : Integer; const AValue : String);
  4584. begin
  4585. If (FbundleIdentifier=AValue) then exit;
  4586. FbundleIdentifier:=AValue;
  4587. MarkPropertyChanged(AIndex);
  4588. end;
  4589. Procedure TInstanceIosDetails.SetitunesAppId(AIndex : Integer; const AValue : String);
  4590. begin
  4591. If (FitunesAppId=AValue) then exit;
  4592. FitunesAppId:=AValue;
  4593. MarkPropertyChanged(AIndex);
  4594. end;
  4595. Procedure TInstanceIosDetails.Setkind(AIndex : Integer; const AValue : String);
  4596. begin
  4597. If (Fkind=AValue) then exit;
  4598. Fkind:=AValue;
  4599. MarkPropertyChanged(AIndex);
  4600. end;
  4601. Procedure TInstanceIosDetails.SetpreferredForIpad(AIndex : Integer; const AValue : boolean);
  4602. begin
  4603. If (FpreferredForIpad=AValue) then exit;
  4604. FpreferredForIpad:=AValue;
  4605. MarkPropertyChanged(AIndex);
  4606. end;
  4607. Procedure TInstanceIosDetails.SetpreferredForIphone(AIndex : Integer; const AValue : boolean);
  4608. begin
  4609. If (FpreferredForIphone=AValue) then exit;
  4610. FpreferredForIphone:=AValue;
  4611. MarkPropertyChanged(AIndex);
  4612. end;
  4613. Procedure TInstanceIosDetails.SetsupportIpad(AIndex : Integer; const AValue : boolean);
  4614. begin
  4615. If (FsupportIpad=AValue) then exit;
  4616. FsupportIpad:=AValue;
  4617. MarkPropertyChanged(AIndex);
  4618. end;
  4619. Procedure TInstanceIosDetails.SetsupportIphone(AIndex : Integer; const AValue : boolean);
  4620. begin
  4621. If (FsupportIphone=AValue) then exit;
  4622. FsupportIphone:=AValue;
  4623. MarkPropertyChanged(AIndex);
  4624. end;
  4625. { --------------------------------------------------------------------
  4626. TInstanceWebDetails
  4627. --------------------------------------------------------------------}
  4628. Procedure TInstanceWebDetails.Setkind(AIndex : Integer; const AValue : String);
  4629. begin
  4630. If (Fkind=AValue) then exit;
  4631. Fkind:=AValue;
  4632. MarkPropertyChanged(AIndex);
  4633. end;
  4634. Procedure TInstanceWebDetails.SetlaunchUrl(AIndex : Integer; const AValue : String);
  4635. begin
  4636. If (FlaunchUrl=AValue) then exit;
  4637. FlaunchUrl:=AValue;
  4638. MarkPropertyChanged(AIndex);
  4639. end;
  4640. Procedure TInstanceWebDetails.Setpreferred(AIndex : Integer; const AValue : boolean);
  4641. begin
  4642. If (Fpreferred=AValue) then exit;
  4643. Fpreferred:=AValue;
  4644. MarkPropertyChanged(AIndex);
  4645. end;
  4646. { --------------------------------------------------------------------
  4647. TLeaderboard
  4648. --------------------------------------------------------------------}
  4649. Procedure TLeaderboard.SeticonUrl(AIndex : Integer; const AValue : String);
  4650. begin
  4651. If (FiconUrl=AValue) then exit;
  4652. FiconUrl:=AValue;
  4653. MarkPropertyChanged(AIndex);
  4654. end;
  4655. Procedure TLeaderboard.Setid(AIndex : Integer; const AValue : String);
  4656. begin
  4657. If (Fid=AValue) then exit;
  4658. Fid:=AValue;
  4659. MarkPropertyChanged(AIndex);
  4660. end;
  4661. Procedure TLeaderboard.SetisIconUrlDefault(AIndex : Integer; const AValue : boolean);
  4662. begin
  4663. If (FisIconUrlDefault=AValue) then exit;
  4664. FisIconUrlDefault:=AValue;
  4665. MarkPropertyChanged(AIndex);
  4666. end;
  4667. Procedure TLeaderboard.Setkind(AIndex : Integer; const AValue : String);
  4668. begin
  4669. If (Fkind=AValue) then exit;
  4670. Fkind:=AValue;
  4671. MarkPropertyChanged(AIndex);
  4672. end;
  4673. Procedure TLeaderboard.Setname(AIndex : Integer; const AValue : String);
  4674. begin
  4675. If (Fname=AValue) then exit;
  4676. Fname:=AValue;
  4677. MarkPropertyChanged(AIndex);
  4678. end;
  4679. Procedure TLeaderboard.Setorder(AIndex : Integer; const AValue : String);
  4680. begin
  4681. If (Forder=AValue) then exit;
  4682. Forder:=AValue;
  4683. MarkPropertyChanged(AIndex);
  4684. end;
  4685. { --------------------------------------------------------------------
  4686. TLeaderboardEntry
  4687. --------------------------------------------------------------------}
  4688. Procedure TLeaderboardEntry.SetformattedScore(AIndex : Integer; const AValue : String);
  4689. begin
  4690. If (FformattedScore=AValue) then exit;
  4691. FformattedScore:=AValue;
  4692. MarkPropertyChanged(AIndex);
  4693. end;
  4694. Procedure TLeaderboardEntry.SetformattedScoreRank(AIndex : Integer; const AValue : String);
  4695. begin
  4696. If (FformattedScoreRank=AValue) then exit;
  4697. FformattedScoreRank:=AValue;
  4698. MarkPropertyChanged(AIndex);
  4699. end;
  4700. Procedure TLeaderboardEntry.Setkind(AIndex : Integer; const AValue : String);
  4701. begin
  4702. If (Fkind=AValue) then exit;
  4703. Fkind:=AValue;
  4704. MarkPropertyChanged(AIndex);
  4705. end;
  4706. Procedure TLeaderboardEntry.Setplayer(AIndex : Integer; const AValue : TPlayer);
  4707. begin
  4708. If (Fplayer=AValue) then exit;
  4709. Fplayer:=AValue;
  4710. MarkPropertyChanged(AIndex);
  4711. end;
  4712. Procedure TLeaderboardEntry.SetscoreRank(AIndex : Integer; const AValue : String);
  4713. begin
  4714. If (FscoreRank=AValue) then exit;
  4715. FscoreRank:=AValue;
  4716. MarkPropertyChanged(AIndex);
  4717. end;
  4718. Procedure TLeaderboardEntry.SetscoreTag(AIndex : Integer; const AValue : String);
  4719. begin
  4720. If (FscoreTag=AValue) then exit;
  4721. FscoreTag:=AValue;
  4722. MarkPropertyChanged(AIndex);
  4723. end;
  4724. Procedure TLeaderboardEntry.SetscoreValue(AIndex : Integer; const AValue : String);
  4725. begin
  4726. If (FscoreValue=AValue) then exit;
  4727. FscoreValue:=AValue;
  4728. MarkPropertyChanged(AIndex);
  4729. end;
  4730. Procedure TLeaderboardEntry.SettimeSpan(AIndex : Integer; const AValue : String);
  4731. begin
  4732. If (FtimeSpan=AValue) then exit;
  4733. FtimeSpan:=AValue;
  4734. MarkPropertyChanged(AIndex);
  4735. end;
  4736. Procedure TLeaderboardEntry.SetwriteTimestampMillis(AIndex : Integer; const AValue : String);
  4737. begin
  4738. If (FwriteTimestampMillis=AValue) then exit;
  4739. FwriteTimestampMillis:=AValue;
  4740. MarkPropertyChanged(AIndex);
  4741. end;
  4742. { --------------------------------------------------------------------
  4743. TLeaderboardListResponse
  4744. --------------------------------------------------------------------}
  4745. Procedure TLeaderboardListResponse.Setitems(AIndex : Integer; const AValue : TLeaderboardListResponseTypeitemsArray);
  4746. begin
  4747. If (Fitems=AValue) then exit;
  4748. Fitems:=AValue;
  4749. MarkPropertyChanged(AIndex);
  4750. end;
  4751. Procedure TLeaderboardListResponse.Setkind(AIndex : Integer; const AValue : String);
  4752. begin
  4753. If (Fkind=AValue) then exit;
  4754. Fkind:=AValue;
  4755. MarkPropertyChanged(AIndex);
  4756. end;
  4757. Procedure TLeaderboardListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  4758. begin
  4759. If (FnextPageToken=AValue) then exit;
  4760. FnextPageToken:=AValue;
  4761. MarkPropertyChanged(AIndex);
  4762. end;
  4763. //2.6.4. bug workaround
  4764. {$IFDEF VER2_6}
  4765. Procedure TLeaderboardListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  4766. begin
  4767. Case AName of
  4768. 'items' : SetLength(Fitems,ALength);
  4769. else
  4770. Inherited SetArrayLength(AName,ALength);
  4771. end;
  4772. end;
  4773. {$ENDIF VER2_6}
  4774. { --------------------------------------------------------------------
  4775. TLeaderboardScoreRank
  4776. --------------------------------------------------------------------}
  4777. Procedure TLeaderboardScoreRank.SetformattedNumScores(AIndex : Integer; const AValue : String);
  4778. begin
  4779. If (FformattedNumScores=AValue) then exit;
  4780. FformattedNumScores:=AValue;
  4781. MarkPropertyChanged(AIndex);
  4782. end;
  4783. Procedure TLeaderboardScoreRank.SetformattedRank(AIndex : Integer; const AValue : String);
  4784. begin
  4785. If (FformattedRank=AValue) then exit;
  4786. FformattedRank:=AValue;
  4787. MarkPropertyChanged(AIndex);
  4788. end;
  4789. Procedure TLeaderboardScoreRank.Setkind(AIndex : Integer; const AValue : String);
  4790. begin
  4791. If (Fkind=AValue) then exit;
  4792. Fkind:=AValue;
  4793. MarkPropertyChanged(AIndex);
  4794. end;
  4795. Procedure TLeaderboardScoreRank.SetnumScores(AIndex : Integer; const AValue : String);
  4796. begin
  4797. If (FnumScores=AValue) then exit;
  4798. FnumScores:=AValue;
  4799. MarkPropertyChanged(AIndex);
  4800. end;
  4801. Procedure TLeaderboardScoreRank.Setrank(AIndex : Integer; const AValue : String);
  4802. begin
  4803. If (Frank=AValue) then exit;
  4804. Frank:=AValue;
  4805. MarkPropertyChanged(AIndex);
  4806. end;
  4807. { --------------------------------------------------------------------
  4808. TLeaderboardScores
  4809. --------------------------------------------------------------------}
  4810. Procedure TLeaderboardScores.Setitems(AIndex : Integer; const AValue : TLeaderboardScoresTypeitemsArray);
  4811. begin
  4812. If (Fitems=AValue) then exit;
  4813. Fitems:=AValue;
  4814. MarkPropertyChanged(AIndex);
  4815. end;
  4816. Procedure TLeaderboardScores.Setkind(AIndex : Integer; const AValue : String);
  4817. begin
  4818. If (Fkind=AValue) then exit;
  4819. Fkind:=AValue;
  4820. MarkPropertyChanged(AIndex);
  4821. end;
  4822. Procedure TLeaderboardScores.SetnextPageToken(AIndex : Integer; const AValue : String);
  4823. begin
  4824. If (FnextPageToken=AValue) then exit;
  4825. FnextPageToken:=AValue;
  4826. MarkPropertyChanged(AIndex);
  4827. end;
  4828. Procedure TLeaderboardScores.SetnumScores(AIndex : Integer; const AValue : String);
  4829. begin
  4830. If (FnumScores=AValue) then exit;
  4831. FnumScores:=AValue;
  4832. MarkPropertyChanged(AIndex);
  4833. end;
  4834. Procedure TLeaderboardScores.SetplayerScore(AIndex : Integer; const AValue : TLeaderboardEntry);
  4835. begin
  4836. If (FplayerScore=AValue) then exit;
  4837. FplayerScore:=AValue;
  4838. MarkPropertyChanged(AIndex);
  4839. end;
  4840. Procedure TLeaderboardScores.SetprevPageToken(AIndex : Integer; const AValue : String);
  4841. begin
  4842. If (FprevPageToken=AValue) then exit;
  4843. FprevPageToken:=AValue;
  4844. MarkPropertyChanged(AIndex);
  4845. end;
  4846. //2.6.4. bug workaround
  4847. {$IFDEF VER2_6}
  4848. Procedure TLeaderboardScores.SetArrayLength(Const AName : String; ALength : Longint);
  4849. begin
  4850. Case AName of
  4851. 'items' : SetLength(Fitems,ALength);
  4852. else
  4853. Inherited SetArrayLength(AName,ALength);
  4854. end;
  4855. end;
  4856. {$ENDIF VER2_6}
  4857. { --------------------------------------------------------------------
  4858. TMetagameConfig
  4859. --------------------------------------------------------------------}
  4860. Procedure TMetagameConfig.SetcurrentVersion(AIndex : Integer; const AValue : integer);
  4861. begin
  4862. If (FcurrentVersion=AValue) then exit;
  4863. FcurrentVersion:=AValue;
  4864. MarkPropertyChanged(AIndex);
  4865. end;
  4866. Procedure TMetagameConfig.Setkind(AIndex : Integer; const AValue : String);
  4867. begin
  4868. If (Fkind=AValue) then exit;
  4869. Fkind:=AValue;
  4870. MarkPropertyChanged(AIndex);
  4871. end;
  4872. Procedure TMetagameConfig.SetplayerLevels(AIndex : Integer; const AValue : TMetagameConfigTypeplayerLevelsArray);
  4873. begin
  4874. If (FplayerLevels=AValue) then exit;
  4875. FplayerLevels:=AValue;
  4876. MarkPropertyChanged(AIndex);
  4877. end;
  4878. //2.6.4. bug workaround
  4879. {$IFDEF VER2_6}
  4880. Procedure TMetagameConfig.SetArrayLength(Const AName : String; ALength : Longint);
  4881. begin
  4882. Case AName of
  4883. 'playerlevels' : SetLength(FplayerLevels,ALength);
  4884. else
  4885. Inherited SetArrayLength(AName,ALength);
  4886. end;
  4887. end;
  4888. {$ENDIF VER2_6}
  4889. { --------------------------------------------------------------------
  4890. TNetworkDiagnostics
  4891. --------------------------------------------------------------------}
  4892. Procedure TNetworkDiagnostics.SetandroidNetworkSubtype(AIndex : Integer; const AValue : integer);
  4893. begin
  4894. If (FandroidNetworkSubtype=AValue) then exit;
  4895. FandroidNetworkSubtype:=AValue;
  4896. MarkPropertyChanged(AIndex);
  4897. end;
  4898. Procedure TNetworkDiagnostics.SetandroidNetworkType(AIndex : Integer; const AValue : integer);
  4899. begin
  4900. If (FandroidNetworkType=AValue) then exit;
  4901. FandroidNetworkType:=AValue;
  4902. MarkPropertyChanged(AIndex);
  4903. end;
  4904. Procedure TNetworkDiagnostics.SetiosNetworkType(AIndex : Integer; const AValue : integer);
  4905. begin
  4906. If (FiosNetworkType=AValue) then exit;
  4907. FiosNetworkType:=AValue;
  4908. MarkPropertyChanged(AIndex);
  4909. end;
  4910. Procedure TNetworkDiagnostics.Setkind(AIndex : Integer; const AValue : String);
  4911. begin
  4912. If (Fkind=AValue) then exit;
  4913. Fkind:=AValue;
  4914. MarkPropertyChanged(AIndex);
  4915. end;
  4916. Procedure TNetworkDiagnostics.SetnetworkOperatorCode(AIndex : Integer; const AValue : String);
  4917. begin
  4918. If (FnetworkOperatorCode=AValue) then exit;
  4919. FnetworkOperatorCode:=AValue;
  4920. MarkPropertyChanged(AIndex);
  4921. end;
  4922. Procedure TNetworkDiagnostics.SetnetworkOperatorName(AIndex : Integer; const AValue : String);
  4923. begin
  4924. If (FnetworkOperatorName=AValue) then exit;
  4925. FnetworkOperatorName:=AValue;
  4926. MarkPropertyChanged(AIndex);
  4927. end;
  4928. Procedure TNetworkDiagnostics.SetregistrationLatencyMillis(AIndex : Integer; const AValue : integer);
  4929. begin
  4930. If (FregistrationLatencyMillis=AValue) then exit;
  4931. FregistrationLatencyMillis:=AValue;
  4932. MarkPropertyChanged(AIndex);
  4933. end;
  4934. { --------------------------------------------------------------------
  4935. TParticipantResult
  4936. --------------------------------------------------------------------}
  4937. Procedure TParticipantResult.Setkind(AIndex : Integer; const AValue : String);
  4938. begin
  4939. If (Fkind=AValue) then exit;
  4940. Fkind:=AValue;
  4941. MarkPropertyChanged(AIndex);
  4942. end;
  4943. Procedure TParticipantResult.SetparticipantId(AIndex : Integer; const AValue : String);
  4944. begin
  4945. If (FparticipantId=AValue) then exit;
  4946. FparticipantId:=AValue;
  4947. MarkPropertyChanged(AIndex);
  4948. end;
  4949. Procedure TParticipantResult.Setplacing(AIndex : Integer; const AValue : integer);
  4950. begin
  4951. If (Fplacing=AValue) then exit;
  4952. Fplacing:=AValue;
  4953. MarkPropertyChanged(AIndex);
  4954. end;
  4955. Procedure TParticipantResult.Setresult(AIndex : Integer; const AValue : String);
  4956. begin
  4957. If (Fresult=AValue) then exit;
  4958. Fresult:=AValue;
  4959. MarkPropertyChanged(AIndex);
  4960. end;
  4961. { --------------------------------------------------------------------
  4962. TPeerChannelDiagnostics
  4963. --------------------------------------------------------------------}
  4964. Procedure TPeerChannelDiagnostics.SetbytesReceived(AIndex : Integer; const AValue : TAggregateStats);
  4965. begin
  4966. If (FbytesReceived=AValue) then exit;
  4967. FbytesReceived:=AValue;
  4968. MarkPropertyChanged(AIndex);
  4969. end;
  4970. Procedure TPeerChannelDiagnostics.SetbytesSent(AIndex : Integer; const AValue : TAggregateStats);
  4971. begin
  4972. If (FbytesSent=AValue) then exit;
  4973. FbytesSent:=AValue;
  4974. MarkPropertyChanged(AIndex);
  4975. end;
  4976. Procedure TPeerChannelDiagnostics.Setkind(AIndex : Integer; const AValue : String);
  4977. begin
  4978. If (Fkind=AValue) then exit;
  4979. Fkind:=AValue;
  4980. MarkPropertyChanged(AIndex);
  4981. end;
  4982. Procedure TPeerChannelDiagnostics.SetnumMessagesLost(AIndex : Integer; const AValue : integer);
  4983. begin
  4984. If (FnumMessagesLost=AValue) then exit;
  4985. FnumMessagesLost:=AValue;
  4986. MarkPropertyChanged(AIndex);
  4987. end;
  4988. Procedure TPeerChannelDiagnostics.SetnumMessagesReceived(AIndex : Integer; const AValue : integer);
  4989. begin
  4990. If (FnumMessagesReceived=AValue) then exit;
  4991. FnumMessagesReceived:=AValue;
  4992. MarkPropertyChanged(AIndex);
  4993. end;
  4994. Procedure TPeerChannelDiagnostics.SetnumMessagesSent(AIndex : Integer; const AValue : integer);
  4995. begin
  4996. If (FnumMessagesSent=AValue) then exit;
  4997. FnumMessagesSent:=AValue;
  4998. MarkPropertyChanged(AIndex);
  4999. end;
  5000. Procedure TPeerChannelDiagnostics.SetnumSendFailures(AIndex : Integer; const AValue : integer);
  5001. begin
  5002. If (FnumSendFailures=AValue) then exit;
  5003. FnumSendFailures:=AValue;
  5004. MarkPropertyChanged(AIndex);
  5005. end;
  5006. Procedure TPeerChannelDiagnostics.SetroundtripLatencyMillis(AIndex : Integer; const AValue : TAggregateStats);
  5007. begin
  5008. If (FroundtripLatencyMillis=AValue) then exit;
  5009. FroundtripLatencyMillis:=AValue;
  5010. MarkPropertyChanged(AIndex);
  5011. end;
  5012. { --------------------------------------------------------------------
  5013. TPeerSessionDiagnostics
  5014. --------------------------------------------------------------------}
  5015. Procedure TPeerSessionDiagnostics.SetconnectedTimestampMillis(AIndex : Integer; const AValue : String);
  5016. begin
  5017. If (FconnectedTimestampMillis=AValue) then exit;
  5018. FconnectedTimestampMillis:=AValue;
  5019. MarkPropertyChanged(AIndex);
  5020. end;
  5021. Procedure TPeerSessionDiagnostics.Setkind(AIndex : Integer; const AValue : String);
  5022. begin
  5023. If (Fkind=AValue) then exit;
  5024. Fkind:=AValue;
  5025. MarkPropertyChanged(AIndex);
  5026. end;
  5027. Procedure TPeerSessionDiagnostics.SetparticipantId(AIndex : Integer; const AValue : String);
  5028. begin
  5029. If (FparticipantId=AValue) then exit;
  5030. FparticipantId:=AValue;
  5031. MarkPropertyChanged(AIndex);
  5032. end;
  5033. Procedure TPeerSessionDiagnostics.SetreliableChannel(AIndex : Integer; const AValue : TPeerChannelDiagnostics);
  5034. begin
  5035. If (FreliableChannel=AValue) then exit;
  5036. FreliableChannel:=AValue;
  5037. MarkPropertyChanged(AIndex);
  5038. end;
  5039. Procedure TPeerSessionDiagnostics.SetunreliableChannel(AIndex : Integer; const AValue : TPeerChannelDiagnostics);
  5040. begin
  5041. If (FunreliableChannel=AValue) then exit;
  5042. FunreliableChannel:=AValue;
  5043. MarkPropertyChanged(AIndex);
  5044. end;
  5045. { --------------------------------------------------------------------
  5046. TPlayed
  5047. --------------------------------------------------------------------}
  5048. Procedure TPlayed.SetautoMatched(AIndex : Integer; const AValue : boolean);
  5049. begin
  5050. If (FautoMatched=AValue) then exit;
  5051. FautoMatched:=AValue;
  5052. MarkPropertyChanged(AIndex);
  5053. end;
  5054. Procedure TPlayed.Setkind(AIndex : Integer; const AValue : String);
  5055. begin
  5056. If (Fkind=AValue) then exit;
  5057. Fkind:=AValue;
  5058. MarkPropertyChanged(AIndex);
  5059. end;
  5060. Procedure TPlayed.SettimeMillis(AIndex : Integer; const AValue : String);
  5061. begin
  5062. If (FtimeMillis=AValue) then exit;
  5063. FtimeMillis:=AValue;
  5064. MarkPropertyChanged(AIndex);
  5065. end;
  5066. { --------------------------------------------------------------------
  5067. TPlayerTypename
  5068. --------------------------------------------------------------------}
  5069. Procedure TPlayerTypename.SetfamilyName(AIndex : Integer; const AValue : String);
  5070. begin
  5071. If (FfamilyName=AValue) then exit;
  5072. FfamilyName:=AValue;
  5073. MarkPropertyChanged(AIndex);
  5074. end;
  5075. Procedure TPlayerTypename.SetgivenName(AIndex : Integer; const AValue : String);
  5076. begin
  5077. If (FgivenName=AValue) then exit;
  5078. FgivenName:=AValue;
  5079. MarkPropertyChanged(AIndex);
  5080. end;
  5081. { --------------------------------------------------------------------
  5082. TPlayer
  5083. --------------------------------------------------------------------}
  5084. Procedure TPlayer.SetavatarImageUrl(AIndex : Integer; const AValue : String);
  5085. begin
  5086. If (FavatarImageUrl=AValue) then exit;
  5087. FavatarImageUrl:=AValue;
  5088. MarkPropertyChanged(AIndex);
  5089. end;
  5090. Procedure TPlayer.SetbannerUrlLandscape(AIndex : Integer; const AValue : String);
  5091. begin
  5092. If (FbannerUrlLandscape=AValue) then exit;
  5093. FbannerUrlLandscape:=AValue;
  5094. MarkPropertyChanged(AIndex);
  5095. end;
  5096. Procedure TPlayer.SetbannerUrlPortrait(AIndex : Integer; const AValue : String);
  5097. begin
  5098. If (FbannerUrlPortrait=AValue) then exit;
  5099. FbannerUrlPortrait:=AValue;
  5100. MarkPropertyChanged(AIndex);
  5101. end;
  5102. Procedure TPlayer.SetdisplayName(AIndex : Integer; const AValue : String);
  5103. begin
  5104. If (FdisplayName=AValue) then exit;
  5105. FdisplayName:=AValue;
  5106. MarkPropertyChanged(AIndex);
  5107. end;
  5108. Procedure TPlayer.SetexperienceInfo(AIndex : Integer; const AValue : TPlayerExperienceInfo);
  5109. begin
  5110. If (FexperienceInfo=AValue) then exit;
  5111. FexperienceInfo:=AValue;
  5112. MarkPropertyChanged(AIndex);
  5113. end;
  5114. Procedure TPlayer.Setkind(AIndex : Integer; const AValue : String);
  5115. begin
  5116. If (Fkind=AValue) then exit;
  5117. Fkind:=AValue;
  5118. MarkPropertyChanged(AIndex);
  5119. end;
  5120. Procedure TPlayer.SetlastPlayedWith(AIndex : Integer; const AValue : TPlayed);
  5121. begin
  5122. If (FlastPlayedWith=AValue) then exit;
  5123. FlastPlayedWith:=AValue;
  5124. MarkPropertyChanged(AIndex);
  5125. end;
  5126. Procedure TPlayer.Setname(AIndex : Integer; const AValue : TPlayerTypename);
  5127. begin
  5128. If (Fname=AValue) then exit;
  5129. Fname:=AValue;
  5130. MarkPropertyChanged(AIndex);
  5131. end;
  5132. Procedure TPlayer.SetoriginalPlayerId(AIndex : Integer; const AValue : String);
  5133. begin
  5134. If (ForiginalPlayerId=AValue) then exit;
  5135. ForiginalPlayerId:=AValue;
  5136. MarkPropertyChanged(AIndex);
  5137. end;
  5138. Procedure TPlayer.SetplayerId(AIndex : Integer; const AValue : String);
  5139. begin
  5140. If (FplayerId=AValue) then exit;
  5141. FplayerId:=AValue;
  5142. MarkPropertyChanged(AIndex);
  5143. end;
  5144. Procedure TPlayer.SetprofileSettings(AIndex : Integer; const AValue : TProfileSettings);
  5145. begin
  5146. If (FprofileSettings=AValue) then exit;
  5147. FprofileSettings:=AValue;
  5148. MarkPropertyChanged(AIndex);
  5149. end;
  5150. Procedure TPlayer.Settitle(AIndex : Integer; const AValue : String);
  5151. begin
  5152. If (Ftitle=AValue) then exit;
  5153. Ftitle:=AValue;
  5154. MarkPropertyChanged(AIndex);
  5155. end;
  5156. { --------------------------------------------------------------------
  5157. TPlayerAchievement
  5158. --------------------------------------------------------------------}
  5159. Procedure TPlayerAchievement.SetachievementState(AIndex : Integer; const AValue : String);
  5160. begin
  5161. If (FachievementState=AValue) then exit;
  5162. FachievementState:=AValue;
  5163. MarkPropertyChanged(AIndex);
  5164. end;
  5165. Procedure TPlayerAchievement.SetcurrentSteps(AIndex : Integer; const AValue : integer);
  5166. begin
  5167. If (FcurrentSteps=AValue) then exit;
  5168. FcurrentSteps:=AValue;
  5169. MarkPropertyChanged(AIndex);
  5170. end;
  5171. Procedure TPlayerAchievement.SetexperiencePoints(AIndex : Integer; const AValue : String);
  5172. begin
  5173. If (FexperiencePoints=AValue) then exit;
  5174. FexperiencePoints:=AValue;
  5175. MarkPropertyChanged(AIndex);
  5176. end;
  5177. Procedure TPlayerAchievement.SetformattedCurrentStepsString(AIndex : Integer; const AValue : String);
  5178. begin
  5179. If (FformattedCurrentStepsString=AValue) then exit;
  5180. FformattedCurrentStepsString:=AValue;
  5181. MarkPropertyChanged(AIndex);
  5182. end;
  5183. Procedure TPlayerAchievement.Setid(AIndex : Integer; const AValue : String);
  5184. begin
  5185. If (Fid=AValue) then exit;
  5186. Fid:=AValue;
  5187. MarkPropertyChanged(AIndex);
  5188. end;
  5189. Procedure TPlayerAchievement.Setkind(AIndex : Integer; const AValue : String);
  5190. begin
  5191. If (Fkind=AValue) then exit;
  5192. Fkind:=AValue;
  5193. MarkPropertyChanged(AIndex);
  5194. end;
  5195. Procedure TPlayerAchievement.SetlastUpdatedTimestamp(AIndex : Integer; const AValue : String);
  5196. begin
  5197. If (FlastUpdatedTimestamp=AValue) then exit;
  5198. FlastUpdatedTimestamp:=AValue;
  5199. MarkPropertyChanged(AIndex);
  5200. end;
  5201. { --------------------------------------------------------------------
  5202. TPlayerAchievementListResponse
  5203. --------------------------------------------------------------------}
  5204. Procedure TPlayerAchievementListResponse.Setitems(AIndex : Integer; const AValue : TPlayerAchievementListResponseTypeitemsArray);
  5205. begin
  5206. If (Fitems=AValue) then exit;
  5207. Fitems:=AValue;
  5208. MarkPropertyChanged(AIndex);
  5209. end;
  5210. Procedure TPlayerAchievementListResponse.Setkind(AIndex : Integer; const AValue : String);
  5211. begin
  5212. If (Fkind=AValue) then exit;
  5213. Fkind:=AValue;
  5214. MarkPropertyChanged(AIndex);
  5215. end;
  5216. Procedure TPlayerAchievementListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  5217. begin
  5218. If (FnextPageToken=AValue) then exit;
  5219. FnextPageToken:=AValue;
  5220. MarkPropertyChanged(AIndex);
  5221. end;
  5222. //2.6.4. bug workaround
  5223. {$IFDEF VER2_6}
  5224. Procedure TPlayerAchievementListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5225. begin
  5226. Case AName of
  5227. 'items' : SetLength(Fitems,ALength);
  5228. else
  5229. Inherited SetArrayLength(AName,ALength);
  5230. end;
  5231. end;
  5232. {$ENDIF VER2_6}
  5233. { --------------------------------------------------------------------
  5234. TPlayerEvent
  5235. --------------------------------------------------------------------}
  5236. Procedure TPlayerEvent.SetdefinitionId(AIndex : Integer; const AValue : String);
  5237. begin
  5238. If (FdefinitionId=AValue) then exit;
  5239. FdefinitionId:=AValue;
  5240. MarkPropertyChanged(AIndex);
  5241. end;
  5242. Procedure TPlayerEvent.SetformattedNumEvents(AIndex : Integer; const AValue : String);
  5243. begin
  5244. If (FformattedNumEvents=AValue) then exit;
  5245. FformattedNumEvents:=AValue;
  5246. MarkPropertyChanged(AIndex);
  5247. end;
  5248. Procedure TPlayerEvent.Setkind(AIndex : Integer; const AValue : String);
  5249. begin
  5250. If (Fkind=AValue) then exit;
  5251. Fkind:=AValue;
  5252. MarkPropertyChanged(AIndex);
  5253. end;
  5254. Procedure TPlayerEvent.SetnumEvents(AIndex : Integer; const AValue : String);
  5255. begin
  5256. If (FnumEvents=AValue) then exit;
  5257. FnumEvents:=AValue;
  5258. MarkPropertyChanged(AIndex);
  5259. end;
  5260. Procedure TPlayerEvent.SetplayerId(AIndex : Integer; const AValue : String);
  5261. begin
  5262. If (FplayerId=AValue) then exit;
  5263. FplayerId:=AValue;
  5264. MarkPropertyChanged(AIndex);
  5265. end;
  5266. { --------------------------------------------------------------------
  5267. TPlayerEventListResponse
  5268. --------------------------------------------------------------------}
  5269. Procedure TPlayerEventListResponse.Setitems(AIndex : Integer; const AValue : TPlayerEventListResponseTypeitemsArray);
  5270. begin
  5271. If (Fitems=AValue) then exit;
  5272. Fitems:=AValue;
  5273. MarkPropertyChanged(AIndex);
  5274. end;
  5275. Procedure TPlayerEventListResponse.Setkind(AIndex : Integer; const AValue : String);
  5276. begin
  5277. If (Fkind=AValue) then exit;
  5278. Fkind:=AValue;
  5279. MarkPropertyChanged(AIndex);
  5280. end;
  5281. Procedure TPlayerEventListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  5282. begin
  5283. If (FnextPageToken=AValue) then exit;
  5284. FnextPageToken:=AValue;
  5285. MarkPropertyChanged(AIndex);
  5286. end;
  5287. //2.6.4. bug workaround
  5288. {$IFDEF VER2_6}
  5289. Procedure TPlayerEventListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5290. begin
  5291. Case AName of
  5292. 'items' : SetLength(Fitems,ALength);
  5293. else
  5294. Inherited SetArrayLength(AName,ALength);
  5295. end;
  5296. end;
  5297. {$ENDIF VER2_6}
  5298. { --------------------------------------------------------------------
  5299. TPlayerExperienceInfo
  5300. --------------------------------------------------------------------}
  5301. Procedure TPlayerExperienceInfo.SetcurrentExperiencePoints(AIndex : Integer; const AValue : String);
  5302. begin
  5303. If (FcurrentExperiencePoints=AValue) then exit;
  5304. FcurrentExperiencePoints:=AValue;
  5305. MarkPropertyChanged(AIndex);
  5306. end;
  5307. Procedure TPlayerExperienceInfo.SetcurrentLevel(AIndex : Integer; const AValue : TPlayerLevel);
  5308. begin
  5309. If (FcurrentLevel=AValue) then exit;
  5310. FcurrentLevel:=AValue;
  5311. MarkPropertyChanged(AIndex);
  5312. end;
  5313. Procedure TPlayerExperienceInfo.Setkind(AIndex : Integer; const AValue : String);
  5314. begin
  5315. If (Fkind=AValue) then exit;
  5316. Fkind:=AValue;
  5317. MarkPropertyChanged(AIndex);
  5318. end;
  5319. Procedure TPlayerExperienceInfo.SetlastLevelUpTimestampMillis(AIndex : Integer; const AValue : String);
  5320. begin
  5321. If (FlastLevelUpTimestampMillis=AValue) then exit;
  5322. FlastLevelUpTimestampMillis:=AValue;
  5323. MarkPropertyChanged(AIndex);
  5324. end;
  5325. Procedure TPlayerExperienceInfo.SetnextLevel(AIndex : Integer; const AValue : TPlayerLevel);
  5326. begin
  5327. If (FnextLevel=AValue) then exit;
  5328. FnextLevel:=AValue;
  5329. MarkPropertyChanged(AIndex);
  5330. end;
  5331. { --------------------------------------------------------------------
  5332. TPlayerLeaderboardScore
  5333. --------------------------------------------------------------------}
  5334. Procedure TPlayerLeaderboardScore.Setkind(AIndex : Integer; const AValue : String);
  5335. begin
  5336. If (Fkind=AValue) then exit;
  5337. Fkind:=AValue;
  5338. MarkPropertyChanged(AIndex);
  5339. end;
  5340. Procedure TPlayerLeaderboardScore.Setleaderboard_id(AIndex : Integer; const AValue : String);
  5341. begin
  5342. If (Fleaderboard_id=AValue) then exit;
  5343. Fleaderboard_id:=AValue;
  5344. MarkPropertyChanged(AIndex);
  5345. end;
  5346. Procedure TPlayerLeaderboardScore.SetpublicRank(AIndex : Integer; const AValue : TLeaderboardScoreRank);
  5347. begin
  5348. If (FpublicRank=AValue) then exit;
  5349. FpublicRank:=AValue;
  5350. MarkPropertyChanged(AIndex);
  5351. end;
  5352. Procedure TPlayerLeaderboardScore.SetscoreString(AIndex : Integer; const AValue : String);
  5353. begin
  5354. If (FscoreString=AValue) then exit;
  5355. FscoreString:=AValue;
  5356. MarkPropertyChanged(AIndex);
  5357. end;
  5358. Procedure TPlayerLeaderboardScore.SetscoreTag(AIndex : Integer; const AValue : String);
  5359. begin
  5360. If (FscoreTag=AValue) then exit;
  5361. FscoreTag:=AValue;
  5362. MarkPropertyChanged(AIndex);
  5363. end;
  5364. Procedure TPlayerLeaderboardScore.SetscoreValue(AIndex : Integer; const AValue : String);
  5365. begin
  5366. If (FscoreValue=AValue) then exit;
  5367. FscoreValue:=AValue;
  5368. MarkPropertyChanged(AIndex);
  5369. end;
  5370. Procedure TPlayerLeaderboardScore.SetsocialRank(AIndex : Integer; const AValue : TLeaderboardScoreRank);
  5371. begin
  5372. If (FsocialRank=AValue) then exit;
  5373. FsocialRank:=AValue;
  5374. MarkPropertyChanged(AIndex);
  5375. end;
  5376. Procedure TPlayerLeaderboardScore.SettimeSpan(AIndex : Integer; const AValue : String);
  5377. begin
  5378. If (FtimeSpan=AValue) then exit;
  5379. FtimeSpan:=AValue;
  5380. MarkPropertyChanged(AIndex);
  5381. end;
  5382. Procedure TPlayerLeaderboardScore.SetwriteTimestamp(AIndex : Integer; const AValue : String);
  5383. begin
  5384. If (FwriteTimestamp=AValue) then exit;
  5385. FwriteTimestamp:=AValue;
  5386. MarkPropertyChanged(AIndex);
  5387. end;
  5388. { --------------------------------------------------------------------
  5389. TPlayerLeaderboardScoreListResponse
  5390. --------------------------------------------------------------------}
  5391. Procedure TPlayerLeaderboardScoreListResponse.Setitems(AIndex : Integer; const AValue : TPlayerLeaderboardScoreListResponseTypeitemsArray);
  5392. begin
  5393. If (Fitems=AValue) then exit;
  5394. Fitems:=AValue;
  5395. MarkPropertyChanged(AIndex);
  5396. end;
  5397. Procedure TPlayerLeaderboardScoreListResponse.Setkind(AIndex : Integer; const AValue : String);
  5398. begin
  5399. If (Fkind=AValue) then exit;
  5400. Fkind:=AValue;
  5401. MarkPropertyChanged(AIndex);
  5402. end;
  5403. Procedure TPlayerLeaderboardScoreListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  5404. begin
  5405. If (FnextPageToken=AValue) then exit;
  5406. FnextPageToken:=AValue;
  5407. MarkPropertyChanged(AIndex);
  5408. end;
  5409. Procedure TPlayerLeaderboardScoreListResponse.Setplayer(AIndex : Integer; const AValue : TPlayer);
  5410. begin
  5411. If (Fplayer=AValue) then exit;
  5412. Fplayer:=AValue;
  5413. MarkPropertyChanged(AIndex);
  5414. end;
  5415. //2.6.4. bug workaround
  5416. {$IFDEF VER2_6}
  5417. Procedure TPlayerLeaderboardScoreListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5418. begin
  5419. Case AName of
  5420. 'items' : SetLength(Fitems,ALength);
  5421. else
  5422. Inherited SetArrayLength(AName,ALength);
  5423. end;
  5424. end;
  5425. {$ENDIF VER2_6}
  5426. { --------------------------------------------------------------------
  5427. TPlayerLevel
  5428. --------------------------------------------------------------------}
  5429. Procedure TPlayerLevel.Setkind(AIndex : Integer; const AValue : String);
  5430. begin
  5431. If (Fkind=AValue) then exit;
  5432. Fkind:=AValue;
  5433. MarkPropertyChanged(AIndex);
  5434. end;
  5435. Procedure TPlayerLevel.Setlevel(AIndex : Integer; const AValue : integer);
  5436. begin
  5437. If (Flevel=AValue) then exit;
  5438. Flevel:=AValue;
  5439. MarkPropertyChanged(AIndex);
  5440. end;
  5441. Procedure TPlayerLevel.SetmaxExperiencePoints(AIndex : Integer; const AValue : String);
  5442. begin
  5443. If (FmaxExperiencePoints=AValue) then exit;
  5444. FmaxExperiencePoints:=AValue;
  5445. MarkPropertyChanged(AIndex);
  5446. end;
  5447. Procedure TPlayerLevel.SetminExperiencePoints(AIndex : Integer; const AValue : String);
  5448. begin
  5449. If (FminExperiencePoints=AValue) then exit;
  5450. FminExperiencePoints:=AValue;
  5451. MarkPropertyChanged(AIndex);
  5452. end;
  5453. { --------------------------------------------------------------------
  5454. TPlayerListResponse
  5455. --------------------------------------------------------------------}
  5456. Procedure TPlayerListResponse.Setitems(AIndex : Integer; const AValue : TPlayerListResponseTypeitemsArray);
  5457. begin
  5458. If (Fitems=AValue) then exit;
  5459. Fitems:=AValue;
  5460. MarkPropertyChanged(AIndex);
  5461. end;
  5462. Procedure TPlayerListResponse.Setkind(AIndex : Integer; const AValue : String);
  5463. begin
  5464. If (Fkind=AValue) then exit;
  5465. Fkind:=AValue;
  5466. MarkPropertyChanged(AIndex);
  5467. end;
  5468. Procedure TPlayerListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  5469. begin
  5470. If (FnextPageToken=AValue) then exit;
  5471. FnextPageToken:=AValue;
  5472. MarkPropertyChanged(AIndex);
  5473. end;
  5474. //2.6.4. bug workaround
  5475. {$IFDEF VER2_6}
  5476. Procedure TPlayerListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5477. begin
  5478. Case AName of
  5479. 'items' : SetLength(Fitems,ALength);
  5480. else
  5481. Inherited SetArrayLength(AName,ALength);
  5482. end;
  5483. end;
  5484. {$ENDIF VER2_6}
  5485. { --------------------------------------------------------------------
  5486. TPlayerScore
  5487. --------------------------------------------------------------------}
  5488. Procedure TPlayerScore.SetformattedScore(AIndex : Integer; const AValue : String);
  5489. begin
  5490. If (FformattedScore=AValue) then exit;
  5491. FformattedScore:=AValue;
  5492. MarkPropertyChanged(AIndex);
  5493. end;
  5494. Procedure TPlayerScore.Setkind(AIndex : Integer; const AValue : String);
  5495. begin
  5496. If (Fkind=AValue) then exit;
  5497. Fkind:=AValue;
  5498. MarkPropertyChanged(AIndex);
  5499. end;
  5500. Procedure TPlayerScore.Setscore(AIndex : Integer; const AValue : String);
  5501. begin
  5502. If (Fscore=AValue) then exit;
  5503. Fscore:=AValue;
  5504. MarkPropertyChanged(AIndex);
  5505. end;
  5506. Procedure TPlayerScore.SetscoreTag(AIndex : Integer; const AValue : String);
  5507. begin
  5508. If (FscoreTag=AValue) then exit;
  5509. FscoreTag:=AValue;
  5510. MarkPropertyChanged(AIndex);
  5511. end;
  5512. Procedure TPlayerScore.SettimeSpan(AIndex : Integer; const AValue : String);
  5513. begin
  5514. If (FtimeSpan=AValue) then exit;
  5515. FtimeSpan:=AValue;
  5516. MarkPropertyChanged(AIndex);
  5517. end;
  5518. { --------------------------------------------------------------------
  5519. TPlayerScoreListResponse
  5520. --------------------------------------------------------------------}
  5521. Procedure TPlayerScoreListResponse.Setkind(AIndex : Integer; const AValue : String);
  5522. begin
  5523. If (Fkind=AValue) then exit;
  5524. Fkind:=AValue;
  5525. MarkPropertyChanged(AIndex);
  5526. end;
  5527. Procedure TPlayerScoreListResponse.SetsubmittedScores(AIndex : Integer; const AValue : TPlayerScoreListResponseTypesubmittedScoresArray);
  5528. begin
  5529. If (FsubmittedScores=AValue) then exit;
  5530. FsubmittedScores:=AValue;
  5531. MarkPropertyChanged(AIndex);
  5532. end;
  5533. //2.6.4. bug workaround
  5534. {$IFDEF VER2_6}
  5535. Procedure TPlayerScoreListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5536. begin
  5537. Case AName of
  5538. 'submittedscores' : SetLength(FsubmittedScores,ALength);
  5539. else
  5540. Inherited SetArrayLength(AName,ALength);
  5541. end;
  5542. end;
  5543. {$ENDIF VER2_6}
  5544. { --------------------------------------------------------------------
  5545. TPlayerScoreResponse
  5546. --------------------------------------------------------------------}
  5547. Procedure TPlayerScoreResponse.SetbeatenScoreTimeSpans(AIndex : Integer; const AValue : TStringArray);
  5548. begin
  5549. If (FbeatenScoreTimeSpans=AValue) then exit;
  5550. FbeatenScoreTimeSpans:=AValue;
  5551. MarkPropertyChanged(AIndex);
  5552. end;
  5553. Procedure TPlayerScoreResponse.SetformattedScore(AIndex : Integer; const AValue : String);
  5554. begin
  5555. If (FformattedScore=AValue) then exit;
  5556. FformattedScore:=AValue;
  5557. MarkPropertyChanged(AIndex);
  5558. end;
  5559. Procedure TPlayerScoreResponse.Setkind(AIndex : Integer; const AValue : String);
  5560. begin
  5561. If (Fkind=AValue) then exit;
  5562. Fkind:=AValue;
  5563. MarkPropertyChanged(AIndex);
  5564. end;
  5565. Procedure TPlayerScoreResponse.SetleaderboardId(AIndex : Integer; const AValue : String);
  5566. begin
  5567. If (FleaderboardId=AValue) then exit;
  5568. FleaderboardId:=AValue;
  5569. MarkPropertyChanged(AIndex);
  5570. end;
  5571. Procedure TPlayerScoreResponse.SetscoreTag(AIndex : Integer; const AValue : String);
  5572. begin
  5573. If (FscoreTag=AValue) then exit;
  5574. FscoreTag:=AValue;
  5575. MarkPropertyChanged(AIndex);
  5576. end;
  5577. Procedure TPlayerScoreResponse.SetunbeatenScores(AIndex : Integer; const AValue : TPlayerScoreResponseTypeunbeatenScoresArray);
  5578. begin
  5579. If (FunbeatenScores=AValue) then exit;
  5580. FunbeatenScores:=AValue;
  5581. MarkPropertyChanged(AIndex);
  5582. end;
  5583. //2.6.4. bug workaround
  5584. {$IFDEF VER2_6}
  5585. Procedure TPlayerScoreResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5586. begin
  5587. Case AName of
  5588. 'beatenscoretimespans' : SetLength(FbeatenScoreTimeSpans,ALength);
  5589. 'unbeatenscores' : SetLength(FunbeatenScores,ALength);
  5590. else
  5591. Inherited SetArrayLength(AName,ALength);
  5592. end;
  5593. end;
  5594. {$ENDIF VER2_6}
  5595. { --------------------------------------------------------------------
  5596. TPlayerScoreSubmissionList
  5597. --------------------------------------------------------------------}
  5598. Procedure TPlayerScoreSubmissionList.Setkind(AIndex : Integer; const AValue : String);
  5599. begin
  5600. If (Fkind=AValue) then exit;
  5601. Fkind:=AValue;
  5602. MarkPropertyChanged(AIndex);
  5603. end;
  5604. Procedure TPlayerScoreSubmissionList.Setscores(AIndex : Integer; const AValue : TPlayerScoreSubmissionListTypescoresArray);
  5605. begin
  5606. If (Fscores=AValue) then exit;
  5607. Fscores:=AValue;
  5608. MarkPropertyChanged(AIndex);
  5609. end;
  5610. //2.6.4. bug workaround
  5611. {$IFDEF VER2_6}
  5612. Procedure TPlayerScoreSubmissionList.SetArrayLength(Const AName : String; ALength : Longint);
  5613. begin
  5614. Case AName of
  5615. 'scores' : SetLength(Fscores,ALength);
  5616. else
  5617. Inherited SetArrayLength(AName,ALength);
  5618. end;
  5619. end;
  5620. {$ENDIF VER2_6}
  5621. { --------------------------------------------------------------------
  5622. TProfileSettings
  5623. --------------------------------------------------------------------}
  5624. Procedure TProfileSettings.Setkind(AIndex : Integer; const AValue : String);
  5625. begin
  5626. If (Fkind=AValue) then exit;
  5627. Fkind:=AValue;
  5628. MarkPropertyChanged(AIndex);
  5629. end;
  5630. Procedure TProfileSettings.SetprofileVisible(AIndex : Integer; const AValue : boolean);
  5631. begin
  5632. If (FprofileVisible=AValue) then exit;
  5633. FprofileVisible:=AValue;
  5634. MarkPropertyChanged(AIndex);
  5635. end;
  5636. { --------------------------------------------------------------------
  5637. TPushToken
  5638. --------------------------------------------------------------------}
  5639. Procedure TPushToken.SetclientRevision(AIndex : Integer; const AValue : String);
  5640. begin
  5641. If (FclientRevision=AValue) then exit;
  5642. FclientRevision:=AValue;
  5643. MarkPropertyChanged(AIndex);
  5644. end;
  5645. Procedure TPushToken.Setid(AIndex : Integer; const AValue : TPushTokenId);
  5646. begin
  5647. If (Fid=AValue) then exit;
  5648. Fid:=AValue;
  5649. MarkPropertyChanged(AIndex);
  5650. end;
  5651. Procedure TPushToken.Setkind(AIndex : Integer; const AValue : String);
  5652. begin
  5653. If (Fkind=AValue) then exit;
  5654. Fkind:=AValue;
  5655. MarkPropertyChanged(AIndex);
  5656. end;
  5657. Procedure TPushToken.Setlanguage(AIndex : Integer; const AValue : String);
  5658. begin
  5659. If (Flanguage=AValue) then exit;
  5660. Flanguage:=AValue;
  5661. MarkPropertyChanged(AIndex);
  5662. end;
  5663. { --------------------------------------------------------------------
  5664. TPushTokenIdTypeios
  5665. --------------------------------------------------------------------}
  5666. Procedure TPushTokenIdTypeios.Setapns_device_token(AIndex : Integer; const AValue : String);
  5667. begin
  5668. If (Fapns_device_token=AValue) then exit;
  5669. Fapns_device_token:=AValue;
  5670. MarkPropertyChanged(AIndex);
  5671. end;
  5672. Procedure TPushTokenIdTypeios.Setapns_environment(AIndex : Integer; const AValue : String);
  5673. begin
  5674. If (Fapns_environment=AValue) then exit;
  5675. Fapns_environment:=AValue;
  5676. MarkPropertyChanged(AIndex);
  5677. end;
  5678. { --------------------------------------------------------------------
  5679. TPushTokenId
  5680. --------------------------------------------------------------------}
  5681. Procedure TPushTokenId.Setios(AIndex : Integer; const AValue : TPushTokenIdTypeios);
  5682. begin
  5683. If (Fios=AValue) then exit;
  5684. Fios:=AValue;
  5685. MarkPropertyChanged(AIndex);
  5686. end;
  5687. Procedure TPushTokenId.Setkind(AIndex : Integer; const AValue : String);
  5688. begin
  5689. If (Fkind=AValue) then exit;
  5690. Fkind:=AValue;
  5691. MarkPropertyChanged(AIndex);
  5692. end;
  5693. { --------------------------------------------------------------------
  5694. TQuest
  5695. --------------------------------------------------------------------}
  5696. Procedure TQuest.SetacceptedTimestampMillis(AIndex : Integer; const AValue : String);
  5697. begin
  5698. If (FacceptedTimestampMillis=AValue) then exit;
  5699. FacceptedTimestampMillis:=AValue;
  5700. MarkPropertyChanged(AIndex);
  5701. end;
  5702. Procedure TQuest.SetapplicationId(AIndex : Integer; const AValue : String);
  5703. begin
  5704. If (FapplicationId=AValue) then exit;
  5705. FapplicationId:=AValue;
  5706. MarkPropertyChanged(AIndex);
  5707. end;
  5708. Procedure TQuest.SetbannerUrl(AIndex : Integer; const AValue : String);
  5709. begin
  5710. If (FbannerUrl=AValue) then exit;
  5711. FbannerUrl:=AValue;
  5712. MarkPropertyChanged(AIndex);
  5713. end;
  5714. Procedure TQuest.Setdescription(AIndex : Integer; const AValue : String);
  5715. begin
  5716. If (Fdescription=AValue) then exit;
  5717. Fdescription:=AValue;
  5718. MarkPropertyChanged(AIndex);
  5719. end;
  5720. Procedure TQuest.SetendTimestampMillis(AIndex : Integer; const AValue : String);
  5721. begin
  5722. If (FendTimestampMillis=AValue) then exit;
  5723. FendTimestampMillis:=AValue;
  5724. MarkPropertyChanged(AIndex);
  5725. end;
  5726. Procedure TQuest.SeticonUrl(AIndex : Integer; const AValue : String);
  5727. begin
  5728. If (FiconUrl=AValue) then exit;
  5729. FiconUrl:=AValue;
  5730. MarkPropertyChanged(AIndex);
  5731. end;
  5732. Procedure TQuest.Setid(AIndex : Integer; const AValue : String);
  5733. begin
  5734. If (Fid=AValue) then exit;
  5735. Fid:=AValue;
  5736. MarkPropertyChanged(AIndex);
  5737. end;
  5738. Procedure TQuest.SetisDefaultBannerUrl(AIndex : Integer; const AValue : boolean);
  5739. begin
  5740. If (FisDefaultBannerUrl=AValue) then exit;
  5741. FisDefaultBannerUrl:=AValue;
  5742. MarkPropertyChanged(AIndex);
  5743. end;
  5744. Procedure TQuest.SetisDefaultIconUrl(AIndex : Integer; const AValue : boolean);
  5745. begin
  5746. If (FisDefaultIconUrl=AValue) then exit;
  5747. FisDefaultIconUrl:=AValue;
  5748. MarkPropertyChanged(AIndex);
  5749. end;
  5750. Procedure TQuest.Setkind(AIndex : Integer; const AValue : String);
  5751. begin
  5752. If (Fkind=AValue) then exit;
  5753. Fkind:=AValue;
  5754. MarkPropertyChanged(AIndex);
  5755. end;
  5756. Procedure TQuest.SetlastUpdatedTimestampMillis(AIndex : Integer; const AValue : String);
  5757. begin
  5758. If (FlastUpdatedTimestampMillis=AValue) then exit;
  5759. FlastUpdatedTimestampMillis:=AValue;
  5760. MarkPropertyChanged(AIndex);
  5761. end;
  5762. Procedure TQuest.Setmilestones(AIndex : Integer; const AValue : TQuestTypemilestonesArray);
  5763. begin
  5764. If (Fmilestones=AValue) then exit;
  5765. Fmilestones:=AValue;
  5766. MarkPropertyChanged(AIndex);
  5767. end;
  5768. Procedure TQuest.Setname(AIndex : Integer; const AValue : String);
  5769. begin
  5770. If (Fname=AValue) then exit;
  5771. Fname:=AValue;
  5772. MarkPropertyChanged(AIndex);
  5773. end;
  5774. Procedure TQuest.SetnotifyTimestampMillis(AIndex : Integer; const AValue : String);
  5775. begin
  5776. If (FnotifyTimestampMillis=AValue) then exit;
  5777. FnotifyTimestampMillis:=AValue;
  5778. MarkPropertyChanged(AIndex);
  5779. end;
  5780. Procedure TQuest.SetstartTimestampMillis(AIndex : Integer; const AValue : String);
  5781. begin
  5782. If (FstartTimestampMillis=AValue) then exit;
  5783. FstartTimestampMillis:=AValue;
  5784. MarkPropertyChanged(AIndex);
  5785. end;
  5786. Procedure TQuest.Setstate(AIndex : Integer; const AValue : String);
  5787. begin
  5788. If (Fstate=AValue) then exit;
  5789. Fstate:=AValue;
  5790. MarkPropertyChanged(AIndex);
  5791. end;
  5792. //2.6.4. bug workaround
  5793. {$IFDEF VER2_6}
  5794. Procedure TQuest.SetArrayLength(Const AName : String; ALength : Longint);
  5795. begin
  5796. Case AName of
  5797. 'milestones' : SetLength(Fmilestones,ALength);
  5798. else
  5799. Inherited SetArrayLength(AName,ALength);
  5800. end;
  5801. end;
  5802. {$ENDIF VER2_6}
  5803. { --------------------------------------------------------------------
  5804. TQuestContribution
  5805. --------------------------------------------------------------------}
  5806. Procedure TQuestContribution.SetformattedValue(AIndex : Integer; const AValue : String);
  5807. begin
  5808. If (FformattedValue=AValue) then exit;
  5809. FformattedValue:=AValue;
  5810. MarkPropertyChanged(AIndex);
  5811. end;
  5812. Procedure TQuestContribution.Setkind(AIndex : Integer; const AValue : String);
  5813. begin
  5814. If (Fkind=AValue) then exit;
  5815. Fkind:=AValue;
  5816. MarkPropertyChanged(AIndex);
  5817. end;
  5818. Procedure TQuestContribution.Setvalue(AIndex : Integer; const AValue : String);
  5819. begin
  5820. If (Fvalue=AValue) then exit;
  5821. Fvalue:=AValue;
  5822. MarkPropertyChanged(AIndex);
  5823. end;
  5824. { --------------------------------------------------------------------
  5825. TQuestCriterion
  5826. --------------------------------------------------------------------}
  5827. Procedure TQuestCriterion.SetcompletionContribution(AIndex : Integer; const AValue : TQuestContribution);
  5828. begin
  5829. If (FcompletionContribution=AValue) then exit;
  5830. FcompletionContribution:=AValue;
  5831. MarkPropertyChanged(AIndex);
  5832. end;
  5833. Procedure TQuestCriterion.SetcurrentContribution(AIndex : Integer; const AValue : TQuestContribution);
  5834. begin
  5835. If (FcurrentContribution=AValue) then exit;
  5836. FcurrentContribution:=AValue;
  5837. MarkPropertyChanged(AIndex);
  5838. end;
  5839. Procedure TQuestCriterion.SeteventId(AIndex : Integer; const AValue : String);
  5840. begin
  5841. If (FeventId=AValue) then exit;
  5842. FeventId:=AValue;
  5843. MarkPropertyChanged(AIndex);
  5844. end;
  5845. Procedure TQuestCriterion.SetinitialPlayerProgress(AIndex : Integer; const AValue : TQuestContribution);
  5846. begin
  5847. If (FinitialPlayerProgress=AValue) then exit;
  5848. FinitialPlayerProgress:=AValue;
  5849. MarkPropertyChanged(AIndex);
  5850. end;
  5851. Procedure TQuestCriterion.Setkind(AIndex : Integer; const AValue : String);
  5852. begin
  5853. If (Fkind=AValue) then exit;
  5854. Fkind:=AValue;
  5855. MarkPropertyChanged(AIndex);
  5856. end;
  5857. { --------------------------------------------------------------------
  5858. TQuestListResponse
  5859. --------------------------------------------------------------------}
  5860. Procedure TQuestListResponse.Setitems(AIndex : Integer; const AValue : TQuestListResponseTypeitemsArray);
  5861. begin
  5862. If (Fitems=AValue) then exit;
  5863. Fitems:=AValue;
  5864. MarkPropertyChanged(AIndex);
  5865. end;
  5866. Procedure TQuestListResponse.Setkind(AIndex : Integer; const AValue : String);
  5867. begin
  5868. If (Fkind=AValue) then exit;
  5869. Fkind:=AValue;
  5870. MarkPropertyChanged(AIndex);
  5871. end;
  5872. Procedure TQuestListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  5873. begin
  5874. If (FnextPageToken=AValue) then exit;
  5875. FnextPageToken:=AValue;
  5876. MarkPropertyChanged(AIndex);
  5877. end;
  5878. //2.6.4. bug workaround
  5879. {$IFDEF VER2_6}
  5880. Procedure TQuestListResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5881. begin
  5882. Case AName of
  5883. 'items' : SetLength(Fitems,ALength);
  5884. else
  5885. Inherited SetArrayLength(AName,ALength);
  5886. end;
  5887. end;
  5888. {$ENDIF VER2_6}
  5889. { --------------------------------------------------------------------
  5890. TQuestMilestone
  5891. --------------------------------------------------------------------}
  5892. Procedure TQuestMilestone.SetcompletionRewardData(AIndex : Integer; const AValue : String);
  5893. begin
  5894. If (FcompletionRewardData=AValue) then exit;
  5895. FcompletionRewardData:=AValue;
  5896. MarkPropertyChanged(AIndex);
  5897. end;
  5898. Procedure TQuestMilestone.Setcriteria(AIndex : Integer; const AValue : TQuestMilestoneTypecriteriaArray);
  5899. begin
  5900. If (Fcriteria=AValue) then exit;
  5901. Fcriteria:=AValue;
  5902. MarkPropertyChanged(AIndex);
  5903. end;
  5904. Procedure TQuestMilestone.Setid(AIndex : Integer; const AValue : String);
  5905. begin
  5906. If (Fid=AValue) then exit;
  5907. Fid:=AValue;
  5908. MarkPropertyChanged(AIndex);
  5909. end;
  5910. Procedure TQuestMilestone.Setkind(AIndex : Integer; const AValue : String);
  5911. begin
  5912. If (Fkind=AValue) then exit;
  5913. Fkind:=AValue;
  5914. MarkPropertyChanged(AIndex);
  5915. end;
  5916. Procedure TQuestMilestone.Setstate(AIndex : Integer; const AValue : String);
  5917. begin
  5918. If (Fstate=AValue) then exit;
  5919. Fstate:=AValue;
  5920. MarkPropertyChanged(AIndex);
  5921. end;
  5922. //2.6.4. bug workaround
  5923. {$IFDEF VER2_6}
  5924. Procedure TQuestMilestone.SetArrayLength(Const AName : String; ALength : Longint);
  5925. begin
  5926. Case AName of
  5927. 'criteria' : SetLength(Fcriteria,ALength);
  5928. else
  5929. Inherited SetArrayLength(AName,ALength);
  5930. end;
  5931. end;
  5932. {$ENDIF VER2_6}
  5933. { --------------------------------------------------------------------
  5934. TRevisionCheckResponse
  5935. --------------------------------------------------------------------}
  5936. Procedure TRevisionCheckResponse.SetapiVersion(AIndex : Integer; const AValue : String);
  5937. begin
  5938. If (FapiVersion=AValue) then exit;
  5939. FapiVersion:=AValue;
  5940. MarkPropertyChanged(AIndex);
  5941. end;
  5942. Procedure TRevisionCheckResponse.Setkind(AIndex : Integer; const AValue : String);
  5943. begin
  5944. If (Fkind=AValue) then exit;
  5945. Fkind:=AValue;
  5946. MarkPropertyChanged(AIndex);
  5947. end;
  5948. Procedure TRevisionCheckResponse.SetrevisionStatus(AIndex : Integer; const AValue : String);
  5949. begin
  5950. If (FrevisionStatus=AValue) then exit;
  5951. FrevisionStatus:=AValue;
  5952. MarkPropertyChanged(AIndex);
  5953. end;
  5954. { --------------------------------------------------------------------
  5955. TRoom
  5956. --------------------------------------------------------------------}
  5957. Procedure TRoom.SetapplicationId(AIndex : Integer; const AValue : String);
  5958. begin
  5959. If (FapplicationId=AValue) then exit;
  5960. FapplicationId:=AValue;
  5961. MarkPropertyChanged(AIndex);
  5962. end;
  5963. Procedure TRoom.SetautoMatchingCriteria(AIndex : Integer; const AValue : TRoomAutoMatchingCriteria);
  5964. begin
  5965. If (FautoMatchingCriteria=AValue) then exit;
  5966. FautoMatchingCriteria:=AValue;
  5967. MarkPropertyChanged(AIndex);
  5968. end;
  5969. Procedure TRoom.SetautoMatchingStatus(AIndex : Integer; const AValue : TRoomAutoMatchStatus);
  5970. begin
  5971. If (FautoMatchingStatus=AValue) then exit;
  5972. FautoMatchingStatus:=AValue;
  5973. MarkPropertyChanged(AIndex);
  5974. end;
  5975. Procedure TRoom.SetcreationDetails(AIndex : Integer; const AValue : TRoomModification);
  5976. begin
  5977. If (FcreationDetails=AValue) then exit;
  5978. FcreationDetails:=AValue;
  5979. MarkPropertyChanged(AIndex);
  5980. end;
  5981. Procedure TRoom.Setdescription(AIndex : Integer; const AValue : String);
  5982. begin
  5983. If (Fdescription=AValue) then exit;
  5984. Fdescription:=AValue;
  5985. MarkPropertyChanged(AIndex);
  5986. end;
  5987. Procedure TRoom.SetinviterId(AIndex : Integer; const AValue : String);
  5988. begin
  5989. If (FinviterId=AValue) then exit;
  5990. FinviterId:=AValue;
  5991. MarkPropertyChanged(AIndex);
  5992. end;
  5993. Procedure TRoom.Setkind(AIndex : Integer; const AValue : String);
  5994. begin
  5995. If (Fkind=AValue) then exit;
  5996. Fkind:=AValue;
  5997. MarkPropertyChanged(AIndex);
  5998. end;
  5999. Procedure TRoom.SetlastUpdateDetails(AIndex : Integer; const AValue : TRoomModification);
  6000. begin
  6001. If (FlastUpdateDetails=AValue) then exit;
  6002. FlastUpdateDetails:=AValue;
  6003. MarkPropertyChanged(AIndex);
  6004. end;
  6005. Procedure TRoom.Setparticipants(AIndex : Integer; const AValue : TRoomTypeparticipantsArray);
  6006. begin
  6007. If (Fparticipants=AValue) then exit;
  6008. Fparticipants:=AValue;
  6009. MarkPropertyChanged(AIndex);
  6010. end;
  6011. Procedure TRoom.SetroomId(AIndex : Integer; const AValue : String);
  6012. begin
  6013. If (FroomId=AValue) then exit;
  6014. FroomId:=AValue;
  6015. MarkPropertyChanged(AIndex);
  6016. end;
  6017. Procedure TRoom.SetroomStatusVersion(AIndex : Integer; const AValue : integer);
  6018. begin
  6019. If (FroomStatusVersion=AValue) then exit;
  6020. FroomStatusVersion:=AValue;
  6021. MarkPropertyChanged(AIndex);
  6022. end;
  6023. Procedure TRoom.Setstatus(AIndex : Integer; const AValue : String);
  6024. begin
  6025. If (Fstatus=AValue) then exit;
  6026. Fstatus:=AValue;
  6027. MarkPropertyChanged(AIndex);
  6028. end;
  6029. Procedure TRoom.Setvariant(AIndex : Integer; const AValue : integer);
  6030. begin
  6031. If (Fvariant=AValue) then exit;
  6032. Fvariant:=AValue;
  6033. MarkPropertyChanged(AIndex);
  6034. end;
  6035. //2.6.4. bug workaround
  6036. {$IFDEF VER2_6}
  6037. Procedure TRoom.SetArrayLength(Const AName : String; ALength : Longint);
  6038. begin
  6039. Case AName of
  6040. 'participants' : SetLength(Fparticipants,ALength);
  6041. else
  6042. Inherited SetArrayLength(AName,ALength);
  6043. end;
  6044. end;
  6045. {$ENDIF VER2_6}
  6046. { --------------------------------------------------------------------
  6047. TRoomAutoMatchStatus
  6048. --------------------------------------------------------------------}
  6049. Procedure TRoomAutoMatchStatus.Setkind(AIndex : Integer; const AValue : String);
  6050. begin
  6051. If (Fkind=AValue) then exit;
  6052. Fkind:=AValue;
  6053. MarkPropertyChanged(AIndex);
  6054. end;
  6055. Procedure TRoomAutoMatchStatus.SetwaitEstimateSeconds(AIndex : Integer; const AValue : integer);
  6056. begin
  6057. If (FwaitEstimateSeconds=AValue) then exit;
  6058. FwaitEstimateSeconds:=AValue;
  6059. MarkPropertyChanged(AIndex);
  6060. end;
  6061. { --------------------------------------------------------------------
  6062. TRoomAutoMatchingCriteria
  6063. --------------------------------------------------------------------}
  6064. Procedure TRoomAutoMatchingCriteria.SetexclusiveBitmask(AIndex : Integer; const AValue : String);
  6065. begin
  6066. If (FexclusiveBitmask=AValue) then exit;
  6067. FexclusiveBitmask:=AValue;
  6068. MarkPropertyChanged(AIndex);
  6069. end;
  6070. Procedure TRoomAutoMatchingCriteria.Setkind(AIndex : Integer; const AValue : String);
  6071. begin
  6072. If (Fkind=AValue) then exit;
  6073. Fkind:=AValue;
  6074. MarkPropertyChanged(AIndex);
  6075. end;
  6076. Procedure TRoomAutoMatchingCriteria.SetmaxAutoMatchingPlayers(AIndex : Integer; const AValue : integer);
  6077. begin
  6078. If (FmaxAutoMatchingPlayers=AValue) then exit;
  6079. FmaxAutoMatchingPlayers:=AValue;
  6080. MarkPropertyChanged(AIndex);
  6081. end;
  6082. Procedure TRoomAutoMatchingCriteria.SetminAutoMatchingPlayers(AIndex : Integer; const AValue : integer);
  6083. begin
  6084. If (FminAutoMatchingPlayers=AValue) then exit;
  6085. FminAutoMatchingPlayers:=AValue;
  6086. MarkPropertyChanged(AIndex);
  6087. end;
  6088. { --------------------------------------------------------------------
  6089. TRoomClientAddress
  6090. --------------------------------------------------------------------}
  6091. Procedure TRoomClientAddress.Setkind(AIndex : Integer; const AValue : String);
  6092. begin
  6093. If (Fkind=AValue) then exit;
  6094. Fkind:=AValue;
  6095. MarkPropertyChanged(AIndex);
  6096. end;
  6097. Procedure TRoomClientAddress.SetxmppAddress(AIndex : Integer; const AValue : String);
  6098. begin
  6099. If (FxmppAddress=AValue) then exit;
  6100. FxmppAddress:=AValue;
  6101. MarkPropertyChanged(AIndex);
  6102. end;
  6103. { --------------------------------------------------------------------
  6104. TRoomCreateRequest
  6105. --------------------------------------------------------------------}
  6106. Procedure TRoomCreateRequest.SetautoMatchingCriteria(AIndex : Integer; const AValue : TRoomAutoMatchingCriteria);
  6107. begin
  6108. If (FautoMatchingCriteria=AValue) then exit;
  6109. FautoMatchingCriteria:=AValue;
  6110. MarkPropertyChanged(AIndex);
  6111. end;
  6112. Procedure TRoomCreateRequest.Setcapabilities(AIndex : Integer; const AValue : TStringArray);
  6113. begin
  6114. If (Fcapabilities=AValue) then exit;
  6115. Fcapabilities:=AValue;
  6116. MarkPropertyChanged(AIndex);
  6117. end;
  6118. Procedure TRoomCreateRequest.SetclientAddress(AIndex : Integer; const AValue : TRoomClientAddress);
  6119. begin
  6120. If (FclientAddress=AValue) then exit;
  6121. FclientAddress:=AValue;
  6122. MarkPropertyChanged(AIndex);
  6123. end;
  6124. Procedure TRoomCreateRequest.SetinvitedPlayerIds(AIndex : Integer; const AValue : TStringArray);
  6125. begin
  6126. If (FinvitedPlayerIds=AValue) then exit;
  6127. FinvitedPlayerIds:=AValue;
  6128. MarkPropertyChanged(AIndex);
  6129. end;
  6130. Procedure TRoomCreateRequest.Setkind(AIndex : Integer; const AValue : String);
  6131. begin
  6132. If (Fkind=AValue) then exit;
  6133. Fkind:=AValue;
  6134. MarkPropertyChanged(AIndex);
  6135. end;
  6136. Procedure TRoomCreateRequest.SetnetworkDiagnostics(AIndex : Integer; const AValue : TNetworkDiagnostics);
  6137. begin
  6138. If (FnetworkDiagnostics=AValue) then exit;
  6139. FnetworkDiagnostics:=AValue;
  6140. MarkPropertyChanged(AIndex);
  6141. end;
  6142. Procedure TRoomCreateRequest.SetrequestId(AIndex : Integer; const AValue : String);
  6143. begin
  6144. If (FrequestId=AValue) then exit;
  6145. FrequestId:=AValue;
  6146. MarkPropertyChanged(AIndex);
  6147. end;
  6148. Procedure TRoomCreateRequest.Setvariant(AIndex : Integer; const AValue : integer);
  6149. begin
  6150. If (Fvariant=AValue) then exit;
  6151. Fvariant:=AValue;
  6152. MarkPropertyChanged(AIndex);
  6153. end;
  6154. //2.6.4. bug workaround
  6155. {$IFDEF VER2_6}
  6156. Procedure TRoomCreateRequest.SetArrayLength(Const AName : String; ALength : Longint);
  6157. begin
  6158. Case AName of
  6159. 'capabilities' : SetLength(Fcapabilities,ALength);
  6160. 'invitedplayerids' : SetLength(FinvitedPlayerIds,ALength);
  6161. else
  6162. Inherited SetArrayLength(AName,ALength);
  6163. end;
  6164. end;
  6165. {$ENDIF VER2_6}
  6166. { --------------------------------------------------------------------
  6167. TRoomJoinRequest
  6168. --------------------------------------------------------------------}
  6169. Procedure TRoomJoinRequest.Setcapabilities(AIndex : Integer; const AValue : TStringArray);
  6170. begin
  6171. If (Fcapabilities=AValue) then exit;
  6172. Fcapabilities:=AValue;
  6173. MarkPropertyChanged(AIndex);
  6174. end;
  6175. Procedure TRoomJoinRequest.SetclientAddress(AIndex : Integer; const AValue : TRoomClientAddress);
  6176. begin
  6177. If (FclientAddress=AValue) then exit;
  6178. FclientAddress:=AValue;
  6179. MarkPropertyChanged(AIndex);
  6180. end;
  6181. Procedure TRoomJoinRequest.Setkind(AIndex : Integer; const AValue : String);
  6182. begin
  6183. If (Fkind=AValue) then exit;
  6184. Fkind:=AValue;
  6185. MarkPropertyChanged(AIndex);
  6186. end;
  6187. Procedure TRoomJoinRequest.SetnetworkDiagnostics(AIndex : Integer; const AValue : TNetworkDiagnostics);
  6188. begin
  6189. If (FnetworkDiagnostics=AValue) then exit;
  6190. FnetworkDiagnostics:=AValue;
  6191. MarkPropertyChanged(AIndex);
  6192. end;
  6193. //2.6.4. bug workaround
  6194. {$IFDEF VER2_6}
  6195. Procedure TRoomJoinRequest.SetArrayLength(Const AName : String; ALength : Longint);
  6196. begin
  6197. Case AName of
  6198. 'capabilities' : SetLength(Fcapabilities,ALength);
  6199. else
  6200. Inherited SetArrayLength(AName,ALength);
  6201. end;
  6202. end;
  6203. {$ENDIF VER2_6}
  6204. { --------------------------------------------------------------------
  6205. TRoomLeaveDiagnostics
  6206. --------------------------------------------------------------------}
  6207. Procedure TRoomLeaveDiagnostics.SetandroidNetworkSubtype(AIndex : Integer; const AValue : integer);
  6208. begin
  6209. If (FandroidNetworkSubtype=AValue) then exit;
  6210. FandroidNetworkSubtype:=AValue;
  6211. MarkPropertyChanged(AIndex);
  6212. end;
  6213. Procedure TRoomLeaveDiagnostics.SetandroidNetworkType(AIndex : Integer; const AValue : integer);
  6214. begin
  6215. If (FandroidNetworkType=AValue) then exit;
  6216. FandroidNetworkType:=AValue;
  6217. MarkPropertyChanged(AIndex);
  6218. end;
  6219. Procedure TRoomLeaveDiagnostics.SetiosNetworkType(AIndex : Integer; const AValue : integer);
  6220. begin
  6221. If (FiosNetworkType=AValue) then exit;
  6222. FiosNetworkType:=AValue;
  6223. MarkPropertyChanged(AIndex);
  6224. end;
  6225. Procedure TRoomLeaveDiagnostics.Setkind(AIndex : Integer; const AValue : String);
  6226. begin
  6227. If (Fkind=AValue) then exit;
  6228. Fkind:=AValue;
  6229. MarkPropertyChanged(AIndex);
  6230. end;
  6231. Procedure TRoomLeaveDiagnostics.SetnetworkOperatorCode(AIndex : Integer; const AValue : String);
  6232. begin
  6233. If (FnetworkOperatorCode=AValue) then exit;
  6234. FnetworkOperatorCode:=AValue;
  6235. MarkPropertyChanged(AIndex);
  6236. end;
  6237. Procedure TRoomLeaveDiagnostics.SetnetworkOperatorName(AIndex : Integer; const AValue : String);
  6238. begin
  6239. If (FnetworkOperatorName=AValue) then exit;
  6240. FnetworkOperatorName:=AValue;
  6241. MarkPropertyChanged(AIndex);
  6242. end;
  6243. Procedure TRoomLeaveDiagnostics.SetpeerSession(AIndex : Integer; const AValue : TRoomLeaveDiagnosticsTypepeerSessionArray);
  6244. begin
  6245. If (FpeerSession=AValue) then exit;
  6246. FpeerSession:=AValue;
  6247. MarkPropertyChanged(AIndex);
  6248. end;
  6249. Procedure TRoomLeaveDiagnostics.SetsocketsUsed(AIndex : Integer; const AValue : boolean);
  6250. begin
  6251. If (FsocketsUsed=AValue) then exit;
  6252. FsocketsUsed:=AValue;
  6253. MarkPropertyChanged(AIndex);
  6254. end;
  6255. //2.6.4. bug workaround
  6256. {$IFDEF VER2_6}
  6257. Procedure TRoomLeaveDiagnostics.SetArrayLength(Const AName : String; ALength : Longint);
  6258. begin
  6259. Case AName of
  6260. 'peersession' : SetLength(FpeerSession,ALength);
  6261. else
  6262. Inherited SetArrayLength(AName,ALength);
  6263. end;
  6264. end;
  6265. {$ENDIF VER2_6}
  6266. { --------------------------------------------------------------------
  6267. TRoomLeaveRequest
  6268. --------------------------------------------------------------------}
  6269. Procedure TRoomLeaveRequest.Setkind(AIndex : Integer; const AValue : String);
  6270. begin
  6271. If (Fkind=AValue) then exit;
  6272. Fkind:=AValue;
  6273. MarkPropertyChanged(AIndex);
  6274. end;
  6275. Procedure TRoomLeaveRequest.SetleaveDiagnostics(AIndex : Integer; const AValue : TRoomLeaveDiagnostics);
  6276. begin
  6277. If (FleaveDiagnostics=AValue) then exit;
  6278. FleaveDiagnostics:=AValue;
  6279. MarkPropertyChanged(AIndex);
  6280. end;
  6281. Procedure TRoomLeaveRequest.Setreason(AIndex : Integer; const AValue : String);
  6282. begin
  6283. If (Freason=AValue) then exit;
  6284. Freason:=AValue;
  6285. MarkPropertyChanged(AIndex);
  6286. end;
  6287. { --------------------------------------------------------------------
  6288. TRoomList
  6289. --------------------------------------------------------------------}
  6290. Procedure TRoomList.Setitems(AIndex : Integer; const AValue : TRoomListTypeitemsArray);
  6291. begin
  6292. If (Fitems=AValue) then exit;
  6293. Fitems:=AValue;
  6294. MarkPropertyChanged(AIndex);
  6295. end;
  6296. Procedure TRoomList.Setkind(AIndex : Integer; const AValue : String);
  6297. begin
  6298. If (Fkind=AValue) then exit;
  6299. Fkind:=AValue;
  6300. MarkPropertyChanged(AIndex);
  6301. end;
  6302. Procedure TRoomList.SetnextPageToken(AIndex : Integer; const AValue : String);
  6303. begin
  6304. If (FnextPageToken=AValue) then exit;
  6305. FnextPageToken:=AValue;
  6306. MarkPropertyChanged(AIndex);
  6307. end;
  6308. //2.6.4. bug workaround
  6309. {$IFDEF VER2_6}
  6310. Procedure TRoomList.SetArrayLength(Const AName : String; ALength : Longint);
  6311. begin
  6312. Case AName of
  6313. 'items' : SetLength(Fitems,ALength);
  6314. else
  6315. Inherited SetArrayLength(AName,ALength);
  6316. end;
  6317. end;
  6318. {$ENDIF VER2_6}
  6319. { --------------------------------------------------------------------
  6320. TRoomModification
  6321. --------------------------------------------------------------------}
  6322. Procedure TRoomModification.Setkind(AIndex : Integer; const AValue : String);
  6323. begin
  6324. If (Fkind=AValue) then exit;
  6325. Fkind:=AValue;
  6326. MarkPropertyChanged(AIndex);
  6327. end;
  6328. Procedure TRoomModification.SetmodifiedTimestampMillis(AIndex : Integer; const AValue : String);
  6329. begin
  6330. If (FmodifiedTimestampMillis=AValue) then exit;
  6331. FmodifiedTimestampMillis:=AValue;
  6332. MarkPropertyChanged(AIndex);
  6333. end;
  6334. Procedure TRoomModification.SetparticipantId(AIndex : Integer; const AValue : String);
  6335. begin
  6336. If (FparticipantId=AValue) then exit;
  6337. FparticipantId:=AValue;
  6338. MarkPropertyChanged(AIndex);
  6339. end;
  6340. { --------------------------------------------------------------------
  6341. TRoomP2PStatus
  6342. --------------------------------------------------------------------}
  6343. Procedure TRoomP2PStatus.SetconnectionSetupLatencyMillis(AIndex : Integer; const AValue : integer);
  6344. begin
  6345. If (FconnectionSetupLatencyMillis=AValue) then exit;
  6346. FconnectionSetupLatencyMillis:=AValue;
  6347. MarkPropertyChanged(AIndex);
  6348. end;
  6349. Procedure TRoomP2PStatus.Seterror(AIndex : Integer; const AValue : String);
  6350. begin
  6351. If (Ferror=AValue) then exit;
  6352. Ferror:=AValue;
  6353. MarkPropertyChanged(AIndex);
  6354. end;
  6355. Procedure TRoomP2PStatus.Seterror_reason(AIndex : Integer; const AValue : String);
  6356. begin
  6357. If (Ferror_reason=AValue) then exit;
  6358. Ferror_reason:=AValue;
  6359. MarkPropertyChanged(AIndex);
  6360. end;
  6361. Procedure TRoomP2PStatus.Setkind(AIndex : Integer; const AValue : String);
  6362. begin
  6363. If (Fkind=AValue) then exit;
  6364. Fkind:=AValue;
  6365. MarkPropertyChanged(AIndex);
  6366. end;
  6367. Procedure TRoomP2PStatus.SetparticipantId(AIndex : Integer; const AValue : String);
  6368. begin
  6369. If (FparticipantId=AValue) then exit;
  6370. FparticipantId:=AValue;
  6371. MarkPropertyChanged(AIndex);
  6372. end;
  6373. Procedure TRoomP2PStatus.Setstatus(AIndex : Integer; const AValue : String);
  6374. begin
  6375. If (Fstatus=AValue) then exit;
  6376. Fstatus:=AValue;
  6377. MarkPropertyChanged(AIndex);
  6378. end;
  6379. Procedure TRoomP2PStatus.SetunreliableRoundtripLatencyMillis(AIndex : Integer; const AValue : integer);
  6380. begin
  6381. If (FunreliableRoundtripLatencyMillis=AValue) then exit;
  6382. FunreliableRoundtripLatencyMillis:=AValue;
  6383. MarkPropertyChanged(AIndex);
  6384. end;
  6385. { --------------------------------------------------------------------
  6386. TRoomP2PStatuses
  6387. --------------------------------------------------------------------}
  6388. Procedure TRoomP2PStatuses.Setkind(AIndex : Integer; const AValue : String);
  6389. begin
  6390. If (Fkind=AValue) then exit;
  6391. Fkind:=AValue;
  6392. MarkPropertyChanged(AIndex);
  6393. end;
  6394. Procedure TRoomP2PStatuses.Setupdates(AIndex : Integer; const AValue : TRoomP2PStatusesTypeupdatesArray);
  6395. begin
  6396. If (Fupdates=AValue) then exit;
  6397. Fupdates:=AValue;
  6398. MarkPropertyChanged(AIndex);
  6399. end;
  6400. //2.6.4. bug workaround
  6401. {$IFDEF VER2_6}
  6402. Procedure TRoomP2PStatuses.SetArrayLength(Const AName : String; ALength : Longint);
  6403. begin
  6404. Case AName of
  6405. 'updates' : SetLength(Fupdates,ALength);
  6406. else
  6407. Inherited SetArrayLength(AName,ALength);
  6408. end;
  6409. end;
  6410. {$ENDIF VER2_6}
  6411. { --------------------------------------------------------------------
  6412. TRoomParticipant
  6413. --------------------------------------------------------------------}
  6414. Procedure TRoomParticipant.SetautoMatched(AIndex : Integer; const AValue : boolean);
  6415. begin
  6416. If (FautoMatched=AValue) then exit;
  6417. FautoMatched:=AValue;
  6418. MarkPropertyChanged(AIndex);
  6419. end;
  6420. Procedure TRoomParticipant.SetautoMatchedPlayer(AIndex : Integer; const AValue : TAnonymousPlayer);
  6421. begin
  6422. If (FautoMatchedPlayer=AValue) then exit;
  6423. FautoMatchedPlayer:=AValue;
  6424. MarkPropertyChanged(AIndex);
  6425. end;
  6426. Procedure TRoomParticipant.Setcapabilities(AIndex : Integer; const AValue : TStringArray);
  6427. begin
  6428. If (Fcapabilities=AValue) then exit;
  6429. Fcapabilities:=AValue;
  6430. MarkPropertyChanged(AIndex);
  6431. end;
  6432. Procedure TRoomParticipant.SetclientAddress(AIndex : Integer; const AValue : TRoomClientAddress);
  6433. begin
  6434. If (FclientAddress=AValue) then exit;
  6435. FclientAddress:=AValue;
  6436. MarkPropertyChanged(AIndex);
  6437. end;
  6438. Procedure TRoomParticipant.Setconnected(AIndex : Integer; const AValue : boolean);
  6439. begin
  6440. If (Fconnected=AValue) then exit;
  6441. Fconnected:=AValue;
  6442. MarkPropertyChanged(AIndex);
  6443. end;
  6444. Procedure TRoomParticipant.Setid(AIndex : Integer; const AValue : String);
  6445. begin
  6446. If (Fid=AValue) then exit;
  6447. Fid:=AValue;
  6448. MarkPropertyChanged(AIndex);
  6449. end;
  6450. Procedure TRoomParticipant.Setkind(AIndex : Integer; const AValue : String);
  6451. begin
  6452. If (Fkind=AValue) then exit;
  6453. Fkind:=AValue;
  6454. MarkPropertyChanged(AIndex);
  6455. end;
  6456. Procedure TRoomParticipant.SetleaveReason(AIndex : Integer; const AValue : String);
  6457. begin
  6458. If (FleaveReason=AValue) then exit;
  6459. FleaveReason:=AValue;
  6460. MarkPropertyChanged(AIndex);
  6461. end;
  6462. Procedure TRoomParticipant.Setplayer(AIndex : Integer; const AValue : TPlayer);
  6463. begin
  6464. If (Fplayer=AValue) then exit;
  6465. Fplayer:=AValue;
  6466. MarkPropertyChanged(AIndex);
  6467. end;
  6468. Procedure TRoomParticipant.Setstatus(AIndex : Integer; const AValue : String);
  6469. begin
  6470. If (Fstatus=AValue) then exit;
  6471. Fstatus:=AValue;
  6472. MarkPropertyChanged(AIndex);
  6473. end;
  6474. //2.6.4. bug workaround
  6475. {$IFDEF VER2_6}
  6476. Procedure TRoomParticipant.SetArrayLength(Const AName : String; ALength : Longint);
  6477. begin
  6478. Case AName of
  6479. 'capabilities' : SetLength(Fcapabilities,ALength);
  6480. else
  6481. Inherited SetArrayLength(AName,ALength);
  6482. end;
  6483. end;
  6484. {$ENDIF VER2_6}
  6485. { --------------------------------------------------------------------
  6486. TRoomStatus
  6487. --------------------------------------------------------------------}
  6488. Procedure TRoomStatus.SetautoMatchingStatus(AIndex : Integer; const AValue : TRoomAutoMatchStatus);
  6489. begin
  6490. If (FautoMatchingStatus=AValue) then exit;
  6491. FautoMatchingStatus:=AValue;
  6492. MarkPropertyChanged(AIndex);
  6493. end;
  6494. Procedure TRoomStatus.Setkind(AIndex : Integer; const AValue : String);
  6495. begin
  6496. If (Fkind=AValue) then exit;
  6497. Fkind:=AValue;
  6498. MarkPropertyChanged(AIndex);
  6499. end;
  6500. Procedure TRoomStatus.Setparticipants(AIndex : Integer; const AValue : TRoomStatusTypeparticipantsArray);
  6501. begin
  6502. If (Fparticipants=AValue) then exit;
  6503. Fparticipants:=AValue;
  6504. MarkPropertyChanged(AIndex);
  6505. end;
  6506. Procedure TRoomStatus.SetroomId(AIndex : Integer; const AValue : String);
  6507. begin
  6508. If (FroomId=AValue) then exit;
  6509. FroomId:=AValue;
  6510. MarkPropertyChanged(AIndex);
  6511. end;
  6512. Procedure TRoomStatus.Setstatus(AIndex : Integer; const AValue : String);
  6513. begin
  6514. If (Fstatus=AValue) then exit;
  6515. Fstatus:=AValue;
  6516. MarkPropertyChanged(AIndex);
  6517. end;
  6518. Procedure TRoomStatus.SetstatusVersion(AIndex : Integer; const AValue : integer);
  6519. begin
  6520. If (FstatusVersion=AValue) then exit;
  6521. FstatusVersion:=AValue;
  6522. MarkPropertyChanged(AIndex);
  6523. end;
  6524. //2.6.4. bug workaround
  6525. {$IFDEF VER2_6}
  6526. Procedure TRoomStatus.SetArrayLength(Const AName : String; ALength : Longint);
  6527. begin
  6528. Case AName of
  6529. 'participants' : SetLength(Fparticipants,ALength);
  6530. else
  6531. Inherited SetArrayLength(AName,ALength);
  6532. end;
  6533. end;
  6534. {$ENDIF VER2_6}
  6535. { --------------------------------------------------------------------
  6536. TScoreSubmission
  6537. --------------------------------------------------------------------}
  6538. Procedure TScoreSubmission.Setkind(AIndex : Integer; const AValue : String);
  6539. begin
  6540. If (Fkind=AValue) then exit;
  6541. Fkind:=AValue;
  6542. MarkPropertyChanged(AIndex);
  6543. end;
  6544. Procedure TScoreSubmission.SetleaderboardId(AIndex : Integer; const AValue : String);
  6545. begin
  6546. If (FleaderboardId=AValue) then exit;
  6547. FleaderboardId:=AValue;
  6548. MarkPropertyChanged(AIndex);
  6549. end;
  6550. Procedure TScoreSubmission.Setscore(AIndex : Integer; const AValue : String);
  6551. begin
  6552. If (Fscore=AValue) then exit;
  6553. Fscore:=AValue;
  6554. MarkPropertyChanged(AIndex);
  6555. end;
  6556. Procedure TScoreSubmission.SetscoreTag(AIndex : Integer; const AValue : String);
  6557. begin
  6558. If (FscoreTag=AValue) then exit;
  6559. FscoreTag:=AValue;
  6560. MarkPropertyChanged(AIndex);
  6561. end;
  6562. Procedure TScoreSubmission.Setsignature(AIndex : Integer; const AValue : String);
  6563. begin
  6564. If (Fsignature=AValue) then exit;
  6565. Fsignature:=AValue;
  6566. MarkPropertyChanged(AIndex);
  6567. end;
  6568. { --------------------------------------------------------------------
  6569. TSnapshot
  6570. --------------------------------------------------------------------}
  6571. Procedure TSnapshot.SetcoverImage(AIndex : Integer; const AValue : TSnapshotImage);
  6572. begin
  6573. If (FcoverImage=AValue) then exit;
  6574. FcoverImage:=AValue;
  6575. MarkPropertyChanged(AIndex);
  6576. end;
  6577. Procedure TSnapshot.Setdescription(AIndex : Integer; const AValue : String);
  6578. begin
  6579. If (Fdescription=AValue) then exit;
  6580. Fdescription:=AValue;
  6581. MarkPropertyChanged(AIndex);
  6582. end;
  6583. Procedure TSnapshot.SetdriveId(AIndex : Integer; const AValue : String);
  6584. begin
  6585. If (FdriveId=AValue) then exit;
  6586. FdriveId:=AValue;
  6587. MarkPropertyChanged(AIndex);
  6588. end;
  6589. Procedure TSnapshot.SetdurationMillis(AIndex : Integer; const AValue : String);
  6590. begin
  6591. If (FdurationMillis=AValue) then exit;
  6592. FdurationMillis:=AValue;
  6593. MarkPropertyChanged(AIndex);
  6594. end;
  6595. Procedure TSnapshot.Setid(AIndex : Integer; const AValue : String);
  6596. begin
  6597. If (Fid=AValue) then exit;
  6598. Fid:=AValue;
  6599. MarkPropertyChanged(AIndex);
  6600. end;
  6601. Procedure TSnapshot.Setkind(AIndex : Integer; const AValue : String);
  6602. begin
  6603. If (Fkind=AValue) then exit;
  6604. Fkind:=AValue;
  6605. MarkPropertyChanged(AIndex);
  6606. end;
  6607. Procedure TSnapshot.SetlastModifiedMillis(AIndex : Integer; const AValue : String);
  6608. begin
  6609. If (FlastModifiedMillis=AValue) then exit;
  6610. FlastModifiedMillis:=AValue;
  6611. MarkPropertyChanged(AIndex);
  6612. end;
  6613. Procedure TSnapshot.SetprogressValue(AIndex : Integer; const AValue : String);
  6614. begin
  6615. If (FprogressValue=AValue) then exit;
  6616. FprogressValue:=AValue;
  6617. MarkPropertyChanged(AIndex);
  6618. end;
  6619. Procedure TSnapshot.Settitle(AIndex : Integer; const AValue : String);
  6620. begin
  6621. If (Ftitle=AValue) then exit;
  6622. Ftitle:=AValue;
  6623. MarkPropertyChanged(AIndex);
  6624. end;
  6625. Procedure TSnapshot.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. Procedure TSnapshot.SetuniqueName(AIndex : Integer; const AValue : String);
  6632. begin
  6633. If (FuniqueName=AValue) then exit;
  6634. FuniqueName:=AValue;
  6635. MarkPropertyChanged(AIndex);
  6636. end;
  6637. Class Function TSnapshot.ExportPropertyName(Const AName : String) :String;
  6638. begin
  6639. Case AName of
  6640. '_type' : Result:='type';
  6641. else
  6642. Result:=Inherited ExportPropertyName(AName);
  6643. end;
  6644. end;
  6645. { --------------------------------------------------------------------
  6646. TSnapshotImage
  6647. --------------------------------------------------------------------}
  6648. Procedure TSnapshotImage.Setheight(AIndex : Integer; const AValue : integer);
  6649. begin
  6650. If (Fheight=AValue) then exit;
  6651. Fheight:=AValue;
  6652. MarkPropertyChanged(AIndex);
  6653. end;
  6654. Procedure TSnapshotImage.Setkind(AIndex : Integer; const AValue : String);
  6655. begin
  6656. If (Fkind=AValue) then exit;
  6657. Fkind:=AValue;
  6658. MarkPropertyChanged(AIndex);
  6659. end;
  6660. Procedure TSnapshotImage.Setmime_type(AIndex : Integer; const AValue : String);
  6661. begin
  6662. If (Fmime_type=AValue) then exit;
  6663. Fmime_type:=AValue;
  6664. MarkPropertyChanged(AIndex);
  6665. end;
  6666. Procedure TSnapshotImage.Seturl(AIndex : Integer; const AValue : String);
  6667. begin
  6668. If (Furl=AValue) then exit;
  6669. Furl:=AValue;
  6670. MarkPropertyChanged(AIndex);
  6671. end;
  6672. Procedure TSnapshotImage.Setwidth(AIndex : Integer; const AValue : integer);
  6673. begin
  6674. If (Fwidth=AValue) then exit;
  6675. Fwidth:=AValue;
  6676. MarkPropertyChanged(AIndex);
  6677. end;
  6678. { --------------------------------------------------------------------
  6679. TSnapshotListResponse
  6680. --------------------------------------------------------------------}
  6681. Procedure TSnapshotListResponse.Setitems(AIndex : Integer; const AValue : TSnapshotListResponseTypeitemsArray);
  6682. begin
  6683. If (Fitems=AValue) then exit;
  6684. Fitems:=AValue;
  6685. MarkPropertyChanged(AIndex);
  6686. end;
  6687. Procedure TSnapshotListResponse.Setkind(AIndex : Integer; const AValue : String);
  6688. begin
  6689. If (Fkind=AValue) then exit;
  6690. Fkind:=AValue;
  6691. MarkPropertyChanged(AIndex);
  6692. end;
  6693. Procedure TSnapshotListResponse.SetnextPageToken(AIndex : Integer; const AValue : String);
  6694. begin
  6695. If (FnextPageToken=AValue) then exit;
  6696. FnextPageToken:=AValue;
  6697. MarkPropertyChanged(AIndex);
  6698. end;
  6699. //2.6.4. bug workaround
  6700. {$IFDEF VER2_6}
  6701. Procedure TSnapshotListResponse.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. TTurnBasedAutoMatchingCriteria
  6712. --------------------------------------------------------------------}
  6713. Procedure TTurnBasedAutoMatchingCriteria.SetexclusiveBitmask(AIndex : Integer; const AValue : String);
  6714. begin
  6715. If (FexclusiveBitmask=AValue) then exit;
  6716. FexclusiveBitmask:=AValue;
  6717. MarkPropertyChanged(AIndex);
  6718. end;
  6719. Procedure TTurnBasedAutoMatchingCriteria.Setkind(AIndex : Integer; const AValue : String);
  6720. begin
  6721. If (Fkind=AValue) then exit;
  6722. Fkind:=AValue;
  6723. MarkPropertyChanged(AIndex);
  6724. end;
  6725. Procedure TTurnBasedAutoMatchingCriteria.SetmaxAutoMatchingPlayers(AIndex : Integer; const AValue : integer);
  6726. begin
  6727. If (FmaxAutoMatchingPlayers=AValue) then exit;
  6728. FmaxAutoMatchingPlayers:=AValue;
  6729. MarkPropertyChanged(AIndex);
  6730. end;
  6731. Procedure TTurnBasedAutoMatchingCriteria.SetminAutoMatchingPlayers(AIndex : Integer; const AValue : integer);
  6732. begin
  6733. If (FminAutoMatchingPlayers=AValue) then exit;
  6734. FminAutoMatchingPlayers:=AValue;
  6735. MarkPropertyChanged(AIndex);
  6736. end;
  6737. { --------------------------------------------------------------------
  6738. TTurnBasedMatch
  6739. --------------------------------------------------------------------}
  6740. Procedure TTurnBasedMatch.SetapplicationId(AIndex : Integer; const AValue : String);
  6741. begin
  6742. If (FapplicationId=AValue) then exit;
  6743. FapplicationId:=AValue;
  6744. MarkPropertyChanged(AIndex);
  6745. end;
  6746. Procedure TTurnBasedMatch.SetautoMatchingCriteria(AIndex : Integer; const AValue : TTurnBasedAutoMatchingCriteria);
  6747. begin
  6748. If (FautoMatchingCriteria=AValue) then exit;
  6749. FautoMatchingCriteria:=AValue;
  6750. MarkPropertyChanged(AIndex);
  6751. end;
  6752. Procedure TTurnBasedMatch.SetcreationDetails(AIndex : Integer; const AValue : TTurnBasedMatchModification);
  6753. begin
  6754. If (FcreationDetails=AValue) then exit;
  6755. FcreationDetails:=AValue;
  6756. MarkPropertyChanged(AIndex);
  6757. end;
  6758. Procedure TTurnBasedMatch.Setdata(AIndex : Integer; const AValue : TTurnBasedMatchData);
  6759. begin
  6760. If (Fdata=AValue) then exit;
  6761. Fdata:=AValue;
  6762. MarkPropertyChanged(AIndex);
  6763. end;
  6764. Procedure TTurnBasedMatch.Setdescription(AIndex : Integer; const AValue : String);
  6765. begin
  6766. If (Fdescription=AValue) then exit;
  6767. Fdescription:=AValue;
  6768. MarkPropertyChanged(AIndex);
  6769. end;
  6770. Procedure TTurnBasedMatch.SetinviterId(AIndex : Integer; const AValue : String);
  6771. begin
  6772. If (FinviterId=AValue) then exit;
  6773. FinviterId:=AValue;
  6774. MarkPropertyChanged(AIndex);
  6775. end;
  6776. Procedure TTurnBasedMatch.Setkind(AIndex : Integer; const AValue : String);
  6777. begin
  6778. If (Fkind=AValue) then exit;
  6779. Fkind:=AValue;
  6780. MarkPropertyChanged(AIndex);
  6781. end;
  6782. Procedure TTurnBasedMatch.SetlastUpdateDetails(AIndex : Integer; const AValue : TTurnBasedMatchModification);
  6783. begin
  6784. If (FlastUpdateDetails=AValue) then exit;
  6785. FlastUpdateDetails:=AValue;
  6786. MarkPropertyChanged(AIndex);
  6787. end;
  6788. Procedure TTurnBasedMatch.SetmatchId(AIndex : Integer; const AValue : String);
  6789. begin
  6790. If (FmatchId=AValue) then exit;
  6791. FmatchId:=AValue;
  6792. MarkPropertyChanged(AIndex);
  6793. end;
  6794. Procedure TTurnBasedMatch.SetmatchNumber(AIndex : Integer; const AValue : integer);
  6795. begin
  6796. If (FmatchNumber=AValue) then exit;
  6797. FmatchNumber:=AValue;
  6798. MarkPropertyChanged(AIndex);
  6799. end;
  6800. Procedure TTurnBasedMatch.SetmatchVersion(AIndex : Integer; const AValue : integer);
  6801. begin
  6802. If (FmatchVersion=AValue) then exit;
  6803. FmatchVersion:=AValue;
  6804. MarkPropertyChanged(AIndex);
  6805. end;
  6806. Procedure TTurnBasedMatch.Setparticipants(AIndex : Integer; const AValue : TTurnBasedMatchTypeparticipantsArray);
  6807. begin
  6808. If (Fparticipants=AValue) then exit;
  6809. Fparticipants:=AValue;
  6810. MarkPropertyChanged(AIndex);
  6811. end;
  6812. Procedure TTurnBasedMatch.SetpendingParticipantId(AIndex : Integer; const AValue : String);
  6813. begin
  6814. If (FpendingParticipantId=AValue) then exit;
  6815. FpendingParticipantId:=AValue;
  6816. MarkPropertyChanged(AIndex);
  6817. end;
  6818. Procedure TTurnBasedMatch.SetpreviousMatchData(AIndex : Integer; const AValue : TTurnBasedMatchData);
  6819. begin
  6820. If (FpreviousMatchData=AValue) then exit;
  6821. FpreviousMatchData:=AValue;
  6822. MarkPropertyChanged(AIndex);
  6823. end;
  6824. Procedure TTurnBasedMatch.SetrematchId(AIndex : Integer; const AValue : String);
  6825. begin
  6826. If (FrematchId=AValue) then exit;
  6827. FrematchId:=AValue;
  6828. MarkPropertyChanged(AIndex);
  6829. end;
  6830. Procedure TTurnBasedMatch.Setresults(AIndex : Integer; const AValue : TTurnBasedMatchTyperesultsArray);
  6831. begin
  6832. If (Fresults=AValue) then exit;
  6833. Fresults:=AValue;
  6834. MarkPropertyChanged(AIndex);
  6835. end;
  6836. Procedure TTurnBasedMatch.Setstatus(AIndex : Integer; const AValue : String);
  6837. begin
  6838. If (Fstatus=AValue) then exit;
  6839. Fstatus:=AValue;
  6840. MarkPropertyChanged(AIndex);
  6841. end;
  6842. Procedure TTurnBasedMatch.SetuserMatchStatus(AIndex : Integer; const AValue : String);
  6843. begin
  6844. If (FuserMatchStatus=AValue) then exit;
  6845. FuserMatchStatus:=AValue;
  6846. MarkPropertyChanged(AIndex);
  6847. end;
  6848. Procedure TTurnBasedMatch.Setvariant(AIndex : Integer; const AValue : integer);
  6849. begin
  6850. If (Fvariant=AValue) then exit;
  6851. Fvariant:=AValue;
  6852. MarkPropertyChanged(AIndex);
  6853. end;
  6854. Procedure TTurnBasedMatch.SetwithParticipantId(AIndex : Integer; const AValue : String);
  6855. begin
  6856. If (FwithParticipantId=AValue) then exit;
  6857. FwithParticipantId:=AValue;
  6858. MarkPropertyChanged(AIndex);
  6859. end;
  6860. //2.6.4. bug workaround
  6861. {$IFDEF VER2_6}
  6862. Procedure TTurnBasedMatch.SetArrayLength(Const AName : String; ALength : Longint);
  6863. begin
  6864. Case AName of
  6865. 'participants' : SetLength(Fparticipants,ALength);
  6866. 'results' : SetLength(Fresults,ALength);
  6867. else
  6868. Inherited SetArrayLength(AName,ALength);
  6869. end;
  6870. end;
  6871. {$ENDIF VER2_6}
  6872. { --------------------------------------------------------------------
  6873. TTurnBasedMatchCreateRequest
  6874. --------------------------------------------------------------------}
  6875. Procedure TTurnBasedMatchCreateRequest.SetautoMatchingCriteria(AIndex : Integer; const AValue : TTurnBasedAutoMatchingCriteria);
  6876. begin
  6877. If (FautoMatchingCriteria=AValue) then exit;
  6878. FautoMatchingCriteria:=AValue;
  6879. MarkPropertyChanged(AIndex);
  6880. end;
  6881. Procedure TTurnBasedMatchCreateRequest.SetinvitedPlayerIds(AIndex : Integer; const AValue : TStringArray);
  6882. begin
  6883. If (FinvitedPlayerIds=AValue) then exit;
  6884. FinvitedPlayerIds:=AValue;
  6885. MarkPropertyChanged(AIndex);
  6886. end;
  6887. Procedure TTurnBasedMatchCreateRequest.Setkind(AIndex : Integer; const AValue : String);
  6888. begin
  6889. If (Fkind=AValue) then exit;
  6890. Fkind:=AValue;
  6891. MarkPropertyChanged(AIndex);
  6892. end;
  6893. Procedure TTurnBasedMatchCreateRequest.SetrequestId(AIndex : Integer; const AValue : String);
  6894. begin
  6895. If (FrequestId=AValue) then exit;
  6896. FrequestId:=AValue;
  6897. MarkPropertyChanged(AIndex);
  6898. end;
  6899. Procedure TTurnBasedMatchCreateRequest.Setvariant(AIndex : Integer; const AValue : integer);
  6900. begin
  6901. If (Fvariant=AValue) then exit;
  6902. Fvariant:=AValue;
  6903. MarkPropertyChanged(AIndex);
  6904. end;
  6905. //2.6.4. bug workaround
  6906. {$IFDEF VER2_6}
  6907. Procedure TTurnBasedMatchCreateRequest.SetArrayLength(Const AName : String; ALength : Longint);
  6908. begin
  6909. Case AName of
  6910. 'invitedplayerids' : SetLength(FinvitedPlayerIds,ALength);
  6911. else
  6912. Inherited SetArrayLength(AName,ALength);
  6913. end;
  6914. end;
  6915. {$ENDIF VER2_6}
  6916. { --------------------------------------------------------------------
  6917. TTurnBasedMatchData
  6918. --------------------------------------------------------------------}
  6919. Procedure TTurnBasedMatchData.Setdata(AIndex : Integer; const AValue : String);
  6920. begin
  6921. If (Fdata=AValue) then exit;
  6922. Fdata:=AValue;
  6923. MarkPropertyChanged(AIndex);
  6924. end;
  6925. Procedure TTurnBasedMatchData.SetdataAvailable(AIndex : Integer; const AValue : boolean);
  6926. begin
  6927. If (FdataAvailable=AValue) then exit;
  6928. FdataAvailable:=AValue;
  6929. MarkPropertyChanged(AIndex);
  6930. end;
  6931. Procedure TTurnBasedMatchData.Setkind(AIndex : Integer; const AValue : String);
  6932. begin
  6933. If (Fkind=AValue) then exit;
  6934. Fkind:=AValue;
  6935. MarkPropertyChanged(AIndex);
  6936. end;
  6937. { --------------------------------------------------------------------
  6938. TTurnBasedMatchDataRequest
  6939. --------------------------------------------------------------------}
  6940. Procedure TTurnBasedMatchDataRequest.Setdata(AIndex : Integer; const AValue : String);
  6941. begin
  6942. If (Fdata=AValue) then exit;
  6943. Fdata:=AValue;
  6944. MarkPropertyChanged(AIndex);
  6945. end;
  6946. Procedure TTurnBasedMatchDataRequest.Setkind(AIndex : Integer; const AValue : String);
  6947. begin
  6948. If (Fkind=AValue) then exit;
  6949. Fkind:=AValue;
  6950. MarkPropertyChanged(AIndex);
  6951. end;
  6952. { --------------------------------------------------------------------
  6953. TTurnBasedMatchList
  6954. --------------------------------------------------------------------}
  6955. Procedure TTurnBasedMatchList.Setitems(AIndex : Integer; const AValue : TTurnBasedMatchListTypeitemsArray);
  6956. begin
  6957. If (Fitems=AValue) then exit;
  6958. Fitems:=AValue;
  6959. MarkPropertyChanged(AIndex);
  6960. end;
  6961. Procedure TTurnBasedMatchList.Setkind(AIndex : Integer; const AValue : String);
  6962. begin
  6963. If (Fkind=AValue) then exit;
  6964. Fkind:=AValue;
  6965. MarkPropertyChanged(AIndex);
  6966. end;
  6967. Procedure TTurnBasedMatchList.SetnextPageToken(AIndex : Integer; const AValue : String);
  6968. begin
  6969. If (FnextPageToken=AValue) then exit;
  6970. FnextPageToken:=AValue;
  6971. MarkPropertyChanged(AIndex);
  6972. end;
  6973. //2.6.4. bug workaround
  6974. {$IFDEF VER2_6}
  6975. Procedure TTurnBasedMatchList.SetArrayLength(Const AName : String; ALength : Longint);
  6976. begin
  6977. Case AName of
  6978. 'items' : SetLength(Fitems,ALength);
  6979. else
  6980. Inherited SetArrayLength(AName,ALength);
  6981. end;
  6982. end;
  6983. {$ENDIF VER2_6}
  6984. { --------------------------------------------------------------------
  6985. TTurnBasedMatchModification
  6986. --------------------------------------------------------------------}
  6987. Procedure TTurnBasedMatchModification.Setkind(AIndex : Integer; const AValue : String);
  6988. begin
  6989. If (Fkind=AValue) then exit;
  6990. Fkind:=AValue;
  6991. MarkPropertyChanged(AIndex);
  6992. end;
  6993. Procedure TTurnBasedMatchModification.SetmodifiedTimestampMillis(AIndex : Integer; const AValue : String);
  6994. begin
  6995. If (FmodifiedTimestampMillis=AValue) then exit;
  6996. FmodifiedTimestampMillis:=AValue;
  6997. MarkPropertyChanged(AIndex);
  6998. end;
  6999. Procedure TTurnBasedMatchModification.SetparticipantId(AIndex : Integer; const AValue : String);
  7000. begin
  7001. If (FparticipantId=AValue) then exit;
  7002. FparticipantId:=AValue;
  7003. MarkPropertyChanged(AIndex);
  7004. end;
  7005. { --------------------------------------------------------------------
  7006. TTurnBasedMatchParticipant
  7007. --------------------------------------------------------------------}
  7008. Procedure TTurnBasedMatchParticipant.SetautoMatched(AIndex : Integer; const AValue : boolean);
  7009. begin
  7010. If (FautoMatched=AValue) then exit;
  7011. FautoMatched:=AValue;
  7012. MarkPropertyChanged(AIndex);
  7013. end;
  7014. Procedure TTurnBasedMatchParticipant.SetautoMatchedPlayer(AIndex : Integer; const AValue : TAnonymousPlayer);
  7015. begin
  7016. If (FautoMatchedPlayer=AValue) then exit;
  7017. FautoMatchedPlayer:=AValue;
  7018. MarkPropertyChanged(AIndex);
  7019. end;
  7020. Procedure TTurnBasedMatchParticipant.Setid(AIndex : Integer; const AValue : String);
  7021. begin
  7022. If (Fid=AValue) then exit;
  7023. Fid:=AValue;
  7024. MarkPropertyChanged(AIndex);
  7025. end;
  7026. Procedure TTurnBasedMatchParticipant.Setkind(AIndex : Integer; const AValue : String);
  7027. begin
  7028. If (Fkind=AValue) then exit;
  7029. Fkind:=AValue;
  7030. MarkPropertyChanged(AIndex);
  7031. end;
  7032. Procedure TTurnBasedMatchParticipant.Setplayer(AIndex : Integer; const AValue : TPlayer);
  7033. begin
  7034. If (Fplayer=AValue) then exit;
  7035. Fplayer:=AValue;
  7036. MarkPropertyChanged(AIndex);
  7037. end;
  7038. Procedure TTurnBasedMatchParticipant.Setstatus(AIndex : Integer; const AValue : String);
  7039. begin
  7040. If (Fstatus=AValue) then exit;
  7041. Fstatus:=AValue;
  7042. MarkPropertyChanged(AIndex);
  7043. end;
  7044. { --------------------------------------------------------------------
  7045. TTurnBasedMatchRematch
  7046. --------------------------------------------------------------------}
  7047. Procedure TTurnBasedMatchRematch.Setkind(AIndex : Integer; const AValue : String);
  7048. begin
  7049. If (Fkind=AValue) then exit;
  7050. Fkind:=AValue;
  7051. MarkPropertyChanged(AIndex);
  7052. end;
  7053. Procedure TTurnBasedMatchRematch.SetpreviousMatch(AIndex : Integer; const AValue : TTurnBasedMatch);
  7054. begin
  7055. If (FpreviousMatch=AValue) then exit;
  7056. FpreviousMatch:=AValue;
  7057. MarkPropertyChanged(AIndex);
  7058. end;
  7059. Procedure TTurnBasedMatchRematch.Setrematch(AIndex : Integer; const AValue : TTurnBasedMatch);
  7060. begin
  7061. If (Frematch=AValue) then exit;
  7062. Frematch:=AValue;
  7063. MarkPropertyChanged(AIndex);
  7064. end;
  7065. { --------------------------------------------------------------------
  7066. TTurnBasedMatchResults
  7067. --------------------------------------------------------------------}
  7068. Procedure TTurnBasedMatchResults.Setdata(AIndex : Integer; const AValue : TTurnBasedMatchDataRequest);
  7069. begin
  7070. If (Fdata=AValue) then exit;
  7071. Fdata:=AValue;
  7072. MarkPropertyChanged(AIndex);
  7073. end;
  7074. Procedure TTurnBasedMatchResults.Setkind(AIndex : Integer; const AValue : String);
  7075. begin
  7076. If (Fkind=AValue) then exit;
  7077. Fkind:=AValue;
  7078. MarkPropertyChanged(AIndex);
  7079. end;
  7080. Procedure TTurnBasedMatchResults.SetmatchVersion(AIndex : Integer; const AValue : integer);
  7081. begin
  7082. If (FmatchVersion=AValue) then exit;
  7083. FmatchVersion:=AValue;
  7084. MarkPropertyChanged(AIndex);
  7085. end;
  7086. Procedure TTurnBasedMatchResults.Setresults(AIndex : Integer; const AValue : TTurnBasedMatchResultsTyperesultsArray);
  7087. begin
  7088. If (Fresults=AValue) then exit;
  7089. Fresults:=AValue;
  7090. MarkPropertyChanged(AIndex);
  7091. end;
  7092. //2.6.4. bug workaround
  7093. {$IFDEF VER2_6}
  7094. Procedure TTurnBasedMatchResults.SetArrayLength(Const AName : String; ALength : Longint);
  7095. begin
  7096. Case AName of
  7097. 'results' : SetLength(Fresults,ALength);
  7098. else
  7099. Inherited SetArrayLength(AName,ALength);
  7100. end;
  7101. end;
  7102. {$ENDIF VER2_6}
  7103. { --------------------------------------------------------------------
  7104. TTurnBasedMatchSync
  7105. --------------------------------------------------------------------}
  7106. Procedure TTurnBasedMatchSync.Setitems(AIndex : Integer; const AValue : TTurnBasedMatchSyncTypeitemsArray);
  7107. begin
  7108. If (Fitems=AValue) then exit;
  7109. Fitems:=AValue;
  7110. MarkPropertyChanged(AIndex);
  7111. end;
  7112. Procedure TTurnBasedMatchSync.Setkind(AIndex : Integer; const AValue : String);
  7113. begin
  7114. If (Fkind=AValue) then exit;
  7115. Fkind:=AValue;
  7116. MarkPropertyChanged(AIndex);
  7117. end;
  7118. Procedure TTurnBasedMatchSync.SetmoreAvailable(AIndex : Integer; const AValue : boolean);
  7119. begin
  7120. If (FmoreAvailable=AValue) then exit;
  7121. FmoreAvailable:=AValue;
  7122. MarkPropertyChanged(AIndex);
  7123. end;
  7124. Procedure TTurnBasedMatchSync.SetnextPageToken(AIndex : Integer; const AValue : String);
  7125. begin
  7126. If (FnextPageToken=AValue) then exit;
  7127. FnextPageToken:=AValue;
  7128. MarkPropertyChanged(AIndex);
  7129. end;
  7130. //2.6.4. bug workaround
  7131. {$IFDEF VER2_6}
  7132. Procedure TTurnBasedMatchSync.SetArrayLength(Const AName : String; ALength : Longint);
  7133. begin
  7134. Case AName of
  7135. 'items' : SetLength(Fitems,ALength);
  7136. else
  7137. Inherited SetArrayLength(AName,ALength);
  7138. end;
  7139. end;
  7140. {$ENDIF VER2_6}
  7141. { --------------------------------------------------------------------
  7142. TTurnBasedMatchTurn
  7143. --------------------------------------------------------------------}
  7144. Procedure TTurnBasedMatchTurn.Setdata(AIndex : Integer; const AValue : TTurnBasedMatchDataRequest);
  7145. begin
  7146. If (Fdata=AValue) then exit;
  7147. Fdata:=AValue;
  7148. MarkPropertyChanged(AIndex);
  7149. end;
  7150. Procedure TTurnBasedMatchTurn.Setkind(AIndex : Integer; const AValue : String);
  7151. begin
  7152. If (Fkind=AValue) then exit;
  7153. Fkind:=AValue;
  7154. MarkPropertyChanged(AIndex);
  7155. end;
  7156. Procedure TTurnBasedMatchTurn.SetmatchVersion(AIndex : Integer; const AValue : integer);
  7157. begin
  7158. If (FmatchVersion=AValue) then exit;
  7159. FmatchVersion:=AValue;
  7160. MarkPropertyChanged(AIndex);
  7161. end;
  7162. Procedure TTurnBasedMatchTurn.SetpendingParticipantId(AIndex : Integer; const AValue : String);
  7163. begin
  7164. If (FpendingParticipantId=AValue) then exit;
  7165. FpendingParticipantId:=AValue;
  7166. MarkPropertyChanged(AIndex);
  7167. end;
  7168. Procedure TTurnBasedMatchTurn.Setresults(AIndex : Integer; const AValue : TTurnBasedMatchTurnTyperesultsArray);
  7169. begin
  7170. If (Fresults=AValue) then exit;
  7171. Fresults:=AValue;
  7172. MarkPropertyChanged(AIndex);
  7173. end;
  7174. //2.6.4. bug workaround
  7175. {$IFDEF VER2_6}
  7176. Procedure TTurnBasedMatchTurn.SetArrayLength(Const AName : String; ALength : Longint);
  7177. begin
  7178. Case AName of
  7179. 'results' : SetLength(Fresults,ALength);
  7180. else
  7181. Inherited SetArrayLength(AName,ALength);
  7182. end;
  7183. end;
  7184. {$ENDIF VER2_6}
  7185. { --------------------------------------------------------------------
  7186. TAchievementDefinitionsResource
  7187. --------------------------------------------------------------------}
  7188. Class Function TAchievementDefinitionsResource.ResourceName : String;
  7189. begin
  7190. Result:='achievementDefinitions';
  7191. end;
  7192. Class Function TAchievementDefinitionsResource.DefaultAPI : TGoogleAPIClass;
  7193. begin
  7194. Result:=TgamesAPI;
  7195. end;
  7196. Function TAchievementDefinitionsResource.List(AQuery : string = '') : TAchievementDefinitionsListResponse;
  7197. Const
  7198. _HTTPMethod = 'GET';
  7199. _Path = 'achievements';
  7200. _Methodid = 'games.achievementDefinitions.list';
  7201. begin
  7202. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TAchievementDefinitionsListResponse) as TAchievementDefinitionsListResponse;
  7203. end;
  7204. Function TAchievementDefinitionsResource.List(AQuery : TAchievementDefinitionslistOptions) : TAchievementDefinitionsListResponse;
  7205. Var
  7206. _Q : String;
  7207. begin
  7208. _Q:='';
  7209. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7210. AddToQuery(_Q,'language',AQuery.language);
  7211. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7212. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7213. Result:=List(_Q);
  7214. end;
  7215. { --------------------------------------------------------------------
  7216. TAchievementsResource
  7217. --------------------------------------------------------------------}
  7218. Class Function TAchievementsResource.ResourceName : String;
  7219. begin
  7220. Result:='achievements';
  7221. end;
  7222. Class Function TAchievementsResource.DefaultAPI : TGoogleAPIClass;
  7223. begin
  7224. Result:=TgamesAPI;
  7225. end;
  7226. Function TAchievementsResource.Increment(achievementId: string; AQuery : string = '') : TAchievementIncrementResponse;
  7227. Const
  7228. _HTTPMethod = 'POST';
  7229. _Path = 'achievements/{achievementId}/increment';
  7230. _Methodid = 'games.achievements.increment';
  7231. Var
  7232. _P : String;
  7233. begin
  7234. _P:=SubstitutePath(_Path,['achievementId',achievementId]);
  7235. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TAchievementIncrementResponse) as TAchievementIncrementResponse;
  7236. end;
  7237. Function TAchievementsResource.Increment(achievementId: string; AQuery : TAchievementsincrementOptions) : TAchievementIncrementResponse;
  7238. Var
  7239. _Q : String;
  7240. begin
  7241. _Q:='';
  7242. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7243. AddToQuery(_Q,'requestId',AQuery.requestId);
  7244. AddToQuery(_Q,'stepsToIncrement',AQuery.stepsToIncrement);
  7245. Result:=Increment(achievementId,_Q);
  7246. end;
  7247. Function TAchievementsResource.List(playerId: string; AQuery : string = '') : TPlayerAchievementListResponse;
  7248. Const
  7249. _HTTPMethod = 'GET';
  7250. _Path = 'players/{playerId}/achievements';
  7251. _Methodid = 'games.achievements.list';
  7252. Var
  7253. _P : String;
  7254. begin
  7255. _P:=SubstitutePath(_Path,['playerId',playerId]);
  7256. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPlayerAchievementListResponse) as TPlayerAchievementListResponse;
  7257. end;
  7258. Function TAchievementsResource.List(playerId: string; AQuery : TAchievementslistOptions) : TPlayerAchievementListResponse;
  7259. Var
  7260. _Q : String;
  7261. begin
  7262. _Q:='';
  7263. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7264. AddToQuery(_Q,'language',AQuery.language);
  7265. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7266. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7267. AddToQuery(_Q,'state',AQuery.state);
  7268. Result:=List(playerId,_Q);
  7269. end;
  7270. Function TAchievementsResource.Reveal(achievementId: string; AQuery : string = '') : TAchievementRevealResponse;
  7271. Const
  7272. _HTTPMethod = 'POST';
  7273. _Path = 'achievements/{achievementId}/reveal';
  7274. _Methodid = 'games.achievements.reveal';
  7275. Var
  7276. _P : String;
  7277. begin
  7278. _P:=SubstitutePath(_Path,['achievementId',achievementId]);
  7279. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TAchievementRevealResponse) as TAchievementRevealResponse;
  7280. end;
  7281. Function TAchievementsResource.Reveal(achievementId: string; AQuery : TAchievementsrevealOptions) : TAchievementRevealResponse;
  7282. Var
  7283. _Q : String;
  7284. begin
  7285. _Q:='';
  7286. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7287. Result:=Reveal(achievementId,_Q);
  7288. end;
  7289. Function TAchievementsResource.SetStepsAtLeast(achievementId: string; AQuery : string = '') : TAchievementSetStepsAtLeastResponse;
  7290. Const
  7291. _HTTPMethod = 'POST';
  7292. _Path = 'achievements/{achievementId}/setStepsAtLeast';
  7293. _Methodid = 'games.achievements.setStepsAtLeast';
  7294. Var
  7295. _P : String;
  7296. begin
  7297. _P:=SubstitutePath(_Path,['achievementId',achievementId]);
  7298. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TAchievementSetStepsAtLeastResponse) as TAchievementSetStepsAtLeastResponse;
  7299. end;
  7300. Function TAchievementsResource.SetStepsAtLeast(achievementId: string; AQuery : TAchievementssetStepsAtLeastOptions) : TAchievementSetStepsAtLeastResponse;
  7301. Var
  7302. _Q : String;
  7303. begin
  7304. _Q:='';
  7305. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7306. AddToQuery(_Q,'steps',AQuery.steps);
  7307. Result:=SetStepsAtLeast(achievementId,_Q);
  7308. end;
  7309. Function TAchievementsResource.Unlock(achievementId: string; AQuery : string = '') : TAchievementUnlockResponse;
  7310. Const
  7311. _HTTPMethod = 'POST';
  7312. _Path = 'achievements/{achievementId}/unlock';
  7313. _Methodid = 'games.achievements.unlock';
  7314. Var
  7315. _P : String;
  7316. begin
  7317. _P:=SubstitutePath(_Path,['achievementId',achievementId]);
  7318. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TAchievementUnlockResponse) as TAchievementUnlockResponse;
  7319. end;
  7320. Function TAchievementsResource.Unlock(achievementId: string; AQuery : TAchievementsunlockOptions) : TAchievementUnlockResponse;
  7321. Var
  7322. _Q : String;
  7323. begin
  7324. _Q:='';
  7325. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7326. Result:=Unlock(achievementId,_Q);
  7327. end;
  7328. Function TAchievementsResource.UpdateMultiple(aAchievementUpdateMultipleRequest : TAchievementUpdateMultipleRequest; AQuery : string = '') : TAchievementUpdateMultipleResponse;
  7329. Const
  7330. _HTTPMethod = 'POST';
  7331. _Path = 'achievements/updateMultiple';
  7332. _Methodid = 'games.achievements.updateMultiple';
  7333. begin
  7334. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aAchievementUpdateMultipleRequest,TAchievementUpdateMultipleResponse) as TAchievementUpdateMultipleResponse;
  7335. end;
  7336. Function TAchievementsResource.UpdateMultiple(aAchievementUpdateMultipleRequest : TAchievementUpdateMultipleRequest; AQuery : TAchievementsupdateMultipleOptions) : TAchievementUpdateMultipleResponse;
  7337. Var
  7338. _Q : String;
  7339. begin
  7340. _Q:='';
  7341. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7342. Result:=UpdateMultiple(aAchievementUpdateMultipleRequest,_Q);
  7343. end;
  7344. { --------------------------------------------------------------------
  7345. TApplicationsResource
  7346. --------------------------------------------------------------------}
  7347. Class Function TApplicationsResource.ResourceName : String;
  7348. begin
  7349. Result:='applications';
  7350. end;
  7351. Class Function TApplicationsResource.DefaultAPI : TGoogleAPIClass;
  7352. begin
  7353. Result:=TgamesAPI;
  7354. end;
  7355. Function TApplicationsResource.Get(applicationId: string; AQuery : string = '') : TApplication;
  7356. Const
  7357. _HTTPMethod = 'GET';
  7358. _Path = 'applications/{applicationId}';
  7359. _Methodid = 'games.applications.get';
  7360. Var
  7361. _P : String;
  7362. begin
  7363. _P:=SubstitutePath(_Path,['applicationId',applicationId]);
  7364. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TApplication) as TApplication;
  7365. end;
  7366. Function TApplicationsResource.Get(applicationId: string; AQuery : TApplicationsgetOptions) : TApplication;
  7367. Var
  7368. _Q : String;
  7369. begin
  7370. _Q:='';
  7371. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7372. AddToQuery(_Q,'language',AQuery.language);
  7373. AddToQuery(_Q,'platformType',AQuery.platformType);
  7374. Result:=Get(applicationId,_Q);
  7375. end;
  7376. Procedure TApplicationsResource.Played(AQuery : string = '');
  7377. Const
  7378. _HTTPMethod = 'POST';
  7379. _Path = 'applications/played';
  7380. _Methodid = 'games.applications.played';
  7381. begin
  7382. ServiceCall(_HTTPMethod,_Path,AQuery,Nil,Nil);
  7383. end;
  7384. Procedure TApplicationsResource.Played(AQuery : TApplicationsplayedOptions);
  7385. Var
  7386. _Q : String;
  7387. begin
  7388. _Q:='';
  7389. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7390. Played(_Q);
  7391. end;
  7392. Function TApplicationsResource.Verify(applicationId: string; AQuery : string = '') : TApplicationVerifyResponse;
  7393. Const
  7394. _HTTPMethod = 'GET';
  7395. _Path = 'applications/{applicationId}/verify';
  7396. _Methodid = 'games.applications.verify';
  7397. Var
  7398. _P : String;
  7399. begin
  7400. _P:=SubstitutePath(_Path,['applicationId',applicationId]);
  7401. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TApplicationVerifyResponse) as TApplicationVerifyResponse;
  7402. end;
  7403. Function TApplicationsResource.Verify(applicationId: string; AQuery : TApplicationsverifyOptions) : TApplicationVerifyResponse;
  7404. Var
  7405. _Q : String;
  7406. begin
  7407. _Q:='';
  7408. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7409. Result:=Verify(applicationId,_Q);
  7410. end;
  7411. { --------------------------------------------------------------------
  7412. TEventsResource
  7413. --------------------------------------------------------------------}
  7414. Class Function TEventsResource.ResourceName : String;
  7415. begin
  7416. Result:='events';
  7417. end;
  7418. Class Function TEventsResource.DefaultAPI : TGoogleAPIClass;
  7419. begin
  7420. Result:=TgamesAPI;
  7421. end;
  7422. Function TEventsResource.ListByPlayer(AQuery : string = '') : TPlayerEventListResponse;
  7423. Const
  7424. _HTTPMethod = 'GET';
  7425. _Path = 'events';
  7426. _Methodid = 'games.events.listByPlayer';
  7427. begin
  7428. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TPlayerEventListResponse) as TPlayerEventListResponse;
  7429. end;
  7430. Function TEventsResource.ListByPlayer(AQuery : TEventslistByPlayerOptions) : TPlayerEventListResponse;
  7431. Var
  7432. _Q : String;
  7433. begin
  7434. _Q:='';
  7435. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7436. AddToQuery(_Q,'language',AQuery.language);
  7437. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7438. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7439. Result:=ListByPlayer(_Q);
  7440. end;
  7441. Function TEventsResource.ListDefinitions(AQuery : string = '') : TEventDefinitionListResponse;
  7442. Const
  7443. _HTTPMethod = 'GET';
  7444. _Path = 'eventDefinitions';
  7445. _Methodid = 'games.events.listDefinitions';
  7446. begin
  7447. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TEventDefinitionListResponse) as TEventDefinitionListResponse;
  7448. end;
  7449. Function TEventsResource.ListDefinitions(AQuery : TEventslistDefinitionsOptions) : TEventDefinitionListResponse;
  7450. Var
  7451. _Q : String;
  7452. begin
  7453. _Q:='';
  7454. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7455. AddToQuery(_Q,'language',AQuery.language);
  7456. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7457. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7458. Result:=ListDefinitions(_Q);
  7459. end;
  7460. Function TEventsResource._record(aEventRecordRequest : TEventRecordRequest; AQuery : string = '') : TEventUpdateResponse;
  7461. Const
  7462. _HTTPMethod = 'POST';
  7463. _Path = 'events';
  7464. _Methodid = 'games.events.record';
  7465. begin
  7466. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aEventRecordRequest,TEventUpdateResponse) as TEventUpdateResponse;
  7467. end;
  7468. Function TEventsResource._record(aEventRecordRequest : TEventRecordRequest; AQuery : TEventsrecordOptions) : TEventUpdateResponse;
  7469. Var
  7470. _Q : String;
  7471. begin
  7472. _Q:='';
  7473. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7474. AddToQuery(_Q,'language',AQuery.language);
  7475. Result:=_record(aEventRecordRequest,_Q);
  7476. end;
  7477. { --------------------------------------------------------------------
  7478. TLeaderboardsResource
  7479. --------------------------------------------------------------------}
  7480. Class Function TLeaderboardsResource.ResourceName : String;
  7481. begin
  7482. Result:='leaderboards';
  7483. end;
  7484. Class Function TLeaderboardsResource.DefaultAPI : TGoogleAPIClass;
  7485. begin
  7486. Result:=TgamesAPI;
  7487. end;
  7488. Function TLeaderboardsResource.Get(leaderboardId: string; AQuery : string = '') : TLeaderboard;
  7489. Const
  7490. _HTTPMethod = 'GET';
  7491. _Path = 'leaderboards/{leaderboardId}';
  7492. _Methodid = 'games.leaderboards.get';
  7493. Var
  7494. _P : String;
  7495. begin
  7496. _P:=SubstitutePath(_Path,['leaderboardId',leaderboardId]);
  7497. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TLeaderboard) as TLeaderboard;
  7498. end;
  7499. Function TLeaderboardsResource.Get(leaderboardId: string; AQuery : TLeaderboardsgetOptions) : TLeaderboard;
  7500. Var
  7501. _Q : String;
  7502. begin
  7503. _Q:='';
  7504. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7505. AddToQuery(_Q,'language',AQuery.language);
  7506. Result:=Get(leaderboardId,_Q);
  7507. end;
  7508. Function TLeaderboardsResource.List(AQuery : string = '') : TLeaderboardListResponse;
  7509. Const
  7510. _HTTPMethod = 'GET';
  7511. _Path = 'leaderboards';
  7512. _Methodid = 'games.leaderboards.list';
  7513. begin
  7514. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TLeaderboardListResponse) as TLeaderboardListResponse;
  7515. end;
  7516. Function TLeaderboardsResource.List(AQuery : TLeaderboardslistOptions) : TLeaderboardListResponse;
  7517. Var
  7518. _Q : String;
  7519. begin
  7520. _Q:='';
  7521. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7522. AddToQuery(_Q,'language',AQuery.language);
  7523. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7524. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7525. Result:=List(_Q);
  7526. end;
  7527. { --------------------------------------------------------------------
  7528. TMetagameResource
  7529. --------------------------------------------------------------------}
  7530. Class Function TMetagameResource.ResourceName : String;
  7531. begin
  7532. Result:='metagame';
  7533. end;
  7534. Class Function TMetagameResource.DefaultAPI : TGoogleAPIClass;
  7535. begin
  7536. Result:=TgamesAPI;
  7537. end;
  7538. Function TMetagameResource.GetMetagameConfig(AQuery : string = '') : TMetagameConfig;
  7539. Const
  7540. _HTTPMethod = 'GET';
  7541. _Path = 'metagameConfig';
  7542. _Methodid = 'games.metagame.getMetagameConfig';
  7543. begin
  7544. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TMetagameConfig) as TMetagameConfig;
  7545. end;
  7546. Function TMetagameResource.GetMetagameConfig(AQuery : TMetagamegetMetagameConfigOptions) : TMetagameConfig;
  7547. Var
  7548. _Q : String;
  7549. begin
  7550. _Q:='';
  7551. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7552. Result:=GetMetagameConfig(_Q);
  7553. end;
  7554. Function TMetagameResource.ListCategoriesByPlayer(collection: string; playerId: string; AQuery : string = '') : TCategoryListResponse;
  7555. Const
  7556. _HTTPMethod = 'GET';
  7557. _Path = 'players/{playerId}/categories/{collection}';
  7558. _Methodid = 'games.metagame.listCategoriesByPlayer';
  7559. Var
  7560. _P : String;
  7561. begin
  7562. _P:=SubstitutePath(_Path,['collection',collection,'playerId',playerId]);
  7563. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCategoryListResponse) as TCategoryListResponse;
  7564. end;
  7565. Function TMetagameResource.ListCategoriesByPlayer(collection: string; playerId: string; AQuery : TMetagamelistCategoriesByPlayerOptions) : TCategoryListResponse;
  7566. Var
  7567. _Q : String;
  7568. begin
  7569. _Q:='';
  7570. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7571. AddToQuery(_Q,'language',AQuery.language);
  7572. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7573. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7574. Result:=ListCategoriesByPlayer(collection,playerId,_Q);
  7575. end;
  7576. { --------------------------------------------------------------------
  7577. TPlayersResource
  7578. --------------------------------------------------------------------}
  7579. Class Function TPlayersResource.ResourceName : String;
  7580. begin
  7581. Result:='players';
  7582. end;
  7583. Class Function TPlayersResource.DefaultAPI : TGoogleAPIClass;
  7584. begin
  7585. Result:=TgamesAPI;
  7586. end;
  7587. Function TPlayersResource.Get(playerId: string; AQuery : string = '') : TPlayer;
  7588. Const
  7589. _HTTPMethod = 'GET';
  7590. _Path = 'players/{playerId}';
  7591. _Methodid = 'games.players.get';
  7592. Var
  7593. _P : String;
  7594. begin
  7595. _P:=SubstitutePath(_Path,['playerId',playerId]);
  7596. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPlayer) as TPlayer;
  7597. end;
  7598. Function TPlayersResource.Get(playerId: string; AQuery : TPlayersgetOptions) : TPlayer;
  7599. Var
  7600. _Q : String;
  7601. begin
  7602. _Q:='';
  7603. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7604. AddToQuery(_Q,'language',AQuery.language);
  7605. Result:=Get(playerId,_Q);
  7606. end;
  7607. Function TPlayersResource.List(collection: string; AQuery : string = '') : TPlayerListResponse;
  7608. Const
  7609. _HTTPMethod = 'GET';
  7610. _Path = 'players/me/players/{collection}';
  7611. _Methodid = 'games.players.list';
  7612. Var
  7613. _P : String;
  7614. begin
  7615. _P:=SubstitutePath(_Path,['collection',collection]);
  7616. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPlayerListResponse) as TPlayerListResponse;
  7617. end;
  7618. Function TPlayersResource.List(collection: string; AQuery : TPlayerslistOptions) : TPlayerListResponse;
  7619. Var
  7620. _Q : String;
  7621. begin
  7622. _Q:='';
  7623. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7624. AddToQuery(_Q,'language',AQuery.language);
  7625. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7626. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7627. Result:=List(collection,_Q);
  7628. end;
  7629. { --------------------------------------------------------------------
  7630. TPushtokensResource
  7631. --------------------------------------------------------------------}
  7632. Class Function TPushtokensResource.ResourceName : String;
  7633. begin
  7634. Result:='pushtokens';
  7635. end;
  7636. Class Function TPushtokensResource.DefaultAPI : TGoogleAPIClass;
  7637. begin
  7638. Result:=TgamesAPI;
  7639. end;
  7640. Procedure TPushtokensResource.Remove(aPushTokenId : TPushTokenId; AQuery : string = '');
  7641. Const
  7642. _HTTPMethod = 'POST';
  7643. _Path = 'pushtokens/remove';
  7644. _Methodid = 'games.pushtokens.remove';
  7645. begin
  7646. ServiceCall(_HTTPMethod,_Path,AQuery,aPushTokenId,Nil);
  7647. end;
  7648. Procedure TPushtokensResource.Remove(aPushTokenId : TPushTokenId; AQuery : TPushtokensremoveOptions);
  7649. Var
  7650. _Q : String;
  7651. begin
  7652. _Q:='';
  7653. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7654. Remove(aPushTokenId,_Q);
  7655. end;
  7656. Procedure TPushtokensResource.Update(aPushToken : TPushToken; AQuery : string = '');
  7657. Const
  7658. _HTTPMethod = 'PUT';
  7659. _Path = 'pushtokens';
  7660. _Methodid = 'games.pushtokens.update';
  7661. begin
  7662. ServiceCall(_HTTPMethod,_Path,AQuery,aPushToken,Nil);
  7663. end;
  7664. Procedure TPushtokensResource.Update(aPushToken : TPushToken; AQuery : TPushtokensupdateOptions);
  7665. Var
  7666. _Q : String;
  7667. begin
  7668. _Q:='';
  7669. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7670. Update(aPushToken,_Q);
  7671. end;
  7672. { --------------------------------------------------------------------
  7673. TQuestMilestonesResource
  7674. --------------------------------------------------------------------}
  7675. Class Function TQuestMilestonesResource.ResourceName : String;
  7676. begin
  7677. Result:='questMilestones';
  7678. end;
  7679. Class Function TQuestMilestonesResource.DefaultAPI : TGoogleAPIClass;
  7680. begin
  7681. Result:=TgamesAPI;
  7682. end;
  7683. Procedure TQuestMilestonesResource.Claim(milestoneId: string; questId: string; AQuery : string = '');
  7684. Const
  7685. _HTTPMethod = 'PUT';
  7686. _Path = 'quests/{questId}/milestones/{milestoneId}/claim';
  7687. _Methodid = 'games.questMilestones.claim';
  7688. Var
  7689. _P : String;
  7690. begin
  7691. _P:=SubstitutePath(_Path,['milestoneId',milestoneId,'questId',questId]);
  7692. ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
  7693. end;
  7694. Procedure TQuestMilestonesResource.Claim(milestoneId: string; questId: string; AQuery : TQuestMilestonesclaimOptions);
  7695. Var
  7696. _Q : String;
  7697. begin
  7698. _Q:='';
  7699. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7700. AddToQuery(_Q,'requestId',AQuery.requestId);
  7701. Claim(milestoneId,questId,_Q);
  7702. end;
  7703. { --------------------------------------------------------------------
  7704. TQuestsResource
  7705. --------------------------------------------------------------------}
  7706. Class Function TQuestsResource.ResourceName : String;
  7707. begin
  7708. Result:='quests';
  7709. end;
  7710. Class Function TQuestsResource.DefaultAPI : TGoogleAPIClass;
  7711. begin
  7712. Result:=TgamesAPI;
  7713. end;
  7714. Function TQuestsResource.Accept(questId: string; AQuery : string = '') : TQuest;
  7715. Const
  7716. _HTTPMethod = 'POST';
  7717. _Path = 'quests/{questId}/accept';
  7718. _Methodid = 'games.quests.accept';
  7719. Var
  7720. _P : String;
  7721. begin
  7722. _P:=SubstitutePath(_Path,['questId',questId]);
  7723. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TQuest) as TQuest;
  7724. end;
  7725. Function TQuestsResource.Accept(questId: string; AQuery : TQuestsacceptOptions) : TQuest;
  7726. Var
  7727. _Q : String;
  7728. begin
  7729. _Q:='';
  7730. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7731. AddToQuery(_Q,'language',AQuery.language);
  7732. Result:=Accept(questId,_Q);
  7733. end;
  7734. Function TQuestsResource.List(playerId: string; AQuery : string = '') : TQuestListResponse;
  7735. Const
  7736. _HTTPMethod = 'GET';
  7737. _Path = 'players/{playerId}/quests';
  7738. _Methodid = 'games.quests.list';
  7739. Var
  7740. _P : String;
  7741. begin
  7742. _P:=SubstitutePath(_Path,['playerId',playerId]);
  7743. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TQuestListResponse) as TQuestListResponse;
  7744. end;
  7745. Function TQuestsResource.List(playerId: string; AQuery : TQuestslistOptions) : TQuestListResponse;
  7746. Var
  7747. _Q : String;
  7748. begin
  7749. _Q:='';
  7750. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7751. AddToQuery(_Q,'language',AQuery.language);
  7752. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7753. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7754. Result:=List(playerId,_Q);
  7755. end;
  7756. { --------------------------------------------------------------------
  7757. TRevisionsResource
  7758. --------------------------------------------------------------------}
  7759. Class Function TRevisionsResource.ResourceName : String;
  7760. begin
  7761. Result:='revisions';
  7762. end;
  7763. Class Function TRevisionsResource.DefaultAPI : TGoogleAPIClass;
  7764. begin
  7765. Result:=TgamesAPI;
  7766. end;
  7767. Function TRevisionsResource.Check(AQuery : string = '') : TRevisionCheckResponse;
  7768. Const
  7769. _HTTPMethod = 'GET';
  7770. _Path = 'revisions/check';
  7771. _Methodid = 'games.revisions.check';
  7772. begin
  7773. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TRevisionCheckResponse) as TRevisionCheckResponse;
  7774. end;
  7775. Function TRevisionsResource.Check(AQuery : TRevisionscheckOptions) : TRevisionCheckResponse;
  7776. Var
  7777. _Q : String;
  7778. begin
  7779. _Q:='';
  7780. AddToQuery(_Q,'clientRevision',AQuery.clientRevision);
  7781. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7782. Result:=Check(_Q);
  7783. end;
  7784. { --------------------------------------------------------------------
  7785. TRoomsResource
  7786. --------------------------------------------------------------------}
  7787. Class Function TRoomsResource.ResourceName : String;
  7788. begin
  7789. Result:='rooms';
  7790. end;
  7791. Class Function TRoomsResource.DefaultAPI : TGoogleAPIClass;
  7792. begin
  7793. Result:=TgamesAPI;
  7794. end;
  7795. Function TRoomsResource.Create(aRoomCreateRequest : TRoomCreateRequest; AQuery : string = '') : TRoom;
  7796. Const
  7797. _HTTPMethod = 'POST';
  7798. _Path = 'rooms/create';
  7799. _Methodid = 'games.rooms.create';
  7800. begin
  7801. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aRoomCreateRequest,TRoom) as TRoom;
  7802. end;
  7803. Function TRoomsResource.Create(aRoomCreateRequest : TRoomCreateRequest; AQuery : TRoomscreateOptions) : TRoom;
  7804. Var
  7805. _Q : String;
  7806. begin
  7807. _Q:='';
  7808. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7809. AddToQuery(_Q,'language',AQuery.language);
  7810. Result:=Create(aRoomCreateRequest,_Q);
  7811. end;
  7812. Function TRoomsResource.Decline(roomId: string; AQuery : string = '') : TRoom;
  7813. Const
  7814. _HTTPMethod = 'POST';
  7815. _Path = 'rooms/{roomId}/decline';
  7816. _Methodid = 'games.rooms.decline';
  7817. Var
  7818. _P : String;
  7819. begin
  7820. _P:=SubstitutePath(_Path,['roomId',roomId]);
  7821. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TRoom) as TRoom;
  7822. end;
  7823. Function TRoomsResource.Decline(roomId: string; AQuery : TRoomsdeclineOptions) : TRoom;
  7824. Var
  7825. _Q : String;
  7826. begin
  7827. _Q:='';
  7828. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7829. AddToQuery(_Q,'language',AQuery.language);
  7830. Result:=Decline(roomId,_Q);
  7831. end;
  7832. Procedure TRoomsResource.Dismiss(roomId: string; AQuery : string = '');
  7833. Const
  7834. _HTTPMethod = 'POST';
  7835. _Path = 'rooms/{roomId}/dismiss';
  7836. _Methodid = 'games.rooms.dismiss';
  7837. Var
  7838. _P : String;
  7839. begin
  7840. _P:=SubstitutePath(_Path,['roomId',roomId]);
  7841. ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
  7842. end;
  7843. Procedure TRoomsResource.Dismiss(roomId: string; AQuery : TRoomsdismissOptions);
  7844. Var
  7845. _Q : String;
  7846. begin
  7847. _Q:='';
  7848. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7849. Dismiss(roomId,_Q);
  7850. end;
  7851. Function TRoomsResource.Get(roomId: string; AQuery : string = '') : TRoom;
  7852. Const
  7853. _HTTPMethod = 'GET';
  7854. _Path = 'rooms/{roomId}';
  7855. _Methodid = 'games.rooms.get';
  7856. Var
  7857. _P : String;
  7858. begin
  7859. _P:=SubstitutePath(_Path,['roomId',roomId]);
  7860. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TRoom) as TRoom;
  7861. end;
  7862. Function TRoomsResource.Get(roomId: string; AQuery : TRoomsgetOptions) : TRoom;
  7863. Var
  7864. _Q : String;
  7865. begin
  7866. _Q:='';
  7867. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7868. AddToQuery(_Q,'language',AQuery.language);
  7869. Result:=Get(roomId,_Q);
  7870. end;
  7871. Function TRoomsResource.Join(roomId: string; aRoomJoinRequest : TRoomJoinRequest; AQuery : string = '') : TRoom;
  7872. Const
  7873. _HTTPMethod = 'POST';
  7874. _Path = 'rooms/{roomId}/join';
  7875. _Methodid = 'games.rooms.join';
  7876. Var
  7877. _P : String;
  7878. begin
  7879. _P:=SubstitutePath(_Path,['roomId',roomId]);
  7880. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aRoomJoinRequest,TRoom) as TRoom;
  7881. end;
  7882. Function TRoomsResource.Join(roomId: string; aRoomJoinRequest : TRoomJoinRequest; AQuery : TRoomsjoinOptions) : TRoom;
  7883. Var
  7884. _Q : String;
  7885. begin
  7886. _Q:='';
  7887. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7888. AddToQuery(_Q,'language',AQuery.language);
  7889. Result:=Join(roomId,aRoomJoinRequest,_Q);
  7890. end;
  7891. Function TRoomsResource.Leave(roomId: string; aRoomLeaveRequest : TRoomLeaveRequest; AQuery : string = '') : TRoom;
  7892. Const
  7893. _HTTPMethod = 'POST';
  7894. _Path = 'rooms/{roomId}/leave';
  7895. _Methodid = 'games.rooms.leave';
  7896. Var
  7897. _P : String;
  7898. begin
  7899. _P:=SubstitutePath(_Path,['roomId',roomId]);
  7900. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aRoomLeaveRequest,TRoom) as TRoom;
  7901. end;
  7902. Function TRoomsResource.Leave(roomId: string; aRoomLeaveRequest : TRoomLeaveRequest; AQuery : TRoomsleaveOptions) : TRoom;
  7903. Var
  7904. _Q : String;
  7905. begin
  7906. _Q:='';
  7907. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7908. AddToQuery(_Q,'language',AQuery.language);
  7909. Result:=Leave(roomId,aRoomLeaveRequest,_Q);
  7910. end;
  7911. Function TRoomsResource.List(AQuery : string = '') : TRoomList;
  7912. Const
  7913. _HTTPMethod = 'GET';
  7914. _Path = 'rooms';
  7915. _Methodid = 'games.rooms.list';
  7916. begin
  7917. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TRoomList) as TRoomList;
  7918. end;
  7919. Function TRoomsResource.List(AQuery : TRoomslistOptions) : TRoomList;
  7920. Var
  7921. _Q : String;
  7922. begin
  7923. _Q:='';
  7924. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7925. AddToQuery(_Q,'language',AQuery.language);
  7926. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7927. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7928. Result:=List(_Q);
  7929. end;
  7930. Function TRoomsResource.ReportStatus(roomId: string; aRoomP2PStatuses : TRoomP2PStatuses; AQuery : string = '') : TRoomStatus;
  7931. Const
  7932. _HTTPMethod = 'POST';
  7933. _Path = 'rooms/{roomId}/reportstatus';
  7934. _Methodid = 'games.rooms.reportStatus';
  7935. Var
  7936. _P : String;
  7937. begin
  7938. _P:=SubstitutePath(_Path,['roomId',roomId]);
  7939. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aRoomP2PStatuses,TRoomStatus) as TRoomStatus;
  7940. end;
  7941. Function TRoomsResource.ReportStatus(roomId: string; aRoomP2PStatuses : TRoomP2PStatuses; AQuery : TRoomsreportStatusOptions) : TRoomStatus;
  7942. Var
  7943. _Q : String;
  7944. begin
  7945. _Q:='';
  7946. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7947. AddToQuery(_Q,'language',AQuery.language);
  7948. Result:=ReportStatus(roomId,aRoomP2PStatuses,_Q);
  7949. end;
  7950. { --------------------------------------------------------------------
  7951. TScoresResource
  7952. --------------------------------------------------------------------}
  7953. Class Function TScoresResource.ResourceName : String;
  7954. begin
  7955. Result:='scores';
  7956. end;
  7957. Class Function TScoresResource.DefaultAPI : TGoogleAPIClass;
  7958. begin
  7959. Result:=TgamesAPI;
  7960. end;
  7961. Function TScoresResource.Get(leaderboardId: string; playerId: string; timeSpan: string; AQuery : string = '') : TPlayerLeaderboardScoreListResponse;
  7962. Const
  7963. _HTTPMethod = 'GET';
  7964. _Path = 'players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}';
  7965. _Methodid = 'games.scores.get';
  7966. Var
  7967. _P : String;
  7968. begin
  7969. _P:=SubstitutePath(_Path,['leaderboardId',leaderboardId,'playerId',playerId,'timeSpan',timeSpan]);
  7970. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPlayerLeaderboardScoreListResponse) as TPlayerLeaderboardScoreListResponse;
  7971. end;
  7972. Function TScoresResource.Get(leaderboardId: string; playerId: string; timeSpan: string; AQuery : TScoresgetOptions) : TPlayerLeaderboardScoreListResponse;
  7973. Var
  7974. _Q : String;
  7975. begin
  7976. _Q:='';
  7977. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  7978. AddToQuery(_Q,'includeRankType',AQuery.includeRankType);
  7979. AddToQuery(_Q,'language',AQuery.language);
  7980. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  7981. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  7982. Result:=Get(leaderboardId,playerId,timeSpan,_Q);
  7983. end;
  7984. Function TScoresResource.List(collection: string; leaderboardId: string; AQuery : string = '') : TLeaderboardScores;
  7985. Const
  7986. _HTTPMethod = 'GET';
  7987. _Path = 'leaderboards/{leaderboardId}/scores/{collection}';
  7988. _Methodid = 'games.scores.list';
  7989. Var
  7990. _P : String;
  7991. begin
  7992. _P:=SubstitutePath(_Path,['collection',collection,'leaderboardId',leaderboardId]);
  7993. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TLeaderboardScores) as TLeaderboardScores;
  7994. end;
  7995. Function TScoresResource.List(collection: string; leaderboardId: string; AQuery : TScoreslistOptions) : TLeaderboardScores;
  7996. Var
  7997. _Q : String;
  7998. begin
  7999. _Q:='';
  8000. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8001. AddToQuery(_Q,'language',AQuery.language);
  8002. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  8003. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  8004. AddToQuery(_Q,'timeSpan',AQuery.timeSpan);
  8005. Result:=List(collection,leaderboardId,_Q);
  8006. end;
  8007. Function TScoresResource.ListWindow(collection: string; leaderboardId: string; AQuery : string = '') : TLeaderboardScores;
  8008. Const
  8009. _HTTPMethod = 'GET';
  8010. _Path = 'leaderboards/{leaderboardId}/window/{collection}';
  8011. _Methodid = 'games.scores.listWindow';
  8012. Var
  8013. _P : String;
  8014. begin
  8015. _P:=SubstitutePath(_Path,['collection',collection,'leaderboardId',leaderboardId]);
  8016. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TLeaderboardScores) as TLeaderboardScores;
  8017. end;
  8018. Function TScoresResource.ListWindow(collection: string; leaderboardId: string; AQuery : TScoreslistWindowOptions) : TLeaderboardScores;
  8019. Var
  8020. _Q : String;
  8021. begin
  8022. _Q:='';
  8023. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8024. AddToQuery(_Q,'language',AQuery.language);
  8025. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  8026. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  8027. AddToQuery(_Q,'resultsAbove',AQuery.resultsAbove);
  8028. AddToQuery(_Q,'returnTopIfAbsent',AQuery.returnTopIfAbsent);
  8029. AddToQuery(_Q,'timeSpan',AQuery.timeSpan);
  8030. Result:=ListWindow(collection,leaderboardId,_Q);
  8031. end;
  8032. Function TScoresResource.Submit(leaderboardId: string; AQuery : string = '') : TPlayerScoreResponse;
  8033. Const
  8034. _HTTPMethod = 'POST';
  8035. _Path = 'leaderboards/{leaderboardId}/scores';
  8036. _Methodid = 'games.scores.submit';
  8037. Var
  8038. _P : String;
  8039. begin
  8040. _P:=SubstitutePath(_Path,['leaderboardId',leaderboardId]);
  8041. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPlayerScoreResponse) as TPlayerScoreResponse;
  8042. end;
  8043. Function TScoresResource.Submit(leaderboardId: string; AQuery : TScoressubmitOptions) : TPlayerScoreResponse;
  8044. Var
  8045. _Q : String;
  8046. begin
  8047. _Q:='';
  8048. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8049. AddToQuery(_Q,'language',AQuery.language);
  8050. AddToQuery(_Q,'score',AQuery.score);
  8051. AddToQuery(_Q,'scoreTag',AQuery.scoreTag);
  8052. Result:=Submit(leaderboardId,_Q);
  8053. end;
  8054. Function TScoresResource.SubmitMultiple(aPlayerScoreSubmissionList : TPlayerScoreSubmissionList; AQuery : string = '') : TPlayerScoreListResponse;
  8055. Const
  8056. _HTTPMethod = 'POST';
  8057. _Path = 'leaderboards/scores';
  8058. _Methodid = 'games.scores.submitMultiple';
  8059. begin
  8060. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aPlayerScoreSubmissionList,TPlayerScoreListResponse) as TPlayerScoreListResponse;
  8061. end;
  8062. Function TScoresResource.SubmitMultiple(aPlayerScoreSubmissionList : TPlayerScoreSubmissionList; AQuery : TScoressubmitMultipleOptions) : TPlayerScoreListResponse;
  8063. Var
  8064. _Q : String;
  8065. begin
  8066. _Q:='';
  8067. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8068. AddToQuery(_Q,'language',AQuery.language);
  8069. Result:=SubmitMultiple(aPlayerScoreSubmissionList,_Q);
  8070. end;
  8071. { --------------------------------------------------------------------
  8072. TSnapshotsResource
  8073. --------------------------------------------------------------------}
  8074. Class Function TSnapshotsResource.ResourceName : String;
  8075. begin
  8076. Result:='snapshots';
  8077. end;
  8078. Class Function TSnapshotsResource.DefaultAPI : TGoogleAPIClass;
  8079. begin
  8080. Result:=TgamesAPI;
  8081. end;
  8082. Function TSnapshotsResource.Get(snapshotId: string; AQuery : string = '') : TSnapshot;
  8083. Const
  8084. _HTTPMethod = 'GET';
  8085. _Path = 'snapshots/{snapshotId}';
  8086. _Methodid = 'games.snapshots.get';
  8087. Var
  8088. _P : String;
  8089. begin
  8090. _P:=SubstitutePath(_Path,['snapshotId',snapshotId]);
  8091. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TSnapshot) as TSnapshot;
  8092. end;
  8093. Function TSnapshotsResource.Get(snapshotId: string; AQuery : TSnapshotsgetOptions) : TSnapshot;
  8094. Var
  8095. _Q : String;
  8096. begin
  8097. _Q:='';
  8098. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8099. AddToQuery(_Q,'language',AQuery.language);
  8100. Result:=Get(snapshotId,_Q);
  8101. end;
  8102. Function TSnapshotsResource.List(playerId: string; AQuery : string = '') : TSnapshotListResponse;
  8103. Const
  8104. _HTTPMethod = 'GET';
  8105. _Path = 'players/{playerId}/snapshots';
  8106. _Methodid = 'games.snapshots.list';
  8107. Var
  8108. _P : String;
  8109. begin
  8110. _P:=SubstitutePath(_Path,['playerId',playerId]);
  8111. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TSnapshotListResponse) as TSnapshotListResponse;
  8112. end;
  8113. Function TSnapshotsResource.List(playerId: string; AQuery : TSnapshotslistOptions) : TSnapshotListResponse;
  8114. Var
  8115. _Q : String;
  8116. begin
  8117. _Q:='';
  8118. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8119. AddToQuery(_Q,'language',AQuery.language);
  8120. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  8121. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  8122. Result:=List(playerId,_Q);
  8123. end;
  8124. { --------------------------------------------------------------------
  8125. TTurnBasedMatchesResource
  8126. --------------------------------------------------------------------}
  8127. Class Function TTurnBasedMatchesResource.ResourceName : String;
  8128. begin
  8129. Result:='turnBasedMatches';
  8130. end;
  8131. Class Function TTurnBasedMatchesResource.DefaultAPI : TGoogleAPIClass;
  8132. begin
  8133. Result:=TgamesAPI;
  8134. end;
  8135. Procedure TTurnBasedMatchesResource.Cancel(matchId: string; AQuery : string = '');
  8136. Const
  8137. _HTTPMethod = 'PUT';
  8138. _Path = 'turnbasedmatches/{matchId}/cancel';
  8139. _Methodid = 'games.turnBasedMatches.cancel';
  8140. Var
  8141. _P : String;
  8142. begin
  8143. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8144. ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
  8145. end;
  8146. Procedure TTurnBasedMatchesResource.Cancel(matchId: string; AQuery : TTurnBasedMatchescancelOptions);
  8147. Var
  8148. _Q : String;
  8149. begin
  8150. _Q:='';
  8151. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8152. Cancel(matchId,_Q);
  8153. end;
  8154. Function TTurnBasedMatchesResource.Create(aTurnBasedMatchCreateRequest : TTurnBasedMatchCreateRequest; AQuery : string = '') : TTurnBasedMatch;
  8155. Const
  8156. _HTTPMethod = 'POST';
  8157. _Path = 'turnbasedmatches/create';
  8158. _Methodid = 'games.turnBasedMatches.create';
  8159. begin
  8160. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,aTurnBasedMatchCreateRequest,TTurnBasedMatch) as TTurnBasedMatch;
  8161. end;
  8162. Function TTurnBasedMatchesResource.Create(aTurnBasedMatchCreateRequest : TTurnBasedMatchCreateRequest; AQuery : TTurnBasedMatchescreateOptions) : TTurnBasedMatch;
  8163. Var
  8164. _Q : String;
  8165. begin
  8166. _Q:='';
  8167. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8168. AddToQuery(_Q,'language',AQuery.language);
  8169. Result:=Create(aTurnBasedMatchCreateRequest,_Q);
  8170. end;
  8171. Function TTurnBasedMatchesResource.Decline(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  8172. Const
  8173. _HTTPMethod = 'PUT';
  8174. _Path = 'turnbasedmatches/{matchId}/decline';
  8175. _Methodid = 'games.turnBasedMatches.decline';
  8176. Var
  8177. _P : String;
  8178. begin
  8179. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8180. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTurnBasedMatch) as TTurnBasedMatch;
  8181. end;
  8182. Function TTurnBasedMatchesResource.Decline(matchId: string; AQuery : TTurnBasedMatchesdeclineOptions) : TTurnBasedMatch;
  8183. Var
  8184. _Q : String;
  8185. begin
  8186. _Q:='';
  8187. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8188. AddToQuery(_Q,'language',AQuery.language);
  8189. Result:=Decline(matchId,_Q);
  8190. end;
  8191. Procedure TTurnBasedMatchesResource.Dismiss(matchId: string; AQuery : string = '');
  8192. Const
  8193. _HTTPMethod = 'PUT';
  8194. _Path = 'turnbasedmatches/{matchId}/dismiss';
  8195. _Methodid = 'games.turnBasedMatches.dismiss';
  8196. Var
  8197. _P : String;
  8198. begin
  8199. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8200. ServiceCall(_HTTPMethod,_P,AQuery,Nil,Nil);
  8201. end;
  8202. Procedure TTurnBasedMatchesResource.Dismiss(matchId: string; AQuery : TTurnBasedMatchesdismissOptions);
  8203. Var
  8204. _Q : String;
  8205. begin
  8206. _Q:='';
  8207. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8208. Dismiss(matchId,_Q);
  8209. end;
  8210. Function TTurnBasedMatchesResource.Finish(matchId: string; aTurnBasedMatchResults : TTurnBasedMatchResults; AQuery : string = '') : TTurnBasedMatch;
  8211. Const
  8212. _HTTPMethod = 'PUT';
  8213. _Path = 'turnbasedmatches/{matchId}/finish';
  8214. _Methodid = 'games.turnBasedMatches.finish';
  8215. Var
  8216. _P : String;
  8217. begin
  8218. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8219. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aTurnBasedMatchResults,TTurnBasedMatch) as TTurnBasedMatch;
  8220. end;
  8221. Function TTurnBasedMatchesResource.Finish(matchId: string; aTurnBasedMatchResults : TTurnBasedMatchResults; AQuery : TTurnBasedMatchesfinishOptions) : TTurnBasedMatch;
  8222. Var
  8223. _Q : String;
  8224. begin
  8225. _Q:='';
  8226. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8227. AddToQuery(_Q,'language',AQuery.language);
  8228. Result:=Finish(matchId,aTurnBasedMatchResults,_Q);
  8229. end;
  8230. Function TTurnBasedMatchesResource.Get(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  8231. Const
  8232. _HTTPMethod = 'GET';
  8233. _Path = 'turnbasedmatches/{matchId}';
  8234. _Methodid = 'games.turnBasedMatches.get';
  8235. Var
  8236. _P : String;
  8237. begin
  8238. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8239. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTurnBasedMatch) as TTurnBasedMatch;
  8240. end;
  8241. Function TTurnBasedMatchesResource.Get(matchId: string; AQuery : TTurnBasedMatchesgetOptions) : TTurnBasedMatch;
  8242. Var
  8243. _Q : String;
  8244. begin
  8245. _Q:='';
  8246. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8247. AddToQuery(_Q,'includeMatchData',AQuery.includeMatchData);
  8248. AddToQuery(_Q,'language',AQuery.language);
  8249. Result:=Get(matchId,_Q);
  8250. end;
  8251. Function TTurnBasedMatchesResource.Join(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  8252. Const
  8253. _HTTPMethod = 'PUT';
  8254. _Path = 'turnbasedmatches/{matchId}/join';
  8255. _Methodid = 'games.turnBasedMatches.join';
  8256. Var
  8257. _P : String;
  8258. begin
  8259. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8260. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTurnBasedMatch) as TTurnBasedMatch;
  8261. end;
  8262. Function TTurnBasedMatchesResource.Join(matchId: string; AQuery : TTurnBasedMatchesjoinOptions) : TTurnBasedMatch;
  8263. Var
  8264. _Q : String;
  8265. begin
  8266. _Q:='';
  8267. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8268. AddToQuery(_Q,'language',AQuery.language);
  8269. Result:=Join(matchId,_Q);
  8270. end;
  8271. Function TTurnBasedMatchesResource.Leave(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  8272. Const
  8273. _HTTPMethod = 'PUT';
  8274. _Path = 'turnbasedmatches/{matchId}/leave';
  8275. _Methodid = 'games.turnBasedMatches.leave';
  8276. Var
  8277. _P : String;
  8278. begin
  8279. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8280. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTurnBasedMatch) as TTurnBasedMatch;
  8281. end;
  8282. Function TTurnBasedMatchesResource.Leave(matchId: string; AQuery : TTurnBasedMatchesleaveOptions) : TTurnBasedMatch;
  8283. Var
  8284. _Q : String;
  8285. begin
  8286. _Q:='';
  8287. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8288. AddToQuery(_Q,'language',AQuery.language);
  8289. Result:=Leave(matchId,_Q);
  8290. end;
  8291. Function TTurnBasedMatchesResource.LeaveTurn(matchId: string; AQuery : string = '') : TTurnBasedMatch;
  8292. Const
  8293. _HTTPMethod = 'PUT';
  8294. _Path = 'turnbasedmatches/{matchId}/leaveTurn';
  8295. _Methodid = 'games.turnBasedMatches.leaveTurn';
  8296. Var
  8297. _P : String;
  8298. begin
  8299. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8300. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTurnBasedMatch) as TTurnBasedMatch;
  8301. end;
  8302. Function TTurnBasedMatchesResource.LeaveTurn(matchId: string; AQuery : TTurnBasedMatchesleaveTurnOptions) : TTurnBasedMatch;
  8303. Var
  8304. _Q : String;
  8305. begin
  8306. _Q:='';
  8307. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8308. AddToQuery(_Q,'language',AQuery.language);
  8309. AddToQuery(_Q,'matchVersion',AQuery.matchVersion);
  8310. AddToQuery(_Q,'pendingParticipantId',AQuery.pendingParticipantId);
  8311. Result:=LeaveTurn(matchId,_Q);
  8312. end;
  8313. Function TTurnBasedMatchesResource.List(AQuery : string = '') : TTurnBasedMatchList;
  8314. Const
  8315. _HTTPMethod = 'GET';
  8316. _Path = 'turnbasedmatches';
  8317. _Methodid = 'games.turnBasedMatches.list';
  8318. begin
  8319. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TTurnBasedMatchList) as TTurnBasedMatchList;
  8320. end;
  8321. Function TTurnBasedMatchesResource.List(AQuery : TTurnBasedMatcheslistOptions) : TTurnBasedMatchList;
  8322. Var
  8323. _Q : String;
  8324. begin
  8325. _Q:='';
  8326. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8327. AddToQuery(_Q,'includeMatchData',AQuery.includeMatchData);
  8328. AddToQuery(_Q,'language',AQuery.language);
  8329. AddToQuery(_Q,'maxCompletedMatches',AQuery.maxCompletedMatches);
  8330. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  8331. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  8332. Result:=List(_Q);
  8333. end;
  8334. Function TTurnBasedMatchesResource.Rematch(matchId: string; AQuery : string = '') : TTurnBasedMatchRematch;
  8335. Const
  8336. _HTTPMethod = 'POST';
  8337. _Path = 'turnbasedmatches/{matchId}/rematch';
  8338. _Methodid = 'games.turnBasedMatches.rematch';
  8339. Var
  8340. _P : String;
  8341. begin
  8342. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8343. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TTurnBasedMatchRematch) as TTurnBasedMatchRematch;
  8344. end;
  8345. Function TTurnBasedMatchesResource.Rematch(matchId: string; AQuery : TTurnBasedMatchesrematchOptions) : TTurnBasedMatchRematch;
  8346. Var
  8347. _Q : String;
  8348. begin
  8349. _Q:='';
  8350. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8351. AddToQuery(_Q,'language',AQuery.language);
  8352. AddToQuery(_Q,'requestId',AQuery.requestId);
  8353. Result:=Rematch(matchId,_Q);
  8354. end;
  8355. Function TTurnBasedMatchesResource.Sync(AQuery : string = '') : TTurnBasedMatchSync;
  8356. Const
  8357. _HTTPMethod = 'GET';
  8358. _Path = 'turnbasedmatches/sync';
  8359. _Methodid = 'games.turnBasedMatches.sync';
  8360. begin
  8361. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TTurnBasedMatchSync) as TTurnBasedMatchSync;
  8362. end;
  8363. Function TTurnBasedMatchesResource.Sync(AQuery : TTurnBasedMatchessyncOptions) : TTurnBasedMatchSync;
  8364. Var
  8365. _Q : String;
  8366. begin
  8367. _Q:='';
  8368. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8369. AddToQuery(_Q,'includeMatchData',AQuery.includeMatchData);
  8370. AddToQuery(_Q,'language',AQuery.language);
  8371. AddToQuery(_Q,'maxCompletedMatches',AQuery.maxCompletedMatches);
  8372. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  8373. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  8374. Result:=Sync(_Q);
  8375. end;
  8376. Function TTurnBasedMatchesResource.TakeTurn(matchId: string; aTurnBasedMatchTurn : TTurnBasedMatchTurn; AQuery : string = '') : TTurnBasedMatch;
  8377. Const
  8378. _HTTPMethod = 'PUT';
  8379. _Path = 'turnbasedmatches/{matchId}/turn';
  8380. _Methodid = 'games.turnBasedMatches.takeTurn';
  8381. Var
  8382. _P : String;
  8383. begin
  8384. _P:=SubstitutePath(_Path,['matchId',matchId]);
  8385. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aTurnBasedMatchTurn,TTurnBasedMatch) as TTurnBasedMatch;
  8386. end;
  8387. Function TTurnBasedMatchesResource.TakeTurn(matchId: string; aTurnBasedMatchTurn : TTurnBasedMatchTurn; AQuery : TTurnBasedMatchestakeTurnOptions) : TTurnBasedMatch;
  8388. Var
  8389. _Q : String;
  8390. begin
  8391. _Q:='';
  8392. AddToQuery(_Q,'consistencyToken',AQuery.consistencyToken);
  8393. AddToQuery(_Q,'language',AQuery.language);
  8394. Result:=TakeTurn(matchId,aTurnBasedMatchTurn,_Q);
  8395. end;
  8396. { --------------------------------------------------------------------
  8397. TGamesAPI
  8398. --------------------------------------------------------------------}
  8399. Class Function TGamesAPI.APIName : String;
  8400. begin
  8401. Result:='games';
  8402. end;
  8403. Class Function TGamesAPI.APIVersion : String;
  8404. begin
  8405. Result:='v1';
  8406. end;
  8407. Class Function TGamesAPI.APIRevision : String;
  8408. begin
  8409. Result:='20160519';
  8410. end;
  8411. Class Function TGamesAPI.APIID : String;
  8412. begin
  8413. Result:='games:v1';
  8414. end;
  8415. Class Function TGamesAPI.APITitle : String;
  8416. begin
  8417. Result:='Google Play Game Services API';
  8418. end;
  8419. Class Function TGamesAPI.APIDescription : String;
  8420. begin
  8421. Result:='The API for Google Play Game Services.';
  8422. end;
  8423. Class Function TGamesAPI.APIOwnerDomain : String;
  8424. begin
  8425. Result:='google.com';
  8426. end;
  8427. Class Function TGamesAPI.APIOwnerName : String;
  8428. begin
  8429. Result:='Google';
  8430. end;
  8431. Class Function TGamesAPI.APIIcon16 : String;
  8432. begin
  8433. Result:='http://www.google.com/images/icons/product/search-16.gif';
  8434. end;
  8435. Class Function TGamesAPI.APIIcon32 : String;
  8436. begin
  8437. Result:='http://www.google.com/images/icons/product/search-32.gif';
  8438. end;
  8439. Class Function TGamesAPI.APIdocumentationLink : String;
  8440. begin
  8441. Result:='https://developers.google.com/games/services/';
  8442. end;
  8443. Class Function TGamesAPI.APIrootUrl : string;
  8444. begin
  8445. Result:='https://www.googleapis.com/';
  8446. end;
  8447. Class Function TGamesAPI.APIbasePath : string;
  8448. begin
  8449. Result:='/games/v1/';
  8450. end;
  8451. Class Function TGamesAPI.APIbaseURL : String;
  8452. begin
  8453. Result:='https://www.googleapis.com/games/v1/';
  8454. end;
  8455. Class Function TGamesAPI.APIProtocol : string;
  8456. begin
  8457. Result:='rest';
  8458. end;
  8459. Class Function TGamesAPI.APIservicePath : string;
  8460. begin
  8461. Result:='games/v1/';
  8462. end;
  8463. Class Function TGamesAPI.APIbatchPath : String;
  8464. begin
  8465. Result:='batch';
  8466. end;
  8467. Class Function TGamesAPI.APIAuthScopes : TScopeInfoArray;
  8468. begin
  8469. SetLength(Result,3);
  8470. Result[0].Name:='https://www.googleapis.com/auth/drive.appdata';
  8471. Result[0].Description:='View and manage its own configuration data in your Google Drive';
  8472. Result[1].Name:='https://www.googleapis.com/auth/games';
  8473. Result[1].Description:='Share your Google+ profile information and view and manage your game activity';
  8474. Result[2].Name:='https://www.googleapis.com/auth/plus.login';
  8475. Result[2].Description:='Know the list of people in your circles, your age range, and language';
  8476. end;
  8477. Class Function TGamesAPI.APINeedsAuth : Boolean;
  8478. begin
  8479. Result:=True;
  8480. end;
  8481. Class Procedure TGamesAPI.RegisterAPIResources;
  8482. begin
  8483. TAchievementDefinition.RegisterObject;
  8484. TAchievementDefinitionsListResponse.RegisterObject;
  8485. TAchievementIncrementResponse.RegisterObject;
  8486. TAchievementRevealResponse.RegisterObject;
  8487. TAchievementSetStepsAtLeastResponse.RegisterObject;
  8488. TAchievementUnlockResponse.RegisterObject;
  8489. TAchievementUpdateMultipleRequest.RegisterObject;
  8490. TAchievementUpdateMultipleResponse.RegisterObject;
  8491. TAchievementUpdateRequest.RegisterObject;
  8492. TAchievementUpdateResponse.RegisterObject;
  8493. TAggregateStats.RegisterObject;
  8494. TAnonymousPlayer.RegisterObject;
  8495. TApplication.RegisterObject;
  8496. TApplicationCategory.RegisterObject;
  8497. TApplicationVerifyResponse.RegisterObject;
  8498. TCategory.RegisterObject;
  8499. TCategoryListResponse.RegisterObject;
  8500. TEventBatchRecordFailure.RegisterObject;
  8501. TEventChild.RegisterObject;
  8502. TEventDefinition.RegisterObject;
  8503. TEventDefinitionListResponse.RegisterObject;
  8504. TEventPeriodRange.RegisterObject;
  8505. TEventPeriodUpdate.RegisterObject;
  8506. TEventRecordFailure.RegisterObject;
  8507. TEventRecordRequest.RegisterObject;
  8508. TEventUpdateRequest.RegisterObject;
  8509. TEventUpdateResponse.RegisterObject;
  8510. TGamesAchievementIncrement.RegisterObject;
  8511. TGamesAchievementSetStepsAtLeast.RegisterObject;
  8512. TImageAsset.RegisterObject;
  8513. TInstance.RegisterObject;
  8514. TInstanceAndroidDetails.RegisterObject;
  8515. TInstanceIosDetails.RegisterObject;
  8516. TInstanceWebDetails.RegisterObject;
  8517. TLeaderboard.RegisterObject;
  8518. TLeaderboardEntry.RegisterObject;
  8519. TLeaderboardListResponse.RegisterObject;
  8520. TLeaderboardScoreRank.RegisterObject;
  8521. TLeaderboardScores.RegisterObject;
  8522. TMetagameConfig.RegisterObject;
  8523. TNetworkDiagnostics.RegisterObject;
  8524. TParticipantResult.RegisterObject;
  8525. TPeerChannelDiagnostics.RegisterObject;
  8526. TPeerSessionDiagnostics.RegisterObject;
  8527. TPlayed.RegisterObject;
  8528. TPlayerTypename.RegisterObject;
  8529. TPlayer.RegisterObject;
  8530. TPlayerAchievement.RegisterObject;
  8531. TPlayerAchievementListResponse.RegisterObject;
  8532. TPlayerEvent.RegisterObject;
  8533. TPlayerEventListResponse.RegisterObject;
  8534. TPlayerExperienceInfo.RegisterObject;
  8535. TPlayerLeaderboardScore.RegisterObject;
  8536. TPlayerLeaderboardScoreListResponse.RegisterObject;
  8537. TPlayerLevel.RegisterObject;
  8538. TPlayerListResponse.RegisterObject;
  8539. TPlayerScore.RegisterObject;
  8540. TPlayerScoreListResponse.RegisterObject;
  8541. TPlayerScoreResponse.RegisterObject;
  8542. TPlayerScoreSubmissionList.RegisterObject;
  8543. TProfileSettings.RegisterObject;
  8544. TPushToken.RegisterObject;
  8545. TPushTokenIdTypeios.RegisterObject;
  8546. TPushTokenId.RegisterObject;
  8547. TQuest.RegisterObject;
  8548. TQuestContribution.RegisterObject;
  8549. TQuestCriterion.RegisterObject;
  8550. TQuestListResponse.RegisterObject;
  8551. TQuestMilestone.RegisterObject;
  8552. TRevisionCheckResponse.RegisterObject;
  8553. TRoom.RegisterObject;
  8554. TRoomAutoMatchStatus.RegisterObject;
  8555. TRoomAutoMatchingCriteria.RegisterObject;
  8556. TRoomClientAddress.RegisterObject;
  8557. TRoomCreateRequest.RegisterObject;
  8558. TRoomJoinRequest.RegisterObject;
  8559. TRoomLeaveDiagnostics.RegisterObject;
  8560. TRoomLeaveRequest.RegisterObject;
  8561. TRoomList.RegisterObject;
  8562. TRoomModification.RegisterObject;
  8563. TRoomP2PStatus.RegisterObject;
  8564. TRoomP2PStatuses.RegisterObject;
  8565. TRoomParticipant.RegisterObject;
  8566. TRoomStatus.RegisterObject;
  8567. TScoreSubmission.RegisterObject;
  8568. TSnapshot.RegisterObject;
  8569. TSnapshotImage.RegisterObject;
  8570. TSnapshotListResponse.RegisterObject;
  8571. TTurnBasedAutoMatchingCriteria.RegisterObject;
  8572. TTurnBasedMatch.RegisterObject;
  8573. TTurnBasedMatchCreateRequest.RegisterObject;
  8574. TTurnBasedMatchData.RegisterObject;
  8575. TTurnBasedMatchDataRequest.RegisterObject;
  8576. TTurnBasedMatchList.RegisterObject;
  8577. TTurnBasedMatchModification.RegisterObject;
  8578. TTurnBasedMatchParticipant.RegisterObject;
  8579. TTurnBasedMatchRematch.RegisterObject;
  8580. TTurnBasedMatchResults.RegisterObject;
  8581. TTurnBasedMatchSync.RegisterObject;
  8582. TTurnBasedMatchTurn.RegisterObject;
  8583. end;
  8584. Function TGamesAPI.GetAchievementDefinitionsInstance : TAchievementDefinitionsResource;
  8585. begin
  8586. if (FAchievementDefinitionsInstance=Nil) then
  8587. FAchievementDefinitionsInstance:=CreateAchievementDefinitionsResource;
  8588. Result:=FAchievementDefinitionsInstance;
  8589. end;
  8590. Function TGamesAPI.CreateAchievementDefinitionsResource : TAchievementDefinitionsResource;
  8591. begin
  8592. Result:=CreateAchievementDefinitionsResource(Self);
  8593. end;
  8594. Function TGamesAPI.CreateAchievementDefinitionsResource(AOwner : TComponent) : TAchievementDefinitionsResource;
  8595. begin
  8596. Result:=TAchievementDefinitionsResource.Create(AOwner);
  8597. Result.API:=Self.API;
  8598. end;
  8599. Function TGamesAPI.GetAchievementsInstance : TAchievementsResource;
  8600. begin
  8601. if (FAchievementsInstance=Nil) then
  8602. FAchievementsInstance:=CreateAchievementsResource;
  8603. Result:=FAchievementsInstance;
  8604. end;
  8605. Function TGamesAPI.CreateAchievementsResource : TAchievementsResource;
  8606. begin
  8607. Result:=CreateAchievementsResource(Self);
  8608. end;
  8609. Function TGamesAPI.CreateAchievementsResource(AOwner : TComponent) : TAchievementsResource;
  8610. begin
  8611. Result:=TAchievementsResource.Create(AOwner);
  8612. Result.API:=Self.API;
  8613. end;
  8614. Function TGamesAPI.GetApplicationsInstance : TApplicationsResource;
  8615. begin
  8616. if (FApplicationsInstance=Nil) then
  8617. FApplicationsInstance:=CreateApplicationsResource;
  8618. Result:=FApplicationsInstance;
  8619. end;
  8620. Function TGamesAPI.CreateApplicationsResource : TApplicationsResource;
  8621. begin
  8622. Result:=CreateApplicationsResource(Self);
  8623. end;
  8624. Function TGamesAPI.CreateApplicationsResource(AOwner : TComponent) : TApplicationsResource;
  8625. begin
  8626. Result:=TApplicationsResource.Create(AOwner);
  8627. Result.API:=Self.API;
  8628. end;
  8629. Function TGamesAPI.GetEventsInstance : TEventsResource;
  8630. begin
  8631. if (FEventsInstance=Nil) then
  8632. FEventsInstance:=CreateEventsResource;
  8633. Result:=FEventsInstance;
  8634. end;
  8635. Function TGamesAPI.CreateEventsResource : TEventsResource;
  8636. begin
  8637. Result:=CreateEventsResource(Self);
  8638. end;
  8639. Function TGamesAPI.CreateEventsResource(AOwner : TComponent) : TEventsResource;
  8640. begin
  8641. Result:=TEventsResource.Create(AOwner);
  8642. Result.API:=Self.API;
  8643. end;
  8644. Function TGamesAPI.GetLeaderboardsInstance : TLeaderboardsResource;
  8645. begin
  8646. if (FLeaderboardsInstance=Nil) then
  8647. FLeaderboardsInstance:=CreateLeaderboardsResource;
  8648. Result:=FLeaderboardsInstance;
  8649. end;
  8650. Function TGamesAPI.CreateLeaderboardsResource : TLeaderboardsResource;
  8651. begin
  8652. Result:=CreateLeaderboardsResource(Self);
  8653. end;
  8654. Function TGamesAPI.CreateLeaderboardsResource(AOwner : TComponent) : TLeaderboardsResource;
  8655. begin
  8656. Result:=TLeaderboardsResource.Create(AOwner);
  8657. Result.API:=Self.API;
  8658. end;
  8659. Function TGamesAPI.GetMetagameInstance : TMetagameResource;
  8660. begin
  8661. if (FMetagameInstance=Nil) then
  8662. FMetagameInstance:=CreateMetagameResource;
  8663. Result:=FMetagameInstance;
  8664. end;
  8665. Function TGamesAPI.CreateMetagameResource : TMetagameResource;
  8666. begin
  8667. Result:=CreateMetagameResource(Self);
  8668. end;
  8669. Function TGamesAPI.CreateMetagameResource(AOwner : TComponent) : TMetagameResource;
  8670. begin
  8671. Result:=TMetagameResource.Create(AOwner);
  8672. Result.API:=Self.API;
  8673. end;
  8674. Function TGamesAPI.GetPlayersInstance : TPlayersResource;
  8675. begin
  8676. if (FPlayersInstance=Nil) then
  8677. FPlayersInstance:=CreatePlayersResource;
  8678. Result:=FPlayersInstance;
  8679. end;
  8680. Function TGamesAPI.CreatePlayersResource : TPlayersResource;
  8681. begin
  8682. Result:=CreatePlayersResource(Self);
  8683. end;
  8684. Function TGamesAPI.CreatePlayersResource(AOwner : TComponent) : TPlayersResource;
  8685. begin
  8686. Result:=TPlayersResource.Create(AOwner);
  8687. Result.API:=Self.API;
  8688. end;
  8689. Function TGamesAPI.GetPushtokensInstance : TPushtokensResource;
  8690. begin
  8691. if (FPushtokensInstance=Nil) then
  8692. FPushtokensInstance:=CreatePushtokensResource;
  8693. Result:=FPushtokensInstance;
  8694. end;
  8695. Function TGamesAPI.CreatePushtokensResource : TPushtokensResource;
  8696. begin
  8697. Result:=CreatePushtokensResource(Self);
  8698. end;
  8699. Function TGamesAPI.CreatePushtokensResource(AOwner : TComponent) : TPushtokensResource;
  8700. begin
  8701. Result:=TPushtokensResource.Create(AOwner);
  8702. Result.API:=Self.API;
  8703. end;
  8704. Function TGamesAPI.GetQuestMilestonesInstance : TQuestMilestonesResource;
  8705. begin
  8706. if (FQuestMilestonesInstance=Nil) then
  8707. FQuestMilestonesInstance:=CreateQuestMilestonesResource;
  8708. Result:=FQuestMilestonesInstance;
  8709. end;
  8710. Function TGamesAPI.CreateQuestMilestonesResource : TQuestMilestonesResource;
  8711. begin
  8712. Result:=CreateQuestMilestonesResource(Self);
  8713. end;
  8714. Function TGamesAPI.CreateQuestMilestonesResource(AOwner : TComponent) : TQuestMilestonesResource;
  8715. begin
  8716. Result:=TQuestMilestonesResource.Create(AOwner);
  8717. Result.API:=Self.API;
  8718. end;
  8719. Function TGamesAPI.GetQuestsInstance : TQuestsResource;
  8720. begin
  8721. if (FQuestsInstance=Nil) then
  8722. FQuestsInstance:=CreateQuestsResource;
  8723. Result:=FQuestsInstance;
  8724. end;
  8725. Function TGamesAPI.CreateQuestsResource : TQuestsResource;
  8726. begin
  8727. Result:=CreateQuestsResource(Self);
  8728. end;
  8729. Function TGamesAPI.CreateQuestsResource(AOwner : TComponent) : TQuestsResource;
  8730. begin
  8731. Result:=TQuestsResource.Create(AOwner);
  8732. Result.API:=Self.API;
  8733. end;
  8734. Function TGamesAPI.GetRevisionsInstance : TRevisionsResource;
  8735. begin
  8736. if (FRevisionsInstance=Nil) then
  8737. FRevisionsInstance:=CreateRevisionsResource;
  8738. Result:=FRevisionsInstance;
  8739. end;
  8740. Function TGamesAPI.CreateRevisionsResource : TRevisionsResource;
  8741. begin
  8742. Result:=CreateRevisionsResource(Self);
  8743. end;
  8744. Function TGamesAPI.CreateRevisionsResource(AOwner : TComponent) : TRevisionsResource;
  8745. begin
  8746. Result:=TRevisionsResource.Create(AOwner);
  8747. Result.API:=Self.API;
  8748. end;
  8749. Function TGamesAPI.GetRoomsInstance : TRoomsResource;
  8750. begin
  8751. if (FRoomsInstance=Nil) then
  8752. FRoomsInstance:=CreateRoomsResource;
  8753. Result:=FRoomsInstance;
  8754. end;
  8755. Function TGamesAPI.CreateRoomsResource : TRoomsResource;
  8756. begin
  8757. Result:=CreateRoomsResource(Self);
  8758. end;
  8759. Function TGamesAPI.CreateRoomsResource(AOwner : TComponent) : TRoomsResource;
  8760. begin
  8761. Result:=TRoomsResource.Create(AOwner);
  8762. Result.API:=Self.API;
  8763. end;
  8764. Function TGamesAPI.GetScoresInstance : TScoresResource;
  8765. begin
  8766. if (FScoresInstance=Nil) then
  8767. FScoresInstance:=CreateScoresResource;
  8768. Result:=FScoresInstance;
  8769. end;
  8770. Function TGamesAPI.CreateScoresResource : TScoresResource;
  8771. begin
  8772. Result:=CreateScoresResource(Self);
  8773. end;
  8774. Function TGamesAPI.CreateScoresResource(AOwner : TComponent) : TScoresResource;
  8775. begin
  8776. Result:=TScoresResource.Create(AOwner);
  8777. Result.API:=Self.API;
  8778. end;
  8779. Function TGamesAPI.GetSnapshotsInstance : TSnapshotsResource;
  8780. begin
  8781. if (FSnapshotsInstance=Nil) then
  8782. FSnapshotsInstance:=CreateSnapshotsResource;
  8783. Result:=FSnapshotsInstance;
  8784. end;
  8785. Function TGamesAPI.CreateSnapshotsResource : TSnapshotsResource;
  8786. begin
  8787. Result:=CreateSnapshotsResource(Self);
  8788. end;
  8789. Function TGamesAPI.CreateSnapshotsResource(AOwner : TComponent) : TSnapshotsResource;
  8790. begin
  8791. Result:=TSnapshotsResource.Create(AOwner);
  8792. Result.API:=Self.API;
  8793. end;
  8794. Function TGamesAPI.GetTurnBasedMatchesInstance : TTurnBasedMatchesResource;
  8795. begin
  8796. if (FTurnBasedMatchesInstance=Nil) then
  8797. FTurnBasedMatchesInstance:=CreateTurnBasedMatchesResource;
  8798. Result:=FTurnBasedMatchesInstance;
  8799. end;
  8800. Function TGamesAPI.CreateTurnBasedMatchesResource : TTurnBasedMatchesResource;
  8801. begin
  8802. Result:=CreateTurnBasedMatchesResource(Self);
  8803. end;
  8804. Function TGamesAPI.CreateTurnBasedMatchesResource(AOwner : TComponent) : TTurnBasedMatchesResource;
  8805. begin
  8806. Result:=TTurnBasedMatchesResource.Create(AOwner);
  8807. Result.API:=Self.API;
  8808. end;
  8809. initialization
  8810. TGamesAPI.RegisterAPI;
  8811. end.