googleanalytics.pp 444 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078
  1. unit googleanalytics;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TAccount = Class;
  9. TAccountRef = Class;
  10. TAccountSummaries = Class;
  11. TAccountSummary = Class;
  12. TAccountTicket = Class;
  13. TAccounts = Class;
  14. TAdWordsAccount = Class;
  15. TAnalyticsDataimportDeleteUploadDataRequest = Class;
  16. TColumn = Class;
  17. TColumns = Class;
  18. TCustomDataSource = Class;
  19. TCustomDataSources = Class;
  20. TCustomDimension = Class;
  21. TCustomDimensions = Class;
  22. TCustomMetric = Class;
  23. TCustomMetrics = Class;
  24. TEntityAdWordsLink = Class;
  25. TEntityAdWordsLinks = Class;
  26. TEntityUserLink = Class;
  27. TEntityUserLinks = Class;
  28. TExperiment = Class;
  29. TExperiments = Class;
  30. TFilter = Class;
  31. TFilterExpression = Class;
  32. TFilterRef = Class;
  33. TFilters = Class;
  34. TGaData = Class;
  35. TGoal = Class;
  36. TGoals = Class;
  37. TMcfData = Class;
  38. TProfile = Class;
  39. TProfileFilterLink = Class;
  40. TProfileFilterLinks = Class;
  41. TProfileRef = Class;
  42. TProfileSummary = Class;
  43. TProfiles = Class;
  44. TRealtimeData = Class;
  45. TSegment = Class;
  46. TSegments = Class;
  47. TUnsampledReport = Class;
  48. TUnsampledReports = Class;
  49. TUpload = Class;
  50. TUploads = Class;
  51. TUserRef = Class;
  52. TWebPropertyRef = Class;
  53. TWebPropertySummary = Class;
  54. TWebproperties = Class;
  55. TWebproperty = Class;
  56. TAccountArray = Array of TAccount;
  57. TAccountRefArray = Array of TAccountRef;
  58. TAccountSummariesArray = Array of TAccountSummaries;
  59. TAccountSummaryArray = Array of TAccountSummary;
  60. TAccountTicketArray = Array of TAccountTicket;
  61. TAccountsArray = Array of TAccounts;
  62. TAdWordsAccountArray = Array of TAdWordsAccount;
  63. TAnalyticsDataimportDeleteUploadDataRequestArray = Array of TAnalyticsDataimportDeleteUploadDataRequest;
  64. TColumnArray = Array of TColumn;
  65. TColumnsArray = Array of TColumns;
  66. TCustomDataSourceArray = Array of TCustomDataSource;
  67. TCustomDataSourcesArray = Array of TCustomDataSources;
  68. TCustomDimensionArray = Array of TCustomDimension;
  69. TCustomDimensionsArray = Array of TCustomDimensions;
  70. TCustomMetricArray = Array of TCustomMetric;
  71. TCustomMetricsArray = Array of TCustomMetrics;
  72. TEntityAdWordsLinkArray = Array of TEntityAdWordsLink;
  73. TEntityAdWordsLinksArray = Array of TEntityAdWordsLinks;
  74. TEntityUserLinkArray = Array of TEntityUserLink;
  75. TEntityUserLinksArray = Array of TEntityUserLinks;
  76. TExperimentArray = Array of TExperiment;
  77. TExperimentsArray = Array of TExperiments;
  78. TFilterArray = Array of TFilter;
  79. TFilterExpressionArray = Array of TFilterExpression;
  80. TFilterRefArray = Array of TFilterRef;
  81. TFiltersArray = Array of TFilters;
  82. TGaDataArray = Array of TGaData;
  83. TGoalArray = Array of TGoal;
  84. TGoalsArray = Array of TGoals;
  85. TMcfDataArray = Array of TMcfData;
  86. TProfileArray = Array of TProfile;
  87. TProfileFilterLinkArray = Array of TProfileFilterLink;
  88. TProfileFilterLinksArray = Array of TProfileFilterLinks;
  89. TProfileRefArray = Array of TProfileRef;
  90. TProfileSummaryArray = Array of TProfileSummary;
  91. TProfilesArray = Array of TProfiles;
  92. TRealtimeDataArray = Array of TRealtimeData;
  93. TSegmentArray = Array of TSegment;
  94. TSegmentsArray = Array of TSegments;
  95. TUnsampledReportArray = Array of TUnsampledReport;
  96. TUnsampledReportsArray = Array of TUnsampledReports;
  97. TUploadArray = Array of TUpload;
  98. TUploadsArray = Array of TUploads;
  99. TUserRefArray = Array of TUserRef;
  100. TWebPropertyRefArray = Array of TWebPropertyRef;
  101. TWebPropertySummaryArray = Array of TWebPropertySummary;
  102. TWebpropertiesArray = Array of TWebproperties;
  103. TWebpropertyArray = Array of TWebproperty;
  104. //Anonymous types, using auto-generated names
  105. TAccountTypechildLink = Class;
  106. TAccountTypepermissions = Class;
  107. TColumnTypeattributes = Class;
  108. TCustomDataSourceTypechildLink = Class;
  109. TCustomDataSourceTypeparentLink = Class;
  110. TCustomDimensionTypeparentLink = Class;
  111. TCustomMetricTypeparentLink = Class;
  112. TEntityAdWordsLinkTypeentity = Class;
  113. TEntityUserLinkTypeentity = Class;
  114. TEntityUserLinkTypepermissions = Class;
  115. TExperimentTypeparentLink = Class;
  116. TExperimentTypevariationsItem = Class;
  117. TFilterTypeadvancedDetails = Class;
  118. TFilterTypelowercaseDetails = Class;
  119. TFilterTypeparentLink = Class;
  120. TFilterTypesearchAndReplaceDetails = Class;
  121. TFilterTypeuppercaseDetails = Class;
  122. TGaDataTypecolumnHeadersItem = Class;
  123. TGaDataTypedataTableTypecolsItem = Class;
  124. TGaDataTypedataTableTyperowsItemTypecItem = Class;
  125. TGaDataTypedataTableTyperowsItem = Class;
  126. TGaDataTypedataTable = Class;
  127. TGaDataTypeprofileInfo = Class;
  128. TGaDataTypequery = Class;
  129. TGaDataTypetotalsForAllResults = Class;
  130. TGoalTypeeventDetailsTypeeventConditionsItem = Class;
  131. TGoalTypeeventDetails = Class;
  132. TGoalTypeparentLink = Class;
  133. TGoalTypeurlDestinationDetailsTypestepsItem = Class;
  134. TGoalTypeurlDestinationDetails = Class;
  135. TGoalTypevisitNumPagesDetails = Class;
  136. TGoalTypevisitTimeOnSiteDetails = Class;
  137. TMcfDataTypecolumnHeadersItem = Class;
  138. TMcfDataTypeprofileInfo = Class;
  139. TMcfDataTypequery = Class;
  140. TMcfDataTyperowsItemItemTypeconversionPathValueItem = Class;
  141. TMcfDataTyperowsItemItem = Class;
  142. TMcfDataTypetotalsForAllResults = Class;
  143. TProfileTypechildLink = Class;
  144. TProfileTypeparentLink = Class;
  145. TProfileTypepermissions = Class;
  146. TRealtimeDataTypecolumnHeadersItem = Class;
  147. TRealtimeDataTypeprofileInfo = Class;
  148. TRealtimeDataTypequery = Class;
  149. TRealtimeDataTypetotalsForAllResults = Class;
  150. TUnsampledReportTypecloudStorageDownloadDetails = Class;
  151. TUnsampledReportTypedriveDownloadDetails = Class;
  152. TWebpropertyTypechildLink = Class;
  153. TWebpropertyTypeparentLink = Class;
  154. TWebpropertyTypepermissions = Class;
  155. TAccountSummariesTypeitemsArray = Array of TAccountSummary;
  156. TAccountSummaryTypewebPropertiesArray = Array of TWebPropertySummary;
  157. TAccountsTypeitemsArray = Array of TAccount;
  158. TColumnsTypeitemsArray = Array of TColumn;
  159. TCustomDataSourcesTypeitemsArray = Array of TCustomDataSource;
  160. TCustomDimensionsTypeitemsArray = Array of TCustomDimension;
  161. TCustomMetricsTypeitemsArray = Array of TCustomMetric;
  162. TEntityAdWordsLinkTypeadWordsAccountsArray = Array of TAdWordsAccount;
  163. TEntityAdWordsLinksTypeitemsArray = Array of TEntityAdWordsLink;
  164. TEntityUserLinksTypeitemsArray = Array of TEntityUserLink;
  165. TExperimentTypevariationsArray = Array of TExperimentTypevariationsItem;
  166. TExperimentsTypeitemsArray = Array of TExperiment;
  167. TFiltersTypeitemsArray = Array of TFilter;
  168. TGaDataTypecolumnHeadersArray = Array of TGaDataTypecolumnHeadersItem;
  169. TGaDataTypedataTableTypecolsArray = Array of TGaDataTypedataTableTypecolsItem;
  170. TGaDataTypedataTableTyperowsItemTypecArray = Array of TGaDataTypedataTableTyperowsItemTypecItem;
  171. TGaDataTypedataTableTyperowsArray = Array of TGaDataTypedataTableTyperowsItem;
  172. TGaDataTyperowsArray = Array of TStringArray;
  173. TGoalTypeeventDetailsTypeeventConditionsArray = Array of TGoalTypeeventDetailsTypeeventConditionsItem;
  174. TGoalTypeurlDestinationDetailsTypestepsArray = Array of TGoalTypeurlDestinationDetailsTypestepsItem;
  175. TGoalsTypeitemsArray = Array of TGoal;
  176. TMcfDataTypecolumnHeadersArray = Array of TMcfDataTypecolumnHeadersItem;
  177. TMcfDataTyperowsItemItemTypeconversionPathValueArray = Array of TMcfDataTyperowsItemItemTypeconversionPathValueItem;
  178. TMcfDataTyperowsItemArray = Array of TMcfDataTyperowsItemItem;
  179. TMcfDataTyperowsArray = Array of TMcfDataTyperowsItemArray;
  180. TProfileFilterLinksTypeitemsArray = Array of TProfileFilterLink;
  181. TProfilesTypeitemsArray = Array of TProfile;
  182. TRealtimeDataTypecolumnHeadersArray = Array of TRealtimeDataTypecolumnHeadersItem;
  183. TRealtimeDataTyperowsArray = Array of TStringArray;
  184. TSegmentsTypeitemsArray = Array of TSegment;
  185. TUnsampledReportsTypeitemsArray = Array of TUnsampledReport;
  186. TUploadsTypeitemsArray = Array of TUpload;
  187. TWebPropertySummaryTypeprofilesArray = Array of TProfileSummary;
  188. TWebpropertiesTypeitemsArray = Array of TWebproperty;
  189. { --------------------------------------------------------------------
  190. TAccountTypechildLink
  191. --------------------------------------------------------------------}
  192. TAccountTypechildLink = Class(TGoogleBaseObject)
  193. Private
  194. Fhref : String;
  195. F_type : String;
  196. Protected
  197. Class Function ExportPropertyName(Const AName : String) : string; override;
  198. //Property setters
  199. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  200. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  201. Public
  202. Published
  203. Property href : String Index 0 Read Fhref Write Sethref;
  204. Property _type : String Index 8 Read F_type Write Set_type;
  205. end;
  206. TAccountTypechildLinkClass = Class of TAccountTypechildLink;
  207. { --------------------------------------------------------------------
  208. TAccountTypepermissions
  209. --------------------------------------------------------------------}
  210. TAccountTypepermissions = Class(TGoogleBaseObject)
  211. Private
  212. Feffective : TStringArray;
  213. Protected
  214. //Property setters
  215. Procedure Seteffective(AIndex : Integer; const AValue : TStringArray); virtual;
  216. //2.6.4. bug workaround
  217. {$IFDEF VER2_6}
  218. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  219. {$ENDIF VER2_6}
  220. Public
  221. Published
  222. Property effective : TStringArray Index 0 Read Feffective Write Seteffective;
  223. end;
  224. TAccountTypepermissionsClass = Class of TAccountTypepermissions;
  225. { --------------------------------------------------------------------
  226. TAccount
  227. --------------------------------------------------------------------}
  228. TAccount = Class(TGoogleBaseObject)
  229. Private
  230. FchildLink : TAccountTypechildLink;
  231. Fcreated : TDatetime;
  232. Fid : String;
  233. Fkind : String;
  234. Fname : String;
  235. Fpermissions : TAccountTypepermissions;
  236. FselfLink : String;
  237. Fstarred : boolean;
  238. Fupdated : TDatetime;
  239. Protected
  240. //Property setters
  241. Procedure SetchildLink(AIndex : Integer; const AValue : TAccountTypechildLink); virtual;
  242. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  243. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  244. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  245. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  246. Procedure Setpermissions(AIndex : Integer; const AValue : TAccountTypepermissions); virtual;
  247. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  248. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  249. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  250. Public
  251. Published
  252. Property childLink : TAccountTypechildLink Index 0 Read FchildLink Write SetchildLink;
  253. Property created : TDatetime Index 8 Read Fcreated Write Setcreated;
  254. Property id : String Index 16 Read Fid Write Setid;
  255. Property kind : String Index 24 Read Fkind Write Setkind;
  256. Property name : String Index 32 Read Fname Write Setname;
  257. Property permissions : TAccountTypepermissions Index 40 Read Fpermissions Write Setpermissions;
  258. Property selfLink : String Index 48 Read FselfLink Write SetselfLink;
  259. Property starred : boolean Index 56 Read Fstarred Write Setstarred;
  260. Property updated : TDatetime Index 64 Read Fupdated Write Setupdated;
  261. end;
  262. TAccountClass = Class of TAccount;
  263. { --------------------------------------------------------------------
  264. TAccountRef
  265. --------------------------------------------------------------------}
  266. TAccountRef = Class(TGoogleBaseObject)
  267. Private
  268. Fhref : String;
  269. Fid : String;
  270. Fkind : String;
  271. Fname : String;
  272. Protected
  273. //Property setters
  274. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  275. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  276. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  277. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  278. Public
  279. Published
  280. Property href : String Index 0 Read Fhref Write Sethref;
  281. Property id : String Index 8 Read Fid Write Setid;
  282. Property kind : String Index 16 Read Fkind Write Setkind;
  283. Property name : String Index 24 Read Fname Write Setname;
  284. end;
  285. TAccountRefClass = Class of TAccountRef;
  286. { --------------------------------------------------------------------
  287. TAccountSummaries
  288. --------------------------------------------------------------------}
  289. TAccountSummaries = Class(TGoogleBaseObject)
  290. Private
  291. Fitems : TAccountSummariesTypeitemsArray;
  292. FitemsPerPage : integer;
  293. Fkind : String;
  294. FnextLink : String;
  295. FpreviousLink : String;
  296. FstartIndex : integer;
  297. FtotalResults : integer;
  298. Fusername : String;
  299. Protected
  300. //Property setters
  301. Procedure Setitems(AIndex : Integer; const AValue : TAccountSummariesTypeitemsArray); virtual;
  302. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  303. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  304. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  305. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  306. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  307. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  308. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  309. //2.6.4. bug workaround
  310. {$IFDEF VER2_6}
  311. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  312. {$ENDIF VER2_6}
  313. Public
  314. Published
  315. Property items : TAccountSummariesTypeitemsArray Index 0 Read Fitems Write Setitems;
  316. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  317. Property kind : String Index 16 Read Fkind Write Setkind;
  318. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  319. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  320. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  321. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  322. Property username : String Index 56 Read Fusername Write Setusername;
  323. end;
  324. TAccountSummariesClass = Class of TAccountSummaries;
  325. { --------------------------------------------------------------------
  326. TAccountSummary
  327. --------------------------------------------------------------------}
  328. TAccountSummary = Class(TGoogleBaseObject)
  329. Private
  330. Fid : String;
  331. Fkind : String;
  332. Fname : String;
  333. Fstarred : boolean;
  334. FwebProperties : TAccountSummaryTypewebPropertiesArray;
  335. Protected
  336. //Property setters
  337. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  338. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  339. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  340. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  341. Procedure SetwebProperties(AIndex : Integer; const AValue : TAccountSummaryTypewebPropertiesArray); virtual;
  342. //2.6.4. bug workaround
  343. {$IFDEF VER2_6}
  344. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  345. {$ENDIF VER2_6}
  346. Public
  347. Published
  348. Property id : String Index 0 Read Fid Write Setid;
  349. Property kind : String Index 8 Read Fkind Write Setkind;
  350. Property name : String Index 16 Read Fname Write Setname;
  351. Property starred : boolean Index 24 Read Fstarred Write Setstarred;
  352. Property webProperties : TAccountSummaryTypewebPropertiesArray Index 32 Read FwebProperties Write SetwebProperties;
  353. end;
  354. TAccountSummaryClass = Class of TAccountSummary;
  355. { --------------------------------------------------------------------
  356. TAccountTicket
  357. --------------------------------------------------------------------}
  358. TAccountTicket = Class(TGoogleBaseObject)
  359. Private
  360. Faccount : TAccount;
  361. Fid : String;
  362. Fkind : String;
  363. Fprofile : TProfile;
  364. FredirectUri : String;
  365. Fwebproperty : TWebproperty;
  366. Protected
  367. //Property setters
  368. Procedure Setaccount(AIndex : Integer; const AValue : TAccount); virtual;
  369. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  370. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  371. Procedure Setprofile(AIndex : Integer; const AValue : TProfile); virtual;
  372. Procedure SetredirectUri(AIndex : Integer; const AValue : String); virtual;
  373. Procedure Setwebproperty(AIndex : Integer; const AValue : TWebproperty); virtual;
  374. Public
  375. Published
  376. Property account : TAccount Index 0 Read Faccount Write Setaccount;
  377. Property id : String Index 8 Read Fid Write Setid;
  378. Property kind : String Index 16 Read Fkind Write Setkind;
  379. Property profile : TProfile Index 24 Read Fprofile Write Setprofile;
  380. Property redirectUri : String Index 32 Read FredirectUri Write SetredirectUri;
  381. Property webproperty : TWebproperty Index 40 Read Fwebproperty Write Setwebproperty;
  382. end;
  383. TAccountTicketClass = Class of TAccountTicket;
  384. { --------------------------------------------------------------------
  385. TAccounts
  386. --------------------------------------------------------------------}
  387. TAccounts = Class(TGoogleBaseObject)
  388. Private
  389. Fitems : TAccountsTypeitemsArray;
  390. FitemsPerPage : integer;
  391. Fkind : String;
  392. FnextLink : String;
  393. FpreviousLink : String;
  394. FstartIndex : integer;
  395. FtotalResults : integer;
  396. Fusername : String;
  397. Protected
  398. //Property setters
  399. Procedure Setitems(AIndex : Integer; const AValue : TAccountsTypeitemsArray); virtual;
  400. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  401. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  402. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  403. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  404. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  405. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  406. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  407. //2.6.4. bug workaround
  408. {$IFDEF VER2_6}
  409. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  410. {$ENDIF VER2_6}
  411. Public
  412. Published
  413. Property items : TAccountsTypeitemsArray Index 0 Read Fitems Write Setitems;
  414. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  415. Property kind : String Index 16 Read Fkind Write Setkind;
  416. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  417. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  418. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  419. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  420. Property username : String Index 56 Read Fusername Write Setusername;
  421. end;
  422. TAccountsClass = Class of TAccounts;
  423. { --------------------------------------------------------------------
  424. TAdWordsAccount
  425. --------------------------------------------------------------------}
  426. TAdWordsAccount = Class(TGoogleBaseObject)
  427. Private
  428. FautoTaggingEnabled : boolean;
  429. FcustomerId : String;
  430. Fkind : String;
  431. Protected
  432. //Property setters
  433. Procedure SetautoTaggingEnabled(AIndex : Integer; const AValue : boolean); virtual;
  434. Procedure SetcustomerId(AIndex : Integer; const AValue : String); virtual;
  435. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  436. Public
  437. Published
  438. Property autoTaggingEnabled : boolean Index 0 Read FautoTaggingEnabled Write SetautoTaggingEnabled;
  439. Property customerId : String Index 8 Read FcustomerId Write SetcustomerId;
  440. Property kind : String Index 16 Read Fkind Write Setkind;
  441. end;
  442. TAdWordsAccountClass = Class of TAdWordsAccount;
  443. { --------------------------------------------------------------------
  444. TAnalyticsDataimportDeleteUploadDataRequest
  445. --------------------------------------------------------------------}
  446. TAnalyticsDataimportDeleteUploadDataRequest = Class(TGoogleBaseObject)
  447. Private
  448. FcustomDataImportUids : TStringArray;
  449. Protected
  450. //Property setters
  451. Procedure SetcustomDataImportUids(AIndex : Integer; const AValue : TStringArray); virtual;
  452. //2.6.4. bug workaround
  453. {$IFDEF VER2_6}
  454. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  455. {$ENDIF VER2_6}
  456. Public
  457. Published
  458. Property customDataImportUids : TStringArray Index 0 Read FcustomDataImportUids Write SetcustomDataImportUids;
  459. end;
  460. TAnalyticsDataimportDeleteUploadDataRequestClass = Class of TAnalyticsDataimportDeleteUploadDataRequest;
  461. { --------------------------------------------------------------------
  462. TColumnTypeattributes
  463. --------------------------------------------------------------------}
  464. TColumnTypeattributes = Class(TGoogleBaseObject)
  465. Private
  466. Protected
  467. //Property setters
  468. Public
  469. Class Function AllowAdditionalProperties : Boolean; override;
  470. Published
  471. end;
  472. TColumnTypeattributesClass = Class of TColumnTypeattributes;
  473. { --------------------------------------------------------------------
  474. TColumn
  475. --------------------------------------------------------------------}
  476. TColumn = Class(TGoogleBaseObject)
  477. Private
  478. Fattributes : TColumnTypeattributes;
  479. Fid : String;
  480. Fkind : String;
  481. Protected
  482. //Property setters
  483. Procedure Setattributes(AIndex : Integer; const AValue : TColumnTypeattributes); virtual;
  484. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  485. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  486. Public
  487. Published
  488. Property attributes : TColumnTypeattributes Index 0 Read Fattributes Write Setattributes;
  489. Property id : String Index 8 Read Fid Write Setid;
  490. Property kind : String Index 16 Read Fkind Write Setkind;
  491. end;
  492. TColumnClass = Class of TColumn;
  493. { --------------------------------------------------------------------
  494. TColumns
  495. --------------------------------------------------------------------}
  496. TColumns = Class(TGoogleBaseObject)
  497. Private
  498. FattributeNames : TStringArray;
  499. Fetag : String;
  500. Fitems : TColumnsTypeitemsArray;
  501. Fkind : String;
  502. FtotalResults : integer;
  503. Protected
  504. //Property setters
  505. Procedure SetattributeNames(AIndex : Integer; const AValue : TStringArray); virtual;
  506. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  507. Procedure Setitems(AIndex : Integer; const AValue : TColumnsTypeitemsArray); virtual;
  508. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  509. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  510. //2.6.4. bug workaround
  511. {$IFDEF VER2_6}
  512. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  513. {$ENDIF VER2_6}
  514. Public
  515. Published
  516. Property attributeNames : TStringArray Index 0 Read FattributeNames Write SetattributeNames;
  517. Property etag : String Index 8 Read Fetag Write Setetag;
  518. Property items : TColumnsTypeitemsArray Index 16 Read Fitems Write Setitems;
  519. Property kind : String Index 24 Read Fkind Write Setkind;
  520. Property totalResults : integer Index 32 Read FtotalResults Write SettotalResults;
  521. end;
  522. TColumnsClass = Class of TColumns;
  523. { --------------------------------------------------------------------
  524. TCustomDataSourceTypechildLink
  525. --------------------------------------------------------------------}
  526. TCustomDataSourceTypechildLink = Class(TGoogleBaseObject)
  527. Private
  528. Fhref : String;
  529. F_type : String;
  530. Protected
  531. Class Function ExportPropertyName(Const AName : String) : string; override;
  532. //Property setters
  533. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  534. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  535. Public
  536. Published
  537. Property href : String Index 0 Read Fhref Write Sethref;
  538. Property _type : String Index 8 Read F_type Write Set_type;
  539. end;
  540. TCustomDataSourceTypechildLinkClass = Class of TCustomDataSourceTypechildLink;
  541. { --------------------------------------------------------------------
  542. TCustomDataSourceTypeparentLink
  543. --------------------------------------------------------------------}
  544. TCustomDataSourceTypeparentLink = Class(TGoogleBaseObject)
  545. Private
  546. Fhref : String;
  547. F_type : String;
  548. Protected
  549. Class Function ExportPropertyName(Const AName : String) : string; override;
  550. //Property setters
  551. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  552. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  553. Public
  554. Published
  555. Property href : String Index 0 Read Fhref Write Sethref;
  556. Property _type : String Index 8 Read F_type Write Set_type;
  557. end;
  558. TCustomDataSourceTypeparentLinkClass = Class of TCustomDataSourceTypeparentLink;
  559. { --------------------------------------------------------------------
  560. TCustomDataSource
  561. --------------------------------------------------------------------}
  562. TCustomDataSource = Class(TGoogleBaseObject)
  563. Private
  564. FaccountId : String;
  565. FchildLink : TCustomDataSourceTypechildLink;
  566. Fcreated : TDatetime;
  567. Fdescription : String;
  568. Fid : String;
  569. FimportBehavior : String;
  570. Fkind : String;
  571. Fname : String;
  572. FparentLink : TCustomDataSourceTypeparentLink;
  573. FprofilesLinked : TStringArray;
  574. FselfLink : String;
  575. F_type : String;
  576. Fupdated : TDatetime;
  577. FuploadType : String;
  578. FwebPropertyId : String;
  579. Protected
  580. Class Function ExportPropertyName(Const AName : String) : string; override;
  581. //Property setters
  582. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  583. Procedure SetchildLink(AIndex : Integer; const AValue : TCustomDataSourceTypechildLink); virtual;
  584. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  585. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  586. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  587. Procedure SetimportBehavior(AIndex : Integer; const AValue : String); virtual;
  588. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  589. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  590. Procedure SetparentLink(AIndex : Integer; const AValue : TCustomDataSourceTypeparentLink); virtual;
  591. Procedure SetprofilesLinked(AIndex : Integer; const AValue : TStringArray); virtual;
  592. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  593. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  594. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  595. Procedure SetuploadType(AIndex : Integer; const AValue : String); virtual;
  596. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  597. //2.6.4. bug workaround
  598. {$IFDEF VER2_6}
  599. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  600. {$ENDIF VER2_6}
  601. Public
  602. Published
  603. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  604. Property childLink : TCustomDataSourceTypechildLink Index 8 Read FchildLink Write SetchildLink;
  605. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  606. Property description : String Index 24 Read Fdescription Write Setdescription;
  607. Property id : String Index 32 Read Fid Write Setid;
  608. Property importBehavior : String Index 40 Read FimportBehavior Write SetimportBehavior;
  609. Property kind : String Index 48 Read Fkind Write Setkind;
  610. Property name : String Index 56 Read Fname Write Setname;
  611. Property parentLink : TCustomDataSourceTypeparentLink Index 64 Read FparentLink Write SetparentLink;
  612. Property profilesLinked : TStringArray Index 72 Read FprofilesLinked Write SetprofilesLinked;
  613. Property selfLink : String Index 80 Read FselfLink Write SetselfLink;
  614. Property _type : String Index 88 Read F_type Write Set_type;
  615. Property updated : TDatetime Index 96 Read Fupdated Write Setupdated;
  616. Property uploadType : String Index 104 Read FuploadType Write SetuploadType;
  617. Property webPropertyId : String Index 112 Read FwebPropertyId Write SetwebPropertyId;
  618. end;
  619. TCustomDataSourceClass = Class of TCustomDataSource;
  620. { --------------------------------------------------------------------
  621. TCustomDataSources
  622. --------------------------------------------------------------------}
  623. TCustomDataSources = Class(TGoogleBaseObject)
  624. Private
  625. Fitems : TCustomDataSourcesTypeitemsArray;
  626. FitemsPerPage : integer;
  627. Fkind : String;
  628. FnextLink : String;
  629. FpreviousLink : String;
  630. FstartIndex : integer;
  631. FtotalResults : integer;
  632. Fusername : String;
  633. Protected
  634. //Property setters
  635. Procedure Setitems(AIndex : Integer; const AValue : TCustomDataSourcesTypeitemsArray); virtual;
  636. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  637. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  638. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  639. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  640. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  641. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  642. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  643. //2.6.4. bug workaround
  644. {$IFDEF VER2_6}
  645. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  646. {$ENDIF VER2_6}
  647. Public
  648. Published
  649. Property items : TCustomDataSourcesTypeitemsArray Index 0 Read Fitems Write Setitems;
  650. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  651. Property kind : String Index 16 Read Fkind Write Setkind;
  652. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  653. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  654. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  655. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  656. Property username : String Index 56 Read Fusername Write Setusername;
  657. end;
  658. TCustomDataSourcesClass = Class of TCustomDataSources;
  659. { --------------------------------------------------------------------
  660. TCustomDimensionTypeparentLink
  661. --------------------------------------------------------------------}
  662. TCustomDimensionTypeparentLink = Class(TGoogleBaseObject)
  663. Private
  664. Fhref : String;
  665. F_type : String;
  666. Protected
  667. Class Function ExportPropertyName(Const AName : String) : string; override;
  668. //Property setters
  669. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  670. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  671. Public
  672. Published
  673. Property href : String Index 0 Read Fhref Write Sethref;
  674. Property _type : String Index 8 Read F_type Write Set_type;
  675. end;
  676. TCustomDimensionTypeparentLinkClass = Class of TCustomDimensionTypeparentLink;
  677. { --------------------------------------------------------------------
  678. TCustomDimension
  679. --------------------------------------------------------------------}
  680. TCustomDimension = Class(TGoogleBaseObject)
  681. Private
  682. FaccountId : String;
  683. Factive : boolean;
  684. Fcreated : TDatetime;
  685. Fid : String;
  686. Findex : integer;
  687. Fkind : String;
  688. Fname : String;
  689. FparentLink : TCustomDimensionTypeparentLink;
  690. Fscope : String;
  691. FselfLink : String;
  692. Fupdated : TDatetime;
  693. FwebPropertyId : String;
  694. Protected
  695. //Property setters
  696. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  697. Procedure Setactive(AIndex : Integer; const AValue : boolean); virtual;
  698. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  699. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  700. Procedure Setindex(AIndex : Integer; const AValue : integer); virtual;
  701. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  702. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  703. Procedure SetparentLink(AIndex : Integer; const AValue : TCustomDimensionTypeparentLink); virtual;
  704. Procedure Setscope(AIndex : Integer; const AValue : String); virtual;
  705. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  706. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  707. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  708. Public
  709. Published
  710. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  711. Property active : boolean Index 8 Read Factive Write Setactive;
  712. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  713. Property id : String Index 24 Read Fid Write Setid;
  714. Property index : integer Index 32 Read Findex Write Setindex;
  715. Property kind : String Index 40 Read Fkind Write Setkind;
  716. Property name : String Index 48 Read Fname Write Setname;
  717. Property parentLink : TCustomDimensionTypeparentLink Index 56 Read FparentLink Write SetparentLink;
  718. Property scope : String Index 64 Read Fscope Write Setscope;
  719. Property selfLink : String Index 72 Read FselfLink Write SetselfLink;
  720. Property updated : TDatetime Index 80 Read Fupdated Write Setupdated;
  721. Property webPropertyId : String Index 88 Read FwebPropertyId Write SetwebPropertyId;
  722. end;
  723. TCustomDimensionClass = Class of TCustomDimension;
  724. { --------------------------------------------------------------------
  725. TCustomDimensions
  726. --------------------------------------------------------------------}
  727. TCustomDimensions = Class(TGoogleBaseObject)
  728. Private
  729. Fitems : TCustomDimensionsTypeitemsArray;
  730. FitemsPerPage : integer;
  731. Fkind : String;
  732. FnextLink : String;
  733. FpreviousLink : String;
  734. FstartIndex : integer;
  735. FtotalResults : integer;
  736. Fusername : String;
  737. Protected
  738. //Property setters
  739. Procedure Setitems(AIndex : Integer; const AValue : TCustomDimensionsTypeitemsArray); virtual;
  740. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  741. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  742. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  743. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  744. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  745. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  746. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  747. //2.6.4. bug workaround
  748. {$IFDEF VER2_6}
  749. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  750. {$ENDIF VER2_6}
  751. Public
  752. Published
  753. Property items : TCustomDimensionsTypeitemsArray Index 0 Read Fitems Write Setitems;
  754. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  755. Property kind : String Index 16 Read Fkind Write Setkind;
  756. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  757. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  758. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  759. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  760. Property username : String Index 56 Read Fusername Write Setusername;
  761. end;
  762. TCustomDimensionsClass = Class of TCustomDimensions;
  763. { --------------------------------------------------------------------
  764. TCustomMetricTypeparentLink
  765. --------------------------------------------------------------------}
  766. TCustomMetricTypeparentLink = Class(TGoogleBaseObject)
  767. Private
  768. Fhref : String;
  769. F_type : String;
  770. Protected
  771. Class Function ExportPropertyName(Const AName : String) : string; override;
  772. //Property setters
  773. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  774. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  775. Public
  776. Published
  777. Property href : String Index 0 Read Fhref Write Sethref;
  778. Property _type : String Index 8 Read F_type Write Set_type;
  779. end;
  780. TCustomMetricTypeparentLinkClass = Class of TCustomMetricTypeparentLink;
  781. { --------------------------------------------------------------------
  782. TCustomMetric
  783. --------------------------------------------------------------------}
  784. TCustomMetric = Class(TGoogleBaseObject)
  785. Private
  786. FaccountId : String;
  787. Factive : boolean;
  788. Fcreated : TDatetime;
  789. Fid : String;
  790. Findex : integer;
  791. Fkind : String;
  792. Fmax_value : String;
  793. Fmin_value : String;
  794. Fname : String;
  795. FparentLink : TCustomMetricTypeparentLink;
  796. Fscope : String;
  797. FselfLink : String;
  798. F_type : String;
  799. Fupdated : TDatetime;
  800. FwebPropertyId : String;
  801. Protected
  802. Class Function ExportPropertyName(Const AName : String) : string; override;
  803. //Property setters
  804. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  805. Procedure Setactive(AIndex : Integer; const AValue : boolean); virtual;
  806. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  807. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  808. Procedure Setindex(AIndex : Integer; const AValue : integer); virtual;
  809. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  810. Procedure Setmax_value(AIndex : Integer; const AValue : String); virtual;
  811. Procedure Setmin_value(AIndex : Integer; const AValue : String); virtual;
  812. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  813. Procedure SetparentLink(AIndex : Integer; const AValue : TCustomMetricTypeparentLink); virtual;
  814. Procedure Setscope(AIndex : Integer; const AValue : String); virtual;
  815. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  816. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  817. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  818. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  819. Public
  820. Published
  821. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  822. Property active : boolean Index 8 Read Factive Write Setactive;
  823. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  824. Property id : String Index 24 Read Fid Write Setid;
  825. Property index : integer Index 32 Read Findex Write Setindex;
  826. Property kind : String Index 40 Read Fkind Write Setkind;
  827. Property max_value : String Index 48 Read Fmax_value Write Setmax_value;
  828. Property min_value : String Index 56 Read Fmin_value Write Setmin_value;
  829. Property name : String Index 64 Read Fname Write Setname;
  830. Property parentLink : TCustomMetricTypeparentLink Index 72 Read FparentLink Write SetparentLink;
  831. Property scope : String Index 80 Read Fscope Write Setscope;
  832. Property selfLink : String Index 88 Read FselfLink Write SetselfLink;
  833. Property _type : String Index 96 Read F_type Write Set_type;
  834. Property updated : TDatetime Index 104 Read Fupdated Write Setupdated;
  835. Property webPropertyId : String Index 112 Read FwebPropertyId Write SetwebPropertyId;
  836. end;
  837. TCustomMetricClass = Class of TCustomMetric;
  838. { --------------------------------------------------------------------
  839. TCustomMetrics
  840. --------------------------------------------------------------------}
  841. TCustomMetrics = Class(TGoogleBaseObject)
  842. Private
  843. Fitems : TCustomMetricsTypeitemsArray;
  844. FitemsPerPage : integer;
  845. Fkind : String;
  846. FnextLink : String;
  847. FpreviousLink : String;
  848. FstartIndex : integer;
  849. FtotalResults : integer;
  850. Fusername : String;
  851. Protected
  852. //Property setters
  853. Procedure Setitems(AIndex : Integer; const AValue : TCustomMetricsTypeitemsArray); virtual;
  854. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  855. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  856. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  857. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  858. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  859. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  860. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  861. //2.6.4. bug workaround
  862. {$IFDEF VER2_6}
  863. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  864. {$ENDIF VER2_6}
  865. Public
  866. Published
  867. Property items : TCustomMetricsTypeitemsArray Index 0 Read Fitems Write Setitems;
  868. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  869. Property kind : String Index 16 Read Fkind Write Setkind;
  870. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  871. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  872. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  873. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  874. Property username : String Index 56 Read Fusername Write Setusername;
  875. end;
  876. TCustomMetricsClass = Class of TCustomMetrics;
  877. { --------------------------------------------------------------------
  878. TEntityAdWordsLinkTypeentity
  879. --------------------------------------------------------------------}
  880. TEntityAdWordsLinkTypeentity = Class(TGoogleBaseObject)
  881. Private
  882. FwebPropertyRef : TWebPropertyRef;
  883. Protected
  884. //Property setters
  885. Procedure SetwebPropertyRef(AIndex : Integer; const AValue : TWebPropertyRef); virtual;
  886. Public
  887. Published
  888. Property webPropertyRef : TWebPropertyRef Index 0 Read FwebPropertyRef Write SetwebPropertyRef;
  889. end;
  890. TEntityAdWordsLinkTypeentityClass = Class of TEntityAdWordsLinkTypeentity;
  891. { --------------------------------------------------------------------
  892. TEntityAdWordsLink
  893. --------------------------------------------------------------------}
  894. TEntityAdWordsLink = Class(TGoogleBaseObject)
  895. Private
  896. FadWordsAccounts : TEntityAdWordsLinkTypeadWordsAccountsArray;
  897. Fentity : TEntityAdWordsLinkTypeentity;
  898. Fid : String;
  899. Fkind : String;
  900. Fname : String;
  901. FprofileIds : TStringArray;
  902. FselfLink : String;
  903. Protected
  904. //Property setters
  905. Procedure SetadWordsAccounts(AIndex : Integer; const AValue : TEntityAdWordsLinkTypeadWordsAccountsArray); virtual;
  906. Procedure Setentity(AIndex : Integer; const AValue : TEntityAdWordsLinkTypeentity); virtual;
  907. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  908. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  909. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  910. Procedure SetprofileIds(AIndex : Integer; const AValue : TStringArray); virtual;
  911. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  912. //2.6.4. bug workaround
  913. {$IFDEF VER2_6}
  914. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  915. {$ENDIF VER2_6}
  916. Public
  917. Published
  918. Property adWordsAccounts : TEntityAdWordsLinkTypeadWordsAccountsArray Index 0 Read FadWordsAccounts Write SetadWordsAccounts;
  919. Property entity : TEntityAdWordsLinkTypeentity Index 8 Read Fentity Write Setentity;
  920. Property id : String Index 16 Read Fid Write Setid;
  921. Property kind : String Index 24 Read Fkind Write Setkind;
  922. Property name : String Index 32 Read Fname Write Setname;
  923. Property profileIds : TStringArray Index 40 Read FprofileIds Write SetprofileIds;
  924. Property selfLink : String Index 48 Read FselfLink Write SetselfLink;
  925. end;
  926. TEntityAdWordsLinkClass = Class of TEntityAdWordsLink;
  927. { --------------------------------------------------------------------
  928. TEntityAdWordsLinks
  929. --------------------------------------------------------------------}
  930. TEntityAdWordsLinks = Class(TGoogleBaseObject)
  931. Private
  932. Fitems : TEntityAdWordsLinksTypeitemsArray;
  933. FitemsPerPage : integer;
  934. Fkind : String;
  935. FnextLink : String;
  936. FpreviousLink : String;
  937. FstartIndex : integer;
  938. FtotalResults : integer;
  939. Protected
  940. //Property setters
  941. Procedure Setitems(AIndex : Integer; const AValue : TEntityAdWordsLinksTypeitemsArray); virtual;
  942. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  943. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  944. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  945. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  946. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  947. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  948. //2.6.4. bug workaround
  949. {$IFDEF VER2_6}
  950. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  951. {$ENDIF VER2_6}
  952. Public
  953. Published
  954. Property items : TEntityAdWordsLinksTypeitemsArray Index 0 Read Fitems Write Setitems;
  955. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  956. Property kind : String Index 16 Read Fkind Write Setkind;
  957. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  958. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  959. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  960. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  961. end;
  962. TEntityAdWordsLinksClass = Class of TEntityAdWordsLinks;
  963. { --------------------------------------------------------------------
  964. TEntityUserLinkTypeentity
  965. --------------------------------------------------------------------}
  966. TEntityUserLinkTypeentity = Class(TGoogleBaseObject)
  967. Private
  968. FaccountRef : TAccountRef;
  969. FprofileRef : TProfileRef;
  970. FwebPropertyRef : TWebPropertyRef;
  971. Protected
  972. //Property setters
  973. Procedure SetaccountRef(AIndex : Integer; const AValue : TAccountRef); virtual;
  974. Procedure SetprofileRef(AIndex : Integer; const AValue : TProfileRef); virtual;
  975. Procedure SetwebPropertyRef(AIndex : Integer; const AValue : TWebPropertyRef); virtual;
  976. Public
  977. Published
  978. Property accountRef : TAccountRef Index 0 Read FaccountRef Write SetaccountRef;
  979. Property profileRef : TProfileRef Index 8 Read FprofileRef Write SetprofileRef;
  980. Property webPropertyRef : TWebPropertyRef Index 16 Read FwebPropertyRef Write SetwebPropertyRef;
  981. end;
  982. TEntityUserLinkTypeentityClass = Class of TEntityUserLinkTypeentity;
  983. { --------------------------------------------------------------------
  984. TEntityUserLinkTypepermissions
  985. --------------------------------------------------------------------}
  986. TEntityUserLinkTypepermissions = Class(TGoogleBaseObject)
  987. Private
  988. Feffective : TStringArray;
  989. Flocal : TStringArray;
  990. Protected
  991. //Property setters
  992. Procedure Seteffective(AIndex : Integer; const AValue : TStringArray); virtual;
  993. Procedure Setlocal(AIndex : Integer; const AValue : TStringArray); virtual;
  994. //2.6.4. bug workaround
  995. {$IFDEF VER2_6}
  996. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  997. {$ENDIF VER2_6}
  998. Public
  999. Published
  1000. Property effective : TStringArray Index 0 Read Feffective Write Seteffective;
  1001. Property local : TStringArray Index 8 Read Flocal Write Setlocal;
  1002. end;
  1003. TEntityUserLinkTypepermissionsClass = Class of TEntityUserLinkTypepermissions;
  1004. { --------------------------------------------------------------------
  1005. TEntityUserLink
  1006. --------------------------------------------------------------------}
  1007. TEntityUserLink = Class(TGoogleBaseObject)
  1008. Private
  1009. Fentity : TEntityUserLinkTypeentity;
  1010. Fid : String;
  1011. Fkind : String;
  1012. Fpermissions : TEntityUserLinkTypepermissions;
  1013. FselfLink : String;
  1014. FuserRef : TUserRef;
  1015. Protected
  1016. //Property setters
  1017. Procedure Setentity(AIndex : Integer; const AValue : TEntityUserLinkTypeentity); virtual;
  1018. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1019. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1020. Procedure Setpermissions(AIndex : Integer; const AValue : TEntityUserLinkTypepermissions); virtual;
  1021. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1022. Procedure SetuserRef(AIndex : Integer; const AValue : TUserRef); virtual;
  1023. Public
  1024. Published
  1025. Property entity : TEntityUserLinkTypeentity Index 0 Read Fentity Write Setentity;
  1026. Property id : String Index 8 Read Fid Write Setid;
  1027. Property kind : String Index 16 Read Fkind Write Setkind;
  1028. Property permissions : TEntityUserLinkTypepermissions Index 24 Read Fpermissions Write Setpermissions;
  1029. Property selfLink : String Index 32 Read FselfLink Write SetselfLink;
  1030. Property userRef : TUserRef Index 40 Read FuserRef Write SetuserRef;
  1031. end;
  1032. TEntityUserLinkClass = Class of TEntityUserLink;
  1033. { --------------------------------------------------------------------
  1034. TEntityUserLinks
  1035. --------------------------------------------------------------------}
  1036. TEntityUserLinks = Class(TGoogleBaseObject)
  1037. Private
  1038. Fitems : TEntityUserLinksTypeitemsArray;
  1039. FitemsPerPage : integer;
  1040. Fkind : String;
  1041. FnextLink : String;
  1042. FpreviousLink : String;
  1043. FstartIndex : integer;
  1044. FtotalResults : integer;
  1045. Protected
  1046. //Property setters
  1047. Procedure Setitems(AIndex : Integer; const AValue : TEntityUserLinksTypeitemsArray); virtual;
  1048. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  1049. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1050. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  1051. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  1052. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  1053. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  1054. //2.6.4. bug workaround
  1055. {$IFDEF VER2_6}
  1056. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1057. {$ENDIF VER2_6}
  1058. Public
  1059. Published
  1060. Property items : TEntityUserLinksTypeitemsArray Index 0 Read Fitems Write Setitems;
  1061. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  1062. Property kind : String Index 16 Read Fkind Write Setkind;
  1063. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  1064. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  1065. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  1066. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  1067. end;
  1068. TEntityUserLinksClass = Class of TEntityUserLinks;
  1069. { --------------------------------------------------------------------
  1070. TExperimentTypeparentLink
  1071. --------------------------------------------------------------------}
  1072. TExperimentTypeparentLink = Class(TGoogleBaseObject)
  1073. Private
  1074. Fhref : String;
  1075. F_type : String;
  1076. Protected
  1077. Class Function ExportPropertyName(Const AName : String) : string; override;
  1078. //Property setters
  1079. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  1080. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1081. Public
  1082. Published
  1083. Property href : String Index 0 Read Fhref Write Sethref;
  1084. Property _type : String Index 8 Read F_type Write Set_type;
  1085. end;
  1086. TExperimentTypeparentLinkClass = Class of TExperimentTypeparentLink;
  1087. { --------------------------------------------------------------------
  1088. TExperimentTypevariationsItem
  1089. --------------------------------------------------------------------}
  1090. TExperimentTypevariationsItem = Class(TGoogleBaseObject)
  1091. Private
  1092. Fname : String;
  1093. Fstatus : String;
  1094. Furl : String;
  1095. Fweight : double;
  1096. Fwon : boolean;
  1097. Protected
  1098. //Property setters
  1099. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1100. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  1101. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  1102. Procedure Setweight(AIndex : Integer; const AValue : double); virtual;
  1103. Procedure Setwon(AIndex : Integer; const AValue : boolean); virtual;
  1104. Public
  1105. Published
  1106. Property name : String Index 0 Read Fname Write Setname;
  1107. Property status : String Index 8 Read Fstatus Write Setstatus;
  1108. Property url : String Index 16 Read Furl Write Seturl;
  1109. Property weight : double Index 24 Read Fweight Write Setweight;
  1110. Property won : boolean Index 32 Read Fwon Write Setwon;
  1111. end;
  1112. TExperimentTypevariationsItemClass = Class of TExperimentTypevariationsItem;
  1113. { --------------------------------------------------------------------
  1114. TExperiment
  1115. --------------------------------------------------------------------}
  1116. TExperiment = Class(TGoogleBaseObject)
  1117. Private
  1118. FaccountId : String;
  1119. Fcreated : TDatetime;
  1120. Fdescription : String;
  1121. FeditableInGaUi : boolean;
  1122. FendTime : TDatetime;
  1123. FequalWeighting : boolean;
  1124. Fid : String;
  1125. FinternalWebPropertyId : String;
  1126. Fkind : String;
  1127. FminimumExperimentLengthInDays : integer;
  1128. Fname : String;
  1129. FobjectiveMetric : String;
  1130. FoptimizationType : String;
  1131. FparentLink : TExperimentTypeparentLink;
  1132. FprofileId : String;
  1133. FreasonExperimentEnded : String;
  1134. FrewriteVariationUrlsAsOriginal : boolean;
  1135. FselfLink : String;
  1136. FservingFramework : String;
  1137. Fsnippet : String;
  1138. FstartTime : TDatetime;
  1139. Fstatus : String;
  1140. FtrafficCoverage : double;
  1141. Fupdated : TDatetime;
  1142. Fvariations : TExperimentTypevariationsArray;
  1143. FwebPropertyId : String;
  1144. FwinnerConfidenceLevel : double;
  1145. FwinnerFound : boolean;
  1146. Protected
  1147. //Property setters
  1148. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1149. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  1150. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1151. Procedure SeteditableInGaUi(AIndex : Integer; const AValue : boolean); virtual;
  1152. Procedure SetendTime(AIndex : Integer; const AValue : TDatetime); virtual;
  1153. Procedure SetequalWeighting(AIndex : Integer; const AValue : boolean); virtual;
  1154. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1155. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1156. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1157. Procedure SetminimumExperimentLengthInDays(AIndex : Integer; const AValue : integer); virtual;
  1158. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1159. Procedure SetobjectiveMetric(AIndex : Integer; const AValue : String); virtual;
  1160. Procedure SetoptimizationType(AIndex : Integer; const AValue : String); virtual;
  1161. Procedure SetparentLink(AIndex : Integer; const AValue : TExperimentTypeparentLink); virtual;
  1162. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  1163. Procedure SetreasonExperimentEnded(AIndex : Integer; const AValue : String); virtual;
  1164. Procedure SetrewriteVariationUrlsAsOriginal(AIndex : Integer; const AValue : boolean); virtual;
  1165. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1166. Procedure SetservingFramework(AIndex : Integer; const AValue : String); virtual;
  1167. Procedure Setsnippet(AIndex : Integer; const AValue : String); virtual;
  1168. Procedure SetstartTime(AIndex : Integer; const AValue : TDatetime); virtual;
  1169. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  1170. Procedure SettrafficCoverage(AIndex : Integer; const AValue : double); virtual;
  1171. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  1172. Procedure Setvariations(AIndex : Integer; const AValue : TExperimentTypevariationsArray); virtual;
  1173. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1174. Procedure SetwinnerConfidenceLevel(AIndex : Integer; const AValue : double); virtual;
  1175. Procedure SetwinnerFound(AIndex : Integer; const AValue : boolean); virtual;
  1176. //2.6.4. bug workaround
  1177. {$IFDEF VER2_6}
  1178. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1179. {$ENDIF VER2_6}
  1180. Public
  1181. Published
  1182. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1183. Property created : TDatetime Index 8 Read Fcreated Write Setcreated;
  1184. Property description : String Index 16 Read Fdescription Write Setdescription;
  1185. Property editableInGaUi : boolean Index 24 Read FeditableInGaUi Write SeteditableInGaUi;
  1186. Property endTime : TDatetime Index 32 Read FendTime Write SetendTime;
  1187. Property equalWeighting : boolean Index 40 Read FequalWeighting Write SetequalWeighting;
  1188. Property id : String Index 48 Read Fid Write Setid;
  1189. Property internalWebPropertyId : String Index 56 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  1190. Property kind : String Index 64 Read Fkind Write Setkind;
  1191. Property minimumExperimentLengthInDays : integer Index 72 Read FminimumExperimentLengthInDays Write SetminimumExperimentLengthInDays;
  1192. Property name : String Index 80 Read Fname Write Setname;
  1193. Property objectiveMetric : String Index 88 Read FobjectiveMetric Write SetobjectiveMetric;
  1194. Property optimizationType : String Index 96 Read FoptimizationType Write SetoptimizationType;
  1195. Property parentLink : TExperimentTypeparentLink Index 104 Read FparentLink Write SetparentLink;
  1196. Property profileId : String Index 112 Read FprofileId Write SetprofileId;
  1197. Property reasonExperimentEnded : String Index 120 Read FreasonExperimentEnded Write SetreasonExperimentEnded;
  1198. Property rewriteVariationUrlsAsOriginal : boolean Index 128 Read FrewriteVariationUrlsAsOriginal Write SetrewriteVariationUrlsAsOriginal;
  1199. Property selfLink : String Index 136 Read FselfLink Write SetselfLink;
  1200. Property servingFramework : String Index 144 Read FservingFramework Write SetservingFramework;
  1201. Property snippet : String Index 152 Read Fsnippet Write Setsnippet;
  1202. Property startTime : TDatetime Index 160 Read FstartTime Write SetstartTime;
  1203. Property status : String Index 168 Read Fstatus Write Setstatus;
  1204. Property trafficCoverage : double Index 176 Read FtrafficCoverage Write SettrafficCoverage;
  1205. Property updated : TDatetime Index 184 Read Fupdated Write Setupdated;
  1206. Property variations : TExperimentTypevariationsArray Index 192 Read Fvariations Write Setvariations;
  1207. Property webPropertyId : String Index 200 Read FwebPropertyId Write SetwebPropertyId;
  1208. Property winnerConfidenceLevel : double Index 208 Read FwinnerConfidenceLevel Write SetwinnerConfidenceLevel;
  1209. Property winnerFound : boolean Index 216 Read FwinnerFound Write SetwinnerFound;
  1210. end;
  1211. TExperimentClass = Class of TExperiment;
  1212. { --------------------------------------------------------------------
  1213. TExperiments
  1214. --------------------------------------------------------------------}
  1215. TExperiments = Class(TGoogleBaseObject)
  1216. Private
  1217. Fitems : TExperimentsTypeitemsArray;
  1218. FitemsPerPage : integer;
  1219. Fkind : String;
  1220. FnextLink : String;
  1221. FpreviousLink : String;
  1222. FstartIndex : integer;
  1223. FtotalResults : integer;
  1224. Fusername : String;
  1225. Protected
  1226. //Property setters
  1227. Procedure Setitems(AIndex : Integer; const AValue : TExperimentsTypeitemsArray); virtual;
  1228. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  1229. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1230. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  1231. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  1232. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  1233. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  1234. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  1235. //2.6.4. bug workaround
  1236. {$IFDEF VER2_6}
  1237. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1238. {$ENDIF VER2_6}
  1239. Public
  1240. Published
  1241. Property items : TExperimentsTypeitemsArray Index 0 Read Fitems Write Setitems;
  1242. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  1243. Property kind : String Index 16 Read Fkind Write Setkind;
  1244. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  1245. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  1246. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  1247. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  1248. Property username : String Index 56 Read Fusername Write Setusername;
  1249. end;
  1250. TExperimentsClass = Class of TExperiments;
  1251. { --------------------------------------------------------------------
  1252. TFilterTypeadvancedDetails
  1253. --------------------------------------------------------------------}
  1254. TFilterTypeadvancedDetails = Class(TGoogleBaseObject)
  1255. Private
  1256. FcaseSensitive : boolean;
  1257. FextractA : String;
  1258. FextractB : String;
  1259. FfieldA : String;
  1260. FfieldAIndex : integer;
  1261. FfieldARequired : boolean;
  1262. FfieldB : String;
  1263. FfieldBIndex : integer;
  1264. FfieldBRequired : boolean;
  1265. FoutputConstructor : String;
  1266. FoutputToField : String;
  1267. FoutputToFieldIndex : integer;
  1268. FoverrideOutputField : boolean;
  1269. Protected
  1270. //Property setters
  1271. Procedure SetcaseSensitive(AIndex : Integer; const AValue : boolean); virtual;
  1272. Procedure SetextractA(AIndex : Integer; const AValue : String); virtual;
  1273. Procedure SetextractB(AIndex : Integer; const AValue : String); virtual;
  1274. Procedure SetfieldA(AIndex : Integer; const AValue : String); virtual;
  1275. Procedure SetfieldAIndex(AIndex : Integer; const AValue : integer); virtual;
  1276. Procedure SetfieldARequired(AIndex : Integer; const AValue : boolean); virtual;
  1277. Procedure SetfieldB(AIndex : Integer; const AValue : String); virtual;
  1278. Procedure SetfieldBIndex(AIndex : Integer; const AValue : integer); virtual;
  1279. Procedure SetfieldBRequired(AIndex : Integer; const AValue : boolean); virtual;
  1280. Procedure SetoutputConstructor(AIndex : Integer; const AValue : String); virtual;
  1281. Procedure SetoutputToField(AIndex : Integer; const AValue : String); virtual;
  1282. Procedure SetoutputToFieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1283. Procedure SetoverrideOutputField(AIndex : Integer; const AValue : boolean); virtual;
  1284. Public
  1285. Published
  1286. Property caseSensitive : boolean Index 0 Read FcaseSensitive Write SetcaseSensitive;
  1287. Property extractA : String Index 8 Read FextractA Write SetextractA;
  1288. Property extractB : String Index 16 Read FextractB Write SetextractB;
  1289. Property fieldA : String Index 24 Read FfieldA Write SetfieldA;
  1290. Property fieldAIndex : integer Index 32 Read FfieldAIndex Write SetfieldAIndex;
  1291. Property fieldARequired : boolean Index 40 Read FfieldARequired Write SetfieldARequired;
  1292. Property fieldB : String Index 48 Read FfieldB Write SetfieldB;
  1293. Property fieldBIndex : integer Index 56 Read FfieldBIndex Write SetfieldBIndex;
  1294. Property fieldBRequired : boolean Index 64 Read FfieldBRequired Write SetfieldBRequired;
  1295. Property outputConstructor : String Index 72 Read FoutputConstructor Write SetoutputConstructor;
  1296. Property outputToField : String Index 80 Read FoutputToField Write SetoutputToField;
  1297. Property outputToFieldIndex : integer Index 88 Read FoutputToFieldIndex Write SetoutputToFieldIndex;
  1298. Property overrideOutputField : boolean Index 96 Read FoverrideOutputField Write SetoverrideOutputField;
  1299. end;
  1300. TFilterTypeadvancedDetailsClass = Class of TFilterTypeadvancedDetails;
  1301. { --------------------------------------------------------------------
  1302. TFilterTypelowercaseDetails
  1303. --------------------------------------------------------------------}
  1304. TFilterTypelowercaseDetails = Class(TGoogleBaseObject)
  1305. Private
  1306. Ffield : String;
  1307. FfieldIndex : integer;
  1308. Protected
  1309. //Property setters
  1310. Procedure Setfield(AIndex : Integer; const AValue : String); virtual;
  1311. Procedure SetfieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1312. Public
  1313. Published
  1314. Property field : String Index 0 Read Ffield Write Setfield;
  1315. Property fieldIndex : integer Index 8 Read FfieldIndex Write SetfieldIndex;
  1316. end;
  1317. TFilterTypelowercaseDetailsClass = Class of TFilterTypelowercaseDetails;
  1318. { --------------------------------------------------------------------
  1319. TFilterTypeparentLink
  1320. --------------------------------------------------------------------}
  1321. TFilterTypeparentLink = Class(TGoogleBaseObject)
  1322. Private
  1323. Fhref : String;
  1324. F_type : String;
  1325. Protected
  1326. Class Function ExportPropertyName(Const AName : String) : string; override;
  1327. //Property setters
  1328. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  1329. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1330. Public
  1331. Published
  1332. Property href : String Index 0 Read Fhref Write Sethref;
  1333. Property _type : String Index 8 Read F_type Write Set_type;
  1334. end;
  1335. TFilterTypeparentLinkClass = Class of TFilterTypeparentLink;
  1336. { --------------------------------------------------------------------
  1337. TFilterTypesearchAndReplaceDetails
  1338. --------------------------------------------------------------------}
  1339. TFilterTypesearchAndReplaceDetails = Class(TGoogleBaseObject)
  1340. Private
  1341. FcaseSensitive : boolean;
  1342. Ffield : String;
  1343. FfieldIndex : integer;
  1344. FreplaceString : String;
  1345. FsearchString : String;
  1346. Protected
  1347. //Property setters
  1348. Procedure SetcaseSensitive(AIndex : Integer; const AValue : boolean); virtual;
  1349. Procedure Setfield(AIndex : Integer; const AValue : String); virtual;
  1350. Procedure SetfieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1351. Procedure SetreplaceString(AIndex : Integer; const AValue : String); virtual;
  1352. Procedure SetsearchString(AIndex : Integer; const AValue : String); virtual;
  1353. Public
  1354. Published
  1355. Property caseSensitive : boolean Index 0 Read FcaseSensitive Write SetcaseSensitive;
  1356. Property field : String Index 8 Read Ffield Write Setfield;
  1357. Property fieldIndex : integer Index 16 Read FfieldIndex Write SetfieldIndex;
  1358. Property replaceString : String Index 24 Read FreplaceString Write SetreplaceString;
  1359. Property searchString : String Index 32 Read FsearchString Write SetsearchString;
  1360. end;
  1361. TFilterTypesearchAndReplaceDetailsClass = Class of TFilterTypesearchAndReplaceDetails;
  1362. { --------------------------------------------------------------------
  1363. TFilterTypeuppercaseDetails
  1364. --------------------------------------------------------------------}
  1365. TFilterTypeuppercaseDetails = Class(TGoogleBaseObject)
  1366. Private
  1367. Ffield : String;
  1368. FfieldIndex : integer;
  1369. Protected
  1370. //Property setters
  1371. Procedure Setfield(AIndex : Integer; const AValue : String); virtual;
  1372. Procedure SetfieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1373. Public
  1374. Published
  1375. Property field : String Index 0 Read Ffield Write Setfield;
  1376. Property fieldIndex : integer Index 8 Read FfieldIndex Write SetfieldIndex;
  1377. end;
  1378. TFilterTypeuppercaseDetailsClass = Class of TFilterTypeuppercaseDetails;
  1379. { --------------------------------------------------------------------
  1380. TFilter
  1381. --------------------------------------------------------------------}
  1382. TFilter = Class(TGoogleBaseObject)
  1383. Private
  1384. FaccountId : String;
  1385. FadvancedDetails : TFilterTypeadvancedDetails;
  1386. Fcreated : TDatetime;
  1387. FexcludeDetails : TFilterExpression;
  1388. Fid : String;
  1389. FincludeDetails : TFilterExpression;
  1390. Fkind : String;
  1391. FlowercaseDetails : TFilterTypelowercaseDetails;
  1392. Fname : String;
  1393. FparentLink : TFilterTypeparentLink;
  1394. FsearchAndReplaceDetails : TFilterTypesearchAndReplaceDetails;
  1395. FselfLink : String;
  1396. F_type : String;
  1397. Fupdated : TDatetime;
  1398. FuppercaseDetails : TFilterTypeuppercaseDetails;
  1399. Protected
  1400. Class Function ExportPropertyName(Const AName : String) : string; override;
  1401. //Property setters
  1402. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1403. Procedure SetadvancedDetails(AIndex : Integer; const AValue : TFilterTypeadvancedDetails); virtual;
  1404. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  1405. Procedure SetexcludeDetails(AIndex : Integer; const AValue : TFilterExpression); virtual;
  1406. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1407. Procedure SetincludeDetails(AIndex : Integer; const AValue : TFilterExpression); virtual;
  1408. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1409. Procedure SetlowercaseDetails(AIndex : Integer; const AValue : TFilterTypelowercaseDetails); virtual;
  1410. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1411. Procedure SetparentLink(AIndex : Integer; const AValue : TFilterTypeparentLink); virtual;
  1412. Procedure SetsearchAndReplaceDetails(AIndex : Integer; const AValue : TFilterTypesearchAndReplaceDetails); virtual;
  1413. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1414. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1415. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  1416. Procedure SetuppercaseDetails(AIndex : Integer; const AValue : TFilterTypeuppercaseDetails); virtual;
  1417. Public
  1418. Published
  1419. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1420. Property advancedDetails : TFilterTypeadvancedDetails Index 8 Read FadvancedDetails Write SetadvancedDetails;
  1421. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  1422. Property excludeDetails : TFilterExpression Index 24 Read FexcludeDetails Write SetexcludeDetails;
  1423. Property id : String Index 32 Read Fid Write Setid;
  1424. Property includeDetails : TFilterExpression Index 40 Read FincludeDetails Write SetincludeDetails;
  1425. Property kind : String Index 48 Read Fkind Write Setkind;
  1426. Property lowercaseDetails : TFilterTypelowercaseDetails Index 56 Read FlowercaseDetails Write SetlowercaseDetails;
  1427. Property name : String Index 64 Read Fname Write Setname;
  1428. Property parentLink : TFilterTypeparentLink Index 72 Read FparentLink Write SetparentLink;
  1429. Property searchAndReplaceDetails : TFilterTypesearchAndReplaceDetails Index 80 Read FsearchAndReplaceDetails Write SetsearchAndReplaceDetails;
  1430. Property selfLink : String Index 88 Read FselfLink Write SetselfLink;
  1431. Property _type : String Index 96 Read F_type Write Set_type;
  1432. Property updated : TDatetime Index 104 Read Fupdated Write Setupdated;
  1433. Property uppercaseDetails : TFilterTypeuppercaseDetails Index 112 Read FuppercaseDetails Write SetuppercaseDetails;
  1434. end;
  1435. TFilterClass = Class of TFilter;
  1436. { --------------------------------------------------------------------
  1437. TFilterExpression
  1438. --------------------------------------------------------------------}
  1439. TFilterExpression = Class(TGoogleBaseObject)
  1440. Private
  1441. FcaseSensitive : boolean;
  1442. FexpressionValue : String;
  1443. Ffield : String;
  1444. FfieldIndex : integer;
  1445. Fkind : String;
  1446. FmatchType : String;
  1447. Protected
  1448. //Property setters
  1449. Procedure SetcaseSensitive(AIndex : Integer; const AValue : boolean); virtual;
  1450. Procedure SetexpressionValue(AIndex : Integer; const AValue : String); virtual;
  1451. Procedure Setfield(AIndex : Integer; const AValue : String); virtual;
  1452. Procedure SetfieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1453. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1454. Procedure SetmatchType(AIndex : Integer; const AValue : String); virtual;
  1455. Public
  1456. Published
  1457. Property caseSensitive : boolean Index 0 Read FcaseSensitive Write SetcaseSensitive;
  1458. Property expressionValue : String Index 8 Read FexpressionValue Write SetexpressionValue;
  1459. Property field : String Index 16 Read Ffield Write Setfield;
  1460. Property fieldIndex : integer Index 24 Read FfieldIndex Write SetfieldIndex;
  1461. Property kind : String Index 32 Read Fkind Write Setkind;
  1462. Property matchType : String Index 40 Read FmatchType Write SetmatchType;
  1463. end;
  1464. TFilterExpressionClass = Class of TFilterExpression;
  1465. { --------------------------------------------------------------------
  1466. TFilterRef
  1467. --------------------------------------------------------------------}
  1468. TFilterRef = Class(TGoogleBaseObject)
  1469. Private
  1470. FaccountId : String;
  1471. Fhref : String;
  1472. Fid : String;
  1473. Fkind : String;
  1474. Fname : String;
  1475. Protected
  1476. //Property setters
  1477. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1478. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  1479. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1480. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1481. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1482. Public
  1483. Published
  1484. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1485. Property href : String Index 8 Read Fhref Write Sethref;
  1486. Property id : String Index 16 Read Fid Write Setid;
  1487. Property kind : String Index 24 Read Fkind Write Setkind;
  1488. Property name : String Index 32 Read Fname Write Setname;
  1489. end;
  1490. TFilterRefClass = Class of TFilterRef;
  1491. { --------------------------------------------------------------------
  1492. TFilters
  1493. --------------------------------------------------------------------}
  1494. TFilters = Class(TGoogleBaseObject)
  1495. Private
  1496. Fitems : TFiltersTypeitemsArray;
  1497. FitemsPerPage : integer;
  1498. Fkind : String;
  1499. FnextLink : String;
  1500. FpreviousLink : String;
  1501. FstartIndex : integer;
  1502. FtotalResults : integer;
  1503. Fusername : String;
  1504. Protected
  1505. //Property setters
  1506. Procedure Setitems(AIndex : Integer; const AValue : TFiltersTypeitemsArray); virtual;
  1507. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  1508. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1509. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  1510. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  1511. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  1512. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  1513. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  1514. //2.6.4. bug workaround
  1515. {$IFDEF VER2_6}
  1516. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1517. {$ENDIF VER2_6}
  1518. Public
  1519. Published
  1520. Property items : TFiltersTypeitemsArray Index 0 Read Fitems Write Setitems;
  1521. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  1522. Property kind : String Index 16 Read Fkind Write Setkind;
  1523. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  1524. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  1525. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  1526. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  1527. Property username : String Index 56 Read Fusername Write Setusername;
  1528. end;
  1529. TFiltersClass = Class of TFilters;
  1530. { --------------------------------------------------------------------
  1531. TGaDataTypecolumnHeadersItem
  1532. --------------------------------------------------------------------}
  1533. TGaDataTypecolumnHeadersItem = Class(TGoogleBaseObject)
  1534. Private
  1535. FcolumnType : String;
  1536. FdataType : String;
  1537. Fname : String;
  1538. Protected
  1539. //Property setters
  1540. Procedure SetcolumnType(AIndex : Integer; const AValue : String); virtual;
  1541. Procedure SetdataType(AIndex : Integer; const AValue : String); virtual;
  1542. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1543. Public
  1544. Published
  1545. Property columnType : String Index 0 Read FcolumnType Write SetcolumnType;
  1546. Property dataType : String Index 8 Read FdataType Write SetdataType;
  1547. Property name : String Index 16 Read Fname Write Setname;
  1548. end;
  1549. TGaDataTypecolumnHeadersItemClass = Class of TGaDataTypecolumnHeadersItem;
  1550. { --------------------------------------------------------------------
  1551. TGaDataTypedataTableTypecolsItem
  1552. --------------------------------------------------------------------}
  1553. TGaDataTypedataTableTypecolsItem = Class(TGoogleBaseObject)
  1554. Private
  1555. Fid : String;
  1556. F_label : String;
  1557. F_type : String;
  1558. Protected
  1559. Class Function ExportPropertyName(Const AName : String) : string; override;
  1560. //Property setters
  1561. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1562. Procedure Set_label(AIndex : Integer; const AValue : String); virtual;
  1563. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1564. Public
  1565. Published
  1566. Property id : String Index 0 Read Fid Write Setid;
  1567. Property _label : String Index 8 Read F_label Write Set_label;
  1568. Property _type : String Index 16 Read F_type Write Set_type;
  1569. end;
  1570. TGaDataTypedataTableTypecolsItemClass = Class of TGaDataTypedataTableTypecolsItem;
  1571. { --------------------------------------------------------------------
  1572. TGaDataTypedataTableTyperowsItemTypecItem
  1573. --------------------------------------------------------------------}
  1574. TGaDataTypedataTableTyperowsItemTypecItem = Class(TGoogleBaseObject)
  1575. Private
  1576. Fv : String;
  1577. Protected
  1578. //Property setters
  1579. Procedure Setv(AIndex : Integer; const AValue : String); virtual;
  1580. Public
  1581. Published
  1582. Property v : String Index 0 Read Fv Write Setv;
  1583. end;
  1584. TGaDataTypedataTableTyperowsItemTypecItemClass = Class of TGaDataTypedataTableTyperowsItemTypecItem;
  1585. { --------------------------------------------------------------------
  1586. TGaDataTypedataTableTyperowsItem
  1587. --------------------------------------------------------------------}
  1588. TGaDataTypedataTableTyperowsItem = Class(TGoogleBaseObject)
  1589. Private
  1590. Fc : TGaDataTypedataTableTyperowsItemTypecArray;
  1591. Protected
  1592. //Property setters
  1593. Procedure Setc(AIndex : Integer; const AValue : TGaDataTypedataTableTyperowsItemTypecArray); virtual;
  1594. //2.6.4. bug workaround
  1595. {$IFDEF VER2_6}
  1596. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1597. {$ENDIF VER2_6}
  1598. Public
  1599. Published
  1600. Property c : TGaDataTypedataTableTyperowsItemTypecArray Index 0 Read Fc Write Setc;
  1601. end;
  1602. TGaDataTypedataTableTyperowsItemClass = Class of TGaDataTypedataTableTyperowsItem;
  1603. { --------------------------------------------------------------------
  1604. TGaDataTypedataTable
  1605. --------------------------------------------------------------------}
  1606. TGaDataTypedataTable = Class(TGoogleBaseObject)
  1607. Private
  1608. Fcols : TGaDataTypedataTableTypecolsArray;
  1609. Frows : TGaDataTypedataTableTyperowsArray;
  1610. Protected
  1611. //Property setters
  1612. Procedure Setcols(AIndex : Integer; const AValue : TGaDataTypedataTableTypecolsArray); virtual;
  1613. Procedure Setrows(AIndex : Integer; const AValue : TGaDataTypedataTableTyperowsArray); virtual;
  1614. //2.6.4. bug workaround
  1615. {$IFDEF VER2_6}
  1616. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1617. {$ENDIF VER2_6}
  1618. Public
  1619. Published
  1620. Property cols : TGaDataTypedataTableTypecolsArray Index 0 Read Fcols Write Setcols;
  1621. Property rows : TGaDataTypedataTableTyperowsArray Index 8 Read Frows Write Setrows;
  1622. end;
  1623. TGaDataTypedataTableClass = Class of TGaDataTypedataTable;
  1624. { --------------------------------------------------------------------
  1625. TGaDataTypeprofileInfo
  1626. --------------------------------------------------------------------}
  1627. TGaDataTypeprofileInfo = Class(TGoogleBaseObject)
  1628. Private
  1629. FaccountId : String;
  1630. FinternalWebPropertyId : String;
  1631. FprofileId : String;
  1632. FprofileName : String;
  1633. FtableId : String;
  1634. FwebPropertyId : String;
  1635. Protected
  1636. //Property setters
  1637. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1638. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1639. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  1640. Procedure SetprofileName(AIndex : Integer; const AValue : String); virtual;
  1641. Procedure SettableId(AIndex : Integer; const AValue : String); virtual;
  1642. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1643. Public
  1644. Published
  1645. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1646. Property internalWebPropertyId : String Index 8 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  1647. Property profileId : String Index 16 Read FprofileId Write SetprofileId;
  1648. Property profileName : String Index 24 Read FprofileName Write SetprofileName;
  1649. Property tableId : String Index 32 Read FtableId Write SettableId;
  1650. Property webPropertyId : String Index 40 Read FwebPropertyId Write SetwebPropertyId;
  1651. end;
  1652. TGaDataTypeprofileInfoClass = Class of TGaDataTypeprofileInfo;
  1653. { --------------------------------------------------------------------
  1654. TGaDataTypequery
  1655. --------------------------------------------------------------------}
  1656. TGaDataTypequery = Class(TGoogleBaseObject)
  1657. Private
  1658. Fdimensions : String;
  1659. Fenddate : String;
  1660. Ffilters : String;
  1661. Fids : String;
  1662. Fmaxresults : integer;
  1663. Fmetrics : TStringArray;
  1664. FsamplingLevel : String;
  1665. Fsegment : String;
  1666. Fsort : TStringArray;
  1667. Fstartdate : String;
  1668. Fstartindex : integer;
  1669. Protected
  1670. Class Function ExportPropertyName(Const AName : String) : string; override;
  1671. //Property setters
  1672. Procedure Setdimensions(AIndex : Integer; const AValue : String); virtual;
  1673. Procedure Setenddate(AIndex : Integer; const AValue : String); virtual;
  1674. Procedure Setfilters(AIndex : Integer; const AValue : String); virtual;
  1675. Procedure Setids(AIndex : Integer; const AValue : String); virtual;
  1676. Procedure Setmaxresults(AIndex : Integer; const AValue : integer); virtual;
  1677. Procedure Setmetrics(AIndex : Integer; const AValue : TStringArray); virtual;
  1678. Procedure SetsamplingLevel(AIndex : Integer; const AValue : String); virtual;
  1679. Procedure Setsegment(AIndex : Integer; const AValue : String); virtual;
  1680. Procedure Setsort(AIndex : Integer; const AValue : TStringArray); virtual;
  1681. Procedure Setstartdate(AIndex : Integer; const AValue : String); virtual;
  1682. Procedure Setstartindex(AIndex : Integer; const AValue : integer); virtual;
  1683. //2.6.4. bug workaround
  1684. {$IFDEF VER2_6}
  1685. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1686. {$ENDIF VER2_6}
  1687. Public
  1688. Published
  1689. Property dimensions : String Index 0 Read Fdimensions Write Setdimensions;
  1690. Property enddate : String Index 8 Read Fenddate Write Setenddate;
  1691. Property filters : String Index 16 Read Ffilters Write Setfilters;
  1692. Property ids : String Index 24 Read Fids Write Setids;
  1693. Property maxresults : integer Index 32 Read Fmaxresults Write Setmaxresults;
  1694. Property metrics : TStringArray Index 40 Read Fmetrics Write Setmetrics;
  1695. Property samplingLevel : String Index 48 Read FsamplingLevel Write SetsamplingLevel;
  1696. Property segment : String Index 56 Read Fsegment Write Setsegment;
  1697. Property sort : TStringArray Index 64 Read Fsort Write Setsort;
  1698. Property startdate : String Index 72 Read Fstartdate Write Setstartdate;
  1699. Property startindex : integer Index 80 Read Fstartindex Write Setstartindex;
  1700. end;
  1701. TGaDataTypequeryClass = Class of TGaDataTypequery;
  1702. { --------------------------------------------------------------------
  1703. TGaDataTypetotalsForAllResults
  1704. --------------------------------------------------------------------}
  1705. TGaDataTypetotalsForAllResults = Class(TGoogleBaseObject)
  1706. Private
  1707. Protected
  1708. //Property setters
  1709. Public
  1710. Class Function AllowAdditionalProperties : Boolean; override;
  1711. Published
  1712. end;
  1713. TGaDataTypetotalsForAllResultsClass = Class of TGaDataTypetotalsForAllResults;
  1714. { --------------------------------------------------------------------
  1715. TGaData
  1716. --------------------------------------------------------------------}
  1717. TGaData = Class(TGoogleBaseObject)
  1718. Private
  1719. FcolumnHeaders : TGaDataTypecolumnHeadersArray;
  1720. FcontainsSampledData : boolean;
  1721. FdataTable : TGaDataTypedataTable;
  1722. Fid : String;
  1723. FitemsPerPage : integer;
  1724. Fkind : String;
  1725. FnextLink : String;
  1726. FpreviousLink : String;
  1727. FprofileInfo : TGaDataTypeprofileInfo;
  1728. Fquery : TGaDataTypequery;
  1729. Frows : TGaDataTyperowsArray;
  1730. FsampleSize : String;
  1731. FsampleSpace : String;
  1732. FselfLink : String;
  1733. FtotalResults : integer;
  1734. FtotalsForAllResults : TGaDataTypetotalsForAllResults;
  1735. Protected
  1736. //Property setters
  1737. Procedure SetcolumnHeaders(AIndex : Integer; const AValue : TGaDataTypecolumnHeadersArray); virtual;
  1738. Procedure SetcontainsSampledData(AIndex : Integer; const AValue : boolean); virtual;
  1739. Procedure SetdataTable(AIndex : Integer; const AValue : TGaDataTypedataTable); virtual;
  1740. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1741. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  1742. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1743. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  1744. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  1745. Procedure SetprofileInfo(AIndex : Integer; const AValue : TGaDataTypeprofileInfo); virtual;
  1746. Procedure Setquery(AIndex : Integer; const AValue : TGaDataTypequery); virtual;
  1747. Procedure Setrows(AIndex : Integer; const AValue : TGaDataTyperowsArray); virtual;
  1748. Procedure SetsampleSize(AIndex : Integer; const AValue : String); virtual;
  1749. Procedure SetsampleSpace(AIndex : Integer; const AValue : String); virtual;
  1750. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1751. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  1752. Procedure SettotalsForAllResults(AIndex : Integer; const AValue : TGaDataTypetotalsForAllResults); virtual;
  1753. //2.6.4. bug workaround
  1754. {$IFDEF VER2_6}
  1755. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1756. {$ENDIF VER2_6}
  1757. Public
  1758. Published
  1759. Property columnHeaders : TGaDataTypecolumnHeadersArray Index 0 Read FcolumnHeaders Write SetcolumnHeaders;
  1760. Property containsSampledData : boolean Index 8 Read FcontainsSampledData Write SetcontainsSampledData;
  1761. Property dataTable : TGaDataTypedataTable Index 16 Read FdataTable Write SetdataTable;
  1762. Property id : String Index 24 Read Fid Write Setid;
  1763. Property itemsPerPage : integer Index 32 Read FitemsPerPage Write SetitemsPerPage;
  1764. Property kind : String Index 40 Read Fkind Write Setkind;
  1765. Property nextLink : String Index 48 Read FnextLink Write SetnextLink;
  1766. Property previousLink : String Index 56 Read FpreviousLink Write SetpreviousLink;
  1767. Property profileInfo : TGaDataTypeprofileInfo Index 64 Read FprofileInfo Write SetprofileInfo;
  1768. Property query : TGaDataTypequery Index 72 Read Fquery Write Setquery;
  1769. Property rows : TGaDataTyperowsArray Index 80 Read Frows Write Setrows;
  1770. Property sampleSize : String Index 88 Read FsampleSize Write SetsampleSize;
  1771. Property sampleSpace : String Index 96 Read FsampleSpace Write SetsampleSpace;
  1772. Property selfLink : String Index 104 Read FselfLink Write SetselfLink;
  1773. Property totalResults : integer Index 112 Read FtotalResults Write SettotalResults;
  1774. Property totalsForAllResults : TGaDataTypetotalsForAllResults Index 120 Read FtotalsForAllResults Write SettotalsForAllResults;
  1775. end;
  1776. TGaDataClass = Class of TGaData;
  1777. { --------------------------------------------------------------------
  1778. TGoalTypeeventDetailsTypeeventConditionsItem
  1779. --------------------------------------------------------------------}
  1780. TGoalTypeeventDetailsTypeeventConditionsItem = Class(TGoogleBaseObject)
  1781. Private
  1782. FcomparisonType : String;
  1783. FcomparisonValue : String;
  1784. Fexpression : String;
  1785. FmatchType : String;
  1786. F_type : String;
  1787. Protected
  1788. Class Function ExportPropertyName(Const AName : String) : string; override;
  1789. //Property setters
  1790. Procedure SetcomparisonType(AIndex : Integer; const AValue : String); virtual;
  1791. Procedure SetcomparisonValue(AIndex : Integer; const AValue : String); virtual;
  1792. Procedure Setexpression(AIndex : Integer; const AValue : String); virtual;
  1793. Procedure SetmatchType(AIndex : Integer; const AValue : String); virtual;
  1794. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1795. Public
  1796. Published
  1797. Property comparisonType : String Index 0 Read FcomparisonType Write SetcomparisonType;
  1798. Property comparisonValue : String Index 8 Read FcomparisonValue Write SetcomparisonValue;
  1799. Property expression : String Index 16 Read Fexpression Write Setexpression;
  1800. Property matchType : String Index 24 Read FmatchType Write SetmatchType;
  1801. Property _type : String Index 32 Read F_type Write Set_type;
  1802. end;
  1803. TGoalTypeeventDetailsTypeeventConditionsItemClass = Class of TGoalTypeeventDetailsTypeeventConditionsItem;
  1804. { --------------------------------------------------------------------
  1805. TGoalTypeeventDetails
  1806. --------------------------------------------------------------------}
  1807. TGoalTypeeventDetails = Class(TGoogleBaseObject)
  1808. Private
  1809. FeventConditions : TGoalTypeeventDetailsTypeeventConditionsArray;
  1810. FuseEventValue : boolean;
  1811. Protected
  1812. //Property setters
  1813. Procedure SeteventConditions(AIndex : Integer; const AValue : TGoalTypeeventDetailsTypeeventConditionsArray); virtual;
  1814. Procedure SetuseEventValue(AIndex : Integer; const AValue : boolean); virtual;
  1815. //2.6.4. bug workaround
  1816. {$IFDEF VER2_6}
  1817. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1818. {$ENDIF VER2_6}
  1819. Public
  1820. Published
  1821. Property eventConditions : TGoalTypeeventDetailsTypeeventConditionsArray Index 0 Read FeventConditions Write SeteventConditions;
  1822. Property useEventValue : boolean Index 8 Read FuseEventValue Write SetuseEventValue;
  1823. end;
  1824. TGoalTypeeventDetailsClass = Class of TGoalTypeeventDetails;
  1825. { --------------------------------------------------------------------
  1826. TGoalTypeparentLink
  1827. --------------------------------------------------------------------}
  1828. TGoalTypeparentLink = Class(TGoogleBaseObject)
  1829. Private
  1830. Fhref : String;
  1831. F_type : String;
  1832. Protected
  1833. Class Function ExportPropertyName(Const AName : String) : string; override;
  1834. //Property setters
  1835. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  1836. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1837. Public
  1838. Published
  1839. Property href : String Index 0 Read Fhref Write Sethref;
  1840. Property _type : String Index 8 Read F_type Write Set_type;
  1841. end;
  1842. TGoalTypeparentLinkClass = Class of TGoalTypeparentLink;
  1843. { --------------------------------------------------------------------
  1844. TGoalTypeurlDestinationDetailsTypestepsItem
  1845. --------------------------------------------------------------------}
  1846. TGoalTypeurlDestinationDetailsTypestepsItem = Class(TGoogleBaseObject)
  1847. Private
  1848. Fname : String;
  1849. Fnumber : integer;
  1850. Furl : String;
  1851. Protected
  1852. //Property setters
  1853. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1854. Procedure Setnumber(AIndex : Integer; const AValue : integer); virtual;
  1855. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  1856. Public
  1857. Published
  1858. Property name : String Index 0 Read Fname Write Setname;
  1859. Property number : integer Index 8 Read Fnumber Write Setnumber;
  1860. Property url : String Index 16 Read Furl Write Seturl;
  1861. end;
  1862. TGoalTypeurlDestinationDetailsTypestepsItemClass = Class of TGoalTypeurlDestinationDetailsTypestepsItem;
  1863. { --------------------------------------------------------------------
  1864. TGoalTypeurlDestinationDetails
  1865. --------------------------------------------------------------------}
  1866. TGoalTypeurlDestinationDetails = Class(TGoogleBaseObject)
  1867. Private
  1868. FcaseSensitive : boolean;
  1869. FfirstStepRequired : boolean;
  1870. FmatchType : String;
  1871. Fsteps : TGoalTypeurlDestinationDetailsTypestepsArray;
  1872. Furl : String;
  1873. Protected
  1874. //Property setters
  1875. Procedure SetcaseSensitive(AIndex : Integer; const AValue : boolean); virtual;
  1876. Procedure SetfirstStepRequired(AIndex : Integer; const AValue : boolean); virtual;
  1877. Procedure SetmatchType(AIndex : Integer; const AValue : String); virtual;
  1878. Procedure Setsteps(AIndex : Integer; const AValue : TGoalTypeurlDestinationDetailsTypestepsArray); virtual;
  1879. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  1880. //2.6.4. bug workaround
  1881. {$IFDEF VER2_6}
  1882. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1883. {$ENDIF VER2_6}
  1884. Public
  1885. Published
  1886. Property caseSensitive : boolean Index 0 Read FcaseSensitive Write SetcaseSensitive;
  1887. Property firstStepRequired : boolean Index 8 Read FfirstStepRequired Write SetfirstStepRequired;
  1888. Property matchType : String Index 16 Read FmatchType Write SetmatchType;
  1889. Property steps : TGoalTypeurlDestinationDetailsTypestepsArray Index 24 Read Fsteps Write Setsteps;
  1890. Property url : String Index 32 Read Furl Write Seturl;
  1891. end;
  1892. TGoalTypeurlDestinationDetailsClass = Class of TGoalTypeurlDestinationDetails;
  1893. { --------------------------------------------------------------------
  1894. TGoalTypevisitNumPagesDetails
  1895. --------------------------------------------------------------------}
  1896. TGoalTypevisitNumPagesDetails = Class(TGoogleBaseObject)
  1897. Private
  1898. FcomparisonType : String;
  1899. FcomparisonValue : String;
  1900. Protected
  1901. //Property setters
  1902. Procedure SetcomparisonType(AIndex : Integer; const AValue : String); virtual;
  1903. Procedure SetcomparisonValue(AIndex : Integer; const AValue : String); virtual;
  1904. Public
  1905. Published
  1906. Property comparisonType : String Index 0 Read FcomparisonType Write SetcomparisonType;
  1907. Property comparisonValue : String Index 8 Read FcomparisonValue Write SetcomparisonValue;
  1908. end;
  1909. TGoalTypevisitNumPagesDetailsClass = Class of TGoalTypevisitNumPagesDetails;
  1910. { --------------------------------------------------------------------
  1911. TGoalTypevisitTimeOnSiteDetails
  1912. --------------------------------------------------------------------}
  1913. TGoalTypevisitTimeOnSiteDetails = Class(TGoogleBaseObject)
  1914. Private
  1915. FcomparisonType : String;
  1916. FcomparisonValue : String;
  1917. Protected
  1918. //Property setters
  1919. Procedure SetcomparisonType(AIndex : Integer; const AValue : String); virtual;
  1920. Procedure SetcomparisonValue(AIndex : Integer; const AValue : String); virtual;
  1921. Public
  1922. Published
  1923. Property comparisonType : String Index 0 Read FcomparisonType Write SetcomparisonType;
  1924. Property comparisonValue : String Index 8 Read FcomparisonValue Write SetcomparisonValue;
  1925. end;
  1926. TGoalTypevisitTimeOnSiteDetailsClass = Class of TGoalTypevisitTimeOnSiteDetails;
  1927. { --------------------------------------------------------------------
  1928. TGoal
  1929. --------------------------------------------------------------------}
  1930. TGoal = Class(TGoogleBaseObject)
  1931. Private
  1932. FaccountId : String;
  1933. Factive : boolean;
  1934. Fcreated : TDatetime;
  1935. FeventDetails : TGoalTypeeventDetails;
  1936. Fid : String;
  1937. FinternalWebPropertyId : String;
  1938. Fkind : String;
  1939. Fname : String;
  1940. FparentLink : TGoalTypeparentLink;
  1941. FprofileId : String;
  1942. FselfLink : String;
  1943. F_type : String;
  1944. Fupdated : TDatetime;
  1945. FurlDestinationDetails : TGoalTypeurlDestinationDetails;
  1946. Fvalue : integer;
  1947. FvisitNumPagesDetails : TGoalTypevisitNumPagesDetails;
  1948. FvisitTimeOnSiteDetails : TGoalTypevisitTimeOnSiteDetails;
  1949. FwebPropertyId : String;
  1950. Protected
  1951. Class Function ExportPropertyName(Const AName : String) : string; override;
  1952. //Property setters
  1953. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1954. Procedure Setactive(AIndex : Integer; const AValue : boolean); virtual;
  1955. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  1956. Procedure SeteventDetails(AIndex : Integer; const AValue : TGoalTypeeventDetails); virtual;
  1957. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1958. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1959. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1960. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1961. Procedure SetparentLink(AIndex : Integer; const AValue : TGoalTypeparentLink); virtual;
  1962. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  1963. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1964. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1965. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  1966. Procedure SeturlDestinationDetails(AIndex : Integer; const AValue : TGoalTypeurlDestinationDetails); virtual;
  1967. Procedure Setvalue(AIndex : Integer; const AValue : integer); virtual;
  1968. Procedure SetvisitNumPagesDetails(AIndex : Integer; const AValue : TGoalTypevisitNumPagesDetails); virtual;
  1969. Procedure SetvisitTimeOnSiteDetails(AIndex : Integer; const AValue : TGoalTypevisitTimeOnSiteDetails); virtual;
  1970. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1971. Public
  1972. Published
  1973. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1974. Property active : boolean Index 8 Read Factive Write Setactive;
  1975. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  1976. Property eventDetails : TGoalTypeeventDetails Index 24 Read FeventDetails Write SeteventDetails;
  1977. Property id : String Index 32 Read Fid Write Setid;
  1978. Property internalWebPropertyId : String Index 40 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  1979. Property kind : String Index 48 Read Fkind Write Setkind;
  1980. Property name : String Index 56 Read Fname Write Setname;
  1981. Property parentLink : TGoalTypeparentLink Index 64 Read FparentLink Write SetparentLink;
  1982. Property profileId : String Index 72 Read FprofileId Write SetprofileId;
  1983. Property selfLink : String Index 80 Read FselfLink Write SetselfLink;
  1984. Property _type : String Index 88 Read F_type Write Set_type;
  1985. Property updated : TDatetime Index 96 Read Fupdated Write Setupdated;
  1986. Property urlDestinationDetails : TGoalTypeurlDestinationDetails Index 104 Read FurlDestinationDetails Write SeturlDestinationDetails;
  1987. Property value : integer Index 112 Read Fvalue Write Setvalue;
  1988. Property visitNumPagesDetails : TGoalTypevisitNumPagesDetails Index 120 Read FvisitNumPagesDetails Write SetvisitNumPagesDetails;
  1989. Property visitTimeOnSiteDetails : TGoalTypevisitTimeOnSiteDetails Index 128 Read FvisitTimeOnSiteDetails Write SetvisitTimeOnSiteDetails;
  1990. Property webPropertyId : String Index 136 Read FwebPropertyId Write SetwebPropertyId;
  1991. end;
  1992. TGoalClass = Class of TGoal;
  1993. { --------------------------------------------------------------------
  1994. TGoals
  1995. --------------------------------------------------------------------}
  1996. TGoals = Class(TGoogleBaseObject)
  1997. Private
  1998. Fitems : TGoalsTypeitemsArray;
  1999. FitemsPerPage : integer;
  2000. Fkind : String;
  2001. FnextLink : String;
  2002. FpreviousLink : String;
  2003. FstartIndex : integer;
  2004. FtotalResults : integer;
  2005. Fusername : String;
  2006. Protected
  2007. //Property setters
  2008. Procedure Setitems(AIndex : Integer; const AValue : TGoalsTypeitemsArray); virtual;
  2009. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2010. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2011. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2012. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2013. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2014. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2015. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2016. //2.6.4. bug workaround
  2017. {$IFDEF VER2_6}
  2018. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2019. {$ENDIF VER2_6}
  2020. Public
  2021. Published
  2022. Property items : TGoalsTypeitemsArray Index 0 Read Fitems Write Setitems;
  2023. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2024. Property kind : String Index 16 Read Fkind Write Setkind;
  2025. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2026. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2027. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2028. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2029. Property username : String Index 56 Read Fusername Write Setusername;
  2030. end;
  2031. TGoalsClass = Class of TGoals;
  2032. { --------------------------------------------------------------------
  2033. TMcfDataTypecolumnHeadersItem
  2034. --------------------------------------------------------------------}
  2035. TMcfDataTypecolumnHeadersItem = Class(TGoogleBaseObject)
  2036. Private
  2037. FcolumnType : String;
  2038. FdataType : String;
  2039. Fname : String;
  2040. Protected
  2041. //Property setters
  2042. Procedure SetcolumnType(AIndex : Integer; const AValue : String); virtual;
  2043. Procedure SetdataType(AIndex : Integer; const AValue : String); virtual;
  2044. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2045. Public
  2046. Published
  2047. Property columnType : String Index 0 Read FcolumnType Write SetcolumnType;
  2048. Property dataType : String Index 8 Read FdataType Write SetdataType;
  2049. Property name : String Index 16 Read Fname Write Setname;
  2050. end;
  2051. TMcfDataTypecolumnHeadersItemClass = Class of TMcfDataTypecolumnHeadersItem;
  2052. { --------------------------------------------------------------------
  2053. TMcfDataTypeprofileInfo
  2054. --------------------------------------------------------------------}
  2055. TMcfDataTypeprofileInfo = Class(TGoogleBaseObject)
  2056. Private
  2057. FaccountId : String;
  2058. FinternalWebPropertyId : String;
  2059. FprofileId : String;
  2060. FprofileName : String;
  2061. FtableId : String;
  2062. FwebPropertyId : String;
  2063. Protected
  2064. //Property setters
  2065. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2066. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2067. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  2068. Procedure SetprofileName(AIndex : Integer; const AValue : String); virtual;
  2069. Procedure SettableId(AIndex : Integer; const AValue : String); virtual;
  2070. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2071. Public
  2072. Published
  2073. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2074. Property internalWebPropertyId : String Index 8 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  2075. Property profileId : String Index 16 Read FprofileId Write SetprofileId;
  2076. Property profileName : String Index 24 Read FprofileName Write SetprofileName;
  2077. Property tableId : String Index 32 Read FtableId Write SettableId;
  2078. Property webPropertyId : String Index 40 Read FwebPropertyId Write SetwebPropertyId;
  2079. end;
  2080. TMcfDataTypeprofileInfoClass = Class of TMcfDataTypeprofileInfo;
  2081. { --------------------------------------------------------------------
  2082. TMcfDataTypequery
  2083. --------------------------------------------------------------------}
  2084. TMcfDataTypequery = Class(TGoogleBaseObject)
  2085. Private
  2086. Fdimensions : String;
  2087. Fenddate : String;
  2088. Ffilters : String;
  2089. Fids : String;
  2090. Fmaxresults : integer;
  2091. Fmetrics : TStringArray;
  2092. FsamplingLevel : String;
  2093. Fsegment : String;
  2094. Fsort : TStringArray;
  2095. Fstartdate : String;
  2096. Fstartindex : integer;
  2097. Protected
  2098. Class Function ExportPropertyName(Const AName : String) : string; override;
  2099. //Property setters
  2100. Procedure Setdimensions(AIndex : Integer; const AValue : String); virtual;
  2101. Procedure Setenddate(AIndex : Integer; const AValue : String); virtual;
  2102. Procedure Setfilters(AIndex : Integer; const AValue : String); virtual;
  2103. Procedure Setids(AIndex : Integer; const AValue : String); virtual;
  2104. Procedure Setmaxresults(AIndex : Integer; const AValue : integer); virtual;
  2105. Procedure Setmetrics(AIndex : Integer; const AValue : TStringArray); virtual;
  2106. Procedure SetsamplingLevel(AIndex : Integer; const AValue : String); virtual;
  2107. Procedure Setsegment(AIndex : Integer; const AValue : String); virtual;
  2108. Procedure Setsort(AIndex : Integer; const AValue : TStringArray); virtual;
  2109. Procedure Setstartdate(AIndex : Integer; const AValue : String); virtual;
  2110. Procedure Setstartindex(AIndex : Integer; const AValue : integer); virtual;
  2111. //2.6.4. bug workaround
  2112. {$IFDEF VER2_6}
  2113. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2114. {$ENDIF VER2_6}
  2115. Public
  2116. Published
  2117. Property dimensions : String Index 0 Read Fdimensions Write Setdimensions;
  2118. Property enddate : String Index 8 Read Fenddate Write Setenddate;
  2119. Property filters : String Index 16 Read Ffilters Write Setfilters;
  2120. Property ids : String Index 24 Read Fids Write Setids;
  2121. Property maxresults : integer Index 32 Read Fmaxresults Write Setmaxresults;
  2122. Property metrics : TStringArray Index 40 Read Fmetrics Write Setmetrics;
  2123. Property samplingLevel : String Index 48 Read FsamplingLevel Write SetsamplingLevel;
  2124. Property segment : String Index 56 Read Fsegment Write Setsegment;
  2125. Property sort : TStringArray Index 64 Read Fsort Write Setsort;
  2126. Property startdate : String Index 72 Read Fstartdate Write Setstartdate;
  2127. Property startindex : integer Index 80 Read Fstartindex Write Setstartindex;
  2128. end;
  2129. TMcfDataTypequeryClass = Class of TMcfDataTypequery;
  2130. { --------------------------------------------------------------------
  2131. TMcfDataTyperowsItemItemTypeconversionPathValueItem
  2132. --------------------------------------------------------------------}
  2133. TMcfDataTyperowsItemItemTypeconversionPathValueItem = Class(TGoogleBaseObject)
  2134. Private
  2135. FinteractionType : String;
  2136. FnodeValue : String;
  2137. Protected
  2138. //Property setters
  2139. Procedure SetinteractionType(AIndex : Integer; const AValue : String); virtual;
  2140. Procedure SetnodeValue(AIndex : Integer; const AValue : String); virtual;
  2141. Public
  2142. Published
  2143. Property interactionType : String Index 0 Read FinteractionType Write SetinteractionType;
  2144. Property nodeValue : String Index 8 Read FnodeValue Write SetnodeValue;
  2145. end;
  2146. TMcfDataTyperowsItemItemTypeconversionPathValueItemClass = Class of TMcfDataTyperowsItemItemTypeconversionPathValueItem;
  2147. { --------------------------------------------------------------------
  2148. TMcfDataTyperowsItemItem
  2149. --------------------------------------------------------------------}
  2150. TMcfDataTyperowsItemItem = Class(TGoogleBaseObject)
  2151. Private
  2152. FconversionPathValue : TMcfDataTyperowsItemItemTypeconversionPathValueArray;
  2153. FprimitiveValue : String;
  2154. Protected
  2155. //Property setters
  2156. Procedure SetconversionPathValue(AIndex : Integer; const AValue : TMcfDataTyperowsItemItemTypeconversionPathValueArray); virtual;
  2157. Procedure SetprimitiveValue(AIndex : Integer; const AValue : String); virtual;
  2158. //2.6.4. bug workaround
  2159. {$IFDEF VER2_6}
  2160. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2161. {$ENDIF VER2_6}
  2162. Public
  2163. Published
  2164. Property conversionPathValue : TMcfDataTyperowsItemItemTypeconversionPathValueArray Index 0 Read FconversionPathValue Write SetconversionPathValue;
  2165. Property primitiveValue : String Index 8 Read FprimitiveValue Write SetprimitiveValue;
  2166. end;
  2167. TMcfDataTyperowsItemItemClass = Class of TMcfDataTyperowsItemItem;
  2168. { --------------------------------------------------------------------
  2169. TMcfDataTypetotalsForAllResults
  2170. --------------------------------------------------------------------}
  2171. TMcfDataTypetotalsForAllResults = Class(TGoogleBaseObject)
  2172. Private
  2173. Protected
  2174. //Property setters
  2175. Public
  2176. Class Function AllowAdditionalProperties : Boolean; override;
  2177. Published
  2178. end;
  2179. TMcfDataTypetotalsForAllResultsClass = Class of TMcfDataTypetotalsForAllResults;
  2180. { --------------------------------------------------------------------
  2181. TMcfData
  2182. --------------------------------------------------------------------}
  2183. TMcfData = Class(TGoogleBaseObject)
  2184. Private
  2185. FcolumnHeaders : TMcfDataTypecolumnHeadersArray;
  2186. FcontainsSampledData : boolean;
  2187. Fid : String;
  2188. FitemsPerPage : integer;
  2189. Fkind : String;
  2190. FnextLink : String;
  2191. FpreviousLink : String;
  2192. FprofileInfo : TMcfDataTypeprofileInfo;
  2193. Fquery : TMcfDataTypequery;
  2194. Frows : TMcfDataTyperowsArray;
  2195. FsampleSize : String;
  2196. FsampleSpace : String;
  2197. FselfLink : String;
  2198. FtotalResults : integer;
  2199. FtotalsForAllResults : TMcfDataTypetotalsForAllResults;
  2200. Protected
  2201. //Property setters
  2202. Procedure SetcolumnHeaders(AIndex : Integer; const AValue : TMcfDataTypecolumnHeadersArray); virtual;
  2203. Procedure SetcontainsSampledData(AIndex : Integer; const AValue : boolean); virtual;
  2204. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2205. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2206. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2207. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2208. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2209. Procedure SetprofileInfo(AIndex : Integer; const AValue : TMcfDataTypeprofileInfo); virtual;
  2210. Procedure Setquery(AIndex : Integer; const AValue : TMcfDataTypequery); virtual;
  2211. Procedure Setrows(AIndex : Integer; const AValue : TMcfDataTyperowsArray); virtual;
  2212. Procedure SetsampleSize(AIndex : Integer; const AValue : String); virtual;
  2213. Procedure SetsampleSpace(AIndex : Integer; const AValue : String); virtual;
  2214. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2215. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2216. Procedure SettotalsForAllResults(AIndex : Integer; const AValue : TMcfDataTypetotalsForAllResults); virtual;
  2217. //2.6.4. bug workaround
  2218. {$IFDEF VER2_6}
  2219. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2220. {$ENDIF VER2_6}
  2221. Public
  2222. Published
  2223. Property columnHeaders : TMcfDataTypecolumnHeadersArray Index 0 Read FcolumnHeaders Write SetcolumnHeaders;
  2224. Property containsSampledData : boolean Index 8 Read FcontainsSampledData Write SetcontainsSampledData;
  2225. Property id : String Index 16 Read Fid Write Setid;
  2226. Property itemsPerPage : integer Index 24 Read FitemsPerPage Write SetitemsPerPage;
  2227. Property kind : String Index 32 Read Fkind Write Setkind;
  2228. Property nextLink : String Index 40 Read FnextLink Write SetnextLink;
  2229. Property previousLink : String Index 48 Read FpreviousLink Write SetpreviousLink;
  2230. Property profileInfo : TMcfDataTypeprofileInfo Index 56 Read FprofileInfo Write SetprofileInfo;
  2231. Property query : TMcfDataTypequery Index 64 Read Fquery Write Setquery;
  2232. Property rows : TMcfDataTyperowsArray Index 72 Read Frows Write Setrows;
  2233. Property sampleSize : String Index 80 Read FsampleSize Write SetsampleSize;
  2234. Property sampleSpace : String Index 88 Read FsampleSpace Write SetsampleSpace;
  2235. Property selfLink : String Index 96 Read FselfLink Write SetselfLink;
  2236. Property totalResults : integer Index 104 Read FtotalResults Write SettotalResults;
  2237. Property totalsForAllResults : TMcfDataTypetotalsForAllResults Index 112 Read FtotalsForAllResults Write SettotalsForAllResults;
  2238. end;
  2239. TMcfDataClass = Class of TMcfData;
  2240. { --------------------------------------------------------------------
  2241. TProfileTypechildLink
  2242. --------------------------------------------------------------------}
  2243. TProfileTypechildLink = Class(TGoogleBaseObject)
  2244. Private
  2245. Fhref : String;
  2246. F_type : String;
  2247. Protected
  2248. Class Function ExportPropertyName(Const AName : String) : string; override;
  2249. //Property setters
  2250. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  2251. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2252. Public
  2253. Published
  2254. Property href : String Index 0 Read Fhref Write Sethref;
  2255. Property _type : String Index 8 Read F_type Write Set_type;
  2256. end;
  2257. TProfileTypechildLinkClass = Class of TProfileTypechildLink;
  2258. { --------------------------------------------------------------------
  2259. TProfileTypeparentLink
  2260. --------------------------------------------------------------------}
  2261. TProfileTypeparentLink = Class(TGoogleBaseObject)
  2262. Private
  2263. Fhref : String;
  2264. F_type : String;
  2265. Protected
  2266. Class Function ExportPropertyName(Const AName : String) : string; override;
  2267. //Property setters
  2268. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  2269. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2270. Public
  2271. Published
  2272. Property href : String Index 0 Read Fhref Write Sethref;
  2273. Property _type : String Index 8 Read F_type Write Set_type;
  2274. end;
  2275. TProfileTypeparentLinkClass = Class of TProfileTypeparentLink;
  2276. { --------------------------------------------------------------------
  2277. TProfileTypepermissions
  2278. --------------------------------------------------------------------}
  2279. TProfileTypepermissions = Class(TGoogleBaseObject)
  2280. Private
  2281. Feffective : TStringArray;
  2282. Protected
  2283. //Property setters
  2284. Procedure Seteffective(AIndex : Integer; const AValue : TStringArray); virtual;
  2285. //2.6.4. bug workaround
  2286. {$IFDEF VER2_6}
  2287. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2288. {$ENDIF VER2_6}
  2289. Public
  2290. Published
  2291. Property effective : TStringArray Index 0 Read Feffective Write Seteffective;
  2292. end;
  2293. TProfileTypepermissionsClass = Class of TProfileTypepermissions;
  2294. { --------------------------------------------------------------------
  2295. TProfile
  2296. --------------------------------------------------------------------}
  2297. TProfile = Class(TGoogleBaseObject)
  2298. Private
  2299. FaccountId : String;
  2300. FbotFilteringEnabled : boolean;
  2301. FchildLink : TProfileTypechildLink;
  2302. Fcreated : TDatetime;
  2303. Fcurrency : String;
  2304. FdefaultPage : String;
  2305. FeCommerceTracking : boolean;
  2306. FenhancedECommerceTracking : boolean;
  2307. FexcludeQueryParameters : String;
  2308. Fid : String;
  2309. FinternalWebPropertyId : String;
  2310. Fkind : String;
  2311. Fname : String;
  2312. FparentLink : TProfileTypeparentLink;
  2313. Fpermissions : TProfileTypepermissions;
  2314. FselfLink : String;
  2315. FsiteSearchCategoryParameters : String;
  2316. FsiteSearchQueryParameters : String;
  2317. Fstarred : boolean;
  2318. FstripSiteSearchCategoryParameters : boolean;
  2319. FstripSiteSearchQueryParameters : boolean;
  2320. Ftimezone : String;
  2321. F_type : String;
  2322. Fupdated : TDatetime;
  2323. FwebPropertyId : String;
  2324. FwebsiteUrl : String;
  2325. Protected
  2326. Class Function ExportPropertyName(Const AName : String) : string; override;
  2327. //Property setters
  2328. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2329. Procedure SetbotFilteringEnabled(AIndex : Integer; const AValue : boolean); virtual;
  2330. Procedure SetchildLink(AIndex : Integer; const AValue : TProfileTypechildLink); virtual;
  2331. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  2332. Procedure Setcurrency(AIndex : Integer; const AValue : String); virtual;
  2333. Procedure SetdefaultPage(AIndex : Integer; const AValue : String); virtual;
  2334. Procedure SeteCommerceTracking(AIndex : Integer; const AValue : boolean); virtual;
  2335. Procedure SetenhancedECommerceTracking(AIndex : Integer; const AValue : boolean); virtual;
  2336. Procedure SetexcludeQueryParameters(AIndex : Integer; const AValue : String); virtual;
  2337. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2338. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2339. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2340. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2341. Procedure SetparentLink(AIndex : Integer; const AValue : TProfileTypeparentLink); virtual;
  2342. Procedure Setpermissions(AIndex : Integer; const AValue : TProfileTypepermissions); virtual;
  2343. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2344. Procedure SetsiteSearchCategoryParameters(AIndex : Integer; const AValue : String); virtual;
  2345. Procedure SetsiteSearchQueryParameters(AIndex : Integer; const AValue : String); virtual;
  2346. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  2347. Procedure SetstripSiteSearchCategoryParameters(AIndex : Integer; const AValue : boolean); virtual;
  2348. Procedure SetstripSiteSearchQueryParameters(AIndex : Integer; const AValue : boolean); virtual;
  2349. Procedure Settimezone(AIndex : Integer; const AValue : String); virtual;
  2350. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2351. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  2352. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2353. Procedure SetwebsiteUrl(AIndex : Integer; const AValue : String); virtual;
  2354. Public
  2355. Published
  2356. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2357. Property botFilteringEnabled : boolean Index 8 Read FbotFilteringEnabled Write SetbotFilteringEnabled;
  2358. Property childLink : TProfileTypechildLink Index 16 Read FchildLink Write SetchildLink;
  2359. Property created : TDatetime Index 24 Read Fcreated Write Setcreated;
  2360. Property currency : String Index 32 Read Fcurrency Write Setcurrency;
  2361. Property defaultPage : String Index 40 Read FdefaultPage Write SetdefaultPage;
  2362. Property eCommerceTracking : boolean Index 48 Read FeCommerceTracking Write SeteCommerceTracking;
  2363. Property enhancedECommerceTracking : boolean Index 56 Read FenhancedECommerceTracking Write SetenhancedECommerceTracking;
  2364. Property excludeQueryParameters : String Index 64 Read FexcludeQueryParameters Write SetexcludeQueryParameters;
  2365. Property id : String Index 72 Read Fid Write Setid;
  2366. Property internalWebPropertyId : String Index 80 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  2367. Property kind : String Index 88 Read Fkind Write Setkind;
  2368. Property name : String Index 96 Read Fname Write Setname;
  2369. Property parentLink : TProfileTypeparentLink Index 104 Read FparentLink Write SetparentLink;
  2370. Property permissions : TProfileTypepermissions Index 112 Read Fpermissions Write Setpermissions;
  2371. Property selfLink : String Index 120 Read FselfLink Write SetselfLink;
  2372. Property siteSearchCategoryParameters : String Index 128 Read FsiteSearchCategoryParameters Write SetsiteSearchCategoryParameters;
  2373. Property siteSearchQueryParameters : String Index 136 Read FsiteSearchQueryParameters Write SetsiteSearchQueryParameters;
  2374. Property starred : boolean Index 144 Read Fstarred Write Setstarred;
  2375. Property stripSiteSearchCategoryParameters : boolean Index 152 Read FstripSiteSearchCategoryParameters Write SetstripSiteSearchCategoryParameters;
  2376. Property stripSiteSearchQueryParameters : boolean Index 160 Read FstripSiteSearchQueryParameters Write SetstripSiteSearchQueryParameters;
  2377. Property timezone : String Index 168 Read Ftimezone Write Settimezone;
  2378. Property _type : String Index 176 Read F_type Write Set_type;
  2379. Property updated : TDatetime Index 184 Read Fupdated Write Setupdated;
  2380. Property webPropertyId : String Index 192 Read FwebPropertyId Write SetwebPropertyId;
  2381. Property websiteUrl : String Index 200 Read FwebsiteUrl Write SetwebsiteUrl;
  2382. end;
  2383. TProfileClass = Class of TProfile;
  2384. { --------------------------------------------------------------------
  2385. TProfileFilterLink
  2386. --------------------------------------------------------------------}
  2387. TProfileFilterLink = Class(TGoogleBaseObject)
  2388. Private
  2389. FfilterRef : TFilterRef;
  2390. Fid : String;
  2391. Fkind : String;
  2392. FprofileRef : TProfileRef;
  2393. Frank : integer;
  2394. FselfLink : String;
  2395. Protected
  2396. //Property setters
  2397. Procedure SetfilterRef(AIndex : Integer; const AValue : TFilterRef); virtual;
  2398. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2399. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2400. Procedure SetprofileRef(AIndex : Integer; const AValue : TProfileRef); virtual;
  2401. Procedure Setrank(AIndex : Integer; const AValue : integer); virtual;
  2402. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2403. Public
  2404. Published
  2405. Property filterRef : TFilterRef Index 0 Read FfilterRef Write SetfilterRef;
  2406. Property id : String Index 8 Read Fid Write Setid;
  2407. Property kind : String Index 16 Read Fkind Write Setkind;
  2408. Property profileRef : TProfileRef Index 24 Read FprofileRef Write SetprofileRef;
  2409. Property rank : integer Index 32 Read Frank Write Setrank;
  2410. Property selfLink : String Index 40 Read FselfLink Write SetselfLink;
  2411. end;
  2412. TProfileFilterLinkClass = Class of TProfileFilterLink;
  2413. { --------------------------------------------------------------------
  2414. TProfileFilterLinks
  2415. --------------------------------------------------------------------}
  2416. TProfileFilterLinks = Class(TGoogleBaseObject)
  2417. Private
  2418. Fitems : TProfileFilterLinksTypeitemsArray;
  2419. FitemsPerPage : integer;
  2420. Fkind : String;
  2421. FnextLink : String;
  2422. FpreviousLink : String;
  2423. FstartIndex : integer;
  2424. FtotalResults : integer;
  2425. Fusername : String;
  2426. Protected
  2427. //Property setters
  2428. Procedure Setitems(AIndex : Integer; const AValue : TProfileFilterLinksTypeitemsArray); virtual;
  2429. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2430. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2431. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2432. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2433. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2434. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2435. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2436. //2.6.4. bug workaround
  2437. {$IFDEF VER2_6}
  2438. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2439. {$ENDIF VER2_6}
  2440. Public
  2441. Published
  2442. Property items : TProfileFilterLinksTypeitemsArray Index 0 Read Fitems Write Setitems;
  2443. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2444. Property kind : String Index 16 Read Fkind Write Setkind;
  2445. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2446. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2447. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2448. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2449. Property username : String Index 56 Read Fusername Write Setusername;
  2450. end;
  2451. TProfileFilterLinksClass = Class of TProfileFilterLinks;
  2452. { --------------------------------------------------------------------
  2453. TProfileRef
  2454. --------------------------------------------------------------------}
  2455. TProfileRef = Class(TGoogleBaseObject)
  2456. Private
  2457. FaccountId : String;
  2458. Fhref : String;
  2459. Fid : String;
  2460. FinternalWebPropertyId : String;
  2461. Fkind : String;
  2462. Fname : String;
  2463. FwebPropertyId : String;
  2464. Protected
  2465. //Property setters
  2466. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2467. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  2468. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2469. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2470. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2471. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2472. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2473. Public
  2474. Published
  2475. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2476. Property href : String Index 8 Read Fhref Write Sethref;
  2477. Property id : String Index 16 Read Fid Write Setid;
  2478. Property internalWebPropertyId : String Index 24 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  2479. Property kind : String Index 32 Read Fkind Write Setkind;
  2480. Property name : String Index 40 Read Fname Write Setname;
  2481. Property webPropertyId : String Index 48 Read FwebPropertyId Write SetwebPropertyId;
  2482. end;
  2483. TProfileRefClass = Class of TProfileRef;
  2484. { --------------------------------------------------------------------
  2485. TProfileSummary
  2486. --------------------------------------------------------------------}
  2487. TProfileSummary = Class(TGoogleBaseObject)
  2488. Private
  2489. Fid : String;
  2490. Fkind : String;
  2491. Fname : String;
  2492. Fstarred : boolean;
  2493. F_type : String;
  2494. Protected
  2495. Class Function ExportPropertyName(Const AName : String) : string; override;
  2496. //Property setters
  2497. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2498. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2499. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2500. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  2501. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2502. Public
  2503. Published
  2504. Property id : String Index 0 Read Fid Write Setid;
  2505. Property kind : String Index 8 Read Fkind Write Setkind;
  2506. Property name : String Index 16 Read Fname Write Setname;
  2507. Property starred : boolean Index 24 Read Fstarred Write Setstarred;
  2508. Property _type : String Index 32 Read F_type Write Set_type;
  2509. end;
  2510. TProfileSummaryClass = Class of TProfileSummary;
  2511. { --------------------------------------------------------------------
  2512. TProfiles
  2513. --------------------------------------------------------------------}
  2514. TProfiles = Class(TGoogleBaseObject)
  2515. Private
  2516. Fitems : TProfilesTypeitemsArray;
  2517. FitemsPerPage : integer;
  2518. Fkind : String;
  2519. FnextLink : String;
  2520. FpreviousLink : String;
  2521. FstartIndex : integer;
  2522. FtotalResults : integer;
  2523. Fusername : String;
  2524. Protected
  2525. //Property setters
  2526. Procedure Setitems(AIndex : Integer; const AValue : TProfilesTypeitemsArray); virtual;
  2527. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2528. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2529. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2530. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2531. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2532. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2533. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2534. //2.6.4. bug workaround
  2535. {$IFDEF VER2_6}
  2536. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2537. {$ENDIF VER2_6}
  2538. Public
  2539. Published
  2540. Property items : TProfilesTypeitemsArray Index 0 Read Fitems Write Setitems;
  2541. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2542. Property kind : String Index 16 Read Fkind Write Setkind;
  2543. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2544. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2545. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2546. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2547. Property username : String Index 56 Read Fusername Write Setusername;
  2548. end;
  2549. TProfilesClass = Class of TProfiles;
  2550. { --------------------------------------------------------------------
  2551. TRealtimeDataTypecolumnHeadersItem
  2552. --------------------------------------------------------------------}
  2553. TRealtimeDataTypecolumnHeadersItem = Class(TGoogleBaseObject)
  2554. Private
  2555. FcolumnType : String;
  2556. FdataType : String;
  2557. Fname : String;
  2558. Protected
  2559. //Property setters
  2560. Procedure SetcolumnType(AIndex : Integer; const AValue : String); virtual;
  2561. Procedure SetdataType(AIndex : Integer; const AValue : String); virtual;
  2562. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2563. Public
  2564. Published
  2565. Property columnType : String Index 0 Read FcolumnType Write SetcolumnType;
  2566. Property dataType : String Index 8 Read FdataType Write SetdataType;
  2567. Property name : String Index 16 Read Fname Write Setname;
  2568. end;
  2569. TRealtimeDataTypecolumnHeadersItemClass = Class of TRealtimeDataTypecolumnHeadersItem;
  2570. { --------------------------------------------------------------------
  2571. TRealtimeDataTypeprofileInfo
  2572. --------------------------------------------------------------------}
  2573. TRealtimeDataTypeprofileInfo = Class(TGoogleBaseObject)
  2574. Private
  2575. FaccountId : String;
  2576. FinternalWebPropertyId : String;
  2577. FprofileId : String;
  2578. FprofileName : String;
  2579. FtableId : String;
  2580. FwebPropertyId : String;
  2581. Protected
  2582. //Property setters
  2583. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2584. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2585. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  2586. Procedure SetprofileName(AIndex : Integer; const AValue : String); virtual;
  2587. Procedure SettableId(AIndex : Integer; const AValue : String); virtual;
  2588. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2589. Public
  2590. Published
  2591. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2592. Property internalWebPropertyId : String Index 8 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  2593. Property profileId : String Index 16 Read FprofileId Write SetprofileId;
  2594. Property profileName : String Index 24 Read FprofileName Write SetprofileName;
  2595. Property tableId : String Index 32 Read FtableId Write SettableId;
  2596. Property webPropertyId : String Index 40 Read FwebPropertyId Write SetwebPropertyId;
  2597. end;
  2598. TRealtimeDataTypeprofileInfoClass = Class of TRealtimeDataTypeprofileInfo;
  2599. { --------------------------------------------------------------------
  2600. TRealtimeDataTypequery
  2601. --------------------------------------------------------------------}
  2602. TRealtimeDataTypequery = Class(TGoogleBaseObject)
  2603. Private
  2604. Fdimensions : String;
  2605. Ffilters : String;
  2606. Fids : String;
  2607. Fmaxresults : integer;
  2608. Fmetrics : TStringArray;
  2609. Fsort : TStringArray;
  2610. Protected
  2611. Class Function ExportPropertyName(Const AName : String) : string; override;
  2612. //Property setters
  2613. Procedure Setdimensions(AIndex : Integer; const AValue : String); virtual;
  2614. Procedure Setfilters(AIndex : Integer; const AValue : String); virtual;
  2615. Procedure Setids(AIndex : Integer; const AValue : String); virtual;
  2616. Procedure Setmaxresults(AIndex : Integer; const AValue : integer); virtual;
  2617. Procedure Setmetrics(AIndex : Integer; const AValue : TStringArray); virtual;
  2618. Procedure Setsort(AIndex : Integer; const AValue : TStringArray); virtual;
  2619. //2.6.4. bug workaround
  2620. {$IFDEF VER2_6}
  2621. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2622. {$ENDIF VER2_6}
  2623. Public
  2624. Published
  2625. Property dimensions : String Index 0 Read Fdimensions Write Setdimensions;
  2626. Property filters : String Index 8 Read Ffilters Write Setfilters;
  2627. Property ids : String Index 16 Read Fids Write Setids;
  2628. Property maxresults : integer Index 24 Read Fmaxresults Write Setmaxresults;
  2629. Property metrics : TStringArray Index 32 Read Fmetrics Write Setmetrics;
  2630. Property sort : TStringArray Index 40 Read Fsort Write Setsort;
  2631. end;
  2632. TRealtimeDataTypequeryClass = Class of TRealtimeDataTypequery;
  2633. { --------------------------------------------------------------------
  2634. TRealtimeDataTypetotalsForAllResults
  2635. --------------------------------------------------------------------}
  2636. TRealtimeDataTypetotalsForAllResults = Class(TGoogleBaseObject)
  2637. Private
  2638. Protected
  2639. //Property setters
  2640. Public
  2641. Class Function AllowAdditionalProperties : Boolean; override;
  2642. Published
  2643. end;
  2644. TRealtimeDataTypetotalsForAllResultsClass = Class of TRealtimeDataTypetotalsForAllResults;
  2645. { --------------------------------------------------------------------
  2646. TRealtimeData
  2647. --------------------------------------------------------------------}
  2648. TRealtimeData = Class(TGoogleBaseObject)
  2649. Private
  2650. FcolumnHeaders : TRealtimeDataTypecolumnHeadersArray;
  2651. Fid : String;
  2652. Fkind : String;
  2653. FprofileInfo : TRealtimeDataTypeprofileInfo;
  2654. Fquery : TRealtimeDataTypequery;
  2655. Frows : TRealtimeDataTyperowsArray;
  2656. FselfLink : String;
  2657. FtotalResults : integer;
  2658. FtotalsForAllResults : TRealtimeDataTypetotalsForAllResults;
  2659. Protected
  2660. //Property setters
  2661. Procedure SetcolumnHeaders(AIndex : Integer; const AValue : TRealtimeDataTypecolumnHeadersArray); virtual;
  2662. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2663. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2664. Procedure SetprofileInfo(AIndex : Integer; const AValue : TRealtimeDataTypeprofileInfo); virtual;
  2665. Procedure Setquery(AIndex : Integer; const AValue : TRealtimeDataTypequery); virtual;
  2666. Procedure Setrows(AIndex : Integer; const AValue : TRealtimeDataTyperowsArray); virtual;
  2667. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2668. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2669. Procedure SettotalsForAllResults(AIndex : Integer; const AValue : TRealtimeDataTypetotalsForAllResults); virtual;
  2670. //2.6.4. bug workaround
  2671. {$IFDEF VER2_6}
  2672. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2673. {$ENDIF VER2_6}
  2674. Public
  2675. Published
  2676. Property columnHeaders : TRealtimeDataTypecolumnHeadersArray Index 0 Read FcolumnHeaders Write SetcolumnHeaders;
  2677. Property id : String Index 8 Read Fid Write Setid;
  2678. Property kind : String Index 16 Read Fkind Write Setkind;
  2679. Property profileInfo : TRealtimeDataTypeprofileInfo Index 24 Read FprofileInfo Write SetprofileInfo;
  2680. Property query : TRealtimeDataTypequery Index 32 Read Fquery Write Setquery;
  2681. Property rows : TRealtimeDataTyperowsArray Index 40 Read Frows Write Setrows;
  2682. Property selfLink : String Index 48 Read FselfLink Write SetselfLink;
  2683. Property totalResults : integer Index 56 Read FtotalResults Write SettotalResults;
  2684. Property totalsForAllResults : TRealtimeDataTypetotalsForAllResults Index 64 Read FtotalsForAllResults Write SettotalsForAllResults;
  2685. end;
  2686. TRealtimeDataClass = Class of TRealtimeData;
  2687. { --------------------------------------------------------------------
  2688. TSegment
  2689. --------------------------------------------------------------------}
  2690. TSegment = Class(TGoogleBaseObject)
  2691. Private
  2692. Fcreated : TDatetime;
  2693. Fdefinition : String;
  2694. Fid : String;
  2695. Fkind : String;
  2696. Fname : String;
  2697. FsegmentId : String;
  2698. FselfLink : String;
  2699. F_type : String;
  2700. Fupdated : TDatetime;
  2701. Protected
  2702. Class Function ExportPropertyName(Const AName : String) : string; override;
  2703. //Property setters
  2704. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  2705. Procedure Setdefinition(AIndex : Integer; const AValue : String); virtual;
  2706. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2707. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2708. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2709. Procedure SetsegmentId(AIndex : Integer; const AValue : String); virtual;
  2710. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2711. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2712. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  2713. Public
  2714. Published
  2715. Property created : TDatetime Index 0 Read Fcreated Write Setcreated;
  2716. Property definition : String Index 8 Read Fdefinition Write Setdefinition;
  2717. Property id : String Index 16 Read Fid Write Setid;
  2718. Property kind : String Index 24 Read Fkind Write Setkind;
  2719. Property name : String Index 32 Read Fname Write Setname;
  2720. Property segmentId : String Index 40 Read FsegmentId Write SetsegmentId;
  2721. Property selfLink : String Index 48 Read FselfLink Write SetselfLink;
  2722. Property _type : String Index 56 Read F_type Write Set_type;
  2723. Property updated : TDatetime Index 64 Read Fupdated Write Setupdated;
  2724. end;
  2725. TSegmentClass = Class of TSegment;
  2726. { --------------------------------------------------------------------
  2727. TSegments
  2728. --------------------------------------------------------------------}
  2729. TSegments = Class(TGoogleBaseObject)
  2730. Private
  2731. Fitems : TSegmentsTypeitemsArray;
  2732. FitemsPerPage : integer;
  2733. Fkind : String;
  2734. FnextLink : String;
  2735. FpreviousLink : String;
  2736. FstartIndex : integer;
  2737. FtotalResults : integer;
  2738. Fusername : String;
  2739. Protected
  2740. //Property setters
  2741. Procedure Setitems(AIndex : Integer; const AValue : TSegmentsTypeitemsArray); virtual;
  2742. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2743. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2744. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2745. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2746. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2747. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2748. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2749. //2.6.4. bug workaround
  2750. {$IFDEF VER2_6}
  2751. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2752. {$ENDIF VER2_6}
  2753. Public
  2754. Published
  2755. Property items : TSegmentsTypeitemsArray Index 0 Read Fitems Write Setitems;
  2756. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2757. Property kind : String Index 16 Read Fkind Write Setkind;
  2758. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2759. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2760. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2761. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2762. Property username : String Index 56 Read Fusername Write Setusername;
  2763. end;
  2764. TSegmentsClass = Class of TSegments;
  2765. { --------------------------------------------------------------------
  2766. TUnsampledReportTypecloudStorageDownloadDetails
  2767. --------------------------------------------------------------------}
  2768. TUnsampledReportTypecloudStorageDownloadDetails = Class(TGoogleBaseObject)
  2769. Private
  2770. FbucketId : String;
  2771. FobjectId : String;
  2772. Protected
  2773. //Property setters
  2774. Procedure SetbucketId(AIndex : Integer; const AValue : String); virtual;
  2775. Procedure SetobjectId(AIndex : Integer; const AValue : String); virtual;
  2776. Public
  2777. Published
  2778. Property bucketId : String Index 0 Read FbucketId Write SetbucketId;
  2779. Property objectId : String Index 8 Read FobjectId Write SetobjectId;
  2780. end;
  2781. TUnsampledReportTypecloudStorageDownloadDetailsClass = Class of TUnsampledReportTypecloudStorageDownloadDetails;
  2782. { --------------------------------------------------------------------
  2783. TUnsampledReportTypedriveDownloadDetails
  2784. --------------------------------------------------------------------}
  2785. TUnsampledReportTypedriveDownloadDetails = Class(TGoogleBaseObject)
  2786. Private
  2787. FdocumentId : String;
  2788. Protected
  2789. //Property setters
  2790. Procedure SetdocumentId(AIndex : Integer; const AValue : String); virtual;
  2791. Public
  2792. Published
  2793. Property documentId : String Index 0 Read FdocumentId Write SetdocumentId;
  2794. end;
  2795. TUnsampledReportTypedriveDownloadDetailsClass = Class of TUnsampledReportTypedriveDownloadDetails;
  2796. { --------------------------------------------------------------------
  2797. TUnsampledReport
  2798. --------------------------------------------------------------------}
  2799. TUnsampledReport = Class(TGoogleBaseObject)
  2800. Private
  2801. FaccountId : String;
  2802. FcloudStorageDownloadDetails : TUnsampledReportTypecloudStorageDownloadDetails;
  2803. Fcreated : TDatetime;
  2804. Fdimensions : String;
  2805. FdownloadType : String;
  2806. FdriveDownloadDetails : TUnsampledReportTypedriveDownloadDetails;
  2807. Fenddate : String;
  2808. Ffilters : String;
  2809. Fid : String;
  2810. Fkind : String;
  2811. Fmetrics : String;
  2812. FprofileId : String;
  2813. Fsegment : String;
  2814. FselfLink : String;
  2815. Fstartdate : String;
  2816. Fstatus : String;
  2817. Ftitle : String;
  2818. Fupdated : TDatetime;
  2819. FwebPropertyId : String;
  2820. Protected
  2821. Class Function ExportPropertyName(Const AName : String) : string; override;
  2822. //Property setters
  2823. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2824. Procedure SetcloudStorageDownloadDetails(AIndex : Integer; const AValue : TUnsampledReportTypecloudStorageDownloadDetails); virtual;
  2825. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  2826. Procedure Setdimensions(AIndex : Integer; const AValue : String); virtual;
  2827. Procedure SetdownloadType(AIndex : Integer; const AValue : String); virtual;
  2828. Procedure SetdriveDownloadDetails(AIndex : Integer; const AValue : TUnsampledReportTypedriveDownloadDetails); virtual;
  2829. Procedure Setenddate(AIndex : Integer; const AValue : String); virtual;
  2830. Procedure Setfilters(AIndex : Integer; const AValue : String); virtual;
  2831. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2832. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2833. Procedure Setmetrics(AIndex : Integer; const AValue : String); virtual;
  2834. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  2835. Procedure Setsegment(AIndex : Integer; const AValue : String); virtual;
  2836. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2837. Procedure Setstartdate(AIndex : Integer; const AValue : String); virtual;
  2838. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2839. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  2840. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  2841. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2842. Public
  2843. Published
  2844. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2845. Property cloudStorageDownloadDetails : TUnsampledReportTypecloudStorageDownloadDetails Index 8 Read FcloudStorageDownloadDetails Write SetcloudStorageDownloadDetails;
  2846. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  2847. Property dimensions : String Index 24 Read Fdimensions Write Setdimensions;
  2848. Property downloadType : String Index 32 Read FdownloadType Write SetdownloadType;
  2849. Property driveDownloadDetails : TUnsampledReportTypedriveDownloadDetails Index 40 Read FdriveDownloadDetails Write SetdriveDownloadDetails;
  2850. Property enddate : String Index 48 Read Fenddate Write Setenddate;
  2851. Property filters : String Index 56 Read Ffilters Write Setfilters;
  2852. Property id : String Index 64 Read Fid Write Setid;
  2853. Property kind : String Index 72 Read Fkind Write Setkind;
  2854. Property metrics : String Index 80 Read Fmetrics Write Setmetrics;
  2855. Property profileId : String Index 88 Read FprofileId Write SetprofileId;
  2856. Property segment : String Index 96 Read Fsegment Write Setsegment;
  2857. Property selfLink : String Index 104 Read FselfLink Write SetselfLink;
  2858. Property startdate : String Index 112 Read Fstartdate Write Setstartdate;
  2859. Property status : String Index 120 Read Fstatus Write Setstatus;
  2860. Property title : String Index 128 Read Ftitle Write Settitle;
  2861. Property updated : TDatetime Index 136 Read Fupdated Write Setupdated;
  2862. Property webPropertyId : String Index 144 Read FwebPropertyId Write SetwebPropertyId;
  2863. end;
  2864. TUnsampledReportClass = Class of TUnsampledReport;
  2865. { --------------------------------------------------------------------
  2866. TUnsampledReports
  2867. --------------------------------------------------------------------}
  2868. TUnsampledReports = Class(TGoogleBaseObject)
  2869. Private
  2870. Fitems : TUnsampledReportsTypeitemsArray;
  2871. FitemsPerPage : integer;
  2872. Fkind : String;
  2873. FnextLink : String;
  2874. FpreviousLink : String;
  2875. FstartIndex : integer;
  2876. FtotalResults : integer;
  2877. Fusername : String;
  2878. Protected
  2879. //Property setters
  2880. Procedure Setitems(AIndex : Integer; const AValue : TUnsampledReportsTypeitemsArray); virtual;
  2881. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2882. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2883. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2884. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2885. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2886. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2887. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2888. //2.6.4. bug workaround
  2889. {$IFDEF VER2_6}
  2890. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2891. {$ENDIF VER2_6}
  2892. Public
  2893. Published
  2894. Property items : TUnsampledReportsTypeitemsArray Index 0 Read Fitems Write Setitems;
  2895. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2896. Property kind : String Index 16 Read Fkind Write Setkind;
  2897. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2898. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2899. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2900. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2901. Property username : String Index 56 Read Fusername Write Setusername;
  2902. end;
  2903. TUnsampledReportsClass = Class of TUnsampledReports;
  2904. { --------------------------------------------------------------------
  2905. TUpload
  2906. --------------------------------------------------------------------}
  2907. TUpload = Class(TGoogleBaseObject)
  2908. Private
  2909. FaccountId : String;
  2910. FcustomDataSourceId : String;
  2911. Ferrors : TStringArray;
  2912. Fid : String;
  2913. Fkind : String;
  2914. Fstatus : String;
  2915. Protected
  2916. //Property setters
  2917. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2918. Procedure SetcustomDataSourceId(AIndex : Integer; const AValue : String); virtual;
  2919. Procedure Seterrors(AIndex : Integer; const AValue : TStringArray); virtual;
  2920. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2921. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2922. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2923. //2.6.4. bug workaround
  2924. {$IFDEF VER2_6}
  2925. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2926. {$ENDIF VER2_6}
  2927. Public
  2928. Published
  2929. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2930. Property customDataSourceId : String Index 8 Read FcustomDataSourceId Write SetcustomDataSourceId;
  2931. Property errors : TStringArray Index 16 Read Ferrors Write Seterrors;
  2932. Property id : String Index 24 Read Fid Write Setid;
  2933. Property kind : String Index 32 Read Fkind Write Setkind;
  2934. Property status : String Index 40 Read Fstatus Write Setstatus;
  2935. end;
  2936. TUploadClass = Class of TUpload;
  2937. { --------------------------------------------------------------------
  2938. TUploads
  2939. --------------------------------------------------------------------}
  2940. TUploads = Class(TGoogleBaseObject)
  2941. Private
  2942. Fitems : TUploadsTypeitemsArray;
  2943. FitemsPerPage : integer;
  2944. Fkind : String;
  2945. FnextLink : String;
  2946. FpreviousLink : String;
  2947. FstartIndex : integer;
  2948. FtotalResults : integer;
  2949. Protected
  2950. //Property setters
  2951. Procedure Setitems(AIndex : Integer; const AValue : TUploadsTypeitemsArray); virtual;
  2952. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2953. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2954. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2955. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2956. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2957. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2958. //2.6.4. bug workaround
  2959. {$IFDEF VER2_6}
  2960. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2961. {$ENDIF VER2_6}
  2962. Public
  2963. Published
  2964. Property items : TUploadsTypeitemsArray Index 0 Read Fitems Write Setitems;
  2965. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2966. Property kind : String Index 16 Read Fkind Write Setkind;
  2967. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2968. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2969. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2970. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2971. end;
  2972. TUploadsClass = Class of TUploads;
  2973. { --------------------------------------------------------------------
  2974. TUserRef
  2975. --------------------------------------------------------------------}
  2976. TUserRef = Class(TGoogleBaseObject)
  2977. Private
  2978. Femail : String;
  2979. Fid : String;
  2980. Fkind : String;
  2981. Protected
  2982. //Property setters
  2983. Procedure Setemail(AIndex : Integer; const AValue : String); virtual;
  2984. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2985. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2986. Public
  2987. Published
  2988. Property email : String Index 0 Read Femail Write Setemail;
  2989. Property id : String Index 8 Read Fid Write Setid;
  2990. Property kind : String Index 16 Read Fkind Write Setkind;
  2991. end;
  2992. TUserRefClass = Class of TUserRef;
  2993. { --------------------------------------------------------------------
  2994. TWebPropertyRef
  2995. --------------------------------------------------------------------}
  2996. TWebPropertyRef = Class(TGoogleBaseObject)
  2997. Private
  2998. FaccountId : String;
  2999. Fhref : String;
  3000. Fid : String;
  3001. FinternalWebPropertyId : String;
  3002. Fkind : String;
  3003. Fname : String;
  3004. Protected
  3005. //Property setters
  3006. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  3007. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  3008. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3009. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  3010. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3011. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  3012. Public
  3013. Published
  3014. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  3015. Property href : String Index 8 Read Fhref Write Sethref;
  3016. Property id : String Index 16 Read Fid Write Setid;
  3017. Property internalWebPropertyId : String Index 24 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  3018. Property kind : String Index 32 Read Fkind Write Setkind;
  3019. Property name : String Index 40 Read Fname Write Setname;
  3020. end;
  3021. TWebPropertyRefClass = Class of TWebPropertyRef;
  3022. { --------------------------------------------------------------------
  3023. TWebPropertySummary
  3024. --------------------------------------------------------------------}
  3025. TWebPropertySummary = Class(TGoogleBaseObject)
  3026. Private
  3027. Fid : String;
  3028. FinternalWebPropertyId : String;
  3029. Fkind : String;
  3030. Flevel : String;
  3031. Fname : String;
  3032. Fprofiles : TWebPropertySummaryTypeprofilesArray;
  3033. Fstarred : boolean;
  3034. FwebsiteUrl : String;
  3035. Protected
  3036. //Property setters
  3037. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3038. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  3039. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3040. Procedure Setlevel(AIndex : Integer; const AValue : String); virtual;
  3041. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  3042. Procedure Setprofiles(AIndex : Integer; const AValue : TWebPropertySummaryTypeprofilesArray); virtual;
  3043. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  3044. Procedure SetwebsiteUrl(AIndex : Integer; const AValue : String); virtual;
  3045. //2.6.4. bug workaround
  3046. {$IFDEF VER2_6}
  3047. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3048. {$ENDIF VER2_6}
  3049. Public
  3050. Published
  3051. Property id : String Index 0 Read Fid Write Setid;
  3052. Property internalWebPropertyId : String Index 8 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  3053. Property kind : String Index 16 Read Fkind Write Setkind;
  3054. Property level : String Index 24 Read Flevel Write Setlevel;
  3055. Property name : String Index 32 Read Fname Write Setname;
  3056. Property profiles : TWebPropertySummaryTypeprofilesArray Index 40 Read Fprofiles Write Setprofiles;
  3057. Property starred : boolean Index 48 Read Fstarred Write Setstarred;
  3058. Property websiteUrl : String Index 56 Read FwebsiteUrl Write SetwebsiteUrl;
  3059. end;
  3060. TWebPropertySummaryClass = Class of TWebPropertySummary;
  3061. { --------------------------------------------------------------------
  3062. TWebproperties
  3063. --------------------------------------------------------------------}
  3064. TWebproperties = Class(TGoogleBaseObject)
  3065. Private
  3066. Fitems : TWebpropertiesTypeitemsArray;
  3067. FitemsPerPage : integer;
  3068. Fkind : String;
  3069. FnextLink : String;
  3070. FpreviousLink : String;
  3071. FstartIndex : integer;
  3072. FtotalResults : integer;
  3073. Fusername : String;
  3074. Protected
  3075. //Property setters
  3076. Procedure Setitems(AIndex : Integer; const AValue : TWebpropertiesTypeitemsArray); virtual;
  3077. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  3078. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3079. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  3080. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  3081. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  3082. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  3083. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  3084. //2.6.4. bug workaround
  3085. {$IFDEF VER2_6}
  3086. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3087. {$ENDIF VER2_6}
  3088. Public
  3089. Published
  3090. Property items : TWebpropertiesTypeitemsArray Index 0 Read Fitems Write Setitems;
  3091. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  3092. Property kind : String Index 16 Read Fkind Write Setkind;
  3093. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  3094. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  3095. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  3096. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  3097. Property username : String Index 56 Read Fusername Write Setusername;
  3098. end;
  3099. TWebpropertiesClass = Class of TWebproperties;
  3100. { --------------------------------------------------------------------
  3101. TWebpropertyTypechildLink
  3102. --------------------------------------------------------------------}
  3103. TWebpropertyTypechildLink = Class(TGoogleBaseObject)
  3104. Private
  3105. Fhref : String;
  3106. F_type : String;
  3107. Protected
  3108. Class Function ExportPropertyName(Const AName : String) : string; override;
  3109. //Property setters
  3110. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  3111. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  3112. Public
  3113. Published
  3114. Property href : String Index 0 Read Fhref Write Sethref;
  3115. Property _type : String Index 8 Read F_type Write Set_type;
  3116. end;
  3117. TWebpropertyTypechildLinkClass = Class of TWebpropertyTypechildLink;
  3118. { --------------------------------------------------------------------
  3119. TWebpropertyTypeparentLink
  3120. --------------------------------------------------------------------}
  3121. TWebpropertyTypeparentLink = Class(TGoogleBaseObject)
  3122. Private
  3123. Fhref : String;
  3124. F_type : String;
  3125. Protected
  3126. Class Function ExportPropertyName(Const AName : String) : string; override;
  3127. //Property setters
  3128. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  3129. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  3130. Public
  3131. Published
  3132. Property href : String Index 0 Read Fhref Write Sethref;
  3133. Property _type : String Index 8 Read F_type Write Set_type;
  3134. end;
  3135. TWebpropertyTypeparentLinkClass = Class of TWebpropertyTypeparentLink;
  3136. { --------------------------------------------------------------------
  3137. TWebpropertyTypepermissions
  3138. --------------------------------------------------------------------}
  3139. TWebpropertyTypepermissions = Class(TGoogleBaseObject)
  3140. Private
  3141. Feffective : TStringArray;
  3142. Protected
  3143. //Property setters
  3144. Procedure Seteffective(AIndex : Integer; const AValue : TStringArray); virtual;
  3145. //2.6.4. bug workaround
  3146. {$IFDEF VER2_6}
  3147. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3148. {$ENDIF VER2_6}
  3149. Public
  3150. Published
  3151. Property effective : TStringArray Index 0 Read Feffective Write Seteffective;
  3152. end;
  3153. TWebpropertyTypepermissionsClass = Class of TWebpropertyTypepermissions;
  3154. { --------------------------------------------------------------------
  3155. TWebproperty
  3156. --------------------------------------------------------------------}
  3157. TWebproperty = Class(TGoogleBaseObject)
  3158. Private
  3159. FaccountId : String;
  3160. FchildLink : TWebpropertyTypechildLink;
  3161. Fcreated : TDatetime;
  3162. FdefaultProfileId : String;
  3163. Fid : String;
  3164. FindustryVertical : String;
  3165. FinternalWebPropertyId : String;
  3166. Fkind : String;
  3167. Flevel : String;
  3168. Fname : String;
  3169. FparentLink : TWebpropertyTypeparentLink;
  3170. Fpermissions : TWebpropertyTypepermissions;
  3171. FprofileCount : integer;
  3172. FselfLink : String;
  3173. Fstarred : boolean;
  3174. Fupdated : TDatetime;
  3175. FwebsiteUrl : String;
  3176. Protected
  3177. //Property setters
  3178. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  3179. Procedure SetchildLink(AIndex : Integer; const AValue : TWebpropertyTypechildLink); virtual;
  3180. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  3181. Procedure SetdefaultProfileId(AIndex : Integer; const AValue : String); virtual;
  3182. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3183. Procedure SetindustryVertical(AIndex : Integer; const AValue : String); virtual;
  3184. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  3185. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3186. Procedure Setlevel(AIndex : Integer; const AValue : String); virtual;
  3187. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  3188. Procedure SetparentLink(AIndex : Integer; const AValue : TWebpropertyTypeparentLink); virtual;
  3189. Procedure Setpermissions(AIndex : Integer; const AValue : TWebpropertyTypepermissions); virtual;
  3190. Procedure SetprofileCount(AIndex : Integer; const AValue : integer); virtual;
  3191. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  3192. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  3193. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  3194. Procedure SetwebsiteUrl(AIndex : Integer; const AValue : String); virtual;
  3195. Public
  3196. Published
  3197. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  3198. Property childLink : TWebpropertyTypechildLink Index 8 Read FchildLink Write SetchildLink;
  3199. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  3200. Property defaultProfileId : String Index 24 Read FdefaultProfileId Write SetdefaultProfileId;
  3201. Property id : String Index 32 Read Fid Write Setid;
  3202. Property industryVertical : String Index 40 Read FindustryVertical Write SetindustryVertical;
  3203. Property internalWebPropertyId : String Index 48 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  3204. Property kind : String Index 56 Read Fkind Write Setkind;
  3205. Property level : String Index 64 Read Flevel Write Setlevel;
  3206. Property name : String Index 72 Read Fname Write Setname;
  3207. Property parentLink : TWebpropertyTypeparentLink Index 80 Read FparentLink Write SetparentLink;
  3208. Property permissions : TWebpropertyTypepermissions Index 88 Read Fpermissions Write Setpermissions;
  3209. Property profileCount : integer Index 96 Read FprofileCount Write SetprofileCount;
  3210. Property selfLink : String Index 104 Read FselfLink Write SetselfLink;
  3211. Property starred : boolean Index 112 Read Fstarred Write Setstarred;
  3212. Property updated : TDatetime Index 120 Read Fupdated Write Setupdated;
  3213. Property websiteUrl : String Index 128 Read FwebsiteUrl Write SetwebsiteUrl;
  3214. end;
  3215. TWebpropertyClass = Class of TWebproperty;
  3216. { --------------------------------------------------------------------
  3217. TDataGaResource
  3218. --------------------------------------------------------------------}
  3219. //Optional query Options for TDataGaResource, method Get
  3220. TDataGaGetOptions = Record
  3221. dimensions : String;
  3222. enddate : String;
  3223. filters : String;
  3224. ids : String;
  3225. includeemptyrows : boolean;
  3226. maxresults : integer;
  3227. metrics : String;
  3228. output : String;
  3229. samplingLevel : String;
  3230. segment : String;
  3231. sort : String;
  3232. startdate : String;
  3233. startindex : integer;
  3234. end;
  3235. TDataGaResource = Class(TGoogleResource)
  3236. Public
  3237. Class Function ResourceName : String; override;
  3238. Class Function DefaultAPI : TGoogleAPIClass; override;
  3239. Function Get(AQuery : string = '') : TGaData;
  3240. Function Get(AQuery : TDataGagetOptions) : TGaData;
  3241. end;
  3242. { --------------------------------------------------------------------
  3243. TDataMcfResource
  3244. --------------------------------------------------------------------}
  3245. //Optional query Options for TDataMcfResource, method Get
  3246. TDataMcfGetOptions = Record
  3247. dimensions : String;
  3248. enddate : String;
  3249. filters : String;
  3250. ids : String;
  3251. maxresults : integer;
  3252. metrics : String;
  3253. samplingLevel : String;
  3254. sort : String;
  3255. startdate : String;
  3256. startindex : integer;
  3257. end;
  3258. TDataMcfResource = Class(TGoogleResource)
  3259. Public
  3260. Class Function ResourceName : String; override;
  3261. Class Function DefaultAPI : TGoogleAPIClass; override;
  3262. Function Get(AQuery : string = '') : TMcfData;
  3263. Function Get(AQuery : TDataMcfgetOptions) : TMcfData;
  3264. end;
  3265. { --------------------------------------------------------------------
  3266. TDataRealtimeResource
  3267. --------------------------------------------------------------------}
  3268. //Optional query Options for TDataRealtimeResource, method Get
  3269. TDataRealtimeGetOptions = Record
  3270. dimensions : String;
  3271. filters : String;
  3272. ids : String;
  3273. maxresults : integer;
  3274. metrics : String;
  3275. sort : String;
  3276. end;
  3277. TDataRealtimeResource = Class(TGoogleResource)
  3278. Public
  3279. Class Function ResourceName : String; override;
  3280. Class Function DefaultAPI : TGoogleAPIClass; override;
  3281. Function Get(AQuery : string = '') : TRealtimeData;
  3282. Function Get(AQuery : TDataRealtimegetOptions) : TRealtimeData;
  3283. end;
  3284. { --------------------------------------------------------------------
  3285. TDataResource
  3286. --------------------------------------------------------------------}
  3287. TDataResource = Class(TGoogleResource)
  3288. Private
  3289. FGaInstance : TDataGaResource;
  3290. FMcfInstance : TDataMcfResource;
  3291. FRealtimeInstance : TDataRealtimeResource;
  3292. Function GetGaInstance : TDataGaResource;virtual;
  3293. Function GetMcfInstance : TDataMcfResource;virtual;
  3294. Function GetRealtimeInstance : TDataRealtimeResource;virtual;
  3295. Public
  3296. Class Function ResourceName : String; override;
  3297. Class Function DefaultAPI : TGoogleAPIClass; override;
  3298. Function CreateGaResource(AOwner : TComponent) : TDataGaResource;virtual;overload;
  3299. Function CreateGaResource : TDataGaResource;virtual;overload;
  3300. Function CreateMcfResource(AOwner : TComponent) : TDataMcfResource;virtual;overload;
  3301. Function CreateMcfResource : TDataMcfResource;virtual;overload;
  3302. Function CreateRealtimeResource(AOwner : TComponent) : TDataRealtimeResource;virtual;overload;
  3303. Function CreateRealtimeResource : TDataRealtimeResource;virtual;overload;
  3304. Property GaResource : TDataGaResource Read GetGaInstance;
  3305. Property McfResource : TDataMcfResource Read GetMcfInstance;
  3306. Property RealtimeResource : TDataRealtimeResource Read GetRealtimeInstance;
  3307. end;
  3308. { --------------------------------------------------------------------
  3309. TManagementAccountSummariesResource
  3310. --------------------------------------------------------------------}
  3311. //Optional query Options for TManagementAccountSummariesResource, method List
  3312. TManagementAccountSummariesListOptions = Record
  3313. maxresults : integer;
  3314. startindex : integer;
  3315. end;
  3316. TManagementAccountSummariesResource = Class(TGoogleResource)
  3317. Public
  3318. Class Function ResourceName : String; override;
  3319. Class Function DefaultAPI : TGoogleAPIClass; override;
  3320. Function List(AQuery : string = '') : TAccountSummaries;
  3321. Function List(AQuery : TManagementAccountSummarieslistOptions) : TAccountSummaries;
  3322. end;
  3323. { --------------------------------------------------------------------
  3324. TManagementAccountUserLinksResource
  3325. --------------------------------------------------------------------}
  3326. //Optional query Options for TManagementAccountUserLinksResource, method List
  3327. TManagementAccountUserLinksListOptions = Record
  3328. maxresults : integer;
  3329. startindex : integer;
  3330. end;
  3331. TManagementAccountUserLinksResource = Class(TGoogleResource)
  3332. Public
  3333. Class Function ResourceName : String; override;
  3334. Class Function DefaultAPI : TGoogleAPIClass; override;
  3335. Procedure Delete(accountId: string; linkId: string);
  3336. Function Insert(accountId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3337. Function List(accountId: string; AQuery : string = '') : TEntityUserLinks;
  3338. Function List(accountId: string; AQuery : TManagementAccountUserLinkslistOptions) : TEntityUserLinks;
  3339. Function Update(accountId: string; linkId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3340. end;
  3341. { --------------------------------------------------------------------
  3342. TManagementAccountsResource
  3343. --------------------------------------------------------------------}
  3344. //Optional query Options for TManagementAccountsResource, method List
  3345. TManagementAccountsListOptions = Record
  3346. maxresults : integer;
  3347. startindex : integer;
  3348. end;
  3349. TManagementAccountsResource = Class(TGoogleResource)
  3350. Public
  3351. Class Function ResourceName : String; override;
  3352. Class Function DefaultAPI : TGoogleAPIClass; override;
  3353. Function List(AQuery : string = '') : TAccounts;
  3354. Function List(AQuery : TManagementAccountslistOptions) : TAccounts;
  3355. end;
  3356. { --------------------------------------------------------------------
  3357. TManagementCustomDataSourcesResource
  3358. --------------------------------------------------------------------}
  3359. //Optional query Options for TManagementCustomDataSourcesResource, method List
  3360. TManagementCustomDataSourcesListOptions = Record
  3361. maxresults : integer;
  3362. startindex : integer;
  3363. end;
  3364. TManagementCustomDataSourcesResource = Class(TGoogleResource)
  3365. Public
  3366. Class Function ResourceName : String; override;
  3367. Class Function DefaultAPI : TGoogleAPIClass; override;
  3368. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomDataSources;
  3369. Function List(accountId: string; webPropertyId: string; AQuery : TManagementCustomDataSourceslistOptions) : TCustomDataSources;
  3370. end;
  3371. { --------------------------------------------------------------------
  3372. TManagementCustomDimensionsResource
  3373. --------------------------------------------------------------------}
  3374. //Optional query Options for TManagementCustomDimensionsResource, method List
  3375. TManagementCustomDimensionsListOptions = Record
  3376. maxresults : integer;
  3377. startindex : integer;
  3378. end;
  3379. //Optional query Options for TManagementCustomDimensionsResource, method Patch
  3380. TManagementCustomDimensionsPatchOptions = Record
  3381. ignoreCustomDataSourceLinks : boolean;
  3382. end;
  3383. //Optional query Options for TManagementCustomDimensionsResource, method Update
  3384. TManagementCustomDimensionsUpdateOptions = Record
  3385. ignoreCustomDataSourceLinks : boolean;
  3386. end;
  3387. TManagementCustomDimensionsResource = Class(TGoogleResource)
  3388. Public
  3389. Class Function ResourceName : String; override;
  3390. Class Function DefaultAPI : TGoogleAPIClass; override;
  3391. Function Get(accountId: string; customDimensionId: string; webPropertyId: string) : TCustomDimension;
  3392. Function Insert(accountId: string; webPropertyId: string; aCustomDimension : TCustomDimension) : TCustomDimension;
  3393. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomDimensions;
  3394. Function List(accountId: string; webPropertyId: string; AQuery : TManagementCustomDimensionslistOptions) : TCustomDimensions;
  3395. Function Patch(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : string = '') : TCustomDimension;
  3396. Function Patch(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : TManagementCustomDimensionspatchOptions) : TCustomDimension;
  3397. Function Update(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : string = '') : TCustomDimension;
  3398. Function Update(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : TManagementCustomDimensionsupdateOptions) : TCustomDimension;
  3399. end;
  3400. { --------------------------------------------------------------------
  3401. TManagementCustomMetricsResource
  3402. --------------------------------------------------------------------}
  3403. //Optional query Options for TManagementCustomMetricsResource, method List
  3404. TManagementCustomMetricsListOptions = Record
  3405. maxresults : integer;
  3406. startindex : integer;
  3407. end;
  3408. //Optional query Options for TManagementCustomMetricsResource, method Patch
  3409. TManagementCustomMetricsPatchOptions = Record
  3410. ignoreCustomDataSourceLinks : boolean;
  3411. end;
  3412. //Optional query Options for TManagementCustomMetricsResource, method Update
  3413. TManagementCustomMetricsUpdateOptions = Record
  3414. ignoreCustomDataSourceLinks : boolean;
  3415. end;
  3416. TManagementCustomMetricsResource = Class(TGoogleResource)
  3417. Public
  3418. Class Function ResourceName : String; override;
  3419. Class Function DefaultAPI : TGoogleAPIClass; override;
  3420. Function Get(accountId: string; customMetricId: string; webPropertyId: string) : TCustomMetric;
  3421. Function Insert(accountId: string; webPropertyId: string; aCustomMetric : TCustomMetric) : TCustomMetric;
  3422. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomMetrics;
  3423. Function List(accountId: string; webPropertyId: string; AQuery : TManagementCustomMetricslistOptions) : TCustomMetrics;
  3424. Function Patch(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : string = '') : TCustomMetric;
  3425. Function Patch(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : TManagementCustomMetricspatchOptions) : TCustomMetric;
  3426. Function Update(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : string = '') : TCustomMetric;
  3427. Function Update(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : TManagementCustomMetricsupdateOptions) : TCustomMetric;
  3428. end;
  3429. { --------------------------------------------------------------------
  3430. TManagementExperimentsResource
  3431. --------------------------------------------------------------------}
  3432. //Optional query Options for TManagementExperimentsResource, method List
  3433. TManagementExperimentsListOptions = Record
  3434. maxresults : integer;
  3435. startindex : integer;
  3436. end;
  3437. TManagementExperimentsResource = Class(TGoogleResource)
  3438. Public
  3439. Class Function ResourceName : String; override;
  3440. Class Function DefaultAPI : TGoogleAPIClass; override;
  3441. Procedure Delete(accountId: string; experimentId: string; profileId: string; webPropertyId: string);
  3442. Function Get(accountId: string; experimentId: string; profileId: string; webPropertyId: string) : TExperiment;
  3443. Function Insert(accountId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  3444. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TExperiments;
  3445. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementExperimentslistOptions) : TExperiments;
  3446. Function Patch(accountId: string; experimentId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  3447. Function Update(accountId: string; experimentId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  3448. end;
  3449. { --------------------------------------------------------------------
  3450. TManagementFiltersResource
  3451. --------------------------------------------------------------------}
  3452. //Optional query Options for TManagementFiltersResource, method List
  3453. TManagementFiltersListOptions = Record
  3454. maxresults : integer;
  3455. startindex : integer;
  3456. end;
  3457. TManagementFiltersResource = Class(TGoogleResource)
  3458. Public
  3459. Class Function ResourceName : String; override;
  3460. Class Function DefaultAPI : TGoogleAPIClass; override;
  3461. Function Delete(accountId: string; filterId: string) : TFilter;
  3462. Function Get(accountId: string; filterId: string) : TFilter;
  3463. Function Insert(accountId: string; aFilter : TFilter) : TFilter;
  3464. Function List(accountId: string; AQuery : string = '') : TFilters;
  3465. Function List(accountId: string; AQuery : TManagementFilterslistOptions) : TFilters;
  3466. Function Patch(accountId: string; filterId: string; aFilter : TFilter) : TFilter;
  3467. Function Update(accountId: string; filterId: string; aFilter : TFilter) : TFilter;
  3468. end;
  3469. { --------------------------------------------------------------------
  3470. TManagementGoalsResource
  3471. --------------------------------------------------------------------}
  3472. //Optional query Options for TManagementGoalsResource, method List
  3473. TManagementGoalsListOptions = Record
  3474. maxresults : integer;
  3475. startindex : integer;
  3476. end;
  3477. TManagementGoalsResource = Class(TGoogleResource)
  3478. Public
  3479. Class Function ResourceName : String; override;
  3480. Class Function DefaultAPI : TGoogleAPIClass; override;
  3481. Function Get(accountId: string; goalId: string; profileId: string; webPropertyId: string) : TGoal;
  3482. Function Insert(accountId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  3483. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TGoals;
  3484. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementGoalslistOptions) : TGoals;
  3485. Function Patch(accountId: string; goalId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  3486. Function Update(accountId: string; goalId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  3487. end;
  3488. { --------------------------------------------------------------------
  3489. TManagementProfileFilterLinksResource
  3490. --------------------------------------------------------------------}
  3491. //Optional query Options for TManagementProfileFilterLinksResource, method List
  3492. TManagementProfileFilterLinksListOptions = Record
  3493. maxresults : integer;
  3494. startindex : integer;
  3495. end;
  3496. TManagementProfileFilterLinksResource = Class(TGoogleResource)
  3497. Public
  3498. Class Function ResourceName : String; override;
  3499. Class Function DefaultAPI : TGoogleAPIClass; override;
  3500. Procedure Delete(accountId: string; linkId: string; profileId: string; webPropertyId: string);
  3501. Function Get(accountId: string; linkId: string; profileId: string; webPropertyId: string) : TProfileFilterLink;
  3502. Function Insert(accountId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  3503. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TProfileFilterLinks;
  3504. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementProfileFilterLinkslistOptions) : TProfileFilterLinks;
  3505. Function Patch(accountId: string; linkId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  3506. Function Update(accountId: string; linkId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  3507. end;
  3508. { --------------------------------------------------------------------
  3509. TManagementProfileUserLinksResource
  3510. --------------------------------------------------------------------}
  3511. //Optional query Options for TManagementProfileUserLinksResource, method List
  3512. TManagementProfileUserLinksListOptions = Record
  3513. maxresults : integer;
  3514. startindex : integer;
  3515. end;
  3516. TManagementProfileUserLinksResource = Class(TGoogleResource)
  3517. Public
  3518. Class Function ResourceName : String; override;
  3519. Class Function DefaultAPI : TGoogleAPIClass; override;
  3520. Procedure Delete(accountId: string; linkId: string; profileId: string; webPropertyId: string);
  3521. Function Insert(accountId: string; profileId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3522. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TEntityUserLinks;
  3523. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementProfileUserLinkslistOptions) : TEntityUserLinks;
  3524. Function Update(accountId: string; linkId: string; profileId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3525. end;
  3526. { --------------------------------------------------------------------
  3527. TManagementProfilesResource
  3528. --------------------------------------------------------------------}
  3529. //Optional query Options for TManagementProfilesResource, method List
  3530. TManagementProfilesListOptions = Record
  3531. maxresults : integer;
  3532. startindex : integer;
  3533. end;
  3534. TManagementProfilesResource = Class(TGoogleResource)
  3535. Public
  3536. Class Function ResourceName : String; override;
  3537. Class Function DefaultAPI : TGoogleAPIClass; override;
  3538. Procedure Delete(accountId: string; profileId: string; webPropertyId: string);
  3539. Function Get(accountId: string; profileId: string; webPropertyId: string) : TProfile;
  3540. Function Insert(accountId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  3541. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TProfiles;
  3542. Function List(accountId: string; webPropertyId: string; AQuery : TManagementProfileslistOptions) : TProfiles;
  3543. Function Patch(accountId: string; profileId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  3544. Function Update(accountId: string; profileId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  3545. end;
  3546. { --------------------------------------------------------------------
  3547. TManagementSegmentsResource
  3548. --------------------------------------------------------------------}
  3549. //Optional query Options for TManagementSegmentsResource, method List
  3550. TManagementSegmentsListOptions = Record
  3551. maxresults : integer;
  3552. startindex : integer;
  3553. end;
  3554. TManagementSegmentsResource = Class(TGoogleResource)
  3555. Public
  3556. Class Function ResourceName : String; override;
  3557. Class Function DefaultAPI : TGoogleAPIClass; override;
  3558. Function List(AQuery : string = '') : TSegments;
  3559. Function List(AQuery : TManagementSegmentslistOptions) : TSegments;
  3560. end;
  3561. { --------------------------------------------------------------------
  3562. TManagementUnsampledReportsResource
  3563. --------------------------------------------------------------------}
  3564. //Optional query Options for TManagementUnsampledReportsResource, method List
  3565. TManagementUnsampledReportsListOptions = Record
  3566. maxresults : integer;
  3567. startindex : integer;
  3568. end;
  3569. TManagementUnsampledReportsResource = Class(TGoogleResource)
  3570. Public
  3571. Class Function ResourceName : String; override;
  3572. Class Function DefaultAPI : TGoogleAPIClass; override;
  3573. Procedure Delete(accountId: string; profileId: string; unsampledReportId: string; webPropertyId: string);
  3574. Function Get(accountId: string; profileId: string; unsampledReportId: string; webPropertyId: string) : TUnsampledReport;
  3575. Function Insert(accountId: string; profileId: string; webPropertyId: string; aUnsampledReport : TUnsampledReport) : TUnsampledReport;
  3576. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TUnsampledReports;
  3577. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementUnsampledReportslistOptions) : TUnsampledReports;
  3578. end;
  3579. { --------------------------------------------------------------------
  3580. TManagementUploadsResource
  3581. --------------------------------------------------------------------}
  3582. //Optional query Options for TManagementUploadsResource, method List
  3583. TManagementUploadsListOptions = Record
  3584. maxresults : integer;
  3585. startindex : integer;
  3586. end;
  3587. TManagementUploadsResource = Class(TGoogleResource)
  3588. Public
  3589. Class Function ResourceName : String; override;
  3590. Class Function DefaultAPI : TGoogleAPIClass; override;
  3591. Procedure DeleteUploadData(accountId: string; customDataSourceId: string; webPropertyId: string; aAnalyticsDataimportDeleteUploadDataRequest : TAnalyticsDataimportDeleteUploadDataRequest);
  3592. Function Get(accountId: string; customDataSourceId: string; uploadId: string; webPropertyId: string) : TUpload;
  3593. Function List(accountId: string; customDataSourceId: string; webPropertyId: string; AQuery : string = '') : TUploads;
  3594. Function List(accountId: string; customDataSourceId: string; webPropertyId: string; AQuery : TManagementUploadslistOptions) : TUploads;
  3595. Function UploadData(accountId: string; customDataSourceId: string; webPropertyId: string) : TUpload;
  3596. end;
  3597. { --------------------------------------------------------------------
  3598. TManagementWebPropertyAdWordsLinksResource
  3599. --------------------------------------------------------------------}
  3600. //Optional query Options for TManagementWebPropertyAdWordsLinksResource, method List
  3601. TManagementWebPropertyAdWordsLinksListOptions = Record
  3602. maxresults : integer;
  3603. startindex : integer;
  3604. end;
  3605. TManagementWebPropertyAdWordsLinksResource = Class(TGoogleResource)
  3606. Public
  3607. Class Function ResourceName : String; override;
  3608. Class Function DefaultAPI : TGoogleAPIClass; override;
  3609. Procedure Delete(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string);
  3610. Function Get(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string) : TEntityAdWordsLink;
  3611. Function Insert(accountId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  3612. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TEntityAdWordsLinks;
  3613. Function List(accountId: string; webPropertyId: string; AQuery : TManagementWebPropertyAdWordsLinkslistOptions) : TEntityAdWordsLinks;
  3614. Function Patch(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  3615. Function Update(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  3616. end;
  3617. { --------------------------------------------------------------------
  3618. TManagementWebpropertiesResource
  3619. --------------------------------------------------------------------}
  3620. //Optional query Options for TManagementWebpropertiesResource, method List
  3621. TManagementWebpropertiesListOptions = Record
  3622. maxresults : integer;
  3623. startindex : integer;
  3624. end;
  3625. TManagementWebpropertiesResource = Class(TGoogleResource)
  3626. Public
  3627. Class Function ResourceName : String; override;
  3628. Class Function DefaultAPI : TGoogleAPIClass; override;
  3629. Function Get(accountId: string; webPropertyId: string) : TWebproperty;
  3630. Function Insert(accountId: string; aWebproperty : TWebproperty) : TWebproperty;
  3631. Function List(accountId: string; AQuery : string = '') : TWebproperties;
  3632. Function List(accountId: string; AQuery : TManagementWebpropertieslistOptions) : TWebproperties;
  3633. Function Patch(accountId: string; webPropertyId: string; aWebproperty : TWebproperty) : TWebproperty;
  3634. Function Update(accountId: string; webPropertyId: string; aWebproperty : TWebproperty) : TWebproperty;
  3635. end;
  3636. { --------------------------------------------------------------------
  3637. TManagementWebpropertyUserLinksResource
  3638. --------------------------------------------------------------------}
  3639. //Optional query Options for TManagementWebpropertyUserLinksResource, method List
  3640. TManagementWebpropertyUserLinksListOptions = Record
  3641. maxresults : integer;
  3642. startindex : integer;
  3643. end;
  3644. TManagementWebpropertyUserLinksResource = Class(TGoogleResource)
  3645. Public
  3646. Class Function ResourceName : String; override;
  3647. Class Function DefaultAPI : TGoogleAPIClass; override;
  3648. Procedure Delete(accountId: string; linkId: string; webPropertyId: string);
  3649. Function Insert(accountId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3650. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TEntityUserLinks;
  3651. Function List(accountId: string; webPropertyId: string; AQuery : TManagementWebpropertyUserLinkslistOptions) : TEntityUserLinks;
  3652. Function Update(accountId: string; linkId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3653. end;
  3654. { --------------------------------------------------------------------
  3655. TManagementResource
  3656. --------------------------------------------------------------------}
  3657. TManagementResource = Class(TGoogleResource)
  3658. Private
  3659. FAccountSummariesInstance : TManagementAccountSummariesResource;
  3660. FAccountUserLinksInstance : TManagementAccountUserLinksResource;
  3661. FAccountsInstance : TManagementAccountsResource;
  3662. FCustomDataSourcesInstance : TManagementCustomDataSourcesResource;
  3663. FCustomDimensionsInstance : TManagementCustomDimensionsResource;
  3664. FCustomMetricsInstance : TManagementCustomMetricsResource;
  3665. FExperimentsInstance : TManagementExperimentsResource;
  3666. FFiltersInstance : TManagementFiltersResource;
  3667. FGoalsInstance : TManagementGoalsResource;
  3668. FProfileFilterLinksInstance : TManagementProfileFilterLinksResource;
  3669. FProfileUserLinksInstance : TManagementProfileUserLinksResource;
  3670. FProfilesInstance : TManagementProfilesResource;
  3671. FSegmentsInstance : TManagementSegmentsResource;
  3672. FUnsampledReportsInstance : TManagementUnsampledReportsResource;
  3673. FUploadsInstance : TManagementUploadsResource;
  3674. FWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;
  3675. FWebpropertiesInstance : TManagementWebpropertiesResource;
  3676. FWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;
  3677. Function GetAccountSummariesInstance : TManagementAccountSummariesResource;virtual;
  3678. Function GetAccountUserLinksInstance : TManagementAccountUserLinksResource;virtual;
  3679. Function GetAccountsInstance : TManagementAccountsResource;virtual;
  3680. Function GetCustomDataSourcesInstance : TManagementCustomDataSourcesResource;virtual;
  3681. Function GetCustomDimensionsInstance : TManagementCustomDimensionsResource;virtual;
  3682. Function GetCustomMetricsInstance : TManagementCustomMetricsResource;virtual;
  3683. Function GetExperimentsInstance : TManagementExperimentsResource;virtual;
  3684. Function GetFiltersInstance : TManagementFiltersResource;virtual;
  3685. Function GetGoalsInstance : TManagementGoalsResource;virtual;
  3686. Function GetProfileFilterLinksInstance : TManagementProfileFilterLinksResource;virtual;
  3687. Function GetProfileUserLinksInstance : TManagementProfileUserLinksResource;virtual;
  3688. Function GetProfilesInstance : TManagementProfilesResource;virtual;
  3689. Function GetSegmentsInstance : TManagementSegmentsResource;virtual;
  3690. Function GetUnsampledReportsInstance : TManagementUnsampledReportsResource;virtual;
  3691. Function GetUploadsInstance : TManagementUploadsResource;virtual;
  3692. Function GetWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;virtual;
  3693. Function GetWebpropertiesInstance : TManagementWebpropertiesResource;virtual;
  3694. Function GetWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;virtual;
  3695. Public
  3696. Class Function ResourceName : String; override;
  3697. Class Function DefaultAPI : TGoogleAPIClass; override;
  3698. Function CreateAccountSummariesResource(AOwner : TComponent) : TManagementAccountSummariesResource;virtual;overload;
  3699. Function CreateAccountSummariesResource : TManagementAccountSummariesResource;virtual;overload;
  3700. Function CreateAccountUserLinksResource(AOwner : TComponent) : TManagementAccountUserLinksResource;virtual;overload;
  3701. Function CreateAccountUserLinksResource : TManagementAccountUserLinksResource;virtual;overload;
  3702. Function CreateAccountsResource(AOwner : TComponent) : TManagementAccountsResource;virtual;overload;
  3703. Function CreateAccountsResource : TManagementAccountsResource;virtual;overload;
  3704. Function CreateCustomDataSourcesResource(AOwner : TComponent) : TManagementCustomDataSourcesResource;virtual;overload;
  3705. Function CreateCustomDataSourcesResource : TManagementCustomDataSourcesResource;virtual;overload;
  3706. Function CreateCustomDimensionsResource(AOwner : TComponent) : TManagementCustomDimensionsResource;virtual;overload;
  3707. Function CreateCustomDimensionsResource : TManagementCustomDimensionsResource;virtual;overload;
  3708. Function CreateCustomMetricsResource(AOwner : TComponent) : TManagementCustomMetricsResource;virtual;overload;
  3709. Function CreateCustomMetricsResource : TManagementCustomMetricsResource;virtual;overload;
  3710. Function CreateExperimentsResource(AOwner : TComponent) : TManagementExperimentsResource;virtual;overload;
  3711. Function CreateExperimentsResource : TManagementExperimentsResource;virtual;overload;
  3712. Function CreateFiltersResource(AOwner : TComponent) : TManagementFiltersResource;virtual;overload;
  3713. Function CreateFiltersResource : TManagementFiltersResource;virtual;overload;
  3714. Function CreateGoalsResource(AOwner : TComponent) : TManagementGoalsResource;virtual;overload;
  3715. Function CreateGoalsResource : TManagementGoalsResource;virtual;overload;
  3716. Function CreateProfileFilterLinksResource(AOwner : TComponent) : TManagementProfileFilterLinksResource;virtual;overload;
  3717. Function CreateProfileFilterLinksResource : TManagementProfileFilterLinksResource;virtual;overload;
  3718. Function CreateProfileUserLinksResource(AOwner : TComponent) : TManagementProfileUserLinksResource;virtual;overload;
  3719. Function CreateProfileUserLinksResource : TManagementProfileUserLinksResource;virtual;overload;
  3720. Function CreateProfilesResource(AOwner : TComponent) : TManagementProfilesResource;virtual;overload;
  3721. Function CreateProfilesResource : TManagementProfilesResource;virtual;overload;
  3722. Function CreateSegmentsResource(AOwner : TComponent) : TManagementSegmentsResource;virtual;overload;
  3723. Function CreateSegmentsResource : TManagementSegmentsResource;virtual;overload;
  3724. Function CreateUnsampledReportsResource(AOwner : TComponent) : TManagementUnsampledReportsResource;virtual;overload;
  3725. Function CreateUnsampledReportsResource : TManagementUnsampledReportsResource;virtual;overload;
  3726. Function CreateUploadsResource(AOwner : TComponent) : TManagementUploadsResource;virtual;overload;
  3727. Function CreateUploadsResource : TManagementUploadsResource;virtual;overload;
  3728. Function CreateWebPropertyAdWordsLinksResource(AOwner : TComponent) : TManagementWebPropertyAdWordsLinksResource;virtual;overload;
  3729. Function CreateWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource;virtual;overload;
  3730. Function CreateWebpropertiesResource(AOwner : TComponent) : TManagementWebpropertiesResource;virtual;overload;
  3731. Function CreateWebpropertiesResource : TManagementWebpropertiesResource;virtual;overload;
  3732. Function CreateWebpropertyUserLinksResource(AOwner : TComponent) : TManagementWebpropertyUserLinksResource;virtual;overload;
  3733. Function CreateWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource;virtual;overload;
  3734. Property AccountSummariesResource : TManagementAccountSummariesResource Read GetAccountSummariesInstance;
  3735. Property AccountUserLinksResource : TManagementAccountUserLinksResource Read GetAccountUserLinksInstance;
  3736. Property AccountsResource : TManagementAccountsResource Read GetAccountsInstance;
  3737. Property CustomDataSourcesResource : TManagementCustomDataSourcesResource Read GetCustomDataSourcesInstance;
  3738. Property CustomDimensionsResource : TManagementCustomDimensionsResource Read GetCustomDimensionsInstance;
  3739. Property CustomMetricsResource : TManagementCustomMetricsResource Read GetCustomMetricsInstance;
  3740. Property ExperimentsResource : TManagementExperimentsResource Read GetExperimentsInstance;
  3741. Property FiltersResource : TManagementFiltersResource Read GetFiltersInstance;
  3742. Property GoalsResource : TManagementGoalsResource Read GetGoalsInstance;
  3743. Property ProfileFilterLinksResource : TManagementProfileFilterLinksResource Read GetProfileFilterLinksInstance;
  3744. Property ProfileUserLinksResource : TManagementProfileUserLinksResource Read GetProfileUserLinksInstance;
  3745. Property ProfilesResource : TManagementProfilesResource Read GetProfilesInstance;
  3746. Property SegmentsResource : TManagementSegmentsResource Read GetSegmentsInstance;
  3747. Property UnsampledReportsResource : TManagementUnsampledReportsResource Read GetUnsampledReportsInstance;
  3748. Property UploadsResource : TManagementUploadsResource Read GetUploadsInstance;
  3749. Property WebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource Read GetWebPropertyAdWordsLinksInstance;
  3750. Property WebpropertiesResource : TManagementWebpropertiesResource Read GetWebpropertiesInstance;
  3751. Property WebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource Read GetWebpropertyUserLinksInstance;
  3752. end;
  3753. { --------------------------------------------------------------------
  3754. TMetadataColumnsResource
  3755. --------------------------------------------------------------------}
  3756. TMetadataColumnsResource = Class(TGoogleResource)
  3757. Public
  3758. Class Function ResourceName : String; override;
  3759. Class Function DefaultAPI : TGoogleAPIClass; override;
  3760. Function List(reportType: string) : TColumns;
  3761. end;
  3762. { --------------------------------------------------------------------
  3763. TMetadataResource
  3764. --------------------------------------------------------------------}
  3765. TMetadataResource = Class(TGoogleResource)
  3766. Private
  3767. FColumnsInstance : TMetadataColumnsResource;
  3768. Function GetColumnsInstance : TMetadataColumnsResource;virtual;
  3769. Public
  3770. Class Function ResourceName : String; override;
  3771. Class Function DefaultAPI : TGoogleAPIClass; override;
  3772. Function CreateColumnsResource(AOwner : TComponent) : TMetadataColumnsResource;virtual;overload;
  3773. Function CreateColumnsResource : TMetadataColumnsResource;virtual;overload;
  3774. Property ColumnsResource : TMetadataColumnsResource Read GetColumnsInstance;
  3775. end;
  3776. { --------------------------------------------------------------------
  3777. TProvisioningResource
  3778. --------------------------------------------------------------------}
  3779. TProvisioningResource = Class(TGoogleResource)
  3780. Public
  3781. Class Function ResourceName : String; override;
  3782. Class Function DefaultAPI : TGoogleAPIClass; override;
  3783. Function CreateAccountTicket(aAccountTicket : TAccountTicket) : TAccountTicket;
  3784. end;
  3785. { --------------------------------------------------------------------
  3786. TAnalyticsAPI
  3787. --------------------------------------------------------------------}
  3788. TAnalyticsAPI = Class(TGoogleAPI)
  3789. Private
  3790. FDataGaInstance : TDataGaResource;
  3791. FDataMcfInstance : TDataMcfResource;
  3792. FDataRealtimeInstance : TDataRealtimeResource;
  3793. FDataInstance : TDataResource;
  3794. FManagementAccountSummariesInstance : TManagementAccountSummariesResource;
  3795. FManagementAccountUserLinksInstance : TManagementAccountUserLinksResource;
  3796. FManagementAccountsInstance : TManagementAccountsResource;
  3797. FManagementCustomDataSourcesInstance : TManagementCustomDataSourcesResource;
  3798. FManagementCustomDimensionsInstance : TManagementCustomDimensionsResource;
  3799. FManagementCustomMetricsInstance : TManagementCustomMetricsResource;
  3800. FManagementExperimentsInstance : TManagementExperimentsResource;
  3801. FManagementFiltersInstance : TManagementFiltersResource;
  3802. FManagementGoalsInstance : TManagementGoalsResource;
  3803. FManagementProfileFilterLinksInstance : TManagementProfileFilterLinksResource;
  3804. FManagementProfileUserLinksInstance : TManagementProfileUserLinksResource;
  3805. FManagementProfilesInstance : TManagementProfilesResource;
  3806. FManagementSegmentsInstance : TManagementSegmentsResource;
  3807. FManagementUnsampledReportsInstance : TManagementUnsampledReportsResource;
  3808. FManagementUploadsInstance : TManagementUploadsResource;
  3809. FManagementWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;
  3810. FManagementWebpropertiesInstance : TManagementWebpropertiesResource;
  3811. FManagementWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;
  3812. FManagementInstance : TManagementResource;
  3813. FMetadataColumnsInstance : TMetadataColumnsResource;
  3814. FMetadataInstance : TMetadataResource;
  3815. FProvisioningInstance : TProvisioningResource;
  3816. Function GetDataGaInstance : TDataGaResource;virtual;
  3817. Function GetDataMcfInstance : TDataMcfResource;virtual;
  3818. Function GetDataRealtimeInstance : TDataRealtimeResource;virtual;
  3819. Function GetDataInstance : TDataResource;virtual;
  3820. Function GetManagementAccountSummariesInstance : TManagementAccountSummariesResource;virtual;
  3821. Function GetManagementAccountUserLinksInstance : TManagementAccountUserLinksResource;virtual;
  3822. Function GetManagementAccountsInstance : TManagementAccountsResource;virtual;
  3823. Function GetManagementCustomDataSourcesInstance : TManagementCustomDataSourcesResource;virtual;
  3824. Function GetManagementCustomDimensionsInstance : TManagementCustomDimensionsResource;virtual;
  3825. Function GetManagementCustomMetricsInstance : TManagementCustomMetricsResource;virtual;
  3826. Function GetManagementExperimentsInstance : TManagementExperimentsResource;virtual;
  3827. Function GetManagementFiltersInstance : TManagementFiltersResource;virtual;
  3828. Function GetManagementGoalsInstance : TManagementGoalsResource;virtual;
  3829. Function GetManagementProfileFilterLinksInstance : TManagementProfileFilterLinksResource;virtual;
  3830. Function GetManagementProfileUserLinksInstance : TManagementProfileUserLinksResource;virtual;
  3831. Function GetManagementProfilesInstance : TManagementProfilesResource;virtual;
  3832. Function GetManagementSegmentsInstance : TManagementSegmentsResource;virtual;
  3833. Function GetManagementUnsampledReportsInstance : TManagementUnsampledReportsResource;virtual;
  3834. Function GetManagementUploadsInstance : TManagementUploadsResource;virtual;
  3835. Function GetManagementWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;virtual;
  3836. Function GetManagementWebpropertiesInstance : TManagementWebpropertiesResource;virtual;
  3837. Function GetManagementWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;virtual;
  3838. Function GetManagementInstance : TManagementResource;virtual;
  3839. Function GetMetadataColumnsInstance : TMetadataColumnsResource;virtual;
  3840. Function GetMetadataInstance : TMetadataResource;virtual;
  3841. Function GetProvisioningInstance : TProvisioningResource;virtual;
  3842. Public
  3843. //Override class functions with API info
  3844. Class Function APIName : String; override;
  3845. Class Function APIVersion : String; override;
  3846. Class Function APIRevision : String; override;
  3847. Class Function APIID : String; override;
  3848. Class Function APITitle : String; override;
  3849. Class Function APIDescription : String; override;
  3850. Class Function APIOwnerDomain : String; override;
  3851. Class Function APIOwnerName : String; override;
  3852. Class Function APIIcon16 : String; override;
  3853. Class Function APIIcon32 : String; override;
  3854. Class Function APIdocumentationLink : String; override;
  3855. Class Function APIrootUrl : string; override;
  3856. Class Function APIbasePath : string;override;
  3857. Class Function APIbaseURL : String;override;
  3858. Class Function APIProtocol : string;override;
  3859. Class Function APIservicePath : string;override;
  3860. Class Function APIbatchPath : String;override;
  3861. Class Function APIAuthScopes : TScopeInfoArray;override;
  3862. Class Function APINeedsAuth : Boolean;override;
  3863. Class Procedure RegisterAPIResources; override;
  3864. //Add create function for resources
  3865. Function CreateDataGaResource(AOwner : TComponent) : TDataGaResource;virtual;overload;
  3866. Function CreateDataGaResource : TDataGaResource;virtual;overload;
  3867. Function CreateDataMcfResource(AOwner : TComponent) : TDataMcfResource;virtual;overload;
  3868. Function CreateDataMcfResource : TDataMcfResource;virtual;overload;
  3869. Function CreateDataRealtimeResource(AOwner : TComponent) : TDataRealtimeResource;virtual;overload;
  3870. Function CreateDataRealtimeResource : TDataRealtimeResource;virtual;overload;
  3871. Function CreateDataResource(AOwner : TComponent) : TDataResource;virtual;overload;
  3872. Function CreateDataResource : TDataResource;virtual;overload;
  3873. Function CreateManagementAccountSummariesResource(AOwner : TComponent) : TManagementAccountSummariesResource;virtual;overload;
  3874. Function CreateManagementAccountSummariesResource : TManagementAccountSummariesResource;virtual;overload;
  3875. Function CreateManagementAccountUserLinksResource(AOwner : TComponent) : TManagementAccountUserLinksResource;virtual;overload;
  3876. Function CreateManagementAccountUserLinksResource : TManagementAccountUserLinksResource;virtual;overload;
  3877. Function CreateManagementAccountsResource(AOwner : TComponent) : TManagementAccountsResource;virtual;overload;
  3878. Function CreateManagementAccountsResource : TManagementAccountsResource;virtual;overload;
  3879. Function CreateManagementCustomDataSourcesResource(AOwner : TComponent) : TManagementCustomDataSourcesResource;virtual;overload;
  3880. Function CreateManagementCustomDataSourcesResource : TManagementCustomDataSourcesResource;virtual;overload;
  3881. Function CreateManagementCustomDimensionsResource(AOwner : TComponent) : TManagementCustomDimensionsResource;virtual;overload;
  3882. Function CreateManagementCustomDimensionsResource : TManagementCustomDimensionsResource;virtual;overload;
  3883. Function CreateManagementCustomMetricsResource(AOwner : TComponent) : TManagementCustomMetricsResource;virtual;overload;
  3884. Function CreateManagementCustomMetricsResource : TManagementCustomMetricsResource;virtual;overload;
  3885. Function CreateManagementExperimentsResource(AOwner : TComponent) : TManagementExperimentsResource;virtual;overload;
  3886. Function CreateManagementExperimentsResource : TManagementExperimentsResource;virtual;overload;
  3887. Function CreateManagementFiltersResource(AOwner : TComponent) : TManagementFiltersResource;virtual;overload;
  3888. Function CreateManagementFiltersResource : TManagementFiltersResource;virtual;overload;
  3889. Function CreateManagementGoalsResource(AOwner : TComponent) : TManagementGoalsResource;virtual;overload;
  3890. Function CreateManagementGoalsResource : TManagementGoalsResource;virtual;overload;
  3891. Function CreateManagementProfileFilterLinksResource(AOwner : TComponent) : TManagementProfileFilterLinksResource;virtual;overload;
  3892. Function CreateManagementProfileFilterLinksResource : TManagementProfileFilterLinksResource;virtual;overload;
  3893. Function CreateManagementProfileUserLinksResource(AOwner : TComponent) : TManagementProfileUserLinksResource;virtual;overload;
  3894. Function CreateManagementProfileUserLinksResource : TManagementProfileUserLinksResource;virtual;overload;
  3895. Function CreateManagementProfilesResource(AOwner : TComponent) : TManagementProfilesResource;virtual;overload;
  3896. Function CreateManagementProfilesResource : TManagementProfilesResource;virtual;overload;
  3897. Function CreateManagementSegmentsResource(AOwner : TComponent) : TManagementSegmentsResource;virtual;overload;
  3898. Function CreateManagementSegmentsResource : TManagementSegmentsResource;virtual;overload;
  3899. Function CreateManagementUnsampledReportsResource(AOwner : TComponent) : TManagementUnsampledReportsResource;virtual;overload;
  3900. Function CreateManagementUnsampledReportsResource : TManagementUnsampledReportsResource;virtual;overload;
  3901. Function CreateManagementUploadsResource(AOwner : TComponent) : TManagementUploadsResource;virtual;overload;
  3902. Function CreateManagementUploadsResource : TManagementUploadsResource;virtual;overload;
  3903. Function CreateManagementWebPropertyAdWordsLinksResource(AOwner : TComponent) : TManagementWebPropertyAdWordsLinksResource;virtual;overload;
  3904. Function CreateManagementWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource;virtual;overload;
  3905. Function CreateManagementWebpropertiesResource(AOwner : TComponent) : TManagementWebpropertiesResource;virtual;overload;
  3906. Function CreateManagementWebpropertiesResource : TManagementWebpropertiesResource;virtual;overload;
  3907. Function CreateManagementWebpropertyUserLinksResource(AOwner : TComponent) : TManagementWebpropertyUserLinksResource;virtual;overload;
  3908. Function CreateManagementWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource;virtual;overload;
  3909. Function CreateManagementResource(AOwner : TComponent) : TManagementResource;virtual;overload;
  3910. Function CreateManagementResource : TManagementResource;virtual;overload;
  3911. Function CreateMetadataColumnsResource(AOwner : TComponent) : TMetadataColumnsResource;virtual;overload;
  3912. Function CreateMetadataColumnsResource : TMetadataColumnsResource;virtual;overload;
  3913. Function CreateMetadataResource(AOwner : TComponent) : TMetadataResource;virtual;overload;
  3914. Function CreateMetadataResource : TMetadataResource;virtual;overload;
  3915. Function CreateProvisioningResource(AOwner : TComponent) : TProvisioningResource;virtual;overload;
  3916. Function CreateProvisioningResource : TProvisioningResource;virtual;overload;
  3917. //Add default on-demand instances for resources
  3918. Property DataGaResource : TDataGaResource Read GetDataGaInstance;
  3919. Property DataMcfResource : TDataMcfResource Read GetDataMcfInstance;
  3920. Property DataRealtimeResource : TDataRealtimeResource Read GetDataRealtimeInstance;
  3921. Property DataResource : TDataResource Read GetDataInstance;
  3922. Property ManagementAccountSummariesResource : TManagementAccountSummariesResource Read GetManagementAccountSummariesInstance;
  3923. Property ManagementAccountUserLinksResource : TManagementAccountUserLinksResource Read GetManagementAccountUserLinksInstance;
  3924. Property ManagementAccountsResource : TManagementAccountsResource Read GetManagementAccountsInstance;
  3925. Property ManagementCustomDataSourcesResource : TManagementCustomDataSourcesResource Read GetManagementCustomDataSourcesInstance;
  3926. Property ManagementCustomDimensionsResource : TManagementCustomDimensionsResource Read GetManagementCustomDimensionsInstance;
  3927. Property ManagementCustomMetricsResource : TManagementCustomMetricsResource Read GetManagementCustomMetricsInstance;
  3928. Property ManagementExperimentsResource : TManagementExperimentsResource Read GetManagementExperimentsInstance;
  3929. Property ManagementFiltersResource : TManagementFiltersResource Read GetManagementFiltersInstance;
  3930. Property ManagementGoalsResource : TManagementGoalsResource Read GetManagementGoalsInstance;
  3931. Property ManagementProfileFilterLinksResource : TManagementProfileFilterLinksResource Read GetManagementProfileFilterLinksInstance;
  3932. Property ManagementProfileUserLinksResource : TManagementProfileUserLinksResource Read GetManagementProfileUserLinksInstance;
  3933. Property ManagementProfilesResource : TManagementProfilesResource Read GetManagementProfilesInstance;
  3934. Property ManagementSegmentsResource : TManagementSegmentsResource Read GetManagementSegmentsInstance;
  3935. Property ManagementUnsampledReportsResource : TManagementUnsampledReportsResource Read GetManagementUnsampledReportsInstance;
  3936. Property ManagementUploadsResource : TManagementUploadsResource Read GetManagementUploadsInstance;
  3937. Property ManagementWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource Read GetManagementWebPropertyAdWordsLinksInstance;
  3938. Property ManagementWebpropertiesResource : TManagementWebpropertiesResource Read GetManagementWebpropertiesInstance;
  3939. Property ManagementWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource Read GetManagementWebpropertyUserLinksInstance;
  3940. Property ManagementResource : TManagementResource Read GetManagementInstance;
  3941. Property MetadataColumnsResource : TMetadataColumnsResource Read GetMetadataColumnsInstance;
  3942. Property MetadataResource : TMetadataResource Read GetMetadataInstance;
  3943. Property ProvisioningResource : TProvisioningResource Read GetProvisioningInstance;
  3944. end;
  3945. implementation
  3946. { --------------------------------------------------------------------
  3947. TAccountTypechildLink
  3948. --------------------------------------------------------------------}
  3949. Procedure TAccountTypechildLink.Sethref(AIndex : Integer; const AValue : String);
  3950. begin
  3951. If (Fhref=AValue) then exit;
  3952. Fhref:=AValue;
  3953. MarkPropertyChanged(AIndex);
  3954. end;
  3955. Procedure TAccountTypechildLink.Set_type(AIndex : Integer; const AValue : String);
  3956. begin
  3957. If (F_type=AValue) then exit;
  3958. F_type:=AValue;
  3959. MarkPropertyChanged(AIndex);
  3960. end;
  3961. Class Function TAccountTypechildLink.ExportPropertyName(Const AName : String) :String;
  3962. begin
  3963. Case AName of
  3964. '_type' : Result:='type';
  3965. else
  3966. Result:=Inherited ExportPropertyName(AName);
  3967. end;
  3968. end;
  3969. { --------------------------------------------------------------------
  3970. TAccountTypepermissions
  3971. --------------------------------------------------------------------}
  3972. Procedure TAccountTypepermissions.Seteffective(AIndex : Integer; const AValue : TStringArray);
  3973. begin
  3974. If (Feffective=AValue) then exit;
  3975. Feffective:=AValue;
  3976. MarkPropertyChanged(AIndex);
  3977. end;
  3978. //2.6.4. bug workaround
  3979. {$IFDEF VER2_6}
  3980. Procedure TAccountTypepermissions.SetArrayLength(Const AName : String; ALength : Longint);
  3981. begin
  3982. Case AName of
  3983. 'effective' : SetLength(Feffective,ALength);
  3984. else
  3985. Inherited SetArrayLength(AName,ALength);
  3986. end;
  3987. end;
  3988. {$ENDIF VER2_6}
  3989. { --------------------------------------------------------------------
  3990. TAccount
  3991. --------------------------------------------------------------------}
  3992. Procedure TAccount.SetchildLink(AIndex : Integer; const AValue : TAccountTypechildLink);
  3993. begin
  3994. If (FchildLink=AValue) then exit;
  3995. FchildLink:=AValue;
  3996. MarkPropertyChanged(AIndex);
  3997. end;
  3998. Procedure TAccount.Setcreated(AIndex : Integer; const AValue : TDatetime);
  3999. begin
  4000. If (Fcreated=AValue) then exit;
  4001. Fcreated:=AValue;
  4002. MarkPropertyChanged(AIndex);
  4003. end;
  4004. Procedure TAccount.Setid(AIndex : Integer; const AValue : String);
  4005. begin
  4006. If (Fid=AValue) then exit;
  4007. Fid:=AValue;
  4008. MarkPropertyChanged(AIndex);
  4009. end;
  4010. Procedure TAccount.Setkind(AIndex : Integer; const AValue : String);
  4011. begin
  4012. If (Fkind=AValue) then exit;
  4013. Fkind:=AValue;
  4014. MarkPropertyChanged(AIndex);
  4015. end;
  4016. Procedure TAccount.Setname(AIndex : Integer; const AValue : String);
  4017. begin
  4018. If (Fname=AValue) then exit;
  4019. Fname:=AValue;
  4020. MarkPropertyChanged(AIndex);
  4021. end;
  4022. Procedure TAccount.Setpermissions(AIndex : Integer; const AValue : TAccountTypepermissions);
  4023. begin
  4024. If (Fpermissions=AValue) then exit;
  4025. Fpermissions:=AValue;
  4026. MarkPropertyChanged(AIndex);
  4027. end;
  4028. Procedure TAccount.SetselfLink(AIndex : Integer; const AValue : String);
  4029. begin
  4030. If (FselfLink=AValue) then exit;
  4031. FselfLink:=AValue;
  4032. MarkPropertyChanged(AIndex);
  4033. end;
  4034. Procedure TAccount.Setstarred(AIndex : Integer; const AValue : boolean);
  4035. begin
  4036. If (Fstarred=AValue) then exit;
  4037. Fstarred:=AValue;
  4038. MarkPropertyChanged(AIndex);
  4039. end;
  4040. Procedure TAccount.Setupdated(AIndex : Integer; const AValue : TDatetime);
  4041. begin
  4042. If (Fupdated=AValue) then exit;
  4043. Fupdated:=AValue;
  4044. MarkPropertyChanged(AIndex);
  4045. end;
  4046. { --------------------------------------------------------------------
  4047. TAccountRef
  4048. --------------------------------------------------------------------}
  4049. Procedure TAccountRef.Sethref(AIndex : Integer; const AValue : String);
  4050. begin
  4051. If (Fhref=AValue) then exit;
  4052. Fhref:=AValue;
  4053. MarkPropertyChanged(AIndex);
  4054. end;
  4055. Procedure TAccountRef.Setid(AIndex : Integer; const AValue : String);
  4056. begin
  4057. If (Fid=AValue) then exit;
  4058. Fid:=AValue;
  4059. MarkPropertyChanged(AIndex);
  4060. end;
  4061. Procedure TAccountRef.Setkind(AIndex : Integer; const AValue : String);
  4062. begin
  4063. If (Fkind=AValue) then exit;
  4064. Fkind:=AValue;
  4065. MarkPropertyChanged(AIndex);
  4066. end;
  4067. Procedure TAccountRef.Setname(AIndex : Integer; const AValue : String);
  4068. begin
  4069. If (Fname=AValue) then exit;
  4070. Fname:=AValue;
  4071. MarkPropertyChanged(AIndex);
  4072. end;
  4073. { --------------------------------------------------------------------
  4074. TAccountSummaries
  4075. --------------------------------------------------------------------}
  4076. Procedure TAccountSummaries.Setitems(AIndex : Integer; const AValue : TAccountSummariesTypeitemsArray);
  4077. begin
  4078. If (Fitems=AValue) then exit;
  4079. Fitems:=AValue;
  4080. MarkPropertyChanged(AIndex);
  4081. end;
  4082. Procedure TAccountSummaries.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4083. begin
  4084. If (FitemsPerPage=AValue) then exit;
  4085. FitemsPerPage:=AValue;
  4086. MarkPropertyChanged(AIndex);
  4087. end;
  4088. Procedure TAccountSummaries.Setkind(AIndex : Integer; const AValue : String);
  4089. begin
  4090. If (Fkind=AValue) then exit;
  4091. Fkind:=AValue;
  4092. MarkPropertyChanged(AIndex);
  4093. end;
  4094. Procedure TAccountSummaries.SetnextLink(AIndex : Integer; const AValue : String);
  4095. begin
  4096. If (FnextLink=AValue) then exit;
  4097. FnextLink:=AValue;
  4098. MarkPropertyChanged(AIndex);
  4099. end;
  4100. Procedure TAccountSummaries.SetpreviousLink(AIndex : Integer; const AValue : String);
  4101. begin
  4102. If (FpreviousLink=AValue) then exit;
  4103. FpreviousLink:=AValue;
  4104. MarkPropertyChanged(AIndex);
  4105. end;
  4106. Procedure TAccountSummaries.SetstartIndex(AIndex : Integer; const AValue : integer);
  4107. begin
  4108. If (FstartIndex=AValue) then exit;
  4109. FstartIndex:=AValue;
  4110. MarkPropertyChanged(AIndex);
  4111. end;
  4112. Procedure TAccountSummaries.SettotalResults(AIndex : Integer; const AValue : integer);
  4113. begin
  4114. If (FtotalResults=AValue) then exit;
  4115. FtotalResults:=AValue;
  4116. MarkPropertyChanged(AIndex);
  4117. end;
  4118. Procedure TAccountSummaries.Setusername(AIndex : Integer; const AValue : String);
  4119. begin
  4120. If (Fusername=AValue) then exit;
  4121. Fusername:=AValue;
  4122. MarkPropertyChanged(AIndex);
  4123. end;
  4124. //2.6.4. bug workaround
  4125. {$IFDEF VER2_6}
  4126. Procedure TAccountSummaries.SetArrayLength(Const AName : String; ALength : Longint);
  4127. begin
  4128. Case AName of
  4129. 'items' : SetLength(Fitems,ALength);
  4130. else
  4131. Inherited SetArrayLength(AName,ALength);
  4132. end;
  4133. end;
  4134. {$ENDIF VER2_6}
  4135. { --------------------------------------------------------------------
  4136. TAccountSummary
  4137. --------------------------------------------------------------------}
  4138. Procedure TAccountSummary.Setid(AIndex : Integer; const AValue : String);
  4139. begin
  4140. If (Fid=AValue) then exit;
  4141. Fid:=AValue;
  4142. MarkPropertyChanged(AIndex);
  4143. end;
  4144. Procedure TAccountSummary.Setkind(AIndex : Integer; const AValue : String);
  4145. begin
  4146. If (Fkind=AValue) then exit;
  4147. Fkind:=AValue;
  4148. MarkPropertyChanged(AIndex);
  4149. end;
  4150. Procedure TAccountSummary.Setname(AIndex : Integer; const AValue : String);
  4151. begin
  4152. If (Fname=AValue) then exit;
  4153. Fname:=AValue;
  4154. MarkPropertyChanged(AIndex);
  4155. end;
  4156. Procedure TAccountSummary.Setstarred(AIndex : Integer; const AValue : boolean);
  4157. begin
  4158. If (Fstarred=AValue) then exit;
  4159. Fstarred:=AValue;
  4160. MarkPropertyChanged(AIndex);
  4161. end;
  4162. Procedure TAccountSummary.SetwebProperties(AIndex : Integer; const AValue : TAccountSummaryTypewebPropertiesArray);
  4163. begin
  4164. If (FwebProperties=AValue) then exit;
  4165. FwebProperties:=AValue;
  4166. MarkPropertyChanged(AIndex);
  4167. end;
  4168. //2.6.4. bug workaround
  4169. {$IFDEF VER2_6}
  4170. Procedure TAccountSummary.SetArrayLength(Const AName : String; ALength : Longint);
  4171. begin
  4172. Case AName of
  4173. 'webproperties' : SetLength(FwebProperties,ALength);
  4174. else
  4175. Inherited SetArrayLength(AName,ALength);
  4176. end;
  4177. end;
  4178. {$ENDIF VER2_6}
  4179. { --------------------------------------------------------------------
  4180. TAccountTicket
  4181. --------------------------------------------------------------------}
  4182. Procedure TAccountTicket.Setaccount(AIndex : Integer; const AValue : TAccount);
  4183. begin
  4184. If (Faccount=AValue) then exit;
  4185. Faccount:=AValue;
  4186. MarkPropertyChanged(AIndex);
  4187. end;
  4188. Procedure TAccountTicket.Setid(AIndex : Integer; const AValue : String);
  4189. begin
  4190. If (Fid=AValue) then exit;
  4191. Fid:=AValue;
  4192. MarkPropertyChanged(AIndex);
  4193. end;
  4194. Procedure TAccountTicket.Setkind(AIndex : Integer; const AValue : String);
  4195. begin
  4196. If (Fkind=AValue) then exit;
  4197. Fkind:=AValue;
  4198. MarkPropertyChanged(AIndex);
  4199. end;
  4200. Procedure TAccountTicket.Setprofile(AIndex : Integer; const AValue : TProfile);
  4201. begin
  4202. If (Fprofile=AValue) then exit;
  4203. Fprofile:=AValue;
  4204. MarkPropertyChanged(AIndex);
  4205. end;
  4206. Procedure TAccountTicket.SetredirectUri(AIndex : Integer; const AValue : String);
  4207. begin
  4208. If (FredirectUri=AValue) then exit;
  4209. FredirectUri:=AValue;
  4210. MarkPropertyChanged(AIndex);
  4211. end;
  4212. Procedure TAccountTicket.Setwebproperty(AIndex : Integer; const AValue : TWebproperty);
  4213. begin
  4214. If (Fwebproperty=AValue) then exit;
  4215. Fwebproperty:=AValue;
  4216. MarkPropertyChanged(AIndex);
  4217. end;
  4218. { --------------------------------------------------------------------
  4219. TAccounts
  4220. --------------------------------------------------------------------}
  4221. Procedure TAccounts.Setitems(AIndex : Integer; const AValue : TAccountsTypeitemsArray);
  4222. begin
  4223. If (Fitems=AValue) then exit;
  4224. Fitems:=AValue;
  4225. MarkPropertyChanged(AIndex);
  4226. end;
  4227. Procedure TAccounts.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4228. begin
  4229. If (FitemsPerPage=AValue) then exit;
  4230. FitemsPerPage:=AValue;
  4231. MarkPropertyChanged(AIndex);
  4232. end;
  4233. Procedure TAccounts.Setkind(AIndex : Integer; const AValue : String);
  4234. begin
  4235. If (Fkind=AValue) then exit;
  4236. Fkind:=AValue;
  4237. MarkPropertyChanged(AIndex);
  4238. end;
  4239. Procedure TAccounts.SetnextLink(AIndex : Integer; const AValue : String);
  4240. begin
  4241. If (FnextLink=AValue) then exit;
  4242. FnextLink:=AValue;
  4243. MarkPropertyChanged(AIndex);
  4244. end;
  4245. Procedure TAccounts.SetpreviousLink(AIndex : Integer; const AValue : String);
  4246. begin
  4247. If (FpreviousLink=AValue) then exit;
  4248. FpreviousLink:=AValue;
  4249. MarkPropertyChanged(AIndex);
  4250. end;
  4251. Procedure TAccounts.SetstartIndex(AIndex : Integer; const AValue : integer);
  4252. begin
  4253. If (FstartIndex=AValue) then exit;
  4254. FstartIndex:=AValue;
  4255. MarkPropertyChanged(AIndex);
  4256. end;
  4257. Procedure TAccounts.SettotalResults(AIndex : Integer; const AValue : integer);
  4258. begin
  4259. If (FtotalResults=AValue) then exit;
  4260. FtotalResults:=AValue;
  4261. MarkPropertyChanged(AIndex);
  4262. end;
  4263. Procedure TAccounts.Setusername(AIndex : Integer; const AValue : String);
  4264. begin
  4265. If (Fusername=AValue) then exit;
  4266. Fusername:=AValue;
  4267. MarkPropertyChanged(AIndex);
  4268. end;
  4269. //2.6.4. bug workaround
  4270. {$IFDEF VER2_6}
  4271. Procedure TAccounts.SetArrayLength(Const AName : String; ALength : Longint);
  4272. begin
  4273. Case AName of
  4274. 'items' : SetLength(Fitems,ALength);
  4275. else
  4276. Inherited SetArrayLength(AName,ALength);
  4277. end;
  4278. end;
  4279. {$ENDIF VER2_6}
  4280. { --------------------------------------------------------------------
  4281. TAdWordsAccount
  4282. --------------------------------------------------------------------}
  4283. Procedure TAdWordsAccount.SetautoTaggingEnabled(AIndex : Integer; const AValue : boolean);
  4284. begin
  4285. If (FautoTaggingEnabled=AValue) then exit;
  4286. FautoTaggingEnabled:=AValue;
  4287. MarkPropertyChanged(AIndex);
  4288. end;
  4289. Procedure TAdWordsAccount.SetcustomerId(AIndex : Integer; const AValue : String);
  4290. begin
  4291. If (FcustomerId=AValue) then exit;
  4292. FcustomerId:=AValue;
  4293. MarkPropertyChanged(AIndex);
  4294. end;
  4295. Procedure TAdWordsAccount.Setkind(AIndex : Integer; const AValue : String);
  4296. begin
  4297. If (Fkind=AValue) then exit;
  4298. Fkind:=AValue;
  4299. MarkPropertyChanged(AIndex);
  4300. end;
  4301. { --------------------------------------------------------------------
  4302. TAnalyticsDataimportDeleteUploadDataRequest
  4303. --------------------------------------------------------------------}
  4304. Procedure TAnalyticsDataimportDeleteUploadDataRequest.SetcustomDataImportUids(AIndex : Integer; const AValue : TStringArray);
  4305. begin
  4306. If (FcustomDataImportUids=AValue) then exit;
  4307. FcustomDataImportUids:=AValue;
  4308. MarkPropertyChanged(AIndex);
  4309. end;
  4310. //2.6.4. bug workaround
  4311. {$IFDEF VER2_6}
  4312. Procedure TAnalyticsDataimportDeleteUploadDataRequest.SetArrayLength(Const AName : String; ALength : Longint);
  4313. begin
  4314. Case AName of
  4315. 'customdataimportuids' : SetLength(FcustomDataImportUids,ALength);
  4316. else
  4317. Inherited SetArrayLength(AName,ALength);
  4318. end;
  4319. end;
  4320. {$ENDIF VER2_6}
  4321. { --------------------------------------------------------------------
  4322. TColumnTypeattributes
  4323. --------------------------------------------------------------------}
  4324. Class Function TColumnTypeattributes.AllowAdditionalProperties : Boolean;
  4325. begin
  4326. Result:=True;
  4327. end;
  4328. { --------------------------------------------------------------------
  4329. TColumn
  4330. --------------------------------------------------------------------}
  4331. Procedure TColumn.Setattributes(AIndex : Integer; const AValue : TColumnTypeattributes);
  4332. begin
  4333. If (Fattributes=AValue) then exit;
  4334. Fattributes:=AValue;
  4335. MarkPropertyChanged(AIndex);
  4336. end;
  4337. Procedure TColumn.Setid(AIndex : Integer; const AValue : String);
  4338. begin
  4339. If (Fid=AValue) then exit;
  4340. Fid:=AValue;
  4341. MarkPropertyChanged(AIndex);
  4342. end;
  4343. Procedure TColumn.Setkind(AIndex : Integer; const AValue : String);
  4344. begin
  4345. If (Fkind=AValue) then exit;
  4346. Fkind:=AValue;
  4347. MarkPropertyChanged(AIndex);
  4348. end;
  4349. { --------------------------------------------------------------------
  4350. TColumns
  4351. --------------------------------------------------------------------}
  4352. Procedure TColumns.SetattributeNames(AIndex : Integer; const AValue : TStringArray);
  4353. begin
  4354. If (FattributeNames=AValue) then exit;
  4355. FattributeNames:=AValue;
  4356. MarkPropertyChanged(AIndex);
  4357. end;
  4358. Procedure TColumns.Setetag(AIndex : Integer; const AValue : String);
  4359. begin
  4360. If (Fetag=AValue) then exit;
  4361. Fetag:=AValue;
  4362. MarkPropertyChanged(AIndex);
  4363. end;
  4364. Procedure TColumns.Setitems(AIndex : Integer; const AValue : TColumnsTypeitemsArray);
  4365. begin
  4366. If (Fitems=AValue) then exit;
  4367. Fitems:=AValue;
  4368. MarkPropertyChanged(AIndex);
  4369. end;
  4370. Procedure TColumns.Setkind(AIndex : Integer; const AValue : String);
  4371. begin
  4372. If (Fkind=AValue) then exit;
  4373. Fkind:=AValue;
  4374. MarkPropertyChanged(AIndex);
  4375. end;
  4376. Procedure TColumns.SettotalResults(AIndex : Integer; const AValue : integer);
  4377. begin
  4378. If (FtotalResults=AValue) then exit;
  4379. FtotalResults:=AValue;
  4380. MarkPropertyChanged(AIndex);
  4381. end;
  4382. //2.6.4. bug workaround
  4383. {$IFDEF VER2_6}
  4384. Procedure TColumns.SetArrayLength(Const AName : String; ALength : Longint);
  4385. begin
  4386. Case AName of
  4387. 'attributenames' : SetLength(FattributeNames,ALength);
  4388. 'items' : SetLength(Fitems,ALength);
  4389. else
  4390. Inherited SetArrayLength(AName,ALength);
  4391. end;
  4392. end;
  4393. {$ENDIF VER2_6}
  4394. { --------------------------------------------------------------------
  4395. TCustomDataSourceTypechildLink
  4396. --------------------------------------------------------------------}
  4397. Procedure TCustomDataSourceTypechildLink.Sethref(AIndex : Integer; const AValue : String);
  4398. begin
  4399. If (Fhref=AValue) then exit;
  4400. Fhref:=AValue;
  4401. MarkPropertyChanged(AIndex);
  4402. end;
  4403. Procedure TCustomDataSourceTypechildLink.Set_type(AIndex : Integer; const AValue : String);
  4404. begin
  4405. If (F_type=AValue) then exit;
  4406. F_type:=AValue;
  4407. MarkPropertyChanged(AIndex);
  4408. end;
  4409. Class Function TCustomDataSourceTypechildLink.ExportPropertyName(Const AName : String) :String;
  4410. begin
  4411. Case AName of
  4412. '_type' : Result:='type';
  4413. else
  4414. Result:=Inherited ExportPropertyName(AName);
  4415. end;
  4416. end;
  4417. { --------------------------------------------------------------------
  4418. TCustomDataSourceTypeparentLink
  4419. --------------------------------------------------------------------}
  4420. Procedure TCustomDataSourceTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  4421. begin
  4422. If (Fhref=AValue) then exit;
  4423. Fhref:=AValue;
  4424. MarkPropertyChanged(AIndex);
  4425. end;
  4426. Procedure TCustomDataSourceTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  4427. begin
  4428. If (F_type=AValue) then exit;
  4429. F_type:=AValue;
  4430. MarkPropertyChanged(AIndex);
  4431. end;
  4432. Class Function TCustomDataSourceTypeparentLink.ExportPropertyName(Const AName : String) :String;
  4433. begin
  4434. Case AName of
  4435. '_type' : Result:='type';
  4436. else
  4437. Result:=Inherited ExportPropertyName(AName);
  4438. end;
  4439. end;
  4440. { --------------------------------------------------------------------
  4441. TCustomDataSource
  4442. --------------------------------------------------------------------}
  4443. Procedure TCustomDataSource.SetaccountId(AIndex : Integer; const AValue : String);
  4444. begin
  4445. If (FaccountId=AValue) then exit;
  4446. FaccountId:=AValue;
  4447. MarkPropertyChanged(AIndex);
  4448. end;
  4449. Procedure TCustomDataSource.SetchildLink(AIndex : Integer; const AValue : TCustomDataSourceTypechildLink);
  4450. begin
  4451. If (FchildLink=AValue) then exit;
  4452. FchildLink:=AValue;
  4453. MarkPropertyChanged(AIndex);
  4454. end;
  4455. Procedure TCustomDataSource.Setcreated(AIndex : Integer; const AValue : TDatetime);
  4456. begin
  4457. If (Fcreated=AValue) then exit;
  4458. Fcreated:=AValue;
  4459. MarkPropertyChanged(AIndex);
  4460. end;
  4461. Procedure TCustomDataSource.Setdescription(AIndex : Integer; const AValue : String);
  4462. begin
  4463. If (Fdescription=AValue) then exit;
  4464. Fdescription:=AValue;
  4465. MarkPropertyChanged(AIndex);
  4466. end;
  4467. Procedure TCustomDataSource.Setid(AIndex : Integer; const AValue : String);
  4468. begin
  4469. If (Fid=AValue) then exit;
  4470. Fid:=AValue;
  4471. MarkPropertyChanged(AIndex);
  4472. end;
  4473. Procedure TCustomDataSource.SetimportBehavior(AIndex : Integer; const AValue : String);
  4474. begin
  4475. If (FimportBehavior=AValue) then exit;
  4476. FimportBehavior:=AValue;
  4477. MarkPropertyChanged(AIndex);
  4478. end;
  4479. Procedure TCustomDataSource.Setkind(AIndex : Integer; const AValue : String);
  4480. begin
  4481. If (Fkind=AValue) then exit;
  4482. Fkind:=AValue;
  4483. MarkPropertyChanged(AIndex);
  4484. end;
  4485. Procedure TCustomDataSource.Setname(AIndex : Integer; const AValue : String);
  4486. begin
  4487. If (Fname=AValue) then exit;
  4488. Fname:=AValue;
  4489. MarkPropertyChanged(AIndex);
  4490. end;
  4491. Procedure TCustomDataSource.SetparentLink(AIndex : Integer; const AValue : TCustomDataSourceTypeparentLink);
  4492. begin
  4493. If (FparentLink=AValue) then exit;
  4494. FparentLink:=AValue;
  4495. MarkPropertyChanged(AIndex);
  4496. end;
  4497. Procedure TCustomDataSource.SetprofilesLinked(AIndex : Integer; const AValue : TStringArray);
  4498. begin
  4499. If (FprofilesLinked=AValue) then exit;
  4500. FprofilesLinked:=AValue;
  4501. MarkPropertyChanged(AIndex);
  4502. end;
  4503. Procedure TCustomDataSource.SetselfLink(AIndex : Integer; const AValue : String);
  4504. begin
  4505. If (FselfLink=AValue) then exit;
  4506. FselfLink:=AValue;
  4507. MarkPropertyChanged(AIndex);
  4508. end;
  4509. Procedure TCustomDataSource.Set_type(AIndex : Integer; const AValue : String);
  4510. begin
  4511. If (F_type=AValue) then exit;
  4512. F_type:=AValue;
  4513. MarkPropertyChanged(AIndex);
  4514. end;
  4515. Procedure TCustomDataSource.Setupdated(AIndex : Integer; const AValue : TDatetime);
  4516. begin
  4517. If (Fupdated=AValue) then exit;
  4518. Fupdated:=AValue;
  4519. MarkPropertyChanged(AIndex);
  4520. end;
  4521. Procedure TCustomDataSource.SetuploadType(AIndex : Integer; const AValue : String);
  4522. begin
  4523. If (FuploadType=AValue) then exit;
  4524. FuploadType:=AValue;
  4525. MarkPropertyChanged(AIndex);
  4526. end;
  4527. Procedure TCustomDataSource.SetwebPropertyId(AIndex : Integer; const AValue : String);
  4528. begin
  4529. If (FwebPropertyId=AValue) then exit;
  4530. FwebPropertyId:=AValue;
  4531. MarkPropertyChanged(AIndex);
  4532. end;
  4533. Class Function TCustomDataSource.ExportPropertyName(Const AName : String) :String;
  4534. begin
  4535. Case AName of
  4536. '_type' : Result:='type';
  4537. else
  4538. Result:=Inherited ExportPropertyName(AName);
  4539. end;
  4540. end;
  4541. //2.6.4. bug workaround
  4542. {$IFDEF VER2_6}
  4543. Procedure TCustomDataSource.SetArrayLength(Const AName : String; ALength : Longint);
  4544. begin
  4545. Case AName of
  4546. 'profileslinked' : SetLength(FprofilesLinked,ALength);
  4547. else
  4548. Inherited SetArrayLength(AName,ALength);
  4549. end;
  4550. end;
  4551. {$ENDIF VER2_6}
  4552. { --------------------------------------------------------------------
  4553. TCustomDataSources
  4554. --------------------------------------------------------------------}
  4555. Procedure TCustomDataSources.Setitems(AIndex : Integer; const AValue : TCustomDataSourcesTypeitemsArray);
  4556. begin
  4557. If (Fitems=AValue) then exit;
  4558. Fitems:=AValue;
  4559. MarkPropertyChanged(AIndex);
  4560. end;
  4561. Procedure TCustomDataSources.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4562. begin
  4563. If (FitemsPerPage=AValue) then exit;
  4564. FitemsPerPage:=AValue;
  4565. MarkPropertyChanged(AIndex);
  4566. end;
  4567. Procedure TCustomDataSources.Setkind(AIndex : Integer; const AValue : String);
  4568. begin
  4569. If (Fkind=AValue) then exit;
  4570. Fkind:=AValue;
  4571. MarkPropertyChanged(AIndex);
  4572. end;
  4573. Procedure TCustomDataSources.SetnextLink(AIndex : Integer; const AValue : String);
  4574. begin
  4575. If (FnextLink=AValue) then exit;
  4576. FnextLink:=AValue;
  4577. MarkPropertyChanged(AIndex);
  4578. end;
  4579. Procedure TCustomDataSources.SetpreviousLink(AIndex : Integer; const AValue : String);
  4580. begin
  4581. If (FpreviousLink=AValue) then exit;
  4582. FpreviousLink:=AValue;
  4583. MarkPropertyChanged(AIndex);
  4584. end;
  4585. Procedure TCustomDataSources.SetstartIndex(AIndex : Integer; const AValue : integer);
  4586. begin
  4587. If (FstartIndex=AValue) then exit;
  4588. FstartIndex:=AValue;
  4589. MarkPropertyChanged(AIndex);
  4590. end;
  4591. Procedure TCustomDataSources.SettotalResults(AIndex : Integer; const AValue : integer);
  4592. begin
  4593. If (FtotalResults=AValue) then exit;
  4594. FtotalResults:=AValue;
  4595. MarkPropertyChanged(AIndex);
  4596. end;
  4597. Procedure TCustomDataSources.Setusername(AIndex : Integer; const AValue : String);
  4598. begin
  4599. If (Fusername=AValue) then exit;
  4600. Fusername:=AValue;
  4601. MarkPropertyChanged(AIndex);
  4602. end;
  4603. //2.6.4. bug workaround
  4604. {$IFDEF VER2_6}
  4605. Procedure TCustomDataSources.SetArrayLength(Const AName : String; ALength : Longint);
  4606. begin
  4607. Case AName of
  4608. 'items' : SetLength(Fitems,ALength);
  4609. else
  4610. Inherited SetArrayLength(AName,ALength);
  4611. end;
  4612. end;
  4613. {$ENDIF VER2_6}
  4614. { --------------------------------------------------------------------
  4615. TCustomDimensionTypeparentLink
  4616. --------------------------------------------------------------------}
  4617. Procedure TCustomDimensionTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  4618. begin
  4619. If (Fhref=AValue) then exit;
  4620. Fhref:=AValue;
  4621. MarkPropertyChanged(AIndex);
  4622. end;
  4623. Procedure TCustomDimensionTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  4624. begin
  4625. If (F_type=AValue) then exit;
  4626. F_type:=AValue;
  4627. MarkPropertyChanged(AIndex);
  4628. end;
  4629. Class Function TCustomDimensionTypeparentLink.ExportPropertyName(Const AName : String) :String;
  4630. begin
  4631. Case AName of
  4632. '_type' : Result:='type';
  4633. else
  4634. Result:=Inherited ExportPropertyName(AName);
  4635. end;
  4636. end;
  4637. { --------------------------------------------------------------------
  4638. TCustomDimension
  4639. --------------------------------------------------------------------}
  4640. Procedure TCustomDimension.SetaccountId(AIndex : Integer; const AValue : String);
  4641. begin
  4642. If (FaccountId=AValue) then exit;
  4643. FaccountId:=AValue;
  4644. MarkPropertyChanged(AIndex);
  4645. end;
  4646. Procedure TCustomDimension.Setactive(AIndex : Integer; const AValue : boolean);
  4647. begin
  4648. If (Factive=AValue) then exit;
  4649. Factive:=AValue;
  4650. MarkPropertyChanged(AIndex);
  4651. end;
  4652. Procedure TCustomDimension.Setcreated(AIndex : Integer; const AValue : TDatetime);
  4653. begin
  4654. If (Fcreated=AValue) then exit;
  4655. Fcreated:=AValue;
  4656. MarkPropertyChanged(AIndex);
  4657. end;
  4658. Procedure TCustomDimension.Setid(AIndex : Integer; const AValue : String);
  4659. begin
  4660. If (Fid=AValue) then exit;
  4661. Fid:=AValue;
  4662. MarkPropertyChanged(AIndex);
  4663. end;
  4664. Procedure TCustomDimension.Setindex(AIndex : Integer; const AValue : integer);
  4665. begin
  4666. If (Findex=AValue) then exit;
  4667. Findex:=AValue;
  4668. MarkPropertyChanged(AIndex);
  4669. end;
  4670. Procedure TCustomDimension.Setkind(AIndex : Integer; const AValue : String);
  4671. begin
  4672. If (Fkind=AValue) then exit;
  4673. Fkind:=AValue;
  4674. MarkPropertyChanged(AIndex);
  4675. end;
  4676. Procedure TCustomDimension.Setname(AIndex : Integer; const AValue : String);
  4677. begin
  4678. If (Fname=AValue) then exit;
  4679. Fname:=AValue;
  4680. MarkPropertyChanged(AIndex);
  4681. end;
  4682. Procedure TCustomDimension.SetparentLink(AIndex : Integer; const AValue : TCustomDimensionTypeparentLink);
  4683. begin
  4684. If (FparentLink=AValue) then exit;
  4685. FparentLink:=AValue;
  4686. MarkPropertyChanged(AIndex);
  4687. end;
  4688. Procedure TCustomDimension.Setscope(AIndex : Integer; const AValue : String);
  4689. begin
  4690. If (Fscope=AValue) then exit;
  4691. Fscope:=AValue;
  4692. MarkPropertyChanged(AIndex);
  4693. end;
  4694. Procedure TCustomDimension.SetselfLink(AIndex : Integer; const AValue : String);
  4695. begin
  4696. If (FselfLink=AValue) then exit;
  4697. FselfLink:=AValue;
  4698. MarkPropertyChanged(AIndex);
  4699. end;
  4700. Procedure TCustomDimension.Setupdated(AIndex : Integer; const AValue : TDatetime);
  4701. begin
  4702. If (Fupdated=AValue) then exit;
  4703. Fupdated:=AValue;
  4704. MarkPropertyChanged(AIndex);
  4705. end;
  4706. Procedure TCustomDimension.SetwebPropertyId(AIndex : Integer; const AValue : String);
  4707. begin
  4708. If (FwebPropertyId=AValue) then exit;
  4709. FwebPropertyId:=AValue;
  4710. MarkPropertyChanged(AIndex);
  4711. end;
  4712. { --------------------------------------------------------------------
  4713. TCustomDimensions
  4714. --------------------------------------------------------------------}
  4715. Procedure TCustomDimensions.Setitems(AIndex : Integer; const AValue : TCustomDimensionsTypeitemsArray);
  4716. begin
  4717. If (Fitems=AValue) then exit;
  4718. Fitems:=AValue;
  4719. MarkPropertyChanged(AIndex);
  4720. end;
  4721. Procedure TCustomDimensions.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4722. begin
  4723. If (FitemsPerPage=AValue) then exit;
  4724. FitemsPerPage:=AValue;
  4725. MarkPropertyChanged(AIndex);
  4726. end;
  4727. Procedure TCustomDimensions.Setkind(AIndex : Integer; const AValue : String);
  4728. begin
  4729. If (Fkind=AValue) then exit;
  4730. Fkind:=AValue;
  4731. MarkPropertyChanged(AIndex);
  4732. end;
  4733. Procedure TCustomDimensions.SetnextLink(AIndex : Integer; const AValue : String);
  4734. begin
  4735. If (FnextLink=AValue) then exit;
  4736. FnextLink:=AValue;
  4737. MarkPropertyChanged(AIndex);
  4738. end;
  4739. Procedure TCustomDimensions.SetpreviousLink(AIndex : Integer; const AValue : String);
  4740. begin
  4741. If (FpreviousLink=AValue) then exit;
  4742. FpreviousLink:=AValue;
  4743. MarkPropertyChanged(AIndex);
  4744. end;
  4745. Procedure TCustomDimensions.SetstartIndex(AIndex : Integer; const AValue : integer);
  4746. begin
  4747. If (FstartIndex=AValue) then exit;
  4748. FstartIndex:=AValue;
  4749. MarkPropertyChanged(AIndex);
  4750. end;
  4751. Procedure TCustomDimensions.SettotalResults(AIndex : Integer; const AValue : integer);
  4752. begin
  4753. If (FtotalResults=AValue) then exit;
  4754. FtotalResults:=AValue;
  4755. MarkPropertyChanged(AIndex);
  4756. end;
  4757. Procedure TCustomDimensions.Setusername(AIndex : Integer; const AValue : String);
  4758. begin
  4759. If (Fusername=AValue) then exit;
  4760. Fusername:=AValue;
  4761. MarkPropertyChanged(AIndex);
  4762. end;
  4763. //2.6.4. bug workaround
  4764. {$IFDEF VER2_6}
  4765. Procedure TCustomDimensions.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. TCustomMetricTypeparentLink
  4776. --------------------------------------------------------------------}
  4777. Procedure TCustomMetricTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  4778. begin
  4779. If (Fhref=AValue) then exit;
  4780. Fhref:=AValue;
  4781. MarkPropertyChanged(AIndex);
  4782. end;
  4783. Procedure TCustomMetricTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  4784. begin
  4785. If (F_type=AValue) then exit;
  4786. F_type:=AValue;
  4787. MarkPropertyChanged(AIndex);
  4788. end;
  4789. Class Function TCustomMetricTypeparentLink.ExportPropertyName(Const AName : String) :String;
  4790. begin
  4791. Case AName of
  4792. '_type' : Result:='type';
  4793. else
  4794. Result:=Inherited ExportPropertyName(AName);
  4795. end;
  4796. end;
  4797. { --------------------------------------------------------------------
  4798. TCustomMetric
  4799. --------------------------------------------------------------------}
  4800. Procedure TCustomMetric.SetaccountId(AIndex : Integer; const AValue : String);
  4801. begin
  4802. If (FaccountId=AValue) then exit;
  4803. FaccountId:=AValue;
  4804. MarkPropertyChanged(AIndex);
  4805. end;
  4806. Procedure TCustomMetric.Setactive(AIndex : Integer; const AValue : boolean);
  4807. begin
  4808. If (Factive=AValue) then exit;
  4809. Factive:=AValue;
  4810. MarkPropertyChanged(AIndex);
  4811. end;
  4812. Procedure TCustomMetric.Setcreated(AIndex : Integer; const AValue : TDatetime);
  4813. begin
  4814. If (Fcreated=AValue) then exit;
  4815. Fcreated:=AValue;
  4816. MarkPropertyChanged(AIndex);
  4817. end;
  4818. Procedure TCustomMetric.Setid(AIndex : Integer; const AValue : String);
  4819. begin
  4820. If (Fid=AValue) then exit;
  4821. Fid:=AValue;
  4822. MarkPropertyChanged(AIndex);
  4823. end;
  4824. Procedure TCustomMetric.Setindex(AIndex : Integer; const AValue : integer);
  4825. begin
  4826. If (Findex=AValue) then exit;
  4827. Findex:=AValue;
  4828. MarkPropertyChanged(AIndex);
  4829. end;
  4830. Procedure TCustomMetric.Setkind(AIndex : Integer; const AValue : String);
  4831. begin
  4832. If (Fkind=AValue) then exit;
  4833. Fkind:=AValue;
  4834. MarkPropertyChanged(AIndex);
  4835. end;
  4836. Procedure TCustomMetric.Setmax_value(AIndex : Integer; const AValue : String);
  4837. begin
  4838. If (Fmax_value=AValue) then exit;
  4839. Fmax_value:=AValue;
  4840. MarkPropertyChanged(AIndex);
  4841. end;
  4842. Procedure TCustomMetric.Setmin_value(AIndex : Integer; const AValue : String);
  4843. begin
  4844. If (Fmin_value=AValue) then exit;
  4845. Fmin_value:=AValue;
  4846. MarkPropertyChanged(AIndex);
  4847. end;
  4848. Procedure TCustomMetric.Setname(AIndex : Integer; const AValue : String);
  4849. begin
  4850. If (Fname=AValue) then exit;
  4851. Fname:=AValue;
  4852. MarkPropertyChanged(AIndex);
  4853. end;
  4854. Procedure TCustomMetric.SetparentLink(AIndex : Integer; const AValue : TCustomMetricTypeparentLink);
  4855. begin
  4856. If (FparentLink=AValue) then exit;
  4857. FparentLink:=AValue;
  4858. MarkPropertyChanged(AIndex);
  4859. end;
  4860. Procedure TCustomMetric.Setscope(AIndex : Integer; const AValue : String);
  4861. begin
  4862. If (Fscope=AValue) then exit;
  4863. Fscope:=AValue;
  4864. MarkPropertyChanged(AIndex);
  4865. end;
  4866. Procedure TCustomMetric.SetselfLink(AIndex : Integer; const AValue : String);
  4867. begin
  4868. If (FselfLink=AValue) then exit;
  4869. FselfLink:=AValue;
  4870. MarkPropertyChanged(AIndex);
  4871. end;
  4872. Procedure TCustomMetric.Set_type(AIndex : Integer; const AValue : String);
  4873. begin
  4874. If (F_type=AValue) then exit;
  4875. F_type:=AValue;
  4876. MarkPropertyChanged(AIndex);
  4877. end;
  4878. Procedure TCustomMetric.Setupdated(AIndex : Integer; const AValue : TDatetime);
  4879. begin
  4880. If (Fupdated=AValue) then exit;
  4881. Fupdated:=AValue;
  4882. MarkPropertyChanged(AIndex);
  4883. end;
  4884. Procedure TCustomMetric.SetwebPropertyId(AIndex : Integer; const AValue : String);
  4885. begin
  4886. If (FwebPropertyId=AValue) then exit;
  4887. FwebPropertyId:=AValue;
  4888. MarkPropertyChanged(AIndex);
  4889. end;
  4890. Class Function TCustomMetric.ExportPropertyName(Const AName : String) :String;
  4891. begin
  4892. Case AName of
  4893. '_type' : Result:='type';
  4894. else
  4895. Result:=Inherited ExportPropertyName(AName);
  4896. end;
  4897. end;
  4898. { --------------------------------------------------------------------
  4899. TCustomMetrics
  4900. --------------------------------------------------------------------}
  4901. Procedure TCustomMetrics.Setitems(AIndex : Integer; const AValue : TCustomMetricsTypeitemsArray);
  4902. begin
  4903. If (Fitems=AValue) then exit;
  4904. Fitems:=AValue;
  4905. MarkPropertyChanged(AIndex);
  4906. end;
  4907. Procedure TCustomMetrics.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4908. begin
  4909. If (FitemsPerPage=AValue) then exit;
  4910. FitemsPerPage:=AValue;
  4911. MarkPropertyChanged(AIndex);
  4912. end;
  4913. Procedure TCustomMetrics.Setkind(AIndex : Integer; const AValue : String);
  4914. begin
  4915. If (Fkind=AValue) then exit;
  4916. Fkind:=AValue;
  4917. MarkPropertyChanged(AIndex);
  4918. end;
  4919. Procedure TCustomMetrics.SetnextLink(AIndex : Integer; const AValue : String);
  4920. begin
  4921. If (FnextLink=AValue) then exit;
  4922. FnextLink:=AValue;
  4923. MarkPropertyChanged(AIndex);
  4924. end;
  4925. Procedure TCustomMetrics.SetpreviousLink(AIndex : Integer; const AValue : String);
  4926. begin
  4927. If (FpreviousLink=AValue) then exit;
  4928. FpreviousLink:=AValue;
  4929. MarkPropertyChanged(AIndex);
  4930. end;
  4931. Procedure TCustomMetrics.SetstartIndex(AIndex : Integer; const AValue : integer);
  4932. begin
  4933. If (FstartIndex=AValue) then exit;
  4934. FstartIndex:=AValue;
  4935. MarkPropertyChanged(AIndex);
  4936. end;
  4937. Procedure TCustomMetrics.SettotalResults(AIndex : Integer; const AValue : integer);
  4938. begin
  4939. If (FtotalResults=AValue) then exit;
  4940. FtotalResults:=AValue;
  4941. MarkPropertyChanged(AIndex);
  4942. end;
  4943. Procedure TCustomMetrics.Setusername(AIndex : Integer; const AValue : String);
  4944. begin
  4945. If (Fusername=AValue) then exit;
  4946. Fusername:=AValue;
  4947. MarkPropertyChanged(AIndex);
  4948. end;
  4949. //2.6.4. bug workaround
  4950. {$IFDEF VER2_6}
  4951. Procedure TCustomMetrics.SetArrayLength(Const AName : String; ALength : Longint);
  4952. begin
  4953. Case AName of
  4954. 'items' : SetLength(Fitems,ALength);
  4955. else
  4956. Inherited SetArrayLength(AName,ALength);
  4957. end;
  4958. end;
  4959. {$ENDIF VER2_6}
  4960. { --------------------------------------------------------------------
  4961. TEntityAdWordsLinkTypeentity
  4962. --------------------------------------------------------------------}
  4963. Procedure TEntityAdWordsLinkTypeentity.SetwebPropertyRef(AIndex : Integer; const AValue : TWebPropertyRef);
  4964. begin
  4965. If (FwebPropertyRef=AValue) then exit;
  4966. FwebPropertyRef:=AValue;
  4967. MarkPropertyChanged(AIndex);
  4968. end;
  4969. { --------------------------------------------------------------------
  4970. TEntityAdWordsLink
  4971. --------------------------------------------------------------------}
  4972. Procedure TEntityAdWordsLink.SetadWordsAccounts(AIndex : Integer; const AValue : TEntityAdWordsLinkTypeadWordsAccountsArray);
  4973. begin
  4974. If (FadWordsAccounts=AValue) then exit;
  4975. FadWordsAccounts:=AValue;
  4976. MarkPropertyChanged(AIndex);
  4977. end;
  4978. Procedure TEntityAdWordsLink.Setentity(AIndex : Integer; const AValue : TEntityAdWordsLinkTypeentity);
  4979. begin
  4980. If (Fentity=AValue) then exit;
  4981. Fentity:=AValue;
  4982. MarkPropertyChanged(AIndex);
  4983. end;
  4984. Procedure TEntityAdWordsLink.Setid(AIndex : Integer; const AValue : String);
  4985. begin
  4986. If (Fid=AValue) then exit;
  4987. Fid:=AValue;
  4988. MarkPropertyChanged(AIndex);
  4989. end;
  4990. Procedure TEntityAdWordsLink.Setkind(AIndex : Integer; const AValue : String);
  4991. begin
  4992. If (Fkind=AValue) then exit;
  4993. Fkind:=AValue;
  4994. MarkPropertyChanged(AIndex);
  4995. end;
  4996. Procedure TEntityAdWordsLink.Setname(AIndex : Integer; const AValue : String);
  4997. begin
  4998. If (Fname=AValue) then exit;
  4999. Fname:=AValue;
  5000. MarkPropertyChanged(AIndex);
  5001. end;
  5002. Procedure TEntityAdWordsLink.SetprofileIds(AIndex : Integer; const AValue : TStringArray);
  5003. begin
  5004. If (FprofileIds=AValue) then exit;
  5005. FprofileIds:=AValue;
  5006. MarkPropertyChanged(AIndex);
  5007. end;
  5008. Procedure TEntityAdWordsLink.SetselfLink(AIndex : Integer; const AValue : String);
  5009. begin
  5010. If (FselfLink=AValue) then exit;
  5011. FselfLink:=AValue;
  5012. MarkPropertyChanged(AIndex);
  5013. end;
  5014. //2.6.4. bug workaround
  5015. {$IFDEF VER2_6}
  5016. Procedure TEntityAdWordsLink.SetArrayLength(Const AName : String; ALength : Longint);
  5017. begin
  5018. Case AName of
  5019. 'adwordsaccounts' : SetLength(FadWordsAccounts,ALength);
  5020. 'profileids' : SetLength(FprofileIds,ALength);
  5021. else
  5022. Inherited SetArrayLength(AName,ALength);
  5023. end;
  5024. end;
  5025. {$ENDIF VER2_6}
  5026. { --------------------------------------------------------------------
  5027. TEntityAdWordsLinks
  5028. --------------------------------------------------------------------}
  5029. Procedure TEntityAdWordsLinks.Setitems(AIndex : Integer; const AValue : TEntityAdWordsLinksTypeitemsArray);
  5030. begin
  5031. If (Fitems=AValue) then exit;
  5032. Fitems:=AValue;
  5033. MarkPropertyChanged(AIndex);
  5034. end;
  5035. Procedure TEntityAdWordsLinks.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  5036. begin
  5037. If (FitemsPerPage=AValue) then exit;
  5038. FitemsPerPage:=AValue;
  5039. MarkPropertyChanged(AIndex);
  5040. end;
  5041. Procedure TEntityAdWordsLinks.Setkind(AIndex : Integer; const AValue : String);
  5042. begin
  5043. If (Fkind=AValue) then exit;
  5044. Fkind:=AValue;
  5045. MarkPropertyChanged(AIndex);
  5046. end;
  5047. Procedure TEntityAdWordsLinks.SetnextLink(AIndex : Integer; const AValue : String);
  5048. begin
  5049. If (FnextLink=AValue) then exit;
  5050. FnextLink:=AValue;
  5051. MarkPropertyChanged(AIndex);
  5052. end;
  5053. Procedure TEntityAdWordsLinks.SetpreviousLink(AIndex : Integer; const AValue : String);
  5054. begin
  5055. If (FpreviousLink=AValue) then exit;
  5056. FpreviousLink:=AValue;
  5057. MarkPropertyChanged(AIndex);
  5058. end;
  5059. Procedure TEntityAdWordsLinks.SetstartIndex(AIndex : Integer; const AValue : integer);
  5060. begin
  5061. If (FstartIndex=AValue) then exit;
  5062. FstartIndex:=AValue;
  5063. MarkPropertyChanged(AIndex);
  5064. end;
  5065. Procedure TEntityAdWordsLinks.SettotalResults(AIndex : Integer; const AValue : integer);
  5066. begin
  5067. If (FtotalResults=AValue) then exit;
  5068. FtotalResults:=AValue;
  5069. MarkPropertyChanged(AIndex);
  5070. end;
  5071. //2.6.4. bug workaround
  5072. {$IFDEF VER2_6}
  5073. Procedure TEntityAdWordsLinks.SetArrayLength(Const AName : String; ALength : Longint);
  5074. begin
  5075. Case AName of
  5076. 'items' : SetLength(Fitems,ALength);
  5077. else
  5078. Inherited SetArrayLength(AName,ALength);
  5079. end;
  5080. end;
  5081. {$ENDIF VER2_6}
  5082. { --------------------------------------------------------------------
  5083. TEntityUserLinkTypeentity
  5084. --------------------------------------------------------------------}
  5085. Procedure TEntityUserLinkTypeentity.SetaccountRef(AIndex : Integer; const AValue : TAccountRef);
  5086. begin
  5087. If (FaccountRef=AValue) then exit;
  5088. FaccountRef:=AValue;
  5089. MarkPropertyChanged(AIndex);
  5090. end;
  5091. Procedure TEntityUserLinkTypeentity.SetprofileRef(AIndex : Integer; const AValue : TProfileRef);
  5092. begin
  5093. If (FprofileRef=AValue) then exit;
  5094. FprofileRef:=AValue;
  5095. MarkPropertyChanged(AIndex);
  5096. end;
  5097. Procedure TEntityUserLinkTypeentity.SetwebPropertyRef(AIndex : Integer; const AValue : TWebPropertyRef);
  5098. begin
  5099. If (FwebPropertyRef=AValue) then exit;
  5100. FwebPropertyRef:=AValue;
  5101. MarkPropertyChanged(AIndex);
  5102. end;
  5103. { --------------------------------------------------------------------
  5104. TEntityUserLinkTypepermissions
  5105. --------------------------------------------------------------------}
  5106. Procedure TEntityUserLinkTypepermissions.Seteffective(AIndex : Integer; const AValue : TStringArray);
  5107. begin
  5108. If (Feffective=AValue) then exit;
  5109. Feffective:=AValue;
  5110. MarkPropertyChanged(AIndex);
  5111. end;
  5112. Procedure TEntityUserLinkTypepermissions.Setlocal(AIndex : Integer; const AValue : TStringArray);
  5113. begin
  5114. If (Flocal=AValue) then exit;
  5115. Flocal:=AValue;
  5116. MarkPropertyChanged(AIndex);
  5117. end;
  5118. //2.6.4. bug workaround
  5119. {$IFDEF VER2_6}
  5120. Procedure TEntityUserLinkTypepermissions.SetArrayLength(Const AName : String; ALength : Longint);
  5121. begin
  5122. Case AName of
  5123. 'effective' : SetLength(Feffective,ALength);
  5124. 'local' : SetLength(Flocal,ALength);
  5125. else
  5126. Inherited SetArrayLength(AName,ALength);
  5127. end;
  5128. end;
  5129. {$ENDIF VER2_6}
  5130. { --------------------------------------------------------------------
  5131. TEntityUserLink
  5132. --------------------------------------------------------------------}
  5133. Procedure TEntityUserLink.Setentity(AIndex : Integer; const AValue : TEntityUserLinkTypeentity);
  5134. begin
  5135. If (Fentity=AValue) then exit;
  5136. Fentity:=AValue;
  5137. MarkPropertyChanged(AIndex);
  5138. end;
  5139. Procedure TEntityUserLink.Setid(AIndex : Integer; const AValue : String);
  5140. begin
  5141. If (Fid=AValue) then exit;
  5142. Fid:=AValue;
  5143. MarkPropertyChanged(AIndex);
  5144. end;
  5145. Procedure TEntityUserLink.Setkind(AIndex : Integer; const AValue : String);
  5146. begin
  5147. If (Fkind=AValue) then exit;
  5148. Fkind:=AValue;
  5149. MarkPropertyChanged(AIndex);
  5150. end;
  5151. Procedure TEntityUserLink.Setpermissions(AIndex : Integer; const AValue : TEntityUserLinkTypepermissions);
  5152. begin
  5153. If (Fpermissions=AValue) then exit;
  5154. Fpermissions:=AValue;
  5155. MarkPropertyChanged(AIndex);
  5156. end;
  5157. Procedure TEntityUserLink.SetselfLink(AIndex : Integer; const AValue : String);
  5158. begin
  5159. If (FselfLink=AValue) then exit;
  5160. FselfLink:=AValue;
  5161. MarkPropertyChanged(AIndex);
  5162. end;
  5163. Procedure TEntityUserLink.SetuserRef(AIndex : Integer; const AValue : TUserRef);
  5164. begin
  5165. If (FuserRef=AValue) then exit;
  5166. FuserRef:=AValue;
  5167. MarkPropertyChanged(AIndex);
  5168. end;
  5169. { --------------------------------------------------------------------
  5170. TEntityUserLinks
  5171. --------------------------------------------------------------------}
  5172. Procedure TEntityUserLinks.Setitems(AIndex : Integer; const AValue : TEntityUserLinksTypeitemsArray);
  5173. begin
  5174. If (Fitems=AValue) then exit;
  5175. Fitems:=AValue;
  5176. MarkPropertyChanged(AIndex);
  5177. end;
  5178. Procedure TEntityUserLinks.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  5179. begin
  5180. If (FitemsPerPage=AValue) then exit;
  5181. FitemsPerPage:=AValue;
  5182. MarkPropertyChanged(AIndex);
  5183. end;
  5184. Procedure TEntityUserLinks.Setkind(AIndex : Integer; const AValue : String);
  5185. begin
  5186. If (Fkind=AValue) then exit;
  5187. Fkind:=AValue;
  5188. MarkPropertyChanged(AIndex);
  5189. end;
  5190. Procedure TEntityUserLinks.SetnextLink(AIndex : Integer; const AValue : String);
  5191. begin
  5192. If (FnextLink=AValue) then exit;
  5193. FnextLink:=AValue;
  5194. MarkPropertyChanged(AIndex);
  5195. end;
  5196. Procedure TEntityUserLinks.SetpreviousLink(AIndex : Integer; const AValue : String);
  5197. begin
  5198. If (FpreviousLink=AValue) then exit;
  5199. FpreviousLink:=AValue;
  5200. MarkPropertyChanged(AIndex);
  5201. end;
  5202. Procedure TEntityUserLinks.SetstartIndex(AIndex : Integer; const AValue : integer);
  5203. begin
  5204. If (FstartIndex=AValue) then exit;
  5205. FstartIndex:=AValue;
  5206. MarkPropertyChanged(AIndex);
  5207. end;
  5208. Procedure TEntityUserLinks.SettotalResults(AIndex : Integer; const AValue : integer);
  5209. begin
  5210. If (FtotalResults=AValue) then exit;
  5211. FtotalResults:=AValue;
  5212. MarkPropertyChanged(AIndex);
  5213. end;
  5214. //2.6.4. bug workaround
  5215. {$IFDEF VER2_6}
  5216. Procedure TEntityUserLinks.SetArrayLength(Const AName : String; ALength : Longint);
  5217. begin
  5218. Case AName of
  5219. 'items' : SetLength(Fitems,ALength);
  5220. else
  5221. Inherited SetArrayLength(AName,ALength);
  5222. end;
  5223. end;
  5224. {$ENDIF VER2_6}
  5225. { --------------------------------------------------------------------
  5226. TExperimentTypeparentLink
  5227. --------------------------------------------------------------------}
  5228. Procedure TExperimentTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  5229. begin
  5230. If (Fhref=AValue) then exit;
  5231. Fhref:=AValue;
  5232. MarkPropertyChanged(AIndex);
  5233. end;
  5234. Procedure TExperimentTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  5235. begin
  5236. If (F_type=AValue) then exit;
  5237. F_type:=AValue;
  5238. MarkPropertyChanged(AIndex);
  5239. end;
  5240. Class Function TExperimentTypeparentLink.ExportPropertyName(Const AName : String) :String;
  5241. begin
  5242. Case AName of
  5243. '_type' : Result:='type';
  5244. else
  5245. Result:=Inherited ExportPropertyName(AName);
  5246. end;
  5247. end;
  5248. { --------------------------------------------------------------------
  5249. TExperimentTypevariationsItem
  5250. --------------------------------------------------------------------}
  5251. Procedure TExperimentTypevariationsItem.Setname(AIndex : Integer; const AValue : String);
  5252. begin
  5253. If (Fname=AValue) then exit;
  5254. Fname:=AValue;
  5255. MarkPropertyChanged(AIndex);
  5256. end;
  5257. Procedure TExperimentTypevariationsItem.Setstatus(AIndex : Integer; const AValue : String);
  5258. begin
  5259. If (Fstatus=AValue) then exit;
  5260. Fstatus:=AValue;
  5261. MarkPropertyChanged(AIndex);
  5262. end;
  5263. Procedure TExperimentTypevariationsItem.Seturl(AIndex : Integer; const AValue : String);
  5264. begin
  5265. If (Furl=AValue) then exit;
  5266. Furl:=AValue;
  5267. MarkPropertyChanged(AIndex);
  5268. end;
  5269. Procedure TExperimentTypevariationsItem.Setweight(AIndex : Integer; const AValue : double);
  5270. begin
  5271. If (Fweight=AValue) then exit;
  5272. Fweight:=AValue;
  5273. MarkPropertyChanged(AIndex);
  5274. end;
  5275. Procedure TExperimentTypevariationsItem.Setwon(AIndex : Integer; const AValue : boolean);
  5276. begin
  5277. If (Fwon=AValue) then exit;
  5278. Fwon:=AValue;
  5279. MarkPropertyChanged(AIndex);
  5280. end;
  5281. { --------------------------------------------------------------------
  5282. TExperiment
  5283. --------------------------------------------------------------------}
  5284. Procedure TExperiment.SetaccountId(AIndex : Integer; const AValue : String);
  5285. begin
  5286. If (FaccountId=AValue) then exit;
  5287. FaccountId:=AValue;
  5288. MarkPropertyChanged(AIndex);
  5289. end;
  5290. Procedure TExperiment.Setcreated(AIndex : Integer; const AValue : TDatetime);
  5291. begin
  5292. If (Fcreated=AValue) then exit;
  5293. Fcreated:=AValue;
  5294. MarkPropertyChanged(AIndex);
  5295. end;
  5296. Procedure TExperiment.Setdescription(AIndex : Integer; const AValue : String);
  5297. begin
  5298. If (Fdescription=AValue) then exit;
  5299. Fdescription:=AValue;
  5300. MarkPropertyChanged(AIndex);
  5301. end;
  5302. Procedure TExperiment.SeteditableInGaUi(AIndex : Integer; const AValue : boolean);
  5303. begin
  5304. If (FeditableInGaUi=AValue) then exit;
  5305. FeditableInGaUi:=AValue;
  5306. MarkPropertyChanged(AIndex);
  5307. end;
  5308. Procedure TExperiment.SetendTime(AIndex : Integer; const AValue : TDatetime);
  5309. begin
  5310. If (FendTime=AValue) then exit;
  5311. FendTime:=AValue;
  5312. MarkPropertyChanged(AIndex);
  5313. end;
  5314. Procedure TExperiment.SetequalWeighting(AIndex : Integer; const AValue : boolean);
  5315. begin
  5316. If (FequalWeighting=AValue) then exit;
  5317. FequalWeighting:=AValue;
  5318. MarkPropertyChanged(AIndex);
  5319. end;
  5320. Procedure TExperiment.Setid(AIndex : Integer; const AValue : String);
  5321. begin
  5322. If (Fid=AValue) then exit;
  5323. Fid:=AValue;
  5324. MarkPropertyChanged(AIndex);
  5325. end;
  5326. Procedure TExperiment.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  5327. begin
  5328. If (FinternalWebPropertyId=AValue) then exit;
  5329. FinternalWebPropertyId:=AValue;
  5330. MarkPropertyChanged(AIndex);
  5331. end;
  5332. Procedure TExperiment.Setkind(AIndex : Integer; const AValue : String);
  5333. begin
  5334. If (Fkind=AValue) then exit;
  5335. Fkind:=AValue;
  5336. MarkPropertyChanged(AIndex);
  5337. end;
  5338. Procedure TExperiment.SetminimumExperimentLengthInDays(AIndex : Integer; const AValue : integer);
  5339. begin
  5340. If (FminimumExperimentLengthInDays=AValue) then exit;
  5341. FminimumExperimentLengthInDays:=AValue;
  5342. MarkPropertyChanged(AIndex);
  5343. end;
  5344. Procedure TExperiment.Setname(AIndex : Integer; const AValue : String);
  5345. begin
  5346. If (Fname=AValue) then exit;
  5347. Fname:=AValue;
  5348. MarkPropertyChanged(AIndex);
  5349. end;
  5350. Procedure TExperiment.SetobjectiveMetric(AIndex : Integer; const AValue : String);
  5351. begin
  5352. If (FobjectiveMetric=AValue) then exit;
  5353. FobjectiveMetric:=AValue;
  5354. MarkPropertyChanged(AIndex);
  5355. end;
  5356. Procedure TExperiment.SetoptimizationType(AIndex : Integer; const AValue : String);
  5357. begin
  5358. If (FoptimizationType=AValue) then exit;
  5359. FoptimizationType:=AValue;
  5360. MarkPropertyChanged(AIndex);
  5361. end;
  5362. Procedure TExperiment.SetparentLink(AIndex : Integer; const AValue : TExperimentTypeparentLink);
  5363. begin
  5364. If (FparentLink=AValue) then exit;
  5365. FparentLink:=AValue;
  5366. MarkPropertyChanged(AIndex);
  5367. end;
  5368. Procedure TExperiment.SetprofileId(AIndex : Integer; const AValue : String);
  5369. begin
  5370. If (FprofileId=AValue) then exit;
  5371. FprofileId:=AValue;
  5372. MarkPropertyChanged(AIndex);
  5373. end;
  5374. Procedure TExperiment.SetreasonExperimentEnded(AIndex : Integer; const AValue : String);
  5375. begin
  5376. If (FreasonExperimentEnded=AValue) then exit;
  5377. FreasonExperimentEnded:=AValue;
  5378. MarkPropertyChanged(AIndex);
  5379. end;
  5380. Procedure TExperiment.SetrewriteVariationUrlsAsOriginal(AIndex : Integer; const AValue : boolean);
  5381. begin
  5382. If (FrewriteVariationUrlsAsOriginal=AValue) then exit;
  5383. FrewriteVariationUrlsAsOriginal:=AValue;
  5384. MarkPropertyChanged(AIndex);
  5385. end;
  5386. Procedure TExperiment.SetselfLink(AIndex : Integer; const AValue : String);
  5387. begin
  5388. If (FselfLink=AValue) then exit;
  5389. FselfLink:=AValue;
  5390. MarkPropertyChanged(AIndex);
  5391. end;
  5392. Procedure TExperiment.SetservingFramework(AIndex : Integer; const AValue : String);
  5393. begin
  5394. If (FservingFramework=AValue) then exit;
  5395. FservingFramework:=AValue;
  5396. MarkPropertyChanged(AIndex);
  5397. end;
  5398. Procedure TExperiment.Setsnippet(AIndex : Integer; const AValue : String);
  5399. begin
  5400. If (Fsnippet=AValue) then exit;
  5401. Fsnippet:=AValue;
  5402. MarkPropertyChanged(AIndex);
  5403. end;
  5404. Procedure TExperiment.SetstartTime(AIndex : Integer; const AValue : TDatetime);
  5405. begin
  5406. If (FstartTime=AValue) then exit;
  5407. FstartTime:=AValue;
  5408. MarkPropertyChanged(AIndex);
  5409. end;
  5410. Procedure TExperiment.Setstatus(AIndex : Integer; const AValue : String);
  5411. begin
  5412. If (Fstatus=AValue) then exit;
  5413. Fstatus:=AValue;
  5414. MarkPropertyChanged(AIndex);
  5415. end;
  5416. Procedure TExperiment.SettrafficCoverage(AIndex : Integer; const AValue : double);
  5417. begin
  5418. If (FtrafficCoverage=AValue) then exit;
  5419. FtrafficCoverage:=AValue;
  5420. MarkPropertyChanged(AIndex);
  5421. end;
  5422. Procedure TExperiment.Setupdated(AIndex : Integer; const AValue : TDatetime);
  5423. begin
  5424. If (Fupdated=AValue) then exit;
  5425. Fupdated:=AValue;
  5426. MarkPropertyChanged(AIndex);
  5427. end;
  5428. Procedure TExperiment.Setvariations(AIndex : Integer; const AValue : TExperimentTypevariationsArray);
  5429. begin
  5430. If (Fvariations=AValue) then exit;
  5431. Fvariations:=AValue;
  5432. MarkPropertyChanged(AIndex);
  5433. end;
  5434. Procedure TExperiment.SetwebPropertyId(AIndex : Integer; const AValue : String);
  5435. begin
  5436. If (FwebPropertyId=AValue) then exit;
  5437. FwebPropertyId:=AValue;
  5438. MarkPropertyChanged(AIndex);
  5439. end;
  5440. Procedure TExperiment.SetwinnerConfidenceLevel(AIndex : Integer; const AValue : double);
  5441. begin
  5442. If (FwinnerConfidenceLevel=AValue) then exit;
  5443. FwinnerConfidenceLevel:=AValue;
  5444. MarkPropertyChanged(AIndex);
  5445. end;
  5446. Procedure TExperiment.SetwinnerFound(AIndex : Integer; const AValue : boolean);
  5447. begin
  5448. If (FwinnerFound=AValue) then exit;
  5449. FwinnerFound:=AValue;
  5450. MarkPropertyChanged(AIndex);
  5451. end;
  5452. //2.6.4. bug workaround
  5453. {$IFDEF VER2_6}
  5454. Procedure TExperiment.SetArrayLength(Const AName : String; ALength : Longint);
  5455. begin
  5456. Case AName of
  5457. 'variations' : SetLength(Fvariations,ALength);
  5458. else
  5459. Inherited SetArrayLength(AName,ALength);
  5460. end;
  5461. end;
  5462. {$ENDIF VER2_6}
  5463. { --------------------------------------------------------------------
  5464. TExperiments
  5465. --------------------------------------------------------------------}
  5466. Procedure TExperiments.Setitems(AIndex : Integer; const AValue : TExperimentsTypeitemsArray);
  5467. begin
  5468. If (Fitems=AValue) then exit;
  5469. Fitems:=AValue;
  5470. MarkPropertyChanged(AIndex);
  5471. end;
  5472. Procedure TExperiments.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  5473. begin
  5474. If (FitemsPerPage=AValue) then exit;
  5475. FitemsPerPage:=AValue;
  5476. MarkPropertyChanged(AIndex);
  5477. end;
  5478. Procedure TExperiments.Setkind(AIndex : Integer; const AValue : String);
  5479. begin
  5480. If (Fkind=AValue) then exit;
  5481. Fkind:=AValue;
  5482. MarkPropertyChanged(AIndex);
  5483. end;
  5484. Procedure TExperiments.SetnextLink(AIndex : Integer; const AValue : String);
  5485. begin
  5486. If (FnextLink=AValue) then exit;
  5487. FnextLink:=AValue;
  5488. MarkPropertyChanged(AIndex);
  5489. end;
  5490. Procedure TExperiments.SetpreviousLink(AIndex : Integer; const AValue : String);
  5491. begin
  5492. If (FpreviousLink=AValue) then exit;
  5493. FpreviousLink:=AValue;
  5494. MarkPropertyChanged(AIndex);
  5495. end;
  5496. Procedure TExperiments.SetstartIndex(AIndex : Integer; const AValue : integer);
  5497. begin
  5498. If (FstartIndex=AValue) then exit;
  5499. FstartIndex:=AValue;
  5500. MarkPropertyChanged(AIndex);
  5501. end;
  5502. Procedure TExperiments.SettotalResults(AIndex : Integer; const AValue : integer);
  5503. begin
  5504. If (FtotalResults=AValue) then exit;
  5505. FtotalResults:=AValue;
  5506. MarkPropertyChanged(AIndex);
  5507. end;
  5508. Procedure TExperiments.Setusername(AIndex : Integer; const AValue : String);
  5509. begin
  5510. If (Fusername=AValue) then exit;
  5511. Fusername:=AValue;
  5512. MarkPropertyChanged(AIndex);
  5513. end;
  5514. //2.6.4. bug workaround
  5515. {$IFDEF VER2_6}
  5516. Procedure TExperiments.SetArrayLength(Const AName : String; ALength : Longint);
  5517. begin
  5518. Case AName of
  5519. 'items' : SetLength(Fitems,ALength);
  5520. else
  5521. Inherited SetArrayLength(AName,ALength);
  5522. end;
  5523. end;
  5524. {$ENDIF VER2_6}
  5525. { --------------------------------------------------------------------
  5526. TFilterTypeadvancedDetails
  5527. --------------------------------------------------------------------}
  5528. Procedure TFilterTypeadvancedDetails.SetcaseSensitive(AIndex : Integer; const AValue : boolean);
  5529. begin
  5530. If (FcaseSensitive=AValue) then exit;
  5531. FcaseSensitive:=AValue;
  5532. MarkPropertyChanged(AIndex);
  5533. end;
  5534. Procedure TFilterTypeadvancedDetails.SetextractA(AIndex : Integer; const AValue : String);
  5535. begin
  5536. If (FextractA=AValue) then exit;
  5537. FextractA:=AValue;
  5538. MarkPropertyChanged(AIndex);
  5539. end;
  5540. Procedure TFilterTypeadvancedDetails.SetextractB(AIndex : Integer; const AValue : String);
  5541. begin
  5542. If (FextractB=AValue) then exit;
  5543. FextractB:=AValue;
  5544. MarkPropertyChanged(AIndex);
  5545. end;
  5546. Procedure TFilterTypeadvancedDetails.SetfieldA(AIndex : Integer; const AValue : String);
  5547. begin
  5548. If (FfieldA=AValue) then exit;
  5549. FfieldA:=AValue;
  5550. MarkPropertyChanged(AIndex);
  5551. end;
  5552. Procedure TFilterTypeadvancedDetails.SetfieldAIndex(AIndex : Integer; const AValue : integer);
  5553. begin
  5554. If (FfieldAIndex=AValue) then exit;
  5555. FfieldAIndex:=AValue;
  5556. MarkPropertyChanged(AIndex);
  5557. end;
  5558. Procedure TFilterTypeadvancedDetails.SetfieldARequired(AIndex : Integer; const AValue : boolean);
  5559. begin
  5560. If (FfieldARequired=AValue) then exit;
  5561. FfieldARequired:=AValue;
  5562. MarkPropertyChanged(AIndex);
  5563. end;
  5564. Procedure TFilterTypeadvancedDetails.SetfieldB(AIndex : Integer; const AValue : String);
  5565. begin
  5566. If (FfieldB=AValue) then exit;
  5567. FfieldB:=AValue;
  5568. MarkPropertyChanged(AIndex);
  5569. end;
  5570. Procedure TFilterTypeadvancedDetails.SetfieldBIndex(AIndex : Integer; const AValue : integer);
  5571. begin
  5572. If (FfieldBIndex=AValue) then exit;
  5573. FfieldBIndex:=AValue;
  5574. MarkPropertyChanged(AIndex);
  5575. end;
  5576. Procedure TFilterTypeadvancedDetails.SetfieldBRequired(AIndex : Integer; const AValue : boolean);
  5577. begin
  5578. If (FfieldBRequired=AValue) then exit;
  5579. FfieldBRequired:=AValue;
  5580. MarkPropertyChanged(AIndex);
  5581. end;
  5582. Procedure TFilterTypeadvancedDetails.SetoutputConstructor(AIndex : Integer; const AValue : String);
  5583. begin
  5584. If (FoutputConstructor=AValue) then exit;
  5585. FoutputConstructor:=AValue;
  5586. MarkPropertyChanged(AIndex);
  5587. end;
  5588. Procedure TFilterTypeadvancedDetails.SetoutputToField(AIndex : Integer; const AValue : String);
  5589. begin
  5590. If (FoutputToField=AValue) then exit;
  5591. FoutputToField:=AValue;
  5592. MarkPropertyChanged(AIndex);
  5593. end;
  5594. Procedure TFilterTypeadvancedDetails.SetoutputToFieldIndex(AIndex : Integer; const AValue : integer);
  5595. begin
  5596. If (FoutputToFieldIndex=AValue) then exit;
  5597. FoutputToFieldIndex:=AValue;
  5598. MarkPropertyChanged(AIndex);
  5599. end;
  5600. Procedure TFilterTypeadvancedDetails.SetoverrideOutputField(AIndex : Integer; const AValue : boolean);
  5601. begin
  5602. If (FoverrideOutputField=AValue) then exit;
  5603. FoverrideOutputField:=AValue;
  5604. MarkPropertyChanged(AIndex);
  5605. end;
  5606. { --------------------------------------------------------------------
  5607. TFilterTypelowercaseDetails
  5608. --------------------------------------------------------------------}
  5609. Procedure TFilterTypelowercaseDetails.Setfield(AIndex : Integer; const AValue : String);
  5610. begin
  5611. If (Ffield=AValue) then exit;
  5612. Ffield:=AValue;
  5613. MarkPropertyChanged(AIndex);
  5614. end;
  5615. Procedure TFilterTypelowercaseDetails.SetfieldIndex(AIndex : Integer; const AValue : integer);
  5616. begin
  5617. If (FfieldIndex=AValue) then exit;
  5618. FfieldIndex:=AValue;
  5619. MarkPropertyChanged(AIndex);
  5620. end;
  5621. { --------------------------------------------------------------------
  5622. TFilterTypeparentLink
  5623. --------------------------------------------------------------------}
  5624. Procedure TFilterTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  5625. begin
  5626. If (Fhref=AValue) then exit;
  5627. Fhref:=AValue;
  5628. MarkPropertyChanged(AIndex);
  5629. end;
  5630. Procedure TFilterTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  5631. begin
  5632. If (F_type=AValue) then exit;
  5633. F_type:=AValue;
  5634. MarkPropertyChanged(AIndex);
  5635. end;
  5636. Class Function TFilterTypeparentLink.ExportPropertyName(Const AName : String) :String;
  5637. begin
  5638. Case AName of
  5639. '_type' : Result:='type';
  5640. else
  5641. Result:=Inherited ExportPropertyName(AName);
  5642. end;
  5643. end;
  5644. { --------------------------------------------------------------------
  5645. TFilterTypesearchAndReplaceDetails
  5646. --------------------------------------------------------------------}
  5647. Procedure TFilterTypesearchAndReplaceDetails.SetcaseSensitive(AIndex : Integer; const AValue : boolean);
  5648. begin
  5649. If (FcaseSensitive=AValue) then exit;
  5650. FcaseSensitive:=AValue;
  5651. MarkPropertyChanged(AIndex);
  5652. end;
  5653. Procedure TFilterTypesearchAndReplaceDetails.Setfield(AIndex : Integer; const AValue : String);
  5654. begin
  5655. If (Ffield=AValue) then exit;
  5656. Ffield:=AValue;
  5657. MarkPropertyChanged(AIndex);
  5658. end;
  5659. Procedure TFilterTypesearchAndReplaceDetails.SetfieldIndex(AIndex : Integer; const AValue : integer);
  5660. begin
  5661. If (FfieldIndex=AValue) then exit;
  5662. FfieldIndex:=AValue;
  5663. MarkPropertyChanged(AIndex);
  5664. end;
  5665. Procedure TFilterTypesearchAndReplaceDetails.SetreplaceString(AIndex : Integer; const AValue : String);
  5666. begin
  5667. If (FreplaceString=AValue) then exit;
  5668. FreplaceString:=AValue;
  5669. MarkPropertyChanged(AIndex);
  5670. end;
  5671. Procedure TFilterTypesearchAndReplaceDetails.SetsearchString(AIndex : Integer; const AValue : String);
  5672. begin
  5673. If (FsearchString=AValue) then exit;
  5674. FsearchString:=AValue;
  5675. MarkPropertyChanged(AIndex);
  5676. end;
  5677. { --------------------------------------------------------------------
  5678. TFilterTypeuppercaseDetails
  5679. --------------------------------------------------------------------}
  5680. Procedure TFilterTypeuppercaseDetails.Setfield(AIndex : Integer; const AValue : String);
  5681. begin
  5682. If (Ffield=AValue) then exit;
  5683. Ffield:=AValue;
  5684. MarkPropertyChanged(AIndex);
  5685. end;
  5686. Procedure TFilterTypeuppercaseDetails.SetfieldIndex(AIndex : Integer; const AValue : integer);
  5687. begin
  5688. If (FfieldIndex=AValue) then exit;
  5689. FfieldIndex:=AValue;
  5690. MarkPropertyChanged(AIndex);
  5691. end;
  5692. { --------------------------------------------------------------------
  5693. TFilter
  5694. --------------------------------------------------------------------}
  5695. Procedure TFilter.SetaccountId(AIndex : Integer; const AValue : String);
  5696. begin
  5697. If (FaccountId=AValue) then exit;
  5698. FaccountId:=AValue;
  5699. MarkPropertyChanged(AIndex);
  5700. end;
  5701. Procedure TFilter.SetadvancedDetails(AIndex : Integer; const AValue : TFilterTypeadvancedDetails);
  5702. begin
  5703. If (FadvancedDetails=AValue) then exit;
  5704. FadvancedDetails:=AValue;
  5705. MarkPropertyChanged(AIndex);
  5706. end;
  5707. Procedure TFilter.Setcreated(AIndex : Integer; const AValue : TDatetime);
  5708. begin
  5709. If (Fcreated=AValue) then exit;
  5710. Fcreated:=AValue;
  5711. MarkPropertyChanged(AIndex);
  5712. end;
  5713. Procedure TFilter.SetexcludeDetails(AIndex : Integer; const AValue : TFilterExpression);
  5714. begin
  5715. If (FexcludeDetails=AValue) then exit;
  5716. FexcludeDetails:=AValue;
  5717. MarkPropertyChanged(AIndex);
  5718. end;
  5719. Procedure TFilter.Setid(AIndex : Integer; const AValue : String);
  5720. begin
  5721. If (Fid=AValue) then exit;
  5722. Fid:=AValue;
  5723. MarkPropertyChanged(AIndex);
  5724. end;
  5725. Procedure TFilter.SetincludeDetails(AIndex : Integer; const AValue : TFilterExpression);
  5726. begin
  5727. If (FincludeDetails=AValue) then exit;
  5728. FincludeDetails:=AValue;
  5729. MarkPropertyChanged(AIndex);
  5730. end;
  5731. Procedure TFilter.Setkind(AIndex : Integer; const AValue : String);
  5732. begin
  5733. If (Fkind=AValue) then exit;
  5734. Fkind:=AValue;
  5735. MarkPropertyChanged(AIndex);
  5736. end;
  5737. Procedure TFilter.SetlowercaseDetails(AIndex : Integer; const AValue : TFilterTypelowercaseDetails);
  5738. begin
  5739. If (FlowercaseDetails=AValue) then exit;
  5740. FlowercaseDetails:=AValue;
  5741. MarkPropertyChanged(AIndex);
  5742. end;
  5743. Procedure TFilter.Setname(AIndex : Integer; const AValue : String);
  5744. begin
  5745. If (Fname=AValue) then exit;
  5746. Fname:=AValue;
  5747. MarkPropertyChanged(AIndex);
  5748. end;
  5749. Procedure TFilter.SetparentLink(AIndex : Integer; const AValue : TFilterTypeparentLink);
  5750. begin
  5751. If (FparentLink=AValue) then exit;
  5752. FparentLink:=AValue;
  5753. MarkPropertyChanged(AIndex);
  5754. end;
  5755. Procedure TFilter.SetsearchAndReplaceDetails(AIndex : Integer; const AValue : TFilterTypesearchAndReplaceDetails);
  5756. begin
  5757. If (FsearchAndReplaceDetails=AValue) then exit;
  5758. FsearchAndReplaceDetails:=AValue;
  5759. MarkPropertyChanged(AIndex);
  5760. end;
  5761. Procedure TFilter.SetselfLink(AIndex : Integer; const AValue : String);
  5762. begin
  5763. If (FselfLink=AValue) then exit;
  5764. FselfLink:=AValue;
  5765. MarkPropertyChanged(AIndex);
  5766. end;
  5767. Procedure TFilter.Set_type(AIndex : Integer; const AValue : String);
  5768. begin
  5769. If (F_type=AValue) then exit;
  5770. F_type:=AValue;
  5771. MarkPropertyChanged(AIndex);
  5772. end;
  5773. Procedure TFilter.Setupdated(AIndex : Integer; const AValue : TDatetime);
  5774. begin
  5775. If (Fupdated=AValue) then exit;
  5776. Fupdated:=AValue;
  5777. MarkPropertyChanged(AIndex);
  5778. end;
  5779. Procedure TFilter.SetuppercaseDetails(AIndex : Integer; const AValue : TFilterTypeuppercaseDetails);
  5780. begin
  5781. If (FuppercaseDetails=AValue) then exit;
  5782. FuppercaseDetails:=AValue;
  5783. MarkPropertyChanged(AIndex);
  5784. end;
  5785. Class Function TFilter.ExportPropertyName(Const AName : String) :String;
  5786. begin
  5787. Case AName of
  5788. '_type' : Result:='type';
  5789. else
  5790. Result:=Inherited ExportPropertyName(AName);
  5791. end;
  5792. end;
  5793. { --------------------------------------------------------------------
  5794. TFilterExpression
  5795. --------------------------------------------------------------------}
  5796. Procedure TFilterExpression.SetcaseSensitive(AIndex : Integer; const AValue : boolean);
  5797. begin
  5798. If (FcaseSensitive=AValue) then exit;
  5799. FcaseSensitive:=AValue;
  5800. MarkPropertyChanged(AIndex);
  5801. end;
  5802. Procedure TFilterExpression.SetexpressionValue(AIndex : Integer; const AValue : String);
  5803. begin
  5804. If (FexpressionValue=AValue) then exit;
  5805. FexpressionValue:=AValue;
  5806. MarkPropertyChanged(AIndex);
  5807. end;
  5808. Procedure TFilterExpression.Setfield(AIndex : Integer; const AValue : String);
  5809. begin
  5810. If (Ffield=AValue) then exit;
  5811. Ffield:=AValue;
  5812. MarkPropertyChanged(AIndex);
  5813. end;
  5814. Procedure TFilterExpression.SetfieldIndex(AIndex : Integer; const AValue : integer);
  5815. begin
  5816. If (FfieldIndex=AValue) then exit;
  5817. FfieldIndex:=AValue;
  5818. MarkPropertyChanged(AIndex);
  5819. end;
  5820. Procedure TFilterExpression.Setkind(AIndex : Integer; const AValue : String);
  5821. begin
  5822. If (Fkind=AValue) then exit;
  5823. Fkind:=AValue;
  5824. MarkPropertyChanged(AIndex);
  5825. end;
  5826. Procedure TFilterExpression.SetmatchType(AIndex : Integer; const AValue : String);
  5827. begin
  5828. If (FmatchType=AValue) then exit;
  5829. FmatchType:=AValue;
  5830. MarkPropertyChanged(AIndex);
  5831. end;
  5832. { --------------------------------------------------------------------
  5833. TFilterRef
  5834. --------------------------------------------------------------------}
  5835. Procedure TFilterRef.SetaccountId(AIndex : Integer; const AValue : String);
  5836. begin
  5837. If (FaccountId=AValue) then exit;
  5838. FaccountId:=AValue;
  5839. MarkPropertyChanged(AIndex);
  5840. end;
  5841. Procedure TFilterRef.Sethref(AIndex : Integer; const AValue : String);
  5842. begin
  5843. If (Fhref=AValue) then exit;
  5844. Fhref:=AValue;
  5845. MarkPropertyChanged(AIndex);
  5846. end;
  5847. Procedure TFilterRef.Setid(AIndex : Integer; const AValue : String);
  5848. begin
  5849. If (Fid=AValue) then exit;
  5850. Fid:=AValue;
  5851. MarkPropertyChanged(AIndex);
  5852. end;
  5853. Procedure TFilterRef.Setkind(AIndex : Integer; const AValue : String);
  5854. begin
  5855. If (Fkind=AValue) then exit;
  5856. Fkind:=AValue;
  5857. MarkPropertyChanged(AIndex);
  5858. end;
  5859. Procedure TFilterRef.Setname(AIndex : Integer; const AValue : String);
  5860. begin
  5861. If (Fname=AValue) then exit;
  5862. Fname:=AValue;
  5863. MarkPropertyChanged(AIndex);
  5864. end;
  5865. { --------------------------------------------------------------------
  5866. TFilters
  5867. --------------------------------------------------------------------}
  5868. Procedure TFilters.Setitems(AIndex : Integer; const AValue : TFiltersTypeitemsArray);
  5869. begin
  5870. If (Fitems=AValue) then exit;
  5871. Fitems:=AValue;
  5872. MarkPropertyChanged(AIndex);
  5873. end;
  5874. Procedure TFilters.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  5875. begin
  5876. If (FitemsPerPage=AValue) then exit;
  5877. FitemsPerPage:=AValue;
  5878. MarkPropertyChanged(AIndex);
  5879. end;
  5880. Procedure TFilters.Setkind(AIndex : Integer; const AValue : String);
  5881. begin
  5882. If (Fkind=AValue) then exit;
  5883. Fkind:=AValue;
  5884. MarkPropertyChanged(AIndex);
  5885. end;
  5886. Procedure TFilters.SetnextLink(AIndex : Integer; const AValue : String);
  5887. begin
  5888. If (FnextLink=AValue) then exit;
  5889. FnextLink:=AValue;
  5890. MarkPropertyChanged(AIndex);
  5891. end;
  5892. Procedure TFilters.SetpreviousLink(AIndex : Integer; const AValue : String);
  5893. begin
  5894. If (FpreviousLink=AValue) then exit;
  5895. FpreviousLink:=AValue;
  5896. MarkPropertyChanged(AIndex);
  5897. end;
  5898. Procedure TFilters.SetstartIndex(AIndex : Integer; const AValue : integer);
  5899. begin
  5900. If (FstartIndex=AValue) then exit;
  5901. FstartIndex:=AValue;
  5902. MarkPropertyChanged(AIndex);
  5903. end;
  5904. Procedure TFilters.SettotalResults(AIndex : Integer; const AValue : integer);
  5905. begin
  5906. If (FtotalResults=AValue) then exit;
  5907. FtotalResults:=AValue;
  5908. MarkPropertyChanged(AIndex);
  5909. end;
  5910. Procedure TFilters.Setusername(AIndex : Integer; const AValue : String);
  5911. begin
  5912. If (Fusername=AValue) then exit;
  5913. Fusername:=AValue;
  5914. MarkPropertyChanged(AIndex);
  5915. end;
  5916. //2.6.4. bug workaround
  5917. {$IFDEF VER2_6}
  5918. Procedure TFilters.SetArrayLength(Const AName : String; ALength : Longint);
  5919. begin
  5920. Case AName of
  5921. 'items' : SetLength(Fitems,ALength);
  5922. else
  5923. Inherited SetArrayLength(AName,ALength);
  5924. end;
  5925. end;
  5926. {$ENDIF VER2_6}
  5927. { --------------------------------------------------------------------
  5928. TGaDataTypecolumnHeadersItem
  5929. --------------------------------------------------------------------}
  5930. Procedure TGaDataTypecolumnHeadersItem.SetcolumnType(AIndex : Integer; const AValue : String);
  5931. begin
  5932. If (FcolumnType=AValue) then exit;
  5933. FcolumnType:=AValue;
  5934. MarkPropertyChanged(AIndex);
  5935. end;
  5936. Procedure TGaDataTypecolumnHeadersItem.SetdataType(AIndex : Integer; const AValue : String);
  5937. begin
  5938. If (FdataType=AValue) then exit;
  5939. FdataType:=AValue;
  5940. MarkPropertyChanged(AIndex);
  5941. end;
  5942. Procedure TGaDataTypecolumnHeadersItem.Setname(AIndex : Integer; const AValue : String);
  5943. begin
  5944. If (Fname=AValue) then exit;
  5945. Fname:=AValue;
  5946. MarkPropertyChanged(AIndex);
  5947. end;
  5948. { --------------------------------------------------------------------
  5949. TGaDataTypedataTableTypecolsItem
  5950. --------------------------------------------------------------------}
  5951. Procedure TGaDataTypedataTableTypecolsItem.Setid(AIndex : Integer; const AValue : String);
  5952. begin
  5953. If (Fid=AValue) then exit;
  5954. Fid:=AValue;
  5955. MarkPropertyChanged(AIndex);
  5956. end;
  5957. Procedure TGaDataTypedataTableTypecolsItem.Set_label(AIndex : Integer; const AValue : String);
  5958. begin
  5959. If (F_label=AValue) then exit;
  5960. F_label:=AValue;
  5961. MarkPropertyChanged(AIndex);
  5962. end;
  5963. Procedure TGaDataTypedataTableTypecolsItem.Set_type(AIndex : Integer; const AValue : String);
  5964. begin
  5965. If (F_type=AValue) then exit;
  5966. F_type:=AValue;
  5967. MarkPropertyChanged(AIndex);
  5968. end;
  5969. Class Function TGaDataTypedataTableTypecolsItem.ExportPropertyName(Const AName : String) :String;
  5970. begin
  5971. Case AName of
  5972. '_label' : Result:='label';
  5973. '_type' : Result:='type';
  5974. else
  5975. Result:=Inherited ExportPropertyName(AName);
  5976. end;
  5977. end;
  5978. { --------------------------------------------------------------------
  5979. TGaDataTypedataTableTyperowsItemTypecItem
  5980. --------------------------------------------------------------------}
  5981. Procedure TGaDataTypedataTableTyperowsItemTypecItem.Setv(AIndex : Integer; const AValue : String);
  5982. begin
  5983. If (Fv=AValue) then exit;
  5984. Fv:=AValue;
  5985. MarkPropertyChanged(AIndex);
  5986. end;
  5987. { --------------------------------------------------------------------
  5988. TGaDataTypedataTableTyperowsItem
  5989. --------------------------------------------------------------------}
  5990. Procedure TGaDataTypedataTableTyperowsItem.Setc(AIndex : Integer; const AValue : TGaDataTypedataTableTyperowsItemTypecArray);
  5991. begin
  5992. If (Fc=AValue) then exit;
  5993. Fc:=AValue;
  5994. MarkPropertyChanged(AIndex);
  5995. end;
  5996. //2.6.4. bug workaround
  5997. {$IFDEF VER2_6}
  5998. Procedure TGaDataTypedataTableTyperowsItem.SetArrayLength(Const AName : String; ALength : Longint);
  5999. begin
  6000. Case AName of
  6001. 'c' : SetLength(Fc,ALength);
  6002. else
  6003. Inherited SetArrayLength(AName,ALength);
  6004. end;
  6005. end;
  6006. {$ENDIF VER2_6}
  6007. { --------------------------------------------------------------------
  6008. TGaDataTypedataTable
  6009. --------------------------------------------------------------------}
  6010. Procedure TGaDataTypedataTable.Setcols(AIndex : Integer; const AValue : TGaDataTypedataTableTypecolsArray);
  6011. begin
  6012. If (Fcols=AValue) then exit;
  6013. Fcols:=AValue;
  6014. MarkPropertyChanged(AIndex);
  6015. end;
  6016. Procedure TGaDataTypedataTable.Setrows(AIndex : Integer; const AValue : TGaDataTypedataTableTyperowsArray);
  6017. begin
  6018. If (Frows=AValue) then exit;
  6019. Frows:=AValue;
  6020. MarkPropertyChanged(AIndex);
  6021. end;
  6022. //2.6.4. bug workaround
  6023. {$IFDEF VER2_6}
  6024. Procedure TGaDataTypedataTable.SetArrayLength(Const AName : String; ALength : Longint);
  6025. begin
  6026. Case AName of
  6027. 'cols' : SetLength(Fcols,ALength);
  6028. 'rows' : SetLength(Frows,ALength);
  6029. else
  6030. Inherited SetArrayLength(AName,ALength);
  6031. end;
  6032. end;
  6033. {$ENDIF VER2_6}
  6034. { --------------------------------------------------------------------
  6035. TGaDataTypeprofileInfo
  6036. --------------------------------------------------------------------}
  6037. Procedure TGaDataTypeprofileInfo.SetaccountId(AIndex : Integer; const AValue : String);
  6038. begin
  6039. If (FaccountId=AValue) then exit;
  6040. FaccountId:=AValue;
  6041. MarkPropertyChanged(AIndex);
  6042. end;
  6043. Procedure TGaDataTypeprofileInfo.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  6044. begin
  6045. If (FinternalWebPropertyId=AValue) then exit;
  6046. FinternalWebPropertyId:=AValue;
  6047. MarkPropertyChanged(AIndex);
  6048. end;
  6049. Procedure TGaDataTypeprofileInfo.SetprofileId(AIndex : Integer; const AValue : String);
  6050. begin
  6051. If (FprofileId=AValue) then exit;
  6052. FprofileId:=AValue;
  6053. MarkPropertyChanged(AIndex);
  6054. end;
  6055. Procedure TGaDataTypeprofileInfo.SetprofileName(AIndex : Integer; const AValue : String);
  6056. begin
  6057. If (FprofileName=AValue) then exit;
  6058. FprofileName:=AValue;
  6059. MarkPropertyChanged(AIndex);
  6060. end;
  6061. Procedure TGaDataTypeprofileInfo.SettableId(AIndex : Integer; const AValue : String);
  6062. begin
  6063. If (FtableId=AValue) then exit;
  6064. FtableId:=AValue;
  6065. MarkPropertyChanged(AIndex);
  6066. end;
  6067. Procedure TGaDataTypeprofileInfo.SetwebPropertyId(AIndex : Integer; const AValue : String);
  6068. begin
  6069. If (FwebPropertyId=AValue) then exit;
  6070. FwebPropertyId:=AValue;
  6071. MarkPropertyChanged(AIndex);
  6072. end;
  6073. { --------------------------------------------------------------------
  6074. TGaDataTypequery
  6075. --------------------------------------------------------------------}
  6076. Procedure TGaDataTypequery.Setdimensions(AIndex : Integer; const AValue : String);
  6077. begin
  6078. If (Fdimensions=AValue) then exit;
  6079. Fdimensions:=AValue;
  6080. MarkPropertyChanged(AIndex);
  6081. end;
  6082. Procedure TGaDataTypequery.Setenddate(AIndex : Integer; const AValue : String);
  6083. begin
  6084. If (Fenddate=AValue) then exit;
  6085. Fenddate:=AValue;
  6086. MarkPropertyChanged(AIndex);
  6087. end;
  6088. Procedure TGaDataTypequery.Setfilters(AIndex : Integer; const AValue : String);
  6089. begin
  6090. If (Ffilters=AValue) then exit;
  6091. Ffilters:=AValue;
  6092. MarkPropertyChanged(AIndex);
  6093. end;
  6094. Procedure TGaDataTypequery.Setids(AIndex : Integer; const AValue : String);
  6095. begin
  6096. If (Fids=AValue) then exit;
  6097. Fids:=AValue;
  6098. MarkPropertyChanged(AIndex);
  6099. end;
  6100. Procedure TGaDataTypequery.Setmaxresults(AIndex : Integer; const AValue : integer);
  6101. begin
  6102. If (Fmaxresults=AValue) then exit;
  6103. Fmaxresults:=AValue;
  6104. MarkPropertyChanged(AIndex);
  6105. end;
  6106. Procedure TGaDataTypequery.Setmetrics(AIndex : Integer; const AValue : TStringArray);
  6107. begin
  6108. If (Fmetrics=AValue) then exit;
  6109. Fmetrics:=AValue;
  6110. MarkPropertyChanged(AIndex);
  6111. end;
  6112. Procedure TGaDataTypequery.SetsamplingLevel(AIndex : Integer; const AValue : String);
  6113. begin
  6114. If (FsamplingLevel=AValue) then exit;
  6115. FsamplingLevel:=AValue;
  6116. MarkPropertyChanged(AIndex);
  6117. end;
  6118. Procedure TGaDataTypequery.Setsegment(AIndex : Integer; const AValue : String);
  6119. begin
  6120. If (Fsegment=AValue) then exit;
  6121. Fsegment:=AValue;
  6122. MarkPropertyChanged(AIndex);
  6123. end;
  6124. Procedure TGaDataTypequery.Setsort(AIndex : Integer; const AValue : TStringArray);
  6125. begin
  6126. If (Fsort=AValue) then exit;
  6127. Fsort:=AValue;
  6128. MarkPropertyChanged(AIndex);
  6129. end;
  6130. Procedure TGaDataTypequery.Setstartdate(AIndex : Integer; const AValue : String);
  6131. begin
  6132. If (Fstartdate=AValue) then exit;
  6133. Fstartdate:=AValue;
  6134. MarkPropertyChanged(AIndex);
  6135. end;
  6136. Procedure TGaDataTypequery.Setstartindex(AIndex : Integer; const AValue : integer);
  6137. begin
  6138. If (Fstartindex=AValue) then exit;
  6139. Fstartindex:=AValue;
  6140. MarkPropertyChanged(AIndex);
  6141. end;
  6142. Class Function TGaDataTypequery.ExportPropertyName(Const AName : String) :String;
  6143. begin
  6144. Case AName of
  6145. 'enddate' : Result:='end-date';
  6146. 'maxresults' : Result:='max-results';
  6147. 'startdate' : Result:='start-date';
  6148. 'startindex' : Result:='start-index';
  6149. else
  6150. Result:=Inherited ExportPropertyName(AName);
  6151. end;
  6152. end;
  6153. //2.6.4. bug workaround
  6154. {$IFDEF VER2_6}
  6155. Procedure TGaDataTypequery.SetArrayLength(Const AName : String; ALength : Longint);
  6156. begin
  6157. Case AName of
  6158. 'metrics' : SetLength(Fmetrics,ALength);
  6159. 'sort' : SetLength(Fsort,ALength);
  6160. else
  6161. Inherited SetArrayLength(AName,ALength);
  6162. end;
  6163. end;
  6164. {$ENDIF VER2_6}
  6165. { --------------------------------------------------------------------
  6166. TGaDataTypetotalsForAllResults
  6167. --------------------------------------------------------------------}
  6168. Class Function TGaDataTypetotalsForAllResults.AllowAdditionalProperties : Boolean;
  6169. begin
  6170. Result:=True;
  6171. end;
  6172. { --------------------------------------------------------------------
  6173. TGaData
  6174. --------------------------------------------------------------------}
  6175. Procedure TGaData.SetcolumnHeaders(AIndex : Integer; const AValue : TGaDataTypecolumnHeadersArray);
  6176. begin
  6177. If (FcolumnHeaders=AValue) then exit;
  6178. FcolumnHeaders:=AValue;
  6179. MarkPropertyChanged(AIndex);
  6180. end;
  6181. Procedure TGaData.SetcontainsSampledData(AIndex : Integer; const AValue : boolean);
  6182. begin
  6183. If (FcontainsSampledData=AValue) then exit;
  6184. FcontainsSampledData:=AValue;
  6185. MarkPropertyChanged(AIndex);
  6186. end;
  6187. Procedure TGaData.SetdataTable(AIndex : Integer; const AValue : TGaDataTypedataTable);
  6188. begin
  6189. If (FdataTable=AValue) then exit;
  6190. FdataTable:=AValue;
  6191. MarkPropertyChanged(AIndex);
  6192. end;
  6193. Procedure TGaData.Setid(AIndex : Integer; const AValue : String);
  6194. begin
  6195. If (Fid=AValue) then exit;
  6196. Fid:=AValue;
  6197. MarkPropertyChanged(AIndex);
  6198. end;
  6199. Procedure TGaData.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  6200. begin
  6201. If (FitemsPerPage=AValue) then exit;
  6202. FitemsPerPage:=AValue;
  6203. MarkPropertyChanged(AIndex);
  6204. end;
  6205. Procedure TGaData.Setkind(AIndex : Integer; const AValue : String);
  6206. begin
  6207. If (Fkind=AValue) then exit;
  6208. Fkind:=AValue;
  6209. MarkPropertyChanged(AIndex);
  6210. end;
  6211. Procedure TGaData.SetnextLink(AIndex : Integer; const AValue : String);
  6212. begin
  6213. If (FnextLink=AValue) then exit;
  6214. FnextLink:=AValue;
  6215. MarkPropertyChanged(AIndex);
  6216. end;
  6217. Procedure TGaData.SetpreviousLink(AIndex : Integer; const AValue : String);
  6218. begin
  6219. If (FpreviousLink=AValue) then exit;
  6220. FpreviousLink:=AValue;
  6221. MarkPropertyChanged(AIndex);
  6222. end;
  6223. Procedure TGaData.SetprofileInfo(AIndex : Integer; const AValue : TGaDataTypeprofileInfo);
  6224. begin
  6225. If (FprofileInfo=AValue) then exit;
  6226. FprofileInfo:=AValue;
  6227. MarkPropertyChanged(AIndex);
  6228. end;
  6229. Procedure TGaData.Setquery(AIndex : Integer; const AValue : TGaDataTypequery);
  6230. begin
  6231. If (Fquery=AValue) then exit;
  6232. Fquery:=AValue;
  6233. MarkPropertyChanged(AIndex);
  6234. end;
  6235. Procedure TGaData.Setrows(AIndex : Integer; const AValue : TGaDataTyperowsArray);
  6236. begin
  6237. If (Frows=AValue) then exit;
  6238. Frows:=AValue;
  6239. MarkPropertyChanged(AIndex);
  6240. end;
  6241. Procedure TGaData.SetsampleSize(AIndex : Integer; const AValue : String);
  6242. begin
  6243. If (FsampleSize=AValue) then exit;
  6244. FsampleSize:=AValue;
  6245. MarkPropertyChanged(AIndex);
  6246. end;
  6247. Procedure TGaData.SetsampleSpace(AIndex : Integer; const AValue : String);
  6248. begin
  6249. If (FsampleSpace=AValue) then exit;
  6250. FsampleSpace:=AValue;
  6251. MarkPropertyChanged(AIndex);
  6252. end;
  6253. Procedure TGaData.SetselfLink(AIndex : Integer; const AValue : String);
  6254. begin
  6255. If (FselfLink=AValue) then exit;
  6256. FselfLink:=AValue;
  6257. MarkPropertyChanged(AIndex);
  6258. end;
  6259. Procedure TGaData.SettotalResults(AIndex : Integer; const AValue : integer);
  6260. begin
  6261. If (FtotalResults=AValue) then exit;
  6262. FtotalResults:=AValue;
  6263. MarkPropertyChanged(AIndex);
  6264. end;
  6265. Procedure TGaData.SettotalsForAllResults(AIndex : Integer; const AValue : TGaDataTypetotalsForAllResults);
  6266. begin
  6267. If (FtotalsForAllResults=AValue) then exit;
  6268. FtotalsForAllResults:=AValue;
  6269. MarkPropertyChanged(AIndex);
  6270. end;
  6271. //2.6.4. bug workaround
  6272. {$IFDEF VER2_6}
  6273. Procedure TGaData.SetArrayLength(Const AName : String; ALength : Longint);
  6274. begin
  6275. Case AName of
  6276. 'columnheaders' : SetLength(FcolumnHeaders,ALength);
  6277. 'rows' : SetLength(Frows,ALength);
  6278. else
  6279. Inherited SetArrayLength(AName,ALength);
  6280. end;
  6281. end;
  6282. {$ENDIF VER2_6}
  6283. { --------------------------------------------------------------------
  6284. TGoalTypeeventDetailsTypeeventConditionsItem
  6285. --------------------------------------------------------------------}
  6286. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.SetcomparisonType(AIndex : Integer; const AValue : String);
  6287. begin
  6288. If (FcomparisonType=AValue) then exit;
  6289. FcomparisonType:=AValue;
  6290. MarkPropertyChanged(AIndex);
  6291. end;
  6292. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.SetcomparisonValue(AIndex : Integer; const AValue : String);
  6293. begin
  6294. If (FcomparisonValue=AValue) then exit;
  6295. FcomparisonValue:=AValue;
  6296. MarkPropertyChanged(AIndex);
  6297. end;
  6298. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.Setexpression(AIndex : Integer; const AValue : String);
  6299. begin
  6300. If (Fexpression=AValue) then exit;
  6301. Fexpression:=AValue;
  6302. MarkPropertyChanged(AIndex);
  6303. end;
  6304. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.SetmatchType(AIndex : Integer; const AValue : String);
  6305. begin
  6306. If (FmatchType=AValue) then exit;
  6307. FmatchType:=AValue;
  6308. MarkPropertyChanged(AIndex);
  6309. end;
  6310. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.Set_type(AIndex : Integer; const AValue : String);
  6311. begin
  6312. If (F_type=AValue) then exit;
  6313. F_type:=AValue;
  6314. MarkPropertyChanged(AIndex);
  6315. end;
  6316. Class Function TGoalTypeeventDetailsTypeeventConditionsItem.ExportPropertyName(Const AName : String) :String;
  6317. begin
  6318. Case AName of
  6319. '_type' : Result:='type';
  6320. else
  6321. Result:=Inherited ExportPropertyName(AName);
  6322. end;
  6323. end;
  6324. { --------------------------------------------------------------------
  6325. TGoalTypeeventDetails
  6326. --------------------------------------------------------------------}
  6327. Procedure TGoalTypeeventDetails.SeteventConditions(AIndex : Integer; const AValue : TGoalTypeeventDetailsTypeeventConditionsArray);
  6328. begin
  6329. If (FeventConditions=AValue) then exit;
  6330. FeventConditions:=AValue;
  6331. MarkPropertyChanged(AIndex);
  6332. end;
  6333. Procedure TGoalTypeeventDetails.SetuseEventValue(AIndex : Integer; const AValue : boolean);
  6334. begin
  6335. If (FuseEventValue=AValue) then exit;
  6336. FuseEventValue:=AValue;
  6337. MarkPropertyChanged(AIndex);
  6338. end;
  6339. //2.6.4. bug workaround
  6340. {$IFDEF VER2_6}
  6341. Procedure TGoalTypeeventDetails.SetArrayLength(Const AName : String; ALength : Longint);
  6342. begin
  6343. Case AName of
  6344. 'eventconditions' : SetLength(FeventConditions,ALength);
  6345. else
  6346. Inherited SetArrayLength(AName,ALength);
  6347. end;
  6348. end;
  6349. {$ENDIF VER2_6}
  6350. { --------------------------------------------------------------------
  6351. TGoalTypeparentLink
  6352. --------------------------------------------------------------------}
  6353. Procedure TGoalTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  6354. begin
  6355. If (Fhref=AValue) then exit;
  6356. Fhref:=AValue;
  6357. MarkPropertyChanged(AIndex);
  6358. end;
  6359. Procedure TGoalTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  6360. begin
  6361. If (F_type=AValue) then exit;
  6362. F_type:=AValue;
  6363. MarkPropertyChanged(AIndex);
  6364. end;
  6365. Class Function TGoalTypeparentLink.ExportPropertyName(Const AName : String) :String;
  6366. begin
  6367. Case AName of
  6368. '_type' : Result:='type';
  6369. else
  6370. Result:=Inherited ExportPropertyName(AName);
  6371. end;
  6372. end;
  6373. { --------------------------------------------------------------------
  6374. TGoalTypeurlDestinationDetailsTypestepsItem
  6375. --------------------------------------------------------------------}
  6376. Procedure TGoalTypeurlDestinationDetailsTypestepsItem.Setname(AIndex : Integer; const AValue : String);
  6377. begin
  6378. If (Fname=AValue) then exit;
  6379. Fname:=AValue;
  6380. MarkPropertyChanged(AIndex);
  6381. end;
  6382. Procedure TGoalTypeurlDestinationDetailsTypestepsItem.Setnumber(AIndex : Integer; const AValue : integer);
  6383. begin
  6384. If (Fnumber=AValue) then exit;
  6385. Fnumber:=AValue;
  6386. MarkPropertyChanged(AIndex);
  6387. end;
  6388. Procedure TGoalTypeurlDestinationDetailsTypestepsItem.Seturl(AIndex : Integer; const AValue : String);
  6389. begin
  6390. If (Furl=AValue) then exit;
  6391. Furl:=AValue;
  6392. MarkPropertyChanged(AIndex);
  6393. end;
  6394. { --------------------------------------------------------------------
  6395. TGoalTypeurlDestinationDetails
  6396. --------------------------------------------------------------------}
  6397. Procedure TGoalTypeurlDestinationDetails.SetcaseSensitive(AIndex : Integer; const AValue : boolean);
  6398. begin
  6399. If (FcaseSensitive=AValue) then exit;
  6400. FcaseSensitive:=AValue;
  6401. MarkPropertyChanged(AIndex);
  6402. end;
  6403. Procedure TGoalTypeurlDestinationDetails.SetfirstStepRequired(AIndex : Integer; const AValue : boolean);
  6404. begin
  6405. If (FfirstStepRequired=AValue) then exit;
  6406. FfirstStepRequired:=AValue;
  6407. MarkPropertyChanged(AIndex);
  6408. end;
  6409. Procedure TGoalTypeurlDestinationDetails.SetmatchType(AIndex : Integer; const AValue : String);
  6410. begin
  6411. If (FmatchType=AValue) then exit;
  6412. FmatchType:=AValue;
  6413. MarkPropertyChanged(AIndex);
  6414. end;
  6415. Procedure TGoalTypeurlDestinationDetails.Setsteps(AIndex : Integer; const AValue : TGoalTypeurlDestinationDetailsTypestepsArray);
  6416. begin
  6417. If (Fsteps=AValue) then exit;
  6418. Fsteps:=AValue;
  6419. MarkPropertyChanged(AIndex);
  6420. end;
  6421. Procedure TGoalTypeurlDestinationDetails.Seturl(AIndex : Integer; const AValue : String);
  6422. begin
  6423. If (Furl=AValue) then exit;
  6424. Furl:=AValue;
  6425. MarkPropertyChanged(AIndex);
  6426. end;
  6427. //2.6.4. bug workaround
  6428. {$IFDEF VER2_6}
  6429. Procedure TGoalTypeurlDestinationDetails.SetArrayLength(Const AName : String; ALength : Longint);
  6430. begin
  6431. Case AName of
  6432. 'steps' : SetLength(Fsteps,ALength);
  6433. else
  6434. Inherited SetArrayLength(AName,ALength);
  6435. end;
  6436. end;
  6437. {$ENDIF VER2_6}
  6438. { --------------------------------------------------------------------
  6439. TGoalTypevisitNumPagesDetails
  6440. --------------------------------------------------------------------}
  6441. Procedure TGoalTypevisitNumPagesDetails.SetcomparisonType(AIndex : Integer; const AValue : String);
  6442. begin
  6443. If (FcomparisonType=AValue) then exit;
  6444. FcomparisonType:=AValue;
  6445. MarkPropertyChanged(AIndex);
  6446. end;
  6447. Procedure TGoalTypevisitNumPagesDetails.SetcomparisonValue(AIndex : Integer; const AValue : String);
  6448. begin
  6449. If (FcomparisonValue=AValue) then exit;
  6450. FcomparisonValue:=AValue;
  6451. MarkPropertyChanged(AIndex);
  6452. end;
  6453. { --------------------------------------------------------------------
  6454. TGoalTypevisitTimeOnSiteDetails
  6455. --------------------------------------------------------------------}
  6456. Procedure TGoalTypevisitTimeOnSiteDetails.SetcomparisonType(AIndex : Integer; const AValue : String);
  6457. begin
  6458. If (FcomparisonType=AValue) then exit;
  6459. FcomparisonType:=AValue;
  6460. MarkPropertyChanged(AIndex);
  6461. end;
  6462. Procedure TGoalTypevisitTimeOnSiteDetails.SetcomparisonValue(AIndex : Integer; const AValue : String);
  6463. begin
  6464. If (FcomparisonValue=AValue) then exit;
  6465. FcomparisonValue:=AValue;
  6466. MarkPropertyChanged(AIndex);
  6467. end;
  6468. { --------------------------------------------------------------------
  6469. TGoal
  6470. --------------------------------------------------------------------}
  6471. Procedure TGoal.SetaccountId(AIndex : Integer; const AValue : String);
  6472. begin
  6473. If (FaccountId=AValue) then exit;
  6474. FaccountId:=AValue;
  6475. MarkPropertyChanged(AIndex);
  6476. end;
  6477. Procedure TGoal.Setactive(AIndex : Integer; const AValue : boolean);
  6478. begin
  6479. If (Factive=AValue) then exit;
  6480. Factive:=AValue;
  6481. MarkPropertyChanged(AIndex);
  6482. end;
  6483. Procedure TGoal.Setcreated(AIndex : Integer; const AValue : TDatetime);
  6484. begin
  6485. If (Fcreated=AValue) then exit;
  6486. Fcreated:=AValue;
  6487. MarkPropertyChanged(AIndex);
  6488. end;
  6489. Procedure TGoal.SeteventDetails(AIndex : Integer; const AValue : TGoalTypeeventDetails);
  6490. begin
  6491. If (FeventDetails=AValue) then exit;
  6492. FeventDetails:=AValue;
  6493. MarkPropertyChanged(AIndex);
  6494. end;
  6495. Procedure TGoal.Setid(AIndex : Integer; const AValue : String);
  6496. begin
  6497. If (Fid=AValue) then exit;
  6498. Fid:=AValue;
  6499. MarkPropertyChanged(AIndex);
  6500. end;
  6501. Procedure TGoal.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  6502. begin
  6503. If (FinternalWebPropertyId=AValue) then exit;
  6504. FinternalWebPropertyId:=AValue;
  6505. MarkPropertyChanged(AIndex);
  6506. end;
  6507. Procedure TGoal.Setkind(AIndex : Integer; const AValue : String);
  6508. begin
  6509. If (Fkind=AValue) then exit;
  6510. Fkind:=AValue;
  6511. MarkPropertyChanged(AIndex);
  6512. end;
  6513. Procedure TGoal.Setname(AIndex : Integer; const AValue : String);
  6514. begin
  6515. If (Fname=AValue) then exit;
  6516. Fname:=AValue;
  6517. MarkPropertyChanged(AIndex);
  6518. end;
  6519. Procedure TGoal.SetparentLink(AIndex : Integer; const AValue : TGoalTypeparentLink);
  6520. begin
  6521. If (FparentLink=AValue) then exit;
  6522. FparentLink:=AValue;
  6523. MarkPropertyChanged(AIndex);
  6524. end;
  6525. Procedure TGoal.SetprofileId(AIndex : Integer; const AValue : String);
  6526. begin
  6527. If (FprofileId=AValue) then exit;
  6528. FprofileId:=AValue;
  6529. MarkPropertyChanged(AIndex);
  6530. end;
  6531. Procedure TGoal.SetselfLink(AIndex : Integer; const AValue : String);
  6532. begin
  6533. If (FselfLink=AValue) then exit;
  6534. FselfLink:=AValue;
  6535. MarkPropertyChanged(AIndex);
  6536. end;
  6537. Procedure TGoal.Set_type(AIndex : Integer; const AValue : String);
  6538. begin
  6539. If (F_type=AValue) then exit;
  6540. F_type:=AValue;
  6541. MarkPropertyChanged(AIndex);
  6542. end;
  6543. Procedure TGoal.Setupdated(AIndex : Integer; const AValue : TDatetime);
  6544. begin
  6545. If (Fupdated=AValue) then exit;
  6546. Fupdated:=AValue;
  6547. MarkPropertyChanged(AIndex);
  6548. end;
  6549. Procedure TGoal.SeturlDestinationDetails(AIndex : Integer; const AValue : TGoalTypeurlDestinationDetails);
  6550. begin
  6551. If (FurlDestinationDetails=AValue) then exit;
  6552. FurlDestinationDetails:=AValue;
  6553. MarkPropertyChanged(AIndex);
  6554. end;
  6555. Procedure TGoal.Setvalue(AIndex : Integer; const AValue : integer);
  6556. begin
  6557. If (Fvalue=AValue) then exit;
  6558. Fvalue:=AValue;
  6559. MarkPropertyChanged(AIndex);
  6560. end;
  6561. Procedure TGoal.SetvisitNumPagesDetails(AIndex : Integer; const AValue : TGoalTypevisitNumPagesDetails);
  6562. begin
  6563. If (FvisitNumPagesDetails=AValue) then exit;
  6564. FvisitNumPagesDetails:=AValue;
  6565. MarkPropertyChanged(AIndex);
  6566. end;
  6567. Procedure TGoal.SetvisitTimeOnSiteDetails(AIndex : Integer; const AValue : TGoalTypevisitTimeOnSiteDetails);
  6568. begin
  6569. If (FvisitTimeOnSiteDetails=AValue) then exit;
  6570. FvisitTimeOnSiteDetails:=AValue;
  6571. MarkPropertyChanged(AIndex);
  6572. end;
  6573. Procedure TGoal.SetwebPropertyId(AIndex : Integer; const AValue : String);
  6574. begin
  6575. If (FwebPropertyId=AValue) then exit;
  6576. FwebPropertyId:=AValue;
  6577. MarkPropertyChanged(AIndex);
  6578. end;
  6579. Class Function TGoal.ExportPropertyName(Const AName : String) :String;
  6580. begin
  6581. Case AName of
  6582. '_type' : Result:='type';
  6583. else
  6584. Result:=Inherited ExportPropertyName(AName);
  6585. end;
  6586. end;
  6587. { --------------------------------------------------------------------
  6588. TGoals
  6589. --------------------------------------------------------------------}
  6590. Procedure TGoals.Setitems(AIndex : Integer; const AValue : TGoalsTypeitemsArray);
  6591. begin
  6592. If (Fitems=AValue) then exit;
  6593. Fitems:=AValue;
  6594. MarkPropertyChanged(AIndex);
  6595. end;
  6596. Procedure TGoals.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  6597. begin
  6598. If (FitemsPerPage=AValue) then exit;
  6599. FitemsPerPage:=AValue;
  6600. MarkPropertyChanged(AIndex);
  6601. end;
  6602. Procedure TGoals.Setkind(AIndex : Integer; const AValue : String);
  6603. begin
  6604. If (Fkind=AValue) then exit;
  6605. Fkind:=AValue;
  6606. MarkPropertyChanged(AIndex);
  6607. end;
  6608. Procedure TGoals.SetnextLink(AIndex : Integer; const AValue : String);
  6609. begin
  6610. If (FnextLink=AValue) then exit;
  6611. FnextLink:=AValue;
  6612. MarkPropertyChanged(AIndex);
  6613. end;
  6614. Procedure TGoals.SetpreviousLink(AIndex : Integer; const AValue : String);
  6615. begin
  6616. If (FpreviousLink=AValue) then exit;
  6617. FpreviousLink:=AValue;
  6618. MarkPropertyChanged(AIndex);
  6619. end;
  6620. Procedure TGoals.SetstartIndex(AIndex : Integer; const AValue : integer);
  6621. begin
  6622. If (FstartIndex=AValue) then exit;
  6623. FstartIndex:=AValue;
  6624. MarkPropertyChanged(AIndex);
  6625. end;
  6626. Procedure TGoals.SettotalResults(AIndex : Integer; const AValue : integer);
  6627. begin
  6628. If (FtotalResults=AValue) then exit;
  6629. FtotalResults:=AValue;
  6630. MarkPropertyChanged(AIndex);
  6631. end;
  6632. Procedure TGoals.Setusername(AIndex : Integer; const AValue : String);
  6633. begin
  6634. If (Fusername=AValue) then exit;
  6635. Fusername:=AValue;
  6636. MarkPropertyChanged(AIndex);
  6637. end;
  6638. //2.6.4. bug workaround
  6639. {$IFDEF VER2_6}
  6640. Procedure TGoals.SetArrayLength(Const AName : String; ALength : Longint);
  6641. begin
  6642. Case AName of
  6643. 'items' : SetLength(Fitems,ALength);
  6644. else
  6645. Inherited SetArrayLength(AName,ALength);
  6646. end;
  6647. end;
  6648. {$ENDIF VER2_6}
  6649. { --------------------------------------------------------------------
  6650. TMcfDataTypecolumnHeadersItem
  6651. --------------------------------------------------------------------}
  6652. Procedure TMcfDataTypecolumnHeadersItem.SetcolumnType(AIndex : Integer; const AValue : String);
  6653. begin
  6654. If (FcolumnType=AValue) then exit;
  6655. FcolumnType:=AValue;
  6656. MarkPropertyChanged(AIndex);
  6657. end;
  6658. Procedure TMcfDataTypecolumnHeadersItem.SetdataType(AIndex : Integer; const AValue : String);
  6659. begin
  6660. If (FdataType=AValue) then exit;
  6661. FdataType:=AValue;
  6662. MarkPropertyChanged(AIndex);
  6663. end;
  6664. Procedure TMcfDataTypecolumnHeadersItem.Setname(AIndex : Integer; const AValue : String);
  6665. begin
  6666. If (Fname=AValue) then exit;
  6667. Fname:=AValue;
  6668. MarkPropertyChanged(AIndex);
  6669. end;
  6670. { --------------------------------------------------------------------
  6671. TMcfDataTypeprofileInfo
  6672. --------------------------------------------------------------------}
  6673. Procedure TMcfDataTypeprofileInfo.SetaccountId(AIndex : Integer; const AValue : String);
  6674. begin
  6675. If (FaccountId=AValue) then exit;
  6676. FaccountId:=AValue;
  6677. MarkPropertyChanged(AIndex);
  6678. end;
  6679. Procedure TMcfDataTypeprofileInfo.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  6680. begin
  6681. If (FinternalWebPropertyId=AValue) then exit;
  6682. FinternalWebPropertyId:=AValue;
  6683. MarkPropertyChanged(AIndex);
  6684. end;
  6685. Procedure TMcfDataTypeprofileInfo.SetprofileId(AIndex : Integer; const AValue : String);
  6686. begin
  6687. If (FprofileId=AValue) then exit;
  6688. FprofileId:=AValue;
  6689. MarkPropertyChanged(AIndex);
  6690. end;
  6691. Procedure TMcfDataTypeprofileInfo.SetprofileName(AIndex : Integer; const AValue : String);
  6692. begin
  6693. If (FprofileName=AValue) then exit;
  6694. FprofileName:=AValue;
  6695. MarkPropertyChanged(AIndex);
  6696. end;
  6697. Procedure TMcfDataTypeprofileInfo.SettableId(AIndex : Integer; const AValue : String);
  6698. begin
  6699. If (FtableId=AValue) then exit;
  6700. FtableId:=AValue;
  6701. MarkPropertyChanged(AIndex);
  6702. end;
  6703. Procedure TMcfDataTypeprofileInfo.SetwebPropertyId(AIndex : Integer; const AValue : String);
  6704. begin
  6705. If (FwebPropertyId=AValue) then exit;
  6706. FwebPropertyId:=AValue;
  6707. MarkPropertyChanged(AIndex);
  6708. end;
  6709. { --------------------------------------------------------------------
  6710. TMcfDataTypequery
  6711. --------------------------------------------------------------------}
  6712. Procedure TMcfDataTypequery.Setdimensions(AIndex : Integer; const AValue : String);
  6713. begin
  6714. If (Fdimensions=AValue) then exit;
  6715. Fdimensions:=AValue;
  6716. MarkPropertyChanged(AIndex);
  6717. end;
  6718. Procedure TMcfDataTypequery.Setenddate(AIndex : Integer; const AValue : String);
  6719. begin
  6720. If (Fenddate=AValue) then exit;
  6721. Fenddate:=AValue;
  6722. MarkPropertyChanged(AIndex);
  6723. end;
  6724. Procedure TMcfDataTypequery.Setfilters(AIndex : Integer; const AValue : String);
  6725. begin
  6726. If (Ffilters=AValue) then exit;
  6727. Ffilters:=AValue;
  6728. MarkPropertyChanged(AIndex);
  6729. end;
  6730. Procedure TMcfDataTypequery.Setids(AIndex : Integer; const AValue : String);
  6731. begin
  6732. If (Fids=AValue) then exit;
  6733. Fids:=AValue;
  6734. MarkPropertyChanged(AIndex);
  6735. end;
  6736. Procedure TMcfDataTypequery.Setmaxresults(AIndex : Integer; const AValue : integer);
  6737. begin
  6738. If (Fmaxresults=AValue) then exit;
  6739. Fmaxresults:=AValue;
  6740. MarkPropertyChanged(AIndex);
  6741. end;
  6742. Procedure TMcfDataTypequery.Setmetrics(AIndex : Integer; const AValue : TStringArray);
  6743. begin
  6744. If (Fmetrics=AValue) then exit;
  6745. Fmetrics:=AValue;
  6746. MarkPropertyChanged(AIndex);
  6747. end;
  6748. Procedure TMcfDataTypequery.SetsamplingLevel(AIndex : Integer; const AValue : String);
  6749. begin
  6750. If (FsamplingLevel=AValue) then exit;
  6751. FsamplingLevel:=AValue;
  6752. MarkPropertyChanged(AIndex);
  6753. end;
  6754. Procedure TMcfDataTypequery.Setsegment(AIndex : Integer; const AValue : String);
  6755. begin
  6756. If (Fsegment=AValue) then exit;
  6757. Fsegment:=AValue;
  6758. MarkPropertyChanged(AIndex);
  6759. end;
  6760. Procedure TMcfDataTypequery.Setsort(AIndex : Integer; const AValue : TStringArray);
  6761. begin
  6762. If (Fsort=AValue) then exit;
  6763. Fsort:=AValue;
  6764. MarkPropertyChanged(AIndex);
  6765. end;
  6766. Procedure TMcfDataTypequery.Setstartdate(AIndex : Integer; const AValue : String);
  6767. begin
  6768. If (Fstartdate=AValue) then exit;
  6769. Fstartdate:=AValue;
  6770. MarkPropertyChanged(AIndex);
  6771. end;
  6772. Procedure TMcfDataTypequery.Setstartindex(AIndex : Integer; const AValue : integer);
  6773. begin
  6774. If (Fstartindex=AValue) then exit;
  6775. Fstartindex:=AValue;
  6776. MarkPropertyChanged(AIndex);
  6777. end;
  6778. Class Function TMcfDataTypequery.ExportPropertyName(Const AName : String) :String;
  6779. begin
  6780. Case AName of
  6781. 'enddate' : Result:='end-date';
  6782. 'maxresults' : Result:='max-results';
  6783. 'startdate' : Result:='start-date';
  6784. 'startindex' : Result:='start-index';
  6785. else
  6786. Result:=Inherited ExportPropertyName(AName);
  6787. end;
  6788. end;
  6789. //2.6.4. bug workaround
  6790. {$IFDEF VER2_6}
  6791. Procedure TMcfDataTypequery.SetArrayLength(Const AName : String; ALength : Longint);
  6792. begin
  6793. Case AName of
  6794. 'metrics' : SetLength(Fmetrics,ALength);
  6795. 'sort' : SetLength(Fsort,ALength);
  6796. else
  6797. Inherited SetArrayLength(AName,ALength);
  6798. end;
  6799. end;
  6800. {$ENDIF VER2_6}
  6801. { --------------------------------------------------------------------
  6802. TMcfDataTyperowsItemItemTypeconversionPathValueItem
  6803. --------------------------------------------------------------------}
  6804. Procedure TMcfDataTyperowsItemItemTypeconversionPathValueItem.SetinteractionType(AIndex : Integer; const AValue : String);
  6805. begin
  6806. If (FinteractionType=AValue) then exit;
  6807. FinteractionType:=AValue;
  6808. MarkPropertyChanged(AIndex);
  6809. end;
  6810. Procedure TMcfDataTyperowsItemItemTypeconversionPathValueItem.SetnodeValue(AIndex : Integer; const AValue : String);
  6811. begin
  6812. If (FnodeValue=AValue) then exit;
  6813. FnodeValue:=AValue;
  6814. MarkPropertyChanged(AIndex);
  6815. end;
  6816. { --------------------------------------------------------------------
  6817. TMcfDataTyperowsItemItem
  6818. --------------------------------------------------------------------}
  6819. Procedure TMcfDataTyperowsItemItem.SetconversionPathValue(AIndex : Integer; const AValue : TMcfDataTyperowsItemItemTypeconversionPathValueArray);
  6820. begin
  6821. If (FconversionPathValue=AValue) then exit;
  6822. FconversionPathValue:=AValue;
  6823. MarkPropertyChanged(AIndex);
  6824. end;
  6825. Procedure TMcfDataTyperowsItemItem.SetprimitiveValue(AIndex : Integer; const AValue : String);
  6826. begin
  6827. If (FprimitiveValue=AValue) then exit;
  6828. FprimitiveValue:=AValue;
  6829. MarkPropertyChanged(AIndex);
  6830. end;
  6831. //2.6.4. bug workaround
  6832. {$IFDEF VER2_6}
  6833. Procedure TMcfDataTyperowsItemItem.SetArrayLength(Const AName : String; ALength : Longint);
  6834. begin
  6835. Case AName of
  6836. 'conversionpathvalue' : SetLength(FconversionPathValue,ALength);
  6837. else
  6838. Inherited SetArrayLength(AName,ALength);
  6839. end;
  6840. end;
  6841. {$ENDIF VER2_6}
  6842. { --------------------------------------------------------------------
  6843. TMcfDataTypetotalsForAllResults
  6844. --------------------------------------------------------------------}
  6845. Class Function TMcfDataTypetotalsForAllResults.AllowAdditionalProperties : Boolean;
  6846. begin
  6847. Result:=True;
  6848. end;
  6849. { --------------------------------------------------------------------
  6850. TMcfData
  6851. --------------------------------------------------------------------}
  6852. Procedure TMcfData.SetcolumnHeaders(AIndex : Integer; const AValue : TMcfDataTypecolumnHeadersArray);
  6853. begin
  6854. If (FcolumnHeaders=AValue) then exit;
  6855. FcolumnHeaders:=AValue;
  6856. MarkPropertyChanged(AIndex);
  6857. end;
  6858. Procedure TMcfData.SetcontainsSampledData(AIndex : Integer; const AValue : boolean);
  6859. begin
  6860. If (FcontainsSampledData=AValue) then exit;
  6861. FcontainsSampledData:=AValue;
  6862. MarkPropertyChanged(AIndex);
  6863. end;
  6864. Procedure TMcfData.Setid(AIndex : Integer; const AValue : String);
  6865. begin
  6866. If (Fid=AValue) then exit;
  6867. Fid:=AValue;
  6868. MarkPropertyChanged(AIndex);
  6869. end;
  6870. Procedure TMcfData.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  6871. begin
  6872. If (FitemsPerPage=AValue) then exit;
  6873. FitemsPerPage:=AValue;
  6874. MarkPropertyChanged(AIndex);
  6875. end;
  6876. Procedure TMcfData.Setkind(AIndex : Integer; const AValue : String);
  6877. begin
  6878. If (Fkind=AValue) then exit;
  6879. Fkind:=AValue;
  6880. MarkPropertyChanged(AIndex);
  6881. end;
  6882. Procedure TMcfData.SetnextLink(AIndex : Integer; const AValue : String);
  6883. begin
  6884. If (FnextLink=AValue) then exit;
  6885. FnextLink:=AValue;
  6886. MarkPropertyChanged(AIndex);
  6887. end;
  6888. Procedure TMcfData.SetpreviousLink(AIndex : Integer; const AValue : String);
  6889. begin
  6890. If (FpreviousLink=AValue) then exit;
  6891. FpreviousLink:=AValue;
  6892. MarkPropertyChanged(AIndex);
  6893. end;
  6894. Procedure TMcfData.SetprofileInfo(AIndex : Integer; const AValue : TMcfDataTypeprofileInfo);
  6895. begin
  6896. If (FprofileInfo=AValue) then exit;
  6897. FprofileInfo:=AValue;
  6898. MarkPropertyChanged(AIndex);
  6899. end;
  6900. Procedure TMcfData.Setquery(AIndex : Integer; const AValue : TMcfDataTypequery);
  6901. begin
  6902. If (Fquery=AValue) then exit;
  6903. Fquery:=AValue;
  6904. MarkPropertyChanged(AIndex);
  6905. end;
  6906. Procedure TMcfData.Setrows(AIndex : Integer; const AValue : TMcfDataTyperowsArray);
  6907. begin
  6908. If (Frows=AValue) then exit;
  6909. Frows:=AValue;
  6910. MarkPropertyChanged(AIndex);
  6911. end;
  6912. Procedure TMcfData.SetsampleSize(AIndex : Integer; const AValue : String);
  6913. begin
  6914. If (FsampleSize=AValue) then exit;
  6915. FsampleSize:=AValue;
  6916. MarkPropertyChanged(AIndex);
  6917. end;
  6918. Procedure TMcfData.SetsampleSpace(AIndex : Integer; const AValue : String);
  6919. begin
  6920. If (FsampleSpace=AValue) then exit;
  6921. FsampleSpace:=AValue;
  6922. MarkPropertyChanged(AIndex);
  6923. end;
  6924. Procedure TMcfData.SetselfLink(AIndex : Integer; const AValue : String);
  6925. begin
  6926. If (FselfLink=AValue) then exit;
  6927. FselfLink:=AValue;
  6928. MarkPropertyChanged(AIndex);
  6929. end;
  6930. Procedure TMcfData.SettotalResults(AIndex : Integer; const AValue : integer);
  6931. begin
  6932. If (FtotalResults=AValue) then exit;
  6933. FtotalResults:=AValue;
  6934. MarkPropertyChanged(AIndex);
  6935. end;
  6936. Procedure TMcfData.SettotalsForAllResults(AIndex : Integer; const AValue : TMcfDataTypetotalsForAllResults);
  6937. begin
  6938. If (FtotalsForAllResults=AValue) then exit;
  6939. FtotalsForAllResults:=AValue;
  6940. MarkPropertyChanged(AIndex);
  6941. end;
  6942. //2.6.4. bug workaround
  6943. {$IFDEF VER2_6}
  6944. Procedure TMcfData.SetArrayLength(Const AName : String; ALength : Longint);
  6945. begin
  6946. Case AName of
  6947. 'columnheaders' : SetLength(FcolumnHeaders,ALength);
  6948. 'rows' : SetLength(Frows,ALength);
  6949. else
  6950. Inherited SetArrayLength(AName,ALength);
  6951. end;
  6952. end;
  6953. {$ENDIF VER2_6}
  6954. { --------------------------------------------------------------------
  6955. TProfileTypechildLink
  6956. --------------------------------------------------------------------}
  6957. Procedure TProfileTypechildLink.Sethref(AIndex : Integer; const AValue : String);
  6958. begin
  6959. If (Fhref=AValue) then exit;
  6960. Fhref:=AValue;
  6961. MarkPropertyChanged(AIndex);
  6962. end;
  6963. Procedure TProfileTypechildLink.Set_type(AIndex : Integer; const AValue : String);
  6964. begin
  6965. If (F_type=AValue) then exit;
  6966. F_type:=AValue;
  6967. MarkPropertyChanged(AIndex);
  6968. end;
  6969. Class Function TProfileTypechildLink.ExportPropertyName(Const AName : String) :String;
  6970. begin
  6971. Case AName of
  6972. '_type' : Result:='type';
  6973. else
  6974. Result:=Inherited ExportPropertyName(AName);
  6975. end;
  6976. end;
  6977. { --------------------------------------------------------------------
  6978. TProfileTypeparentLink
  6979. --------------------------------------------------------------------}
  6980. Procedure TProfileTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  6981. begin
  6982. If (Fhref=AValue) then exit;
  6983. Fhref:=AValue;
  6984. MarkPropertyChanged(AIndex);
  6985. end;
  6986. Procedure TProfileTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  6987. begin
  6988. If (F_type=AValue) then exit;
  6989. F_type:=AValue;
  6990. MarkPropertyChanged(AIndex);
  6991. end;
  6992. Class Function TProfileTypeparentLink.ExportPropertyName(Const AName : String) :String;
  6993. begin
  6994. Case AName of
  6995. '_type' : Result:='type';
  6996. else
  6997. Result:=Inherited ExportPropertyName(AName);
  6998. end;
  6999. end;
  7000. { --------------------------------------------------------------------
  7001. TProfileTypepermissions
  7002. --------------------------------------------------------------------}
  7003. Procedure TProfileTypepermissions.Seteffective(AIndex : Integer; const AValue : TStringArray);
  7004. begin
  7005. If (Feffective=AValue) then exit;
  7006. Feffective:=AValue;
  7007. MarkPropertyChanged(AIndex);
  7008. end;
  7009. //2.6.4. bug workaround
  7010. {$IFDEF VER2_6}
  7011. Procedure TProfileTypepermissions.SetArrayLength(Const AName : String; ALength : Longint);
  7012. begin
  7013. Case AName of
  7014. 'effective' : SetLength(Feffective,ALength);
  7015. else
  7016. Inherited SetArrayLength(AName,ALength);
  7017. end;
  7018. end;
  7019. {$ENDIF VER2_6}
  7020. { --------------------------------------------------------------------
  7021. TProfile
  7022. --------------------------------------------------------------------}
  7023. Procedure TProfile.SetaccountId(AIndex : Integer; const AValue : String);
  7024. begin
  7025. If (FaccountId=AValue) then exit;
  7026. FaccountId:=AValue;
  7027. MarkPropertyChanged(AIndex);
  7028. end;
  7029. Procedure TProfile.SetbotFilteringEnabled(AIndex : Integer; const AValue : boolean);
  7030. begin
  7031. If (FbotFilteringEnabled=AValue) then exit;
  7032. FbotFilteringEnabled:=AValue;
  7033. MarkPropertyChanged(AIndex);
  7034. end;
  7035. Procedure TProfile.SetchildLink(AIndex : Integer; const AValue : TProfileTypechildLink);
  7036. begin
  7037. If (FchildLink=AValue) then exit;
  7038. FchildLink:=AValue;
  7039. MarkPropertyChanged(AIndex);
  7040. end;
  7041. Procedure TProfile.Setcreated(AIndex : Integer; const AValue : TDatetime);
  7042. begin
  7043. If (Fcreated=AValue) then exit;
  7044. Fcreated:=AValue;
  7045. MarkPropertyChanged(AIndex);
  7046. end;
  7047. Procedure TProfile.Setcurrency(AIndex : Integer; const AValue : String);
  7048. begin
  7049. If (Fcurrency=AValue) then exit;
  7050. Fcurrency:=AValue;
  7051. MarkPropertyChanged(AIndex);
  7052. end;
  7053. Procedure TProfile.SetdefaultPage(AIndex : Integer; const AValue : String);
  7054. begin
  7055. If (FdefaultPage=AValue) then exit;
  7056. FdefaultPage:=AValue;
  7057. MarkPropertyChanged(AIndex);
  7058. end;
  7059. Procedure TProfile.SeteCommerceTracking(AIndex : Integer; const AValue : boolean);
  7060. begin
  7061. If (FeCommerceTracking=AValue) then exit;
  7062. FeCommerceTracking:=AValue;
  7063. MarkPropertyChanged(AIndex);
  7064. end;
  7065. Procedure TProfile.SetenhancedECommerceTracking(AIndex : Integer; const AValue : boolean);
  7066. begin
  7067. If (FenhancedECommerceTracking=AValue) then exit;
  7068. FenhancedECommerceTracking:=AValue;
  7069. MarkPropertyChanged(AIndex);
  7070. end;
  7071. Procedure TProfile.SetexcludeQueryParameters(AIndex : Integer; const AValue : String);
  7072. begin
  7073. If (FexcludeQueryParameters=AValue) then exit;
  7074. FexcludeQueryParameters:=AValue;
  7075. MarkPropertyChanged(AIndex);
  7076. end;
  7077. Procedure TProfile.Setid(AIndex : Integer; const AValue : String);
  7078. begin
  7079. If (Fid=AValue) then exit;
  7080. Fid:=AValue;
  7081. MarkPropertyChanged(AIndex);
  7082. end;
  7083. Procedure TProfile.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  7084. begin
  7085. If (FinternalWebPropertyId=AValue) then exit;
  7086. FinternalWebPropertyId:=AValue;
  7087. MarkPropertyChanged(AIndex);
  7088. end;
  7089. Procedure TProfile.Setkind(AIndex : Integer; const AValue : String);
  7090. begin
  7091. If (Fkind=AValue) then exit;
  7092. Fkind:=AValue;
  7093. MarkPropertyChanged(AIndex);
  7094. end;
  7095. Procedure TProfile.Setname(AIndex : Integer; const AValue : String);
  7096. begin
  7097. If (Fname=AValue) then exit;
  7098. Fname:=AValue;
  7099. MarkPropertyChanged(AIndex);
  7100. end;
  7101. Procedure TProfile.SetparentLink(AIndex : Integer; const AValue : TProfileTypeparentLink);
  7102. begin
  7103. If (FparentLink=AValue) then exit;
  7104. FparentLink:=AValue;
  7105. MarkPropertyChanged(AIndex);
  7106. end;
  7107. Procedure TProfile.Setpermissions(AIndex : Integer; const AValue : TProfileTypepermissions);
  7108. begin
  7109. If (Fpermissions=AValue) then exit;
  7110. Fpermissions:=AValue;
  7111. MarkPropertyChanged(AIndex);
  7112. end;
  7113. Procedure TProfile.SetselfLink(AIndex : Integer; const AValue : String);
  7114. begin
  7115. If (FselfLink=AValue) then exit;
  7116. FselfLink:=AValue;
  7117. MarkPropertyChanged(AIndex);
  7118. end;
  7119. Procedure TProfile.SetsiteSearchCategoryParameters(AIndex : Integer; const AValue : String);
  7120. begin
  7121. If (FsiteSearchCategoryParameters=AValue) then exit;
  7122. FsiteSearchCategoryParameters:=AValue;
  7123. MarkPropertyChanged(AIndex);
  7124. end;
  7125. Procedure TProfile.SetsiteSearchQueryParameters(AIndex : Integer; const AValue : String);
  7126. begin
  7127. If (FsiteSearchQueryParameters=AValue) then exit;
  7128. FsiteSearchQueryParameters:=AValue;
  7129. MarkPropertyChanged(AIndex);
  7130. end;
  7131. Procedure TProfile.Setstarred(AIndex : Integer; const AValue : boolean);
  7132. begin
  7133. If (Fstarred=AValue) then exit;
  7134. Fstarred:=AValue;
  7135. MarkPropertyChanged(AIndex);
  7136. end;
  7137. Procedure TProfile.SetstripSiteSearchCategoryParameters(AIndex : Integer; const AValue : boolean);
  7138. begin
  7139. If (FstripSiteSearchCategoryParameters=AValue) then exit;
  7140. FstripSiteSearchCategoryParameters:=AValue;
  7141. MarkPropertyChanged(AIndex);
  7142. end;
  7143. Procedure TProfile.SetstripSiteSearchQueryParameters(AIndex : Integer; const AValue : boolean);
  7144. begin
  7145. If (FstripSiteSearchQueryParameters=AValue) then exit;
  7146. FstripSiteSearchQueryParameters:=AValue;
  7147. MarkPropertyChanged(AIndex);
  7148. end;
  7149. Procedure TProfile.Settimezone(AIndex : Integer; const AValue : String);
  7150. begin
  7151. If (Ftimezone=AValue) then exit;
  7152. Ftimezone:=AValue;
  7153. MarkPropertyChanged(AIndex);
  7154. end;
  7155. Procedure TProfile.Set_type(AIndex : Integer; const AValue : String);
  7156. begin
  7157. If (F_type=AValue) then exit;
  7158. F_type:=AValue;
  7159. MarkPropertyChanged(AIndex);
  7160. end;
  7161. Procedure TProfile.Setupdated(AIndex : Integer; const AValue : TDatetime);
  7162. begin
  7163. If (Fupdated=AValue) then exit;
  7164. Fupdated:=AValue;
  7165. MarkPropertyChanged(AIndex);
  7166. end;
  7167. Procedure TProfile.SetwebPropertyId(AIndex : Integer; const AValue : String);
  7168. begin
  7169. If (FwebPropertyId=AValue) then exit;
  7170. FwebPropertyId:=AValue;
  7171. MarkPropertyChanged(AIndex);
  7172. end;
  7173. Procedure TProfile.SetwebsiteUrl(AIndex : Integer; const AValue : String);
  7174. begin
  7175. If (FwebsiteUrl=AValue) then exit;
  7176. FwebsiteUrl:=AValue;
  7177. MarkPropertyChanged(AIndex);
  7178. end;
  7179. Class Function TProfile.ExportPropertyName(Const AName : String) :String;
  7180. begin
  7181. Case AName of
  7182. '_type' : Result:='type';
  7183. else
  7184. Result:=Inherited ExportPropertyName(AName);
  7185. end;
  7186. end;
  7187. { --------------------------------------------------------------------
  7188. TProfileFilterLink
  7189. --------------------------------------------------------------------}
  7190. Procedure TProfileFilterLink.SetfilterRef(AIndex : Integer; const AValue : TFilterRef);
  7191. begin
  7192. If (FfilterRef=AValue) then exit;
  7193. FfilterRef:=AValue;
  7194. MarkPropertyChanged(AIndex);
  7195. end;
  7196. Procedure TProfileFilterLink.Setid(AIndex : Integer; const AValue : String);
  7197. begin
  7198. If (Fid=AValue) then exit;
  7199. Fid:=AValue;
  7200. MarkPropertyChanged(AIndex);
  7201. end;
  7202. Procedure TProfileFilterLink.Setkind(AIndex : Integer; const AValue : String);
  7203. begin
  7204. If (Fkind=AValue) then exit;
  7205. Fkind:=AValue;
  7206. MarkPropertyChanged(AIndex);
  7207. end;
  7208. Procedure TProfileFilterLink.SetprofileRef(AIndex : Integer; const AValue : TProfileRef);
  7209. begin
  7210. If (FprofileRef=AValue) then exit;
  7211. FprofileRef:=AValue;
  7212. MarkPropertyChanged(AIndex);
  7213. end;
  7214. Procedure TProfileFilterLink.Setrank(AIndex : Integer; const AValue : integer);
  7215. begin
  7216. If (Frank=AValue) then exit;
  7217. Frank:=AValue;
  7218. MarkPropertyChanged(AIndex);
  7219. end;
  7220. Procedure TProfileFilterLink.SetselfLink(AIndex : Integer; const AValue : String);
  7221. begin
  7222. If (FselfLink=AValue) then exit;
  7223. FselfLink:=AValue;
  7224. MarkPropertyChanged(AIndex);
  7225. end;
  7226. { --------------------------------------------------------------------
  7227. TProfileFilterLinks
  7228. --------------------------------------------------------------------}
  7229. Procedure TProfileFilterLinks.Setitems(AIndex : Integer; const AValue : TProfileFilterLinksTypeitemsArray);
  7230. begin
  7231. If (Fitems=AValue) then exit;
  7232. Fitems:=AValue;
  7233. MarkPropertyChanged(AIndex);
  7234. end;
  7235. Procedure TProfileFilterLinks.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  7236. begin
  7237. If (FitemsPerPage=AValue) then exit;
  7238. FitemsPerPage:=AValue;
  7239. MarkPropertyChanged(AIndex);
  7240. end;
  7241. Procedure TProfileFilterLinks.Setkind(AIndex : Integer; const AValue : String);
  7242. begin
  7243. If (Fkind=AValue) then exit;
  7244. Fkind:=AValue;
  7245. MarkPropertyChanged(AIndex);
  7246. end;
  7247. Procedure TProfileFilterLinks.SetnextLink(AIndex : Integer; const AValue : String);
  7248. begin
  7249. If (FnextLink=AValue) then exit;
  7250. FnextLink:=AValue;
  7251. MarkPropertyChanged(AIndex);
  7252. end;
  7253. Procedure TProfileFilterLinks.SetpreviousLink(AIndex : Integer; const AValue : String);
  7254. begin
  7255. If (FpreviousLink=AValue) then exit;
  7256. FpreviousLink:=AValue;
  7257. MarkPropertyChanged(AIndex);
  7258. end;
  7259. Procedure TProfileFilterLinks.SetstartIndex(AIndex : Integer; const AValue : integer);
  7260. begin
  7261. If (FstartIndex=AValue) then exit;
  7262. FstartIndex:=AValue;
  7263. MarkPropertyChanged(AIndex);
  7264. end;
  7265. Procedure TProfileFilterLinks.SettotalResults(AIndex : Integer; const AValue : integer);
  7266. begin
  7267. If (FtotalResults=AValue) then exit;
  7268. FtotalResults:=AValue;
  7269. MarkPropertyChanged(AIndex);
  7270. end;
  7271. Procedure TProfileFilterLinks.Setusername(AIndex : Integer; const AValue : String);
  7272. begin
  7273. If (Fusername=AValue) then exit;
  7274. Fusername:=AValue;
  7275. MarkPropertyChanged(AIndex);
  7276. end;
  7277. //2.6.4. bug workaround
  7278. {$IFDEF VER2_6}
  7279. Procedure TProfileFilterLinks.SetArrayLength(Const AName : String; ALength : Longint);
  7280. begin
  7281. Case AName of
  7282. 'items' : SetLength(Fitems,ALength);
  7283. else
  7284. Inherited SetArrayLength(AName,ALength);
  7285. end;
  7286. end;
  7287. {$ENDIF VER2_6}
  7288. { --------------------------------------------------------------------
  7289. TProfileRef
  7290. --------------------------------------------------------------------}
  7291. Procedure TProfileRef.SetaccountId(AIndex : Integer; const AValue : String);
  7292. begin
  7293. If (FaccountId=AValue) then exit;
  7294. FaccountId:=AValue;
  7295. MarkPropertyChanged(AIndex);
  7296. end;
  7297. Procedure TProfileRef.Sethref(AIndex : Integer; const AValue : String);
  7298. begin
  7299. If (Fhref=AValue) then exit;
  7300. Fhref:=AValue;
  7301. MarkPropertyChanged(AIndex);
  7302. end;
  7303. Procedure TProfileRef.Setid(AIndex : Integer; const AValue : String);
  7304. begin
  7305. If (Fid=AValue) then exit;
  7306. Fid:=AValue;
  7307. MarkPropertyChanged(AIndex);
  7308. end;
  7309. Procedure TProfileRef.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  7310. begin
  7311. If (FinternalWebPropertyId=AValue) then exit;
  7312. FinternalWebPropertyId:=AValue;
  7313. MarkPropertyChanged(AIndex);
  7314. end;
  7315. Procedure TProfileRef.Setkind(AIndex : Integer; const AValue : String);
  7316. begin
  7317. If (Fkind=AValue) then exit;
  7318. Fkind:=AValue;
  7319. MarkPropertyChanged(AIndex);
  7320. end;
  7321. Procedure TProfileRef.Setname(AIndex : Integer; const AValue : String);
  7322. begin
  7323. If (Fname=AValue) then exit;
  7324. Fname:=AValue;
  7325. MarkPropertyChanged(AIndex);
  7326. end;
  7327. Procedure TProfileRef.SetwebPropertyId(AIndex : Integer; const AValue : String);
  7328. begin
  7329. If (FwebPropertyId=AValue) then exit;
  7330. FwebPropertyId:=AValue;
  7331. MarkPropertyChanged(AIndex);
  7332. end;
  7333. { --------------------------------------------------------------------
  7334. TProfileSummary
  7335. --------------------------------------------------------------------}
  7336. Procedure TProfileSummary.Setid(AIndex : Integer; const AValue : String);
  7337. begin
  7338. If (Fid=AValue) then exit;
  7339. Fid:=AValue;
  7340. MarkPropertyChanged(AIndex);
  7341. end;
  7342. Procedure TProfileSummary.Setkind(AIndex : Integer; const AValue : String);
  7343. begin
  7344. If (Fkind=AValue) then exit;
  7345. Fkind:=AValue;
  7346. MarkPropertyChanged(AIndex);
  7347. end;
  7348. Procedure TProfileSummary.Setname(AIndex : Integer; const AValue : String);
  7349. begin
  7350. If (Fname=AValue) then exit;
  7351. Fname:=AValue;
  7352. MarkPropertyChanged(AIndex);
  7353. end;
  7354. Procedure TProfileSummary.Setstarred(AIndex : Integer; const AValue : boolean);
  7355. begin
  7356. If (Fstarred=AValue) then exit;
  7357. Fstarred:=AValue;
  7358. MarkPropertyChanged(AIndex);
  7359. end;
  7360. Procedure TProfileSummary.Set_type(AIndex : Integer; const AValue : String);
  7361. begin
  7362. If (F_type=AValue) then exit;
  7363. F_type:=AValue;
  7364. MarkPropertyChanged(AIndex);
  7365. end;
  7366. Class Function TProfileSummary.ExportPropertyName(Const AName : String) :String;
  7367. begin
  7368. Case AName of
  7369. '_type' : Result:='type';
  7370. else
  7371. Result:=Inherited ExportPropertyName(AName);
  7372. end;
  7373. end;
  7374. { --------------------------------------------------------------------
  7375. TProfiles
  7376. --------------------------------------------------------------------}
  7377. Procedure TProfiles.Setitems(AIndex : Integer; const AValue : TProfilesTypeitemsArray);
  7378. begin
  7379. If (Fitems=AValue) then exit;
  7380. Fitems:=AValue;
  7381. MarkPropertyChanged(AIndex);
  7382. end;
  7383. Procedure TProfiles.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  7384. begin
  7385. If (FitemsPerPage=AValue) then exit;
  7386. FitemsPerPage:=AValue;
  7387. MarkPropertyChanged(AIndex);
  7388. end;
  7389. Procedure TProfiles.Setkind(AIndex : Integer; const AValue : String);
  7390. begin
  7391. If (Fkind=AValue) then exit;
  7392. Fkind:=AValue;
  7393. MarkPropertyChanged(AIndex);
  7394. end;
  7395. Procedure TProfiles.SetnextLink(AIndex : Integer; const AValue : String);
  7396. begin
  7397. If (FnextLink=AValue) then exit;
  7398. FnextLink:=AValue;
  7399. MarkPropertyChanged(AIndex);
  7400. end;
  7401. Procedure TProfiles.SetpreviousLink(AIndex : Integer; const AValue : String);
  7402. begin
  7403. If (FpreviousLink=AValue) then exit;
  7404. FpreviousLink:=AValue;
  7405. MarkPropertyChanged(AIndex);
  7406. end;
  7407. Procedure TProfiles.SetstartIndex(AIndex : Integer; const AValue : integer);
  7408. begin
  7409. If (FstartIndex=AValue) then exit;
  7410. FstartIndex:=AValue;
  7411. MarkPropertyChanged(AIndex);
  7412. end;
  7413. Procedure TProfiles.SettotalResults(AIndex : Integer; const AValue : integer);
  7414. begin
  7415. If (FtotalResults=AValue) then exit;
  7416. FtotalResults:=AValue;
  7417. MarkPropertyChanged(AIndex);
  7418. end;
  7419. Procedure TProfiles.Setusername(AIndex : Integer; const AValue : String);
  7420. begin
  7421. If (Fusername=AValue) then exit;
  7422. Fusername:=AValue;
  7423. MarkPropertyChanged(AIndex);
  7424. end;
  7425. //2.6.4. bug workaround
  7426. {$IFDEF VER2_6}
  7427. Procedure TProfiles.SetArrayLength(Const AName : String; ALength : Longint);
  7428. begin
  7429. Case AName of
  7430. 'items' : SetLength(Fitems,ALength);
  7431. else
  7432. Inherited SetArrayLength(AName,ALength);
  7433. end;
  7434. end;
  7435. {$ENDIF VER2_6}
  7436. { --------------------------------------------------------------------
  7437. TRealtimeDataTypecolumnHeadersItem
  7438. --------------------------------------------------------------------}
  7439. Procedure TRealtimeDataTypecolumnHeadersItem.SetcolumnType(AIndex : Integer; const AValue : String);
  7440. begin
  7441. If (FcolumnType=AValue) then exit;
  7442. FcolumnType:=AValue;
  7443. MarkPropertyChanged(AIndex);
  7444. end;
  7445. Procedure TRealtimeDataTypecolumnHeadersItem.SetdataType(AIndex : Integer; const AValue : String);
  7446. begin
  7447. If (FdataType=AValue) then exit;
  7448. FdataType:=AValue;
  7449. MarkPropertyChanged(AIndex);
  7450. end;
  7451. Procedure TRealtimeDataTypecolumnHeadersItem.Setname(AIndex : Integer; const AValue : String);
  7452. begin
  7453. If (Fname=AValue) then exit;
  7454. Fname:=AValue;
  7455. MarkPropertyChanged(AIndex);
  7456. end;
  7457. { --------------------------------------------------------------------
  7458. TRealtimeDataTypeprofileInfo
  7459. --------------------------------------------------------------------}
  7460. Procedure TRealtimeDataTypeprofileInfo.SetaccountId(AIndex : Integer; const AValue : String);
  7461. begin
  7462. If (FaccountId=AValue) then exit;
  7463. FaccountId:=AValue;
  7464. MarkPropertyChanged(AIndex);
  7465. end;
  7466. Procedure TRealtimeDataTypeprofileInfo.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  7467. begin
  7468. If (FinternalWebPropertyId=AValue) then exit;
  7469. FinternalWebPropertyId:=AValue;
  7470. MarkPropertyChanged(AIndex);
  7471. end;
  7472. Procedure TRealtimeDataTypeprofileInfo.SetprofileId(AIndex : Integer; const AValue : String);
  7473. begin
  7474. If (FprofileId=AValue) then exit;
  7475. FprofileId:=AValue;
  7476. MarkPropertyChanged(AIndex);
  7477. end;
  7478. Procedure TRealtimeDataTypeprofileInfo.SetprofileName(AIndex : Integer; const AValue : String);
  7479. begin
  7480. If (FprofileName=AValue) then exit;
  7481. FprofileName:=AValue;
  7482. MarkPropertyChanged(AIndex);
  7483. end;
  7484. Procedure TRealtimeDataTypeprofileInfo.SettableId(AIndex : Integer; const AValue : String);
  7485. begin
  7486. If (FtableId=AValue) then exit;
  7487. FtableId:=AValue;
  7488. MarkPropertyChanged(AIndex);
  7489. end;
  7490. Procedure TRealtimeDataTypeprofileInfo.SetwebPropertyId(AIndex : Integer; const AValue : String);
  7491. begin
  7492. If (FwebPropertyId=AValue) then exit;
  7493. FwebPropertyId:=AValue;
  7494. MarkPropertyChanged(AIndex);
  7495. end;
  7496. { --------------------------------------------------------------------
  7497. TRealtimeDataTypequery
  7498. --------------------------------------------------------------------}
  7499. Procedure TRealtimeDataTypequery.Setdimensions(AIndex : Integer; const AValue : String);
  7500. begin
  7501. If (Fdimensions=AValue) then exit;
  7502. Fdimensions:=AValue;
  7503. MarkPropertyChanged(AIndex);
  7504. end;
  7505. Procedure TRealtimeDataTypequery.Setfilters(AIndex : Integer; const AValue : String);
  7506. begin
  7507. If (Ffilters=AValue) then exit;
  7508. Ffilters:=AValue;
  7509. MarkPropertyChanged(AIndex);
  7510. end;
  7511. Procedure TRealtimeDataTypequery.Setids(AIndex : Integer; const AValue : String);
  7512. begin
  7513. If (Fids=AValue) then exit;
  7514. Fids:=AValue;
  7515. MarkPropertyChanged(AIndex);
  7516. end;
  7517. Procedure TRealtimeDataTypequery.Setmaxresults(AIndex : Integer; const AValue : integer);
  7518. begin
  7519. If (Fmaxresults=AValue) then exit;
  7520. Fmaxresults:=AValue;
  7521. MarkPropertyChanged(AIndex);
  7522. end;
  7523. Procedure TRealtimeDataTypequery.Setmetrics(AIndex : Integer; const AValue : TStringArray);
  7524. begin
  7525. If (Fmetrics=AValue) then exit;
  7526. Fmetrics:=AValue;
  7527. MarkPropertyChanged(AIndex);
  7528. end;
  7529. Procedure TRealtimeDataTypequery.Setsort(AIndex : Integer; const AValue : TStringArray);
  7530. begin
  7531. If (Fsort=AValue) then exit;
  7532. Fsort:=AValue;
  7533. MarkPropertyChanged(AIndex);
  7534. end;
  7535. Class Function TRealtimeDataTypequery.ExportPropertyName(Const AName : String) :String;
  7536. begin
  7537. Case AName of
  7538. 'maxresults' : Result:='max-results';
  7539. else
  7540. Result:=Inherited ExportPropertyName(AName);
  7541. end;
  7542. end;
  7543. //2.6.4. bug workaround
  7544. {$IFDEF VER2_6}
  7545. Procedure TRealtimeDataTypequery.SetArrayLength(Const AName : String; ALength : Longint);
  7546. begin
  7547. Case AName of
  7548. 'metrics' : SetLength(Fmetrics,ALength);
  7549. 'sort' : SetLength(Fsort,ALength);
  7550. else
  7551. Inherited SetArrayLength(AName,ALength);
  7552. end;
  7553. end;
  7554. {$ENDIF VER2_6}
  7555. { --------------------------------------------------------------------
  7556. TRealtimeDataTypetotalsForAllResults
  7557. --------------------------------------------------------------------}
  7558. Class Function TRealtimeDataTypetotalsForAllResults.AllowAdditionalProperties : Boolean;
  7559. begin
  7560. Result:=True;
  7561. end;
  7562. { --------------------------------------------------------------------
  7563. TRealtimeData
  7564. --------------------------------------------------------------------}
  7565. Procedure TRealtimeData.SetcolumnHeaders(AIndex : Integer; const AValue : TRealtimeDataTypecolumnHeadersArray);
  7566. begin
  7567. If (FcolumnHeaders=AValue) then exit;
  7568. FcolumnHeaders:=AValue;
  7569. MarkPropertyChanged(AIndex);
  7570. end;
  7571. Procedure TRealtimeData.Setid(AIndex : Integer; const AValue : String);
  7572. begin
  7573. If (Fid=AValue) then exit;
  7574. Fid:=AValue;
  7575. MarkPropertyChanged(AIndex);
  7576. end;
  7577. Procedure TRealtimeData.Setkind(AIndex : Integer; const AValue : String);
  7578. begin
  7579. If (Fkind=AValue) then exit;
  7580. Fkind:=AValue;
  7581. MarkPropertyChanged(AIndex);
  7582. end;
  7583. Procedure TRealtimeData.SetprofileInfo(AIndex : Integer; const AValue : TRealtimeDataTypeprofileInfo);
  7584. begin
  7585. If (FprofileInfo=AValue) then exit;
  7586. FprofileInfo:=AValue;
  7587. MarkPropertyChanged(AIndex);
  7588. end;
  7589. Procedure TRealtimeData.Setquery(AIndex : Integer; const AValue : TRealtimeDataTypequery);
  7590. begin
  7591. If (Fquery=AValue) then exit;
  7592. Fquery:=AValue;
  7593. MarkPropertyChanged(AIndex);
  7594. end;
  7595. Procedure TRealtimeData.Setrows(AIndex : Integer; const AValue : TRealtimeDataTyperowsArray);
  7596. begin
  7597. If (Frows=AValue) then exit;
  7598. Frows:=AValue;
  7599. MarkPropertyChanged(AIndex);
  7600. end;
  7601. Procedure TRealtimeData.SetselfLink(AIndex : Integer; const AValue : String);
  7602. begin
  7603. If (FselfLink=AValue) then exit;
  7604. FselfLink:=AValue;
  7605. MarkPropertyChanged(AIndex);
  7606. end;
  7607. Procedure TRealtimeData.SettotalResults(AIndex : Integer; const AValue : integer);
  7608. begin
  7609. If (FtotalResults=AValue) then exit;
  7610. FtotalResults:=AValue;
  7611. MarkPropertyChanged(AIndex);
  7612. end;
  7613. Procedure TRealtimeData.SettotalsForAllResults(AIndex : Integer; const AValue : TRealtimeDataTypetotalsForAllResults);
  7614. begin
  7615. If (FtotalsForAllResults=AValue) then exit;
  7616. FtotalsForAllResults:=AValue;
  7617. MarkPropertyChanged(AIndex);
  7618. end;
  7619. //2.6.4. bug workaround
  7620. {$IFDEF VER2_6}
  7621. Procedure TRealtimeData.SetArrayLength(Const AName : String; ALength : Longint);
  7622. begin
  7623. Case AName of
  7624. 'columnheaders' : SetLength(FcolumnHeaders,ALength);
  7625. 'rows' : SetLength(Frows,ALength);
  7626. else
  7627. Inherited SetArrayLength(AName,ALength);
  7628. end;
  7629. end;
  7630. {$ENDIF VER2_6}
  7631. { --------------------------------------------------------------------
  7632. TSegment
  7633. --------------------------------------------------------------------}
  7634. Procedure TSegment.Setcreated(AIndex : Integer; const AValue : TDatetime);
  7635. begin
  7636. If (Fcreated=AValue) then exit;
  7637. Fcreated:=AValue;
  7638. MarkPropertyChanged(AIndex);
  7639. end;
  7640. Procedure TSegment.Setdefinition(AIndex : Integer; const AValue : String);
  7641. begin
  7642. If (Fdefinition=AValue) then exit;
  7643. Fdefinition:=AValue;
  7644. MarkPropertyChanged(AIndex);
  7645. end;
  7646. Procedure TSegment.Setid(AIndex : Integer; const AValue : String);
  7647. begin
  7648. If (Fid=AValue) then exit;
  7649. Fid:=AValue;
  7650. MarkPropertyChanged(AIndex);
  7651. end;
  7652. Procedure TSegment.Setkind(AIndex : Integer; const AValue : String);
  7653. begin
  7654. If (Fkind=AValue) then exit;
  7655. Fkind:=AValue;
  7656. MarkPropertyChanged(AIndex);
  7657. end;
  7658. Procedure TSegment.Setname(AIndex : Integer; const AValue : String);
  7659. begin
  7660. If (Fname=AValue) then exit;
  7661. Fname:=AValue;
  7662. MarkPropertyChanged(AIndex);
  7663. end;
  7664. Procedure TSegment.SetsegmentId(AIndex : Integer; const AValue : String);
  7665. begin
  7666. If (FsegmentId=AValue) then exit;
  7667. FsegmentId:=AValue;
  7668. MarkPropertyChanged(AIndex);
  7669. end;
  7670. Procedure TSegment.SetselfLink(AIndex : Integer; const AValue : String);
  7671. begin
  7672. If (FselfLink=AValue) then exit;
  7673. FselfLink:=AValue;
  7674. MarkPropertyChanged(AIndex);
  7675. end;
  7676. Procedure TSegment.Set_type(AIndex : Integer; const AValue : String);
  7677. begin
  7678. If (F_type=AValue) then exit;
  7679. F_type:=AValue;
  7680. MarkPropertyChanged(AIndex);
  7681. end;
  7682. Procedure TSegment.Setupdated(AIndex : Integer; const AValue : TDatetime);
  7683. begin
  7684. If (Fupdated=AValue) then exit;
  7685. Fupdated:=AValue;
  7686. MarkPropertyChanged(AIndex);
  7687. end;
  7688. Class Function TSegment.ExportPropertyName(Const AName : String) :String;
  7689. begin
  7690. Case AName of
  7691. '_type' : Result:='type';
  7692. else
  7693. Result:=Inherited ExportPropertyName(AName);
  7694. end;
  7695. end;
  7696. { --------------------------------------------------------------------
  7697. TSegments
  7698. --------------------------------------------------------------------}
  7699. Procedure TSegments.Setitems(AIndex : Integer; const AValue : TSegmentsTypeitemsArray);
  7700. begin
  7701. If (Fitems=AValue) then exit;
  7702. Fitems:=AValue;
  7703. MarkPropertyChanged(AIndex);
  7704. end;
  7705. Procedure TSegments.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  7706. begin
  7707. If (FitemsPerPage=AValue) then exit;
  7708. FitemsPerPage:=AValue;
  7709. MarkPropertyChanged(AIndex);
  7710. end;
  7711. Procedure TSegments.Setkind(AIndex : Integer; const AValue : String);
  7712. begin
  7713. If (Fkind=AValue) then exit;
  7714. Fkind:=AValue;
  7715. MarkPropertyChanged(AIndex);
  7716. end;
  7717. Procedure TSegments.SetnextLink(AIndex : Integer; const AValue : String);
  7718. begin
  7719. If (FnextLink=AValue) then exit;
  7720. FnextLink:=AValue;
  7721. MarkPropertyChanged(AIndex);
  7722. end;
  7723. Procedure TSegments.SetpreviousLink(AIndex : Integer; const AValue : String);
  7724. begin
  7725. If (FpreviousLink=AValue) then exit;
  7726. FpreviousLink:=AValue;
  7727. MarkPropertyChanged(AIndex);
  7728. end;
  7729. Procedure TSegments.SetstartIndex(AIndex : Integer; const AValue : integer);
  7730. begin
  7731. If (FstartIndex=AValue) then exit;
  7732. FstartIndex:=AValue;
  7733. MarkPropertyChanged(AIndex);
  7734. end;
  7735. Procedure TSegments.SettotalResults(AIndex : Integer; const AValue : integer);
  7736. begin
  7737. If (FtotalResults=AValue) then exit;
  7738. FtotalResults:=AValue;
  7739. MarkPropertyChanged(AIndex);
  7740. end;
  7741. Procedure TSegments.Setusername(AIndex : Integer; const AValue : String);
  7742. begin
  7743. If (Fusername=AValue) then exit;
  7744. Fusername:=AValue;
  7745. MarkPropertyChanged(AIndex);
  7746. end;
  7747. //2.6.4. bug workaround
  7748. {$IFDEF VER2_6}
  7749. Procedure TSegments.SetArrayLength(Const AName : String; ALength : Longint);
  7750. begin
  7751. Case AName of
  7752. 'items' : SetLength(Fitems,ALength);
  7753. else
  7754. Inherited SetArrayLength(AName,ALength);
  7755. end;
  7756. end;
  7757. {$ENDIF VER2_6}
  7758. { --------------------------------------------------------------------
  7759. TUnsampledReportTypecloudStorageDownloadDetails
  7760. --------------------------------------------------------------------}
  7761. Procedure TUnsampledReportTypecloudStorageDownloadDetails.SetbucketId(AIndex : Integer; const AValue : String);
  7762. begin
  7763. If (FbucketId=AValue) then exit;
  7764. FbucketId:=AValue;
  7765. MarkPropertyChanged(AIndex);
  7766. end;
  7767. Procedure TUnsampledReportTypecloudStorageDownloadDetails.SetobjectId(AIndex : Integer; const AValue : String);
  7768. begin
  7769. If (FobjectId=AValue) then exit;
  7770. FobjectId:=AValue;
  7771. MarkPropertyChanged(AIndex);
  7772. end;
  7773. { --------------------------------------------------------------------
  7774. TUnsampledReportTypedriveDownloadDetails
  7775. --------------------------------------------------------------------}
  7776. Procedure TUnsampledReportTypedriveDownloadDetails.SetdocumentId(AIndex : Integer; const AValue : String);
  7777. begin
  7778. If (FdocumentId=AValue) then exit;
  7779. FdocumentId:=AValue;
  7780. MarkPropertyChanged(AIndex);
  7781. end;
  7782. { --------------------------------------------------------------------
  7783. TUnsampledReport
  7784. --------------------------------------------------------------------}
  7785. Procedure TUnsampledReport.SetaccountId(AIndex : Integer; const AValue : String);
  7786. begin
  7787. If (FaccountId=AValue) then exit;
  7788. FaccountId:=AValue;
  7789. MarkPropertyChanged(AIndex);
  7790. end;
  7791. Procedure TUnsampledReport.SetcloudStorageDownloadDetails(AIndex : Integer; const AValue : TUnsampledReportTypecloudStorageDownloadDetails);
  7792. begin
  7793. If (FcloudStorageDownloadDetails=AValue) then exit;
  7794. FcloudStorageDownloadDetails:=AValue;
  7795. MarkPropertyChanged(AIndex);
  7796. end;
  7797. Procedure TUnsampledReport.Setcreated(AIndex : Integer; const AValue : TDatetime);
  7798. begin
  7799. If (Fcreated=AValue) then exit;
  7800. Fcreated:=AValue;
  7801. MarkPropertyChanged(AIndex);
  7802. end;
  7803. Procedure TUnsampledReport.Setdimensions(AIndex : Integer; const AValue : String);
  7804. begin
  7805. If (Fdimensions=AValue) then exit;
  7806. Fdimensions:=AValue;
  7807. MarkPropertyChanged(AIndex);
  7808. end;
  7809. Procedure TUnsampledReport.SetdownloadType(AIndex : Integer; const AValue : String);
  7810. begin
  7811. If (FdownloadType=AValue) then exit;
  7812. FdownloadType:=AValue;
  7813. MarkPropertyChanged(AIndex);
  7814. end;
  7815. Procedure TUnsampledReport.SetdriveDownloadDetails(AIndex : Integer; const AValue : TUnsampledReportTypedriveDownloadDetails);
  7816. begin
  7817. If (FdriveDownloadDetails=AValue) then exit;
  7818. FdriveDownloadDetails:=AValue;
  7819. MarkPropertyChanged(AIndex);
  7820. end;
  7821. Procedure TUnsampledReport.Setenddate(AIndex : Integer; const AValue : String);
  7822. begin
  7823. If (Fenddate=AValue) then exit;
  7824. Fenddate:=AValue;
  7825. MarkPropertyChanged(AIndex);
  7826. end;
  7827. Procedure TUnsampledReport.Setfilters(AIndex : Integer; const AValue : String);
  7828. begin
  7829. If (Ffilters=AValue) then exit;
  7830. Ffilters:=AValue;
  7831. MarkPropertyChanged(AIndex);
  7832. end;
  7833. Procedure TUnsampledReport.Setid(AIndex : Integer; const AValue : String);
  7834. begin
  7835. If (Fid=AValue) then exit;
  7836. Fid:=AValue;
  7837. MarkPropertyChanged(AIndex);
  7838. end;
  7839. Procedure TUnsampledReport.Setkind(AIndex : Integer; const AValue : String);
  7840. begin
  7841. If (Fkind=AValue) then exit;
  7842. Fkind:=AValue;
  7843. MarkPropertyChanged(AIndex);
  7844. end;
  7845. Procedure TUnsampledReport.Setmetrics(AIndex : Integer; const AValue : String);
  7846. begin
  7847. If (Fmetrics=AValue) then exit;
  7848. Fmetrics:=AValue;
  7849. MarkPropertyChanged(AIndex);
  7850. end;
  7851. Procedure TUnsampledReport.SetprofileId(AIndex : Integer; const AValue : String);
  7852. begin
  7853. If (FprofileId=AValue) then exit;
  7854. FprofileId:=AValue;
  7855. MarkPropertyChanged(AIndex);
  7856. end;
  7857. Procedure TUnsampledReport.Setsegment(AIndex : Integer; const AValue : String);
  7858. begin
  7859. If (Fsegment=AValue) then exit;
  7860. Fsegment:=AValue;
  7861. MarkPropertyChanged(AIndex);
  7862. end;
  7863. Procedure TUnsampledReport.SetselfLink(AIndex : Integer; const AValue : String);
  7864. begin
  7865. If (FselfLink=AValue) then exit;
  7866. FselfLink:=AValue;
  7867. MarkPropertyChanged(AIndex);
  7868. end;
  7869. Procedure TUnsampledReport.Setstartdate(AIndex : Integer; const AValue : String);
  7870. begin
  7871. If (Fstartdate=AValue) then exit;
  7872. Fstartdate:=AValue;
  7873. MarkPropertyChanged(AIndex);
  7874. end;
  7875. Procedure TUnsampledReport.Setstatus(AIndex : Integer; const AValue : String);
  7876. begin
  7877. If (Fstatus=AValue) then exit;
  7878. Fstatus:=AValue;
  7879. MarkPropertyChanged(AIndex);
  7880. end;
  7881. Procedure TUnsampledReport.Settitle(AIndex : Integer; const AValue : String);
  7882. begin
  7883. If (Ftitle=AValue) then exit;
  7884. Ftitle:=AValue;
  7885. MarkPropertyChanged(AIndex);
  7886. end;
  7887. Procedure TUnsampledReport.Setupdated(AIndex : Integer; const AValue : TDatetime);
  7888. begin
  7889. If (Fupdated=AValue) then exit;
  7890. Fupdated:=AValue;
  7891. MarkPropertyChanged(AIndex);
  7892. end;
  7893. Procedure TUnsampledReport.SetwebPropertyId(AIndex : Integer; const AValue : String);
  7894. begin
  7895. If (FwebPropertyId=AValue) then exit;
  7896. FwebPropertyId:=AValue;
  7897. MarkPropertyChanged(AIndex);
  7898. end;
  7899. Class Function TUnsampledReport.ExportPropertyName(Const AName : String) :String;
  7900. begin
  7901. Case AName of
  7902. 'enddate' : Result:='end-date';
  7903. 'startdate' : Result:='start-date';
  7904. else
  7905. Result:=Inherited ExportPropertyName(AName);
  7906. end;
  7907. end;
  7908. { --------------------------------------------------------------------
  7909. TUnsampledReports
  7910. --------------------------------------------------------------------}
  7911. Procedure TUnsampledReports.Setitems(AIndex : Integer; const AValue : TUnsampledReportsTypeitemsArray);
  7912. begin
  7913. If (Fitems=AValue) then exit;
  7914. Fitems:=AValue;
  7915. MarkPropertyChanged(AIndex);
  7916. end;
  7917. Procedure TUnsampledReports.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  7918. begin
  7919. If (FitemsPerPage=AValue) then exit;
  7920. FitemsPerPage:=AValue;
  7921. MarkPropertyChanged(AIndex);
  7922. end;
  7923. Procedure TUnsampledReports.Setkind(AIndex : Integer; const AValue : String);
  7924. begin
  7925. If (Fkind=AValue) then exit;
  7926. Fkind:=AValue;
  7927. MarkPropertyChanged(AIndex);
  7928. end;
  7929. Procedure TUnsampledReports.SetnextLink(AIndex : Integer; const AValue : String);
  7930. begin
  7931. If (FnextLink=AValue) then exit;
  7932. FnextLink:=AValue;
  7933. MarkPropertyChanged(AIndex);
  7934. end;
  7935. Procedure TUnsampledReports.SetpreviousLink(AIndex : Integer; const AValue : String);
  7936. begin
  7937. If (FpreviousLink=AValue) then exit;
  7938. FpreviousLink:=AValue;
  7939. MarkPropertyChanged(AIndex);
  7940. end;
  7941. Procedure TUnsampledReports.SetstartIndex(AIndex : Integer; const AValue : integer);
  7942. begin
  7943. If (FstartIndex=AValue) then exit;
  7944. FstartIndex:=AValue;
  7945. MarkPropertyChanged(AIndex);
  7946. end;
  7947. Procedure TUnsampledReports.SettotalResults(AIndex : Integer; const AValue : integer);
  7948. begin
  7949. If (FtotalResults=AValue) then exit;
  7950. FtotalResults:=AValue;
  7951. MarkPropertyChanged(AIndex);
  7952. end;
  7953. Procedure TUnsampledReports.Setusername(AIndex : Integer; const AValue : String);
  7954. begin
  7955. If (Fusername=AValue) then exit;
  7956. Fusername:=AValue;
  7957. MarkPropertyChanged(AIndex);
  7958. end;
  7959. //2.6.4. bug workaround
  7960. {$IFDEF VER2_6}
  7961. Procedure TUnsampledReports.SetArrayLength(Const AName : String; ALength : Longint);
  7962. begin
  7963. Case AName of
  7964. 'items' : SetLength(Fitems,ALength);
  7965. else
  7966. Inherited SetArrayLength(AName,ALength);
  7967. end;
  7968. end;
  7969. {$ENDIF VER2_6}
  7970. { --------------------------------------------------------------------
  7971. TUpload
  7972. --------------------------------------------------------------------}
  7973. Procedure TUpload.SetaccountId(AIndex : Integer; const AValue : String);
  7974. begin
  7975. If (FaccountId=AValue) then exit;
  7976. FaccountId:=AValue;
  7977. MarkPropertyChanged(AIndex);
  7978. end;
  7979. Procedure TUpload.SetcustomDataSourceId(AIndex : Integer; const AValue : String);
  7980. begin
  7981. If (FcustomDataSourceId=AValue) then exit;
  7982. FcustomDataSourceId:=AValue;
  7983. MarkPropertyChanged(AIndex);
  7984. end;
  7985. Procedure TUpload.Seterrors(AIndex : Integer; const AValue : TStringArray);
  7986. begin
  7987. If (Ferrors=AValue) then exit;
  7988. Ferrors:=AValue;
  7989. MarkPropertyChanged(AIndex);
  7990. end;
  7991. Procedure TUpload.Setid(AIndex : Integer; const AValue : String);
  7992. begin
  7993. If (Fid=AValue) then exit;
  7994. Fid:=AValue;
  7995. MarkPropertyChanged(AIndex);
  7996. end;
  7997. Procedure TUpload.Setkind(AIndex : Integer; const AValue : String);
  7998. begin
  7999. If (Fkind=AValue) then exit;
  8000. Fkind:=AValue;
  8001. MarkPropertyChanged(AIndex);
  8002. end;
  8003. Procedure TUpload.Setstatus(AIndex : Integer; const AValue : String);
  8004. begin
  8005. If (Fstatus=AValue) then exit;
  8006. Fstatus:=AValue;
  8007. MarkPropertyChanged(AIndex);
  8008. end;
  8009. //2.6.4. bug workaround
  8010. {$IFDEF VER2_6}
  8011. Procedure TUpload.SetArrayLength(Const AName : String; ALength : Longint);
  8012. begin
  8013. Case AName of
  8014. 'errors' : SetLength(Ferrors,ALength);
  8015. else
  8016. Inherited SetArrayLength(AName,ALength);
  8017. end;
  8018. end;
  8019. {$ENDIF VER2_6}
  8020. { --------------------------------------------------------------------
  8021. TUploads
  8022. --------------------------------------------------------------------}
  8023. Procedure TUploads.Setitems(AIndex : Integer; const AValue : TUploadsTypeitemsArray);
  8024. begin
  8025. If (Fitems=AValue) then exit;
  8026. Fitems:=AValue;
  8027. MarkPropertyChanged(AIndex);
  8028. end;
  8029. Procedure TUploads.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  8030. begin
  8031. If (FitemsPerPage=AValue) then exit;
  8032. FitemsPerPage:=AValue;
  8033. MarkPropertyChanged(AIndex);
  8034. end;
  8035. Procedure TUploads.Setkind(AIndex : Integer; const AValue : String);
  8036. begin
  8037. If (Fkind=AValue) then exit;
  8038. Fkind:=AValue;
  8039. MarkPropertyChanged(AIndex);
  8040. end;
  8041. Procedure TUploads.SetnextLink(AIndex : Integer; const AValue : String);
  8042. begin
  8043. If (FnextLink=AValue) then exit;
  8044. FnextLink:=AValue;
  8045. MarkPropertyChanged(AIndex);
  8046. end;
  8047. Procedure TUploads.SetpreviousLink(AIndex : Integer; const AValue : String);
  8048. begin
  8049. If (FpreviousLink=AValue) then exit;
  8050. FpreviousLink:=AValue;
  8051. MarkPropertyChanged(AIndex);
  8052. end;
  8053. Procedure TUploads.SetstartIndex(AIndex : Integer; const AValue : integer);
  8054. begin
  8055. If (FstartIndex=AValue) then exit;
  8056. FstartIndex:=AValue;
  8057. MarkPropertyChanged(AIndex);
  8058. end;
  8059. Procedure TUploads.SettotalResults(AIndex : Integer; const AValue : integer);
  8060. begin
  8061. If (FtotalResults=AValue) then exit;
  8062. FtotalResults:=AValue;
  8063. MarkPropertyChanged(AIndex);
  8064. end;
  8065. //2.6.4. bug workaround
  8066. {$IFDEF VER2_6}
  8067. Procedure TUploads.SetArrayLength(Const AName : String; ALength : Longint);
  8068. begin
  8069. Case AName of
  8070. 'items' : SetLength(Fitems,ALength);
  8071. else
  8072. Inherited SetArrayLength(AName,ALength);
  8073. end;
  8074. end;
  8075. {$ENDIF VER2_6}
  8076. { --------------------------------------------------------------------
  8077. TUserRef
  8078. --------------------------------------------------------------------}
  8079. Procedure TUserRef.Setemail(AIndex : Integer; const AValue : String);
  8080. begin
  8081. If (Femail=AValue) then exit;
  8082. Femail:=AValue;
  8083. MarkPropertyChanged(AIndex);
  8084. end;
  8085. Procedure TUserRef.Setid(AIndex : Integer; const AValue : String);
  8086. begin
  8087. If (Fid=AValue) then exit;
  8088. Fid:=AValue;
  8089. MarkPropertyChanged(AIndex);
  8090. end;
  8091. Procedure TUserRef.Setkind(AIndex : Integer; const AValue : String);
  8092. begin
  8093. If (Fkind=AValue) then exit;
  8094. Fkind:=AValue;
  8095. MarkPropertyChanged(AIndex);
  8096. end;
  8097. { --------------------------------------------------------------------
  8098. TWebPropertyRef
  8099. --------------------------------------------------------------------}
  8100. Procedure TWebPropertyRef.SetaccountId(AIndex : Integer; const AValue : String);
  8101. begin
  8102. If (FaccountId=AValue) then exit;
  8103. FaccountId:=AValue;
  8104. MarkPropertyChanged(AIndex);
  8105. end;
  8106. Procedure TWebPropertyRef.Sethref(AIndex : Integer; const AValue : String);
  8107. begin
  8108. If (Fhref=AValue) then exit;
  8109. Fhref:=AValue;
  8110. MarkPropertyChanged(AIndex);
  8111. end;
  8112. Procedure TWebPropertyRef.Setid(AIndex : Integer; const AValue : String);
  8113. begin
  8114. If (Fid=AValue) then exit;
  8115. Fid:=AValue;
  8116. MarkPropertyChanged(AIndex);
  8117. end;
  8118. Procedure TWebPropertyRef.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  8119. begin
  8120. If (FinternalWebPropertyId=AValue) then exit;
  8121. FinternalWebPropertyId:=AValue;
  8122. MarkPropertyChanged(AIndex);
  8123. end;
  8124. Procedure TWebPropertyRef.Setkind(AIndex : Integer; const AValue : String);
  8125. begin
  8126. If (Fkind=AValue) then exit;
  8127. Fkind:=AValue;
  8128. MarkPropertyChanged(AIndex);
  8129. end;
  8130. Procedure TWebPropertyRef.Setname(AIndex : Integer; const AValue : String);
  8131. begin
  8132. If (Fname=AValue) then exit;
  8133. Fname:=AValue;
  8134. MarkPropertyChanged(AIndex);
  8135. end;
  8136. { --------------------------------------------------------------------
  8137. TWebPropertySummary
  8138. --------------------------------------------------------------------}
  8139. Procedure TWebPropertySummary.Setid(AIndex : Integer; const AValue : String);
  8140. begin
  8141. If (Fid=AValue) then exit;
  8142. Fid:=AValue;
  8143. MarkPropertyChanged(AIndex);
  8144. end;
  8145. Procedure TWebPropertySummary.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  8146. begin
  8147. If (FinternalWebPropertyId=AValue) then exit;
  8148. FinternalWebPropertyId:=AValue;
  8149. MarkPropertyChanged(AIndex);
  8150. end;
  8151. Procedure TWebPropertySummary.Setkind(AIndex : Integer; const AValue : String);
  8152. begin
  8153. If (Fkind=AValue) then exit;
  8154. Fkind:=AValue;
  8155. MarkPropertyChanged(AIndex);
  8156. end;
  8157. Procedure TWebPropertySummary.Setlevel(AIndex : Integer; const AValue : String);
  8158. begin
  8159. If (Flevel=AValue) then exit;
  8160. Flevel:=AValue;
  8161. MarkPropertyChanged(AIndex);
  8162. end;
  8163. Procedure TWebPropertySummary.Setname(AIndex : Integer; const AValue : String);
  8164. begin
  8165. If (Fname=AValue) then exit;
  8166. Fname:=AValue;
  8167. MarkPropertyChanged(AIndex);
  8168. end;
  8169. Procedure TWebPropertySummary.Setprofiles(AIndex : Integer; const AValue : TWebPropertySummaryTypeprofilesArray);
  8170. begin
  8171. If (Fprofiles=AValue) then exit;
  8172. Fprofiles:=AValue;
  8173. MarkPropertyChanged(AIndex);
  8174. end;
  8175. Procedure TWebPropertySummary.Setstarred(AIndex : Integer; const AValue : boolean);
  8176. begin
  8177. If (Fstarred=AValue) then exit;
  8178. Fstarred:=AValue;
  8179. MarkPropertyChanged(AIndex);
  8180. end;
  8181. Procedure TWebPropertySummary.SetwebsiteUrl(AIndex : Integer; const AValue : String);
  8182. begin
  8183. If (FwebsiteUrl=AValue) then exit;
  8184. FwebsiteUrl:=AValue;
  8185. MarkPropertyChanged(AIndex);
  8186. end;
  8187. //2.6.4. bug workaround
  8188. {$IFDEF VER2_6}
  8189. Procedure TWebPropertySummary.SetArrayLength(Const AName : String; ALength : Longint);
  8190. begin
  8191. Case AName of
  8192. 'profiles' : SetLength(Fprofiles,ALength);
  8193. else
  8194. Inherited SetArrayLength(AName,ALength);
  8195. end;
  8196. end;
  8197. {$ENDIF VER2_6}
  8198. { --------------------------------------------------------------------
  8199. TWebproperties
  8200. --------------------------------------------------------------------}
  8201. Procedure TWebproperties.Setitems(AIndex : Integer; const AValue : TWebpropertiesTypeitemsArray);
  8202. begin
  8203. If (Fitems=AValue) then exit;
  8204. Fitems:=AValue;
  8205. MarkPropertyChanged(AIndex);
  8206. end;
  8207. Procedure TWebproperties.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  8208. begin
  8209. If (FitemsPerPage=AValue) then exit;
  8210. FitemsPerPage:=AValue;
  8211. MarkPropertyChanged(AIndex);
  8212. end;
  8213. Procedure TWebproperties.Setkind(AIndex : Integer; const AValue : String);
  8214. begin
  8215. If (Fkind=AValue) then exit;
  8216. Fkind:=AValue;
  8217. MarkPropertyChanged(AIndex);
  8218. end;
  8219. Procedure TWebproperties.SetnextLink(AIndex : Integer; const AValue : String);
  8220. begin
  8221. If (FnextLink=AValue) then exit;
  8222. FnextLink:=AValue;
  8223. MarkPropertyChanged(AIndex);
  8224. end;
  8225. Procedure TWebproperties.SetpreviousLink(AIndex : Integer; const AValue : String);
  8226. begin
  8227. If (FpreviousLink=AValue) then exit;
  8228. FpreviousLink:=AValue;
  8229. MarkPropertyChanged(AIndex);
  8230. end;
  8231. Procedure TWebproperties.SetstartIndex(AIndex : Integer; const AValue : integer);
  8232. begin
  8233. If (FstartIndex=AValue) then exit;
  8234. FstartIndex:=AValue;
  8235. MarkPropertyChanged(AIndex);
  8236. end;
  8237. Procedure TWebproperties.SettotalResults(AIndex : Integer; const AValue : integer);
  8238. begin
  8239. If (FtotalResults=AValue) then exit;
  8240. FtotalResults:=AValue;
  8241. MarkPropertyChanged(AIndex);
  8242. end;
  8243. Procedure TWebproperties.Setusername(AIndex : Integer; const AValue : String);
  8244. begin
  8245. If (Fusername=AValue) then exit;
  8246. Fusername:=AValue;
  8247. MarkPropertyChanged(AIndex);
  8248. end;
  8249. //2.6.4. bug workaround
  8250. {$IFDEF VER2_6}
  8251. Procedure TWebproperties.SetArrayLength(Const AName : String; ALength : Longint);
  8252. begin
  8253. Case AName of
  8254. 'items' : SetLength(Fitems,ALength);
  8255. else
  8256. Inherited SetArrayLength(AName,ALength);
  8257. end;
  8258. end;
  8259. {$ENDIF VER2_6}
  8260. { --------------------------------------------------------------------
  8261. TWebpropertyTypechildLink
  8262. --------------------------------------------------------------------}
  8263. Procedure TWebpropertyTypechildLink.Sethref(AIndex : Integer; const AValue : String);
  8264. begin
  8265. If (Fhref=AValue) then exit;
  8266. Fhref:=AValue;
  8267. MarkPropertyChanged(AIndex);
  8268. end;
  8269. Procedure TWebpropertyTypechildLink.Set_type(AIndex : Integer; const AValue : String);
  8270. begin
  8271. If (F_type=AValue) then exit;
  8272. F_type:=AValue;
  8273. MarkPropertyChanged(AIndex);
  8274. end;
  8275. Class Function TWebpropertyTypechildLink.ExportPropertyName(Const AName : String) :String;
  8276. begin
  8277. Case AName of
  8278. '_type' : Result:='type';
  8279. else
  8280. Result:=Inherited ExportPropertyName(AName);
  8281. end;
  8282. end;
  8283. { --------------------------------------------------------------------
  8284. TWebpropertyTypeparentLink
  8285. --------------------------------------------------------------------}
  8286. Procedure TWebpropertyTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  8287. begin
  8288. If (Fhref=AValue) then exit;
  8289. Fhref:=AValue;
  8290. MarkPropertyChanged(AIndex);
  8291. end;
  8292. Procedure TWebpropertyTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  8293. begin
  8294. If (F_type=AValue) then exit;
  8295. F_type:=AValue;
  8296. MarkPropertyChanged(AIndex);
  8297. end;
  8298. Class Function TWebpropertyTypeparentLink.ExportPropertyName(Const AName : String) :String;
  8299. begin
  8300. Case AName of
  8301. '_type' : Result:='type';
  8302. else
  8303. Result:=Inherited ExportPropertyName(AName);
  8304. end;
  8305. end;
  8306. { --------------------------------------------------------------------
  8307. TWebpropertyTypepermissions
  8308. --------------------------------------------------------------------}
  8309. Procedure TWebpropertyTypepermissions.Seteffective(AIndex : Integer; const AValue : TStringArray);
  8310. begin
  8311. If (Feffective=AValue) then exit;
  8312. Feffective:=AValue;
  8313. MarkPropertyChanged(AIndex);
  8314. end;
  8315. //2.6.4. bug workaround
  8316. {$IFDEF VER2_6}
  8317. Procedure TWebpropertyTypepermissions.SetArrayLength(Const AName : String; ALength : Longint);
  8318. begin
  8319. Case AName of
  8320. 'effective' : SetLength(Feffective,ALength);
  8321. else
  8322. Inherited SetArrayLength(AName,ALength);
  8323. end;
  8324. end;
  8325. {$ENDIF VER2_6}
  8326. { --------------------------------------------------------------------
  8327. TWebproperty
  8328. --------------------------------------------------------------------}
  8329. Procedure TWebproperty.SetaccountId(AIndex : Integer; const AValue : String);
  8330. begin
  8331. If (FaccountId=AValue) then exit;
  8332. FaccountId:=AValue;
  8333. MarkPropertyChanged(AIndex);
  8334. end;
  8335. Procedure TWebproperty.SetchildLink(AIndex : Integer; const AValue : TWebpropertyTypechildLink);
  8336. begin
  8337. If (FchildLink=AValue) then exit;
  8338. FchildLink:=AValue;
  8339. MarkPropertyChanged(AIndex);
  8340. end;
  8341. Procedure TWebproperty.Setcreated(AIndex : Integer; const AValue : TDatetime);
  8342. begin
  8343. If (Fcreated=AValue) then exit;
  8344. Fcreated:=AValue;
  8345. MarkPropertyChanged(AIndex);
  8346. end;
  8347. Procedure TWebproperty.SetdefaultProfileId(AIndex : Integer; const AValue : String);
  8348. begin
  8349. If (FdefaultProfileId=AValue) then exit;
  8350. FdefaultProfileId:=AValue;
  8351. MarkPropertyChanged(AIndex);
  8352. end;
  8353. Procedure TWebproperty.Setid(AIndex : Integer; const AValue : String);
  8354. begin
  8355. If (Fid=AValue) then exit;
  8356. Fid:=AValue;
  8357. MarkPropertyChanged(AIndex);
  8358. end;
  8359. Procedure TWebproperty.SetindustryVertical(AIndex : Integer; const AValue : String);
  8360. begin
  8361. If (FindustryVertical=AValue) then exit;
  8362. FindustryVertical:=AValue;
  8363. MarkPropertyChanged(AIndex);
  8364. end;
  8365. Procedure TWebproperty.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  8366. begin
  8367. If (FinternalWebPropertyId=AValue) then exit;
  8368. FinternalWebPropertyId:=AValue;
  8369. MarkPropertyChanged(AIndex);
  8370. end;
  8371. Procedure TWebproperty.Setkind(AIndex : Integer; const AValue : String);
  8372. begin
  8373. If (Fkind=AValue) then exit;
  8374. Fkind:=AValue;
  8375. MarkPropertyChanged(AIndex);
  8376. end;
  8377. Procedure TWebproperty.Setlevel(AIndex : Integer; const AValue : String);
  8378. begin
  8379. If (Flevel=AValue) then exit;
  8380. Flevel:=AValue;
  8381. MarkPropertyChanged(AIndex);
  8382. end;
  8383. Procedure TWebproperty.Setname(AIndex : Integer; const AValue : String);
  8384. begin
  8385. If (Fname=AValue) then exit;
  8386. Fname:=AValue;
  8387. MarkPropertyChanged(AIndex);
  8388. end;
  8389. Procedure TWebproperty.SetparentLink(AIndex : Integer; const AValue : TWebpropertyTypeparentLink);
  8390. begin
  8391. If (FparentLink=AValue) then exit;
  8392. FparentLink:=AValue;
  8393. MarkPropertyChanged(AIndex);
  8394. end;
  8395. Procedure TWebproperty.Setpermissions(AIndex : Integer; const AValue : TWebpropertyTypepermissions);
  8396. begin
  8397. If (Fpermissions=AValue) then exit;
  8398. Fpermissions:=AValue;
  8399. MarkPropertyChanged(AIndex);
  8400. end;
  8401. Procedure TWebproperty.SetprofileCount(AIndex : Integer; const AValue : integer);
  8402. begin
  8403. If (FprofileCount=AValue) then exit;
  8404. FprofileCount:=AValue;
  8405. MarkPropertyChanged(AIndex);
  8406. end;
  8407. Procedure TWebproperty.SetselfLink(AIndex : Integer; const AValue : String);
  8408. begin
  8409. If (FselfLink=AValue) then exit;
  8410. FselfLink:=AValue;
  8411. MarkPropertyChanged(AIndex);
  8412. end;
  8413. Procedure TWebproperty.Setstarred(AIndex : Integer; const AValue : boolean);
  8414. begin
  8415. If (Fstarred=AValue) then exit;
  8416. Fstarred:=AValue;
  8417. MarkPropertyChanged(AIndex);
  8418. end;
  8419. Procedure TWebproperty.Setupdated(AIndex : Integer; const AValue : TDatetime);
  8420. begin
  8421. If (Fupdated=AValue) then exit;
  8422. Fupdated:=AValue;
  8423. MarkPropertyChanged(AIndex);
  8424. end;
  8425. Procedure TWebproperty.SetwebsiteUrl(AIndex : Integer; const AValue : String);
  8426. begin
  8427. If (FwebsiteUrl=AValue) then exit;
  8428. FwebsiteUrl:=AValue;
  8429. MarkPropertyChanged(AIndex);
  8430. end;
  8431. { --------------------------------------------------------------------
  8432. TDataGaResource
  8433. --------------------------------------------------------------------}
  8434. Class Function TDataGaResource.ResourceName : String;
  8435. begin
  8436. Result:='ga';
  8437. end;
  8438. Class Function TDataGaResource.DefaultAPI : TGoogleAPIClass;
  8439. begin
  8440. Result:=TanalyticsAPI;
  8441. end;
  8442. Function TDataGaResource.Get(AQuery : string = '') : TGaData;
  8443. Const
  8444. _HTTPMethod = 'GET';
  8445. _Path = 'data/ga';
  8446. _Methodid = 'analytics.data.ga.get';
  8447. begin
  8448. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TGaData) as TGaData;
  8449. end;
  8450. Function TDataGaResource.Get(AQuery : TDataGagetOptions) : TGaData;
  8451. Var
  8452. _Q : String;
  8453. begin
  8454. _Q:='';
  8455. AddToQuery(_Q,'dimensions',AQuery.dimensions);
  8456. AddToQuery(_Q,'end-date',AQuery.enddate);
  8457. AddToQuery(_Q,'filters',AQuery.filters);
  8458. AddToQuery(_Q,'ids',AQuery.ids);
  8459. AddToQuery(_Q,'include-empty-rows',AQuery.includeemptyrows);
  8460. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8461. AddToQuery(_Q,'metrics',AQuery.metrics);
  8462. AddToQuery(_Q,'output',AQuery.output);
  8463. AddToQuery(_Q,'samplingLevel',AQuery.samplingLevel);
  8464. AddToQuery(_Q,'segment',AQuery.segment);
  8465. AddToQuery(_Q,'sort',AQuery.sort);
  8466. AddToQuery(_Q,'start-date',AQuery.startdate);
  8467. AddToQuery(_Q,'start-index',AQuery.startindex);
  8468. Result:=Get(_Q);
  8469. end;
  8470. { --------------------------------------------------------------------
  8471. TDataMcfResource
  8472. --------------------------------------------------------------------}
  8473. Class Function TDataMcfResource.ResourceName : String;
  8474. begin
  8475. Result:='mcf';
  8476. end;
  8477. Class Function TDataMcfResource.DefaultAPI : TGoogleAPIClass;
  8478. begin
  8479. Result:=TanalyticsAPI;
  8480. end;
  8481. Function TDataMcfResource.Get(AQuery : string = '') : TMcfData;
  8482. Const
  8483. _HTTPMethod = 'GET';
  8484. _Path = 'data/mcf';
  8485. _Methodid = 'analytics.data.mcf.get';
  8486. begin
  8487. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TMcfData) as TMcfData;
  8488. end;
  8489. Function TDataMcfResource.Get(AQuery : TDataMcfgetOptions) : TMcfData;
  8490. Var
  8491. _Q : String;
  8492. begin
  8493. _Q:='';
  8494. AddToQuery(_Q,'dimensions',AQuery.dimensions);
  8495. AddToQuery(_Q,'end-date',AQuery.enddate);
  8496. AddToQuery(_Q,'filters',AQuery.filters);
  8497. AddToQuery(_Q,'ids',AQuery.ids);
  8498. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8499. AddToQuery(_Q,'metrics',AQuery.metrics);
  8500. AddToQuery(_Q,'samplingLevel',AQuery.samplingLevel);
  8501. AddToQuery(_Q,'sort',AQuery.sort);
  8502. AddToQuery(_Q,'start-date',AQuery.startdate);
  8503. AddToQuery(_Q,'start-index',AQuery.startindex);
  8504. Result:=Get(_Q);
  8505. end;
  8506. { --------------------------------------------------------------------
  8507. TDataRealtimeResource
  8508. --------------------------------------------------------------------}
  8509. Class Function TDataRealtimeResource.ResourceName : String;
  8510. begin
  8511. Result:='realtime';
  8512. end;
  8513. Class Function TDataRealtimeResource.DefaultAPI : TGoogleAPIClass;
  8514. begin
  8515. Result:=TanalyticsAPI;
  8516. end;
  8517. Function TDataRealtimeResource.Get(AQuery : string = '') : TRealtimeData;
  8518. Const
  8519. _HTTPMethod = 'GET';
  8520. _Path = 'data/realtime';
  8521. _Methodid = 'analytics.data.realtime.get';
  8522. begin
  8523. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TRealtimeData) as TRealtimeData;
  8524. end;
  8525. Function TDataRealtimeResource.Get(AQuery : TDataRealtimegetOptions) : TRealtimeData;
  8526. Var
  8527. _Q : String;
  8528. begin
  8529. _Q:='';
  8530. AddToQuery(_Q,'dimensions',AQuery.dimensions);
  8531. AddToQuery(_Q,'filters',AQuery.filters);
  8532. AddToQuery(_Q,'ids',AQuery.ids);
  8533. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8534. AddToQuery(_Q,'metrics',AQuery.metrics);
  8535. AddToQuery(_Q,'sort',AQuery.sort);
  8536. Result:=Get(_Q);
  8537. end;
  8538. { --------------------------------------------------------------------
  8539. TDataResource
  8540. --------------------------------------------------------------------}
  8541. Class Function TDataResource.ResourceName : String;
  8542. begin
  8543. Result:='data';
  8544. end;
  8545. Class Function TDataResource.DefaultAPI : TGoogleAPIClass;
  8546. begin
  8547. Result:=TanalyticsAPI;
  8548. end;
  8549. Function TDataResource.GetGaInstance : TDataGaResource;
  8550. begin
  8551. if (FGaInstance=Nil) then
  8552. FGaInstance:=CreateGaResource;
  8553. Result:=FGaInstance;
  8554. end;
  8555. Function TDataResource.CreateGaResource : TDataGaResource;
  8556. begin
  8557. Result:=CreateGaResource(Self);
  8558. end;
  8559. Function TDataResource.CreateGaResource(AOwner : TComponent) : TDataGaResource;
  8560. begin
  8561. Result:=TDataGaResource.Create(AOwner);
  8562. Result.API:=Self.API;
  8563. end;
  8564. Function TDataResource.GetMcfInstance : TDataMcfResource;
  8565. begin
  8566. if (FMcfInstance=Nil) then
  8567. FMcfInstance:=CreateMcfResource;
  8568. Result:=FMcfInstance;
  8569. end;
  8570. Function TDataResource.CreateMcfResource : TDataMcfResource;
  8571. begin
  8572. Result:=CreateMcfResource(Self);
  8573. end;
  8574. Function TDataResource.CreateMcfResource(AOwner : TComponent) : TDataMcfResource;
  8575. begin
  8576. Result:=TDataMcfResource.Create(AOwner);
  8577. Result.API:=Self.API;
  8578. end;
  8579. Function TDataResource.GetRealtimeInstance : TDataRealtimeResource;
  8580. begin
  8581. if (FRealtimeInstance=Nil) then
  8582. FRealtimeInstance:=CreateRealtimeResource;
  8583. Result:=FRealtimeInstance;
  8584. end;
  8585. Function TDataResource.CreateRealtimeResource : TDataRealtimeResource;
  8586. begin
  8587. Result:=CreateRealtimeResource(Self);
  8588. end;
  8589. Function TDataResource.CreateRealtimeResource(AOwner : TComponent) : TDataRealtimeResource;
  8590. begin
  8591. Result:=TDataRealtimeResource.Create(AOwner);
  8592. Result.API:=Self.API;
  8593. end;
  8594. { --------------------------------------------------------------------
  8595. TManagementAccountSummariesResource
  8596. --------------------------------------------------------------------}
  8597. Class Function TManagementAccountSummariesResource.ResourceName : String;
  8598. begin
  8599. Result:='accountSummaries';
  8600. end;
  8601. Class Function TManagementAccountSummariesResource.DefaultAPI : TGoogleAPIClass;
  8602. begin
  8603. Result:=TanalyticsAPI;
  8604. end;
  8605. Function TManagementAccountSummariesResource.List(AQuery : string = '') : TAccountSummaries;
  8606. Const
  8607. _HTTPMethod = 'GET';
  8608. _Path = 'management/accountSummaries';
  8609. _Methodid = 'analytics.management.accountSummaries.list';
  8610. begin
  8611. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TAccountSummaries) as TAccountSummaries;
  8612. end;
  8613. Function TManagementAccountSummariesResource.List(AQuery : TManagementAccountSummarieslistOptions) : TAccountSummaries;
  8614. Var
  8615. _Q : String;
  8616. begin
  8617. _Q:='';
  8618. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8619. AddToQuery(_Q,'start-index',AQuery.startindex);
  8620. Result:=List(_Q);
  8621. end;
  8622. { --------------------------------------------------------------------
  8623. TManagementAccountUserLinksResource
  8624. --------------------------------------------------------------------}
  8625. Class Function TManagementAccountUserLinksResource.ResourceName : String;
  8626. begin
  8627. Result:='accountUserLinks';
  8628. end;
  8629. Class Function TManagementAccountUserLinksResource.DefaultAPI : TGoogleAPIClass;
  8630. begin
  8631. Result:=TanalyticsAPI;
  8632. end;
  8633. Procedure TManagementAccountUserLinksResource.Delete(accountId: string; linkId: string);
  8634. Const
  8635. _HTTPMethod = 'DELETE';
  8636. _Path = 'management/accounts/{accountId}/entityUserLinks/{linkId}';
  8637. _Methodid = 'analytics.management.accountUserLinks.delete';
  8638. Var
  8639. _P : String;
  8640. begin
  8641. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId]);
  8642. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  8643. end;
  8644. Function TManagementAccountUserLinksResource.Insert(accountId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  8645. Const
  8646. _HTTPMethod = 'POST';
  8647. _Path = 'management/accounts/{accountId}/entityUserLinks';
  8648. _Methodid = 'analytics.management.accountUserLinks.insert';
  8649. Var
  8650. _P : String;
  8651. begin
  8652. _P:=SubstitutePath(_Path,['accountId',accountId]);
  8653. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  8654. end;
  8655. Function TManagementAccountUserLinksResource.List(accountId: string; AQuery : string = '') : TEntityUserLinks;
  8656. Const
  8657. _HTTPMethod = 'GET';
  8658. _Path = 'management/accounts/{accountId}/entityUserLinks';
  8659. _Methodid = 'analytics.management.accountUserLinks.list';
  8660. Var
  8661. _P : String;
  8662. begin
  8663. _P:=SubstitutePath(_Path,['accountId',accountId]);
  8664. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEntityUserLinks) as TEntityUserLinks;
  8665. end;
  8666. Function TManagementAccountUserLinksResource.List(accountId: string; AQuery : TManagementAccountUserLinkslistOptions) : TEntityUserLinks;
  8667. Var
  8668. _Q : String;
  8669. begin
  8670. _Q:='';
  8671. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8672. AddToQuery(_Q,'start-index',AQuery.startindex);
  8673. Result:=List(accountId,_Q);
  8674. end;
  8675. Function TManagementAccountUserLinksResource.Update(accountId: string; linkId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  8676. Const
  8677. _HTTPMethod = 'PUT';
  8678. _Path = 'management/accounts/{accountId}/entityUserLinks/{linkId}';
  8679. _Methodid = 'analytics.management.accountUserLinks.update';
  8680. Var
  8681. _P : String;
  8682. begin
  8683. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId]);
  8684. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  8685. end;
  8686. { --------------------------------------------------------------------
  8687. TManagementAccountsResource
  8688. --------------------------------------------------------------------}
  8689. Class Function TManagementAccountsResource.ResourceName : String;
  8690. begin
  8691. Result:='accounts';
  8692. end;
  8693. Class Function TManagementAccountsResource.DefaultAPI : TGoogleAPIClass;
  8694. begin
  8695. Result:=TanalyticsAPI;
  8696. end;
  8697. Function TManagementAccountsResource.List(AQuery : string = '') : TAccounts;
  8698. Const
  8699. _HTTPMethod = 'GET';
  8700. _Path = 'management/accounts';
  8701. _Methodid = 'analytics.management.accounts.list';
  8702. begin
  8703. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TAccounts) as TAccounts;
  8704. end;
  8705. Function TManagementAccountsResource.List(AQuery : TManagementAccountslistOptions) : TAccounts;
  8706. Var
  8707. _Q : String;
  8708. begin
  8709. _Q:='';
  8710. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8711. AddToQuery(_Q,'start-index',AQuery.startindex);
  8712. Result:=List(_Q);
  8713. end;
  8714. { --------------------------------------------------------------------
  8715. TManagementCustomDataSourcesResource
  8716. --------------------------------------------------------------------}
  8717. Class Function TManagementCustomDataSourcesResource.ResourceName : String;
  8718. begin
  8719. Result:='customDataSources';
  8720. end;
  8721. Class Function TManagementCustomDataSourcesResource.DefaultAPI : TGoogleAPIClass;
  8722. begin
  8723. Result:=TanalyticsAPI;
  8724. end;
  8725. Function TManagementCustomDataSourcesResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomDataSources;
  8726. Const
  8727. _HTTPMethod = 'GET';
  8728. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources';
  8729. _Methodid = 'analytics.management.customDataSources.list';
  8730. Var
  8731. _P : String;
  8732. begin
  8733. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8734. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCustomDataSources) as TCustomDataSources;
  8735. end;
  8736. Function TManagementCustomDataSourcesResource.List(accountId: string; webPropertyId: string; AQuery : TManagementCustomDataSourceslistOptions) : TCustomDataSources;
  8737. Var
  8738. _Q : String;
  8739. begin
  8740. _Q:='';
  8741. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8742. AddToQuery(_Q,'start-index',AQuery.startindex);
  8743. Result:=List(accountId,webPropertyId,_Q);
  8744. end;
  8745. { --------------------------------------------------------------------
  8746. TManagementCustomDimensionsResource
  8747. --------------------------------------------------------------------}
  8748. Class Function TManagementCustomDimensionsResource.ResourceName : String;
  8749. begin
  8750. Result:='customDimensions';
  8751. end;
  8752. Class Function TManagementCustomDimensionsResource.DefaultAPI : TGoogleAPIClass;
  8753. begin
  8754. Result:=TanalyticsAPI;
  8755. end;
  8756. Function TManagementCustomDimensionsResource.Get(accountId: string; customDimensionId: string; webPropertyId: string) : TCustomDimension;
  8757. Const
  8758. _HTTPMethod = 'GET';
  8759. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}';
  8760. _Methodid = 'analytics.management.customDimensions.get';
  8761. Var
  8762. _P : String;
  8763. begin
  8764. _P:=SubstitutePath(_Path,['accountId',accountId,'customDimensionId',customDimensionId,'webPropertyId',webPropertyId]);
  8765. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TCustomDimension) as TCustomDimension;
  8766. end;
  8767. Function TManagementCustomDimensionsResource.Insert(accountId: string; webPropertyId: string; aCustomDimension : TCustomDimension) : TCustomDimension;
  8768. Const
  8769. _HTTPMethod = 'POST';
  8770. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions';
  8771. _Methodid = 'analytics.management.customDimensions.insert';
  8772. Var
  8773. _P : String;
  8774. begin
  8775. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8776. Result:=ServiceCall(_HTTPMethod,_P,'',aCustomDimension,TCustomDimension) as TCustomDimension;
  8777. end;
  8778. Function TManagementCustomDimensionsResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomDimensions;
  8779. Const
  8780. _HTTPMethod = 'GET';
  8781. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions';
  8782. _Methodid = 'analytics.management.customDimensions.list';
  8783. Var
  8784. _P : String;
  8785. begin
  8786. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8787. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCustomDimensions) as TCustomDimensions;
  8788. end;
  8789. Function TManagementCustomDimensionsResource.List(accountId: string; webPropertyId: string; AQuery : TManagementCustomDimensionslistOptions) : TCustomDimensions;
  8790. Var
  8791. _Q : String;
  8792. begin
  8793. _Q:='';
  8794. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8795. AddToQuery(_Q,'start-index',AQuery.startindex);
  8796. Result:=List(accountId,webPropertyId,_Q);
  8797. end;
  8798. Function TManagementCustomDimensionsResource.Patch(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : string = '') : TCustomDimension;
  8799. Const
  8800. _HTTPMethod = 'PATCH';
  8801. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}';
  8802. _Methodid = 'analytics.management.customDimensions.patch';
  8803. Var
  8804. _P : String;
  8805. begin
  8806. _P:=SubstitutePath(_Path,['accountId',accountId,'customDimensionId',customDimensionId,'webPropertyId',webPropertyId]);
  8807. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCustomDimension,TCustomDimension) as TCustomDimension;
  8808. end;
  8809. Function TManagementCustomDimensionsResource.Patch(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : TManagementCustomDimensionspatchOptions) : TCustomDimension;
  8810. Var
  8811. _Q : String;
  8812. begin
  8813. _Q:='';
  8814. AddToQuery(_Q,'ignoreCustomDataSourceLinks',AQuery.ignoreCustomDataSourceLinks);
  8815. Result:=Patch(accountId,customDimensionId,webPropertyId,aCustomDimension,_Q);
  8816. end;
  8817. Function TManagementCustomDimensionsResource.Update(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : string = '') : TCustomDimension;
  8818. Const
  8819. _HTTPMethod = 'PUT';
  8820. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}';
  8821. _Methodid = 'analytics.management.customDimensions.update';
  8822. Var
  8823. _P : String;
  8824. begin
  8825. _P:=SubstitutePath(_Path,['accountId',accountId,'customDimensionId',customDimensionId,'webPropertyId',webPropertyId]);
  8826. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCustomDimension,TCustomDimension) as TCustomDimension;
  8827. end;
  8828. Function TManagementCustomDimensionsResource.Update(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : TManagementCustomDimensionsupdateOptions) : TCustomDimension;
  8829. Var
  8830. _Q : String;
  8831. begin
  8832. _Q:='';
  8833. AddToQuery(_Q,'ignoreCustomDataSourceLinks',AQuery.ignoreCustomDataSourceLinks);
  8834. Result:=Update(accountId,customDimensionId,webPropertyId,aCustomDimension,_Q);
  8835. end;
  8836. { --------------------------------------------------------------------
  8837. TManagementCustomMetricsResource
  8838. --------------------------------------------------------------------}
  8839. Class Function TManagementCustomMetricsResource.ResourceName : String;
  8840. begin
  8841. Result:='customMetrics';
  8842. end;
  8843. Class Function TManagementCustomMetricsResource.DefaultAPI : TGoogleAPIClass;
  8844. begin
  8845. Result:=TanalyticsAPI;
  8846. end;
  8847. Function TManagementCustomMetricsResource.Get(accountId: string; customMetricId: string; webPropertyId: string) : TCustomMetric;
  8848. Const
  8849. _HTTPMethod = 'GET';
  8850. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}';
  8851. _Methodid = 'analytics.management.customMetrics.get';
  8852. Var
  8853. _P : String;
  8854. begin
  8855. _P:=SubstitutePath(_Path,['accountId',accountId,'customMetricId',customMetricId,'webPropertyId',webPropertyId]);
  8856. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TCustomMetric) as TCustomMetric;
  8857. end;
  8858. Function TManagementCustomMetricsResource.Insert(accountId: string; webPropertyId: string; aCustomMetric : TCustomMetric) : TCustomMetric;
  8859. Const
  8860. _HTTPMethod = 'POST';
  8861. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics';
  8862. _Methodid = 'analytics.management.customMetrics.insert';
  8863. Var
  8864. _P : String;
  8865. begin
  8866. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8867. Result:=ServiceCall(_HTTPMethod,_P,'',aCustomMetric,TCustomMetric) as TCustomMetric;
  8868. end;
  8869. Function TManagementCustomMetricsResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomMetrics;
  8870. Const
  8871. _HTTPMethod = 'GET';
  8872. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics';
  8873. _Methodid = 'analytics.management.customMetrics.list';
  8874. Var
  8875. _P : String;
  8876. begin
  8877. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8878. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCustomMetrics) as TCustomMetrics;
  8879. end;
  8880. Function TManagementCustomMetricsResource.List(accountId: string; webPropertyId: string; AQuery : TManagementCustomMetricslistOptions) : TCustomMetrics;
  8881. Var
  8882. _Q : String;
  8883. begin
  8884. _Q:='';
  8885. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8886. AddToQuery(_Q,'start-index',AQuery.startindex);
  8887. Result:=List(accountId,webPropertyId,_Q);
  8888. end;
  8889. Function TManagementCustomMetricsResource.Patch(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : string = '') : TCustomMetric;
  8890. Const
  8891. _HTTPMethod = 'PATCH';
  8892. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}';
  8893. _Methodid = 'analytics.management.customMetrics.patch';
  8894. Var
  8895. _P : String;
  8896. begin
  8897. _P:=SubstitutePath(_Path,['accountId',accountId,'customMetricId',customMetricId,'webPropertyId',webPropertyId]);
  8898. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCustomMetric,TCustomMetric) as TCustomMetric;
  8899. end;
  8900. Function TManagementCustomMetricsResource.Patch(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : TManagementCustomMetricspatchOptions) : TCustomMetric;
  8901. Var
  8902. _Q : String;
  8903. begin
  8904. _Q:='';
  8905. AddToQuery(_Q,'ignoreCustomDataSourceLinks',AQuery.ignoreCustomDataSourceLinks);
  8906. Result:=Patch(accountId,customMetricId,webPropertyId,aCustomMetric,_Q);
  8907. end;
  8908. Function TManagementCustomMetricsResource.Update(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : string = '') : TCustomMetric;
  8909. Const
  8910. _HTTPMethod = 'PUT';
  8911. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}';
  8912. _Methodid = 'analytics.management.customMetrics.update';
  8913. Var
  8914. _P : String;
  8915. begin
  8916. _P:=SubstitutePath(_Path,['accountId',accountId,'customMetricId',customMetricId,'webPropertyId',webPropertyId]);
  8917. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCustomMetric,TCustomMetric) as TCustomMetric;
  8918. end;
  8919. Function TManagementCustomMetricsResource.Update(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : TManagementCustomMetricsupdateOptions) : TCustomMetric;
  8920. Var
  8921. _Q : String;
  8922. begin
  8923. _Q:='';
  8924. AddToQuery(_Q,'ignoreCustomDataSourceLinks',AQuery.ignoreCustomDataSourceLinks);
  8925. Result:=Update(accountId,customMetricId,webPropertyId,aCustomMetric,_Q);
  8926. end;
  8927. { --------------------------------------------------------------------
  8928. TManagementExperimentsResource
  8929. --------------------------------------------------------------------}
  8930. Class Function TManagementExperimentsResource.ResourceName : String;
  8931. begin
  8932. Result:='experiments';
  8933. end;
  8934. Class Function TManagementExperimentsResource.DefaultAPI : TGoogleAPIClass;
  8935. begin
  8936. Result:=TanalyticsAPI;
  8937. end;
  8938. Procedure TManagementExperimentsResource.Delete(accountId: string; experimentId: string; profileId: string; webPropertyId: string);
  8939. Const
  8940. _HTTPMethod = 'DELETE';
  8941. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}';
  8942. _Methodid = 'analytics.management.experiments.delete';
  8943. Var
  8944. _P : String;
  8945. begin
  8946. _P:=SubstitutePath(_Path,['accountId',accountId,'experimentId',experimentId,'profileId',profileId,'webPropertyId',webPropertyId]);
  8947. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  8948. end;
  8949. Function TManagementExperimentsResource.Get(accountId: string; experimentId: string; profileId: string; webPropertyId: string) : TExperiment;
  8950. Const
  8951. _HTTPMethod = 'GET';
  8952. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}';
  8953. _Methodid = 'analytics.management.experiments.get';
  8954. Var
  8955. _P : String;
  8956. begin
  8957. _P:=SubstitutePath(_Path,['accountId',accountId,'experimentId',experimentId,'profileId',profileId,'webPropertyId',webPropertyId]);
  8958. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TExperiment) as TExperiment;
  8959. end;
  8960. Function TManagementExperimentsResource.Insert(accountId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  8961. Const
  8962. _HTTPMethod = 'POST';
  8963. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments';
  8964. _Methodid = 'analytics.management.experiments.insert';
  8965. Var
  8966. _P : String;
  8967. begin
  8968. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  8969. Result:=ServiceCall(_HTTPMethod,_P,'',aExperiment,TExperiment) as TExperiment;
  8970. end;
  8971. Function TManagementExperimentsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TExperiments;
  8972. Const
  8973. _HTTPMethod = 'GET';
  8974. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments';
  8975. _Methodid = 'analytics.management.experiments.list';
  8976. Var
  8977. _P : String;
  8978. begin
  8979. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  8980. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TExperiments) as TExperiments;
  8981. end;
  8982. Function TManagementExperimentsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementExperimentslistOptions) : TExperiments;
  8983. Var
  8984. _Q : String;
  8985. begin
  8986. _Q:='';
  8987. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8988. AddToQuery(_Q,'start-index',AQuery.startindex);
  8989. Result:=List(accountId,profileId,webPropertyId,_Q);
  8990. end;
  8991. Function TManagementExperimentsResource.Patch(accountId: string; experimentId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  8992. Const
  8993. _HTTPMethod = 'PATCH';
  8994. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}';
  8995. _Methodid = 'analytics.management.experiments.patch';
  8996. Var
  8997. _P : String;
  8998. begin
  8999. _P:=SubstitutePath(_Path,['accountId',accountId,'experimentId',experimentId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9000. Result:=ServiceCall(_HTTPMethod,_P,'',aExperiment,TExperiment) as TExperiment;
  9001. end;
  9002. Function TManagementExperimentsResource.Update(accountId: string; experimentId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  9003. Const
  9004. _HTTPMethod = 'PUT';
  9005. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}';
  9006. _Methodid = 'analytics.management.experiments.update';
  9007. Var
  9008. _P : String;
  9009. begin
  9010. _P:=SubstitutePath(_Path,['accountId',accountId,'experimentId',experimentId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9011. Result:=ServiceCall(_HTTPMethod,_P,'',aExperiment,TExperiment) as TExperiment;
  9012. end;
  9013. { --------------------------------------------------------------------
  9014. TManagementFiltersResource
  9015. --------------------------------------------------------------------}
  9016. Class Function TManagementFiltersResource.ResourceName : String;
  9017. begin
  9018. Result:='filters';
  9019. end;
  9020. Class Function TManagementFiltersResource.DefaultAPI : TGoogleAPIClass;
  9021. begin
  9022. Result:=TanalyticsAPI;
  9023. end;
  9024. Function TManagementFiltersResource.Delete(accountId: string; filterId: string) : TFilter;
  9025. Const
  9026. _HTTPMethod = 'DELETE';
  9027. _Path = 'management/accounts/{accountId}/filters/{filterId}';
  9028. _Methodid = 'analytics.management.filters.delete';
  9029. Var
  9030. _P : String;
  9031. begin
  9032. _P:=SubstitutePath(_Path,['accountId',accountId,'filterId',filterId]);
  9033. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TFilter) as TFilter;
  9034. end;
  9035. Function TManagementFiltersResource.Get(accountId: string; filterId: string) : TFilter;
  9036. Const
  9037. _HTTPMethod = 'GET';
  9038. _Path = 'management/accounts/{accountId}/filters/{filterId}';
  9039. _Methodid = 'analytics.management.filters.get';
  9040. Var
  9041. _P : String;
  9042. begin
  9043. _P:=SubstitutePath(_Path,['accountId',accountId,'filterId',filterId]);
  9044. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TFilter) as TFilter;
  9045. end;
  9046. Function TManagementFiltersResource.Insert(accountId: string; aFilter : TFilter) : TFilter;
  9047. Const
  9048. _HTTPMethod = 'POST';
  9049. _Path = 'management/accounts/{accountId}/filters';
  9050. _Methodid = 'analytics.management.filters.insert';
  9051. Var
  9052. _P : String;
  9053. begin
  9054. _P:=SubstitutePath(_Path,['accountId',accountId]);
  9055. Result:=ServiceCall(_HTTPMethod,_P,'',aFilter,TFilter) as TFilter;
  9056. end;
  9057. Function TManagementFiltersResource.List(accountId: string; AQuery : string = '') : TFilters;
  9058. Const
  9059. _HTTPMethod = 'GET';
  9060. _Path = 'management/accounts/{accountId}/filters';
  9061. _Methodid = 'analytics.management.filters.list';
  9062. Var
  9063. _P : String;
  9064. begin
  9065. _P:=SubstitutePath(_Path,['accountId',accountId]);
  9066. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TFilters) as TFilters;
  9067. end;
  9068. Function TManagementFiltersResource.List(accountId: string; AQuery : TManagementFilterslistOptions) : TFilters;
  9069. Var
  9070. _Q : String;
  9071. begin
  9072. _Q:='';
  9073. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9074. AddToQuery(_Q,'start-index',AQuery.startindex);
  9075. Result:=List(accountId,_Q);
  9076. end;
  9077. Function TManagementFiltersResource.Patch(accountId: string; filterId: string; aFilter : TFilter) : TFilter;
  9078. Const
  9079. _HTTPMethod = 'PATCH';
  9080. _Path = 'management/accounts/{accountId}/filters/{filterId}';
  9081. _Methodid = 'analytics.management.filters.patch';
  9082. Var
  9083. _P : String;
  9084. begin
  9085. _P:=SubstitutePath(_Path,['accountId',accountId,'filterId',filterId]);
  9086. Result:=ServiceCall(_HTTPMethod,_P,'',aFilter,TFilter) as TFilter;
  9087. end;
  9088. Function TManagementFiltersResource.Update(accountId: string; filterId: string; aFilter : TFilter) : TFilter;
  9089. Const
  9090. _HTTPMethod = 'PUT';
  9091. _Path = 'management/accounts/{accountId}/filters/{filterId}';
  9092. _Methodid = 'analytics.management.filters.update';
  9093. Var
  9094. _P : String;
  9095. begin
  9096. _P:=SubstitutePath(_Path,['accountId',accountId,'filterId',filterId]);
  9097. Result:=ServiceCall(_HTTPMethod,_P,'',aFilter,TFilter) as TFilter;
  9098. end;
  9099. { --------------------------------------------------------------------
  9100. TManagementGoalsResource
  9101. --------------------------------------------------------------------}
  9102. Class Function TManagementGoalsResource.ResourceName : String;
  9103. begin
  9104. Result:='goals';
  9105. end;
  9106. Class Function TManagementGoalsResource.DefaultAPI : TGoogleAPIClass;
  9107. begin
  9108. Result:=TanalyticsAPI;
  9109. end;
  9110. Function TManagementGoalsResource.Get(accountId: string; goalId: string; profileId: string; webPropertyId: string) : TGoal;
  9111. Const
  9112. _HTTPMethod = 'GET';
  9113. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}';
  9114. _Methodid = 'analytics.management.goals.get';
  9115. Var
  9116. _P : String;
  9117. begin
  9118. _P:=SubstitutePath(_Path,['accountId',accountId,'goalId',goalId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9119. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TGoal) as TGoal;
  9120. end;
  9121. Function TManagementGoalsResource.Insert(accountId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  9122. Const
  9123. _HTTPMethod = 'POST';
  9124. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals';
  9125. _Methodid = 'analytics.management.goals.insert';
  9126. Var
  9127. _P : String;
  9128. begin
  9129. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9130. Result:=ServiceCall(_HTTPMethod,_P,'',aGoal,TGoal) as TGoal;
  9131. end;
  9132. Function TManagementGoalsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TGoals;
  9133. Const
  9134. _HTTPMethod = 'GET';
  9135. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals';
  9136. _Methodid = 'analytics.management.goals.list';
  9137. Var
  9138. _P : String;
  9139. begin
  9140. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9141. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TGoals) as TGoals;
  9142. end;
  9143. Function TManagementGoalsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementGoalslistOptions) : TGoals;
  9144. Var
  9145. _Q : String;
  9146. begin
  9147. _Q:='';
  9148. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9149. AddToQuery(_Q,'start-index',AQuery.startindex);
  9150. Result:=List(accountId,profileId,webPropertyId,_Q);
  9151. end;
  9152. Function TManagementGoalsResource.Patch(accountId: string; goalId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  9153. Const
  9154. _HTTPMethod = 'PATCH';
  9155. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}';
  9156. _Methodid = 'analytics.management.goals.patch';
  9157. Var
  9158. _P : String;
  9159. begin
  9160. _P:=SubstitutePath(_Path,['accountId',accountId,'goalId',goalId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9161. Result:=ServiceCall(_HTTPMethod,_P,'',aGoal,TGoal) as TGoal;
  9162. end;
  9163. Function TManagementGoalsResource.Update(accountId: string; goalId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  9164. Const
  9165. _HTTPMethod = 'PUT';
  9166. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}';
  9167. _Methodid = 'analytics.management.goals.update';
  9168. Var
  9169. _P : String;
  9170. begin
  9171. _P:=SubstitutePath(_Path,['accountId',accountId,'goalId',goalId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9172. Result:=ServiceCall(_HTTPMethod,_P,'',aGoal,TGoal) as TGoal;
  9173. end;
  9174. { --------------------------------------------------------------------
  9175. TManagementProfileFilterLinksResource
  9176. --------------------------------------------------------------------}
  9177. Class Function TManagementProfileFilterLinksResource.ResourceName : String;
  9178. begin
  9179. Result:='profileFilterLinks';
  9180. end;
  9181. Class Function TManagementProfileFilterLinksResource.DefaultAPI : TGoogleAPIClass;
  9182. begin
  9183. Result:=TanalyticsAPI;
  9184. end;
  9185. Procedure TManagementProfileFilterLinksResource.Delete(accountId: string; linkId: string; profileId: string; webPropertyId: string);
  9186. Const
  9187. _HTTPMethod = 'DELETE';
  9188. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}';
  9189. _Methodid = 'analytics.management.profileFilterLinks.delete';
  9190. Var
  9191. _P : String;
  9192. begin
  9193. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9194. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9195. end;
  9196. Function TManagementProfileFilterLinksResource.Get(accountId: string; linkId: string; profileId: string; webPropertyId: string) : TProfileFilterLink;
  9197. Const
  9198. _HTTPMethod = 'GET';
  9199. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}';
  9200. _Methodid = 'analytics.management.profileFilterLinks.get';
  9201. Var
  9202. _P : String;
  9203. begin
  9204. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9205. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProfileFilterLink) as TProfileFilterLink;
  9206. end;
  9207. Function TManagementProfileFilterLinksResource.Insert(accountId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  9208. Const
  9209. _HTTPMethod = 'POST';
  9210. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks';
  9211. _Methodid = 'analytics.management.profileFilterLinks.insert';
  9212. Var
  9213. _P : String;
  9214. begin
  9215. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9216. Result:=ServiceCall(_HTTPMethod,_P,'',aProfileFilterLink,TProfileFilterLink) as TProfileFilterLink;
  9217. end;
  9218. Function TManagementProfileFilterLinksResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TProfileFilterLinks;
  9219. Const
  9220. _HTTPMethod = 'GET';
  9221. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks';
  9222. _Methodid = 'analytics.management.profileFilterLinks.list';
  9223. Var
  9224. _P : String;
  9225. begin
  9226. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9227. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TProfileFilterLinks) as TProfileFilterLinks;
  9228. end;
  9229. Function TManagementProfileFilterLinksResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementProfileFilterLinkslistOptions) : TProfileFilterLinks;
  9230. Var
  9231. _Q : String;
  9232. begin
  9233. _Q:='';
  9234. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9235. AddToQuery(_Q,'start-index',AQuery.startindex);
  9236. Result:=List(accountId,profileId,webPropertyId,_Q);
  9237. end;
  9238. Function TManagementProfileFilterLinksResource.Patch(accountId: string; linkId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  9239. Const
  9240. _HTTPMethod = 'PATCH';
  9241. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}';
  9242. _Methodid = 'analytics.management.profileFilterLinks.patch';
  9243. Var
  9244. _P : String;
  9245. begin
  9246. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9247. Result:=ServiceCall(_HTTPMethod,_P,'',aProfileFilterLink,TProfileFilterLink) as TProfileFilterLink;
  9248. end;
  9249. Function TManagementProfileFilterLinksResource.Update(accountId: string; linkId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  9250. Const
  9251. _HTTPMethod = 'PUT';
  9252. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}';
  9253. _Methodid = 'analytics.management.profileFilterLinks.update';
  9254. Var
  9255. _P : String;
  9256. begin
  9257. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9258. Result:=ServiceCall(_HTTPMethod,_P,'',aProfileFilterLink,TProfileFilterLink) as TProfileFilterLink;
  9259. end;
  9260. { --------------------------------------------------------------------
  9261. TManagementProfileUserLinksResource
  9262. --------------------------------------------------------------------}
  9263. Class Function TManagementProfileUserLinksResource.ResourceName : String;
  9264. begin
  9265. Result:='profileUserLinks';
  9266. end;
  9267. Class Function TManagementProfileUserLinksResource.DefaultAPI : TGoogleAPIClass;
  9268. begin
  9269. Result:=TanalyticsAPI;
  9270. end;
  9271. Procedure TManagementProfileUserLinksResource.Delete(accountId: string; linkId: string; profileId: string; webPropertyId: string);
  9272. Const
  9273. _HTTPMethod = 'DELETE';
  9274. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}';
  9275. _Methodid = 'analytics.management.profileUserLinks.delete';
  9276. Var
  9277. _P : String;
  9278. begin
  9279. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9280. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9281. end;
  9282. Function TManagementProfileUserLinksResource.Insert(accountId: string; profileId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  9283. Const
  9284. _HTTPMethod = 'POST';
  9285. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks';
  9286. _Methodid = 'analytics.management.profileUserLinks.insert';
  9287. Var
  9288. _P : String;
  9289. begin
  9290. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9291. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  9292. end;
  9293. Function TManagementProfileUserLinksResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TEntityUserLinks;
  9294. Const
  9295. _HTTPMethod = 'GET';
  9296. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks';
  9297. _Methodid = 'analytics.management.profileUserLinks.list';
  9298. Var
  9299. _P : String;
  9300. begin
  9301. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9302. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEntityUserLinks) as TEntityUserLinks;
  9303. end;
  9304. Function TManagementProfileUserLinksResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementProfileUserLinkslistOptions) : TEntityUserLinks;
  9305. Var
  9306. _Q : String;
  9307. begin
  9308. _Q:='';
  9309. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9310. AddToQuery(_Q,'start-index',AQuery.startindex);
  9311. Result:=List(accountId,profileId,webPropertyId,_Q);
  9312. end;
  9313. Function TManagementProfileUserLinksResource.Update(accountId: string; linkId: string; profileId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  9314. Const
  9315. _HTTPMethod = 'PUT';
  9316. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}';
  9317. _Methodid = 'analytics.management.profileUserLinks.update';
  9318. Var
  9319. _P : String;
  9320. begin
  9321. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9322. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  9323. end;
  9324. { --------------------------------------------------------------------
  9325. TManagementProfilesResource
  9326. --------------------------------------------------------------------}
  9327. Class Function TManagementProfilesResource.ResourceName : String;
  9328. begin
  9329. Result:='profiles';
  9330. end;
  9331. Class Function TManagementProfilesResource.DefaultAPI : TGoogleAPIClass;
  9332. begin
  9333. Result:=TanalyticsAPI;
  9334. end;
  9335. Procedure TManagementProfilesResource.Delete(accountId: string; profileId: string; webPropertyId: string);
  9336. Const
  9337. _HTTPMethod = 'DELETE';
  9338. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}';
  9339. _Methodid = 'analytics.management.profiles.delete';
  9340. Var
  9341. _P : String;
  9342. begin
  9343. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9344. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9345. end;
  9346. Function TManagementProfilesResource.Get(accountId: string; profileId: string; webPropertyId: string) : TProfile;
  9347. Const
  9348. _HTTPMethod = 'GET';
  9349. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}';
  9350. _Methodid = 'analytics.management.profiles.get';
  9351. Var
  9352. _P : String;
  9353. begin
  9354. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9355. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProfile) as TProfile;
  9356. end;
  9357. Function TManagementProfilesResource.Insert(accountId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  9358. Const
  9359. _HTTPMethod = 'POST';
  9360. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles';
  9361. _Methodid = 'analytics.management.profiles.insert';
  9362. Var
  9363. _P : String;
  9364. begin
  9365. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9366. Result:=ServiceCall(_HTTPMethod,_P,'',aProfile,TProfile) as TProfile;
  9367. end;
  9368. Function TManagementProfilesResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TProfiles;
  9369. Const
  9370. _HTTPMethod = 'GET';
  9371. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles';
  9372. _Methodid = 'analytics.management.profiles.list';
  9373. Var
  9374. _P : String;
  9375. begin
  9376. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9377. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TProfiles) as TProfiles;
  9378. end;
  9379. Function TManagementProfilesResource.List(accountId: string; webPropertyId: string; AQuery : TManagementProfileslistOptions) : TProfiles;
  9380. Var
  9381. _Q : String;
  9382. begin
  9383. _Q:='';
  9384. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9385. AddToQuery(_Q,'start-index',AQuery.startindex);
  9386. Result:=List(accountId,webPropertyId,_Q);
  9387. end;
  9388. Function TManagementProfilesResource.Patch(accountId: string; profileId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  9389. Const
  9390. _HTTPMethod = 'PATCH';
  9391. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}';
  9392. _Methodid = 'analytics.management.profiles.patch';
  9393. Var
  9394. _P : String;
  9395. begin
  9396. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9397. Result:=ServiceCall(_HTTPMethod,_P,'',aProfile,TProfile) as TProfile;
  9398. end;
  9399. Function TManagementProfilesResource.Update(accountId: string; profileId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  9400. Const
  9401. _HTTPMethod = 'PUT';
  9402. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}';
  9403. _Methodid = 'analytics.management.profiles.update';
  9404. Var
  9405. _P : String;
  9406. begin
  9407. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9408. Result:=ServiceCall(_HTTPMethod,_P,'',aProfile,TProfile) as TProfile;
  9409. end;
  9410. { --------------------------------------------------------------------
  9411. TManagementSegmentsResource
  9412. --------------------------------------------------------------------}
  9413. Class Function TManagementSegmentsResource.ResourceName : String;
  9414. begin
  9415. Result:='segments';
  9416. end;
  9417. Class Function TManagementSegmentsResource.DefaultAPI : TGoogleAPIClass;
  9418. begin
  9419. Result:=TanalyticsAPI;
  9420. end;
  9421. Function TManagementSegmentsResource.List(AQuery : string = '') : TSegments;
  9422. Const
  9423. _HTTPMethod = 'GET';
  9424. _Path = 'management/segments';
  9425. _Methodid = 'analytics.management.segments.list';
  9426. begin
  9427. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TSegments) as TSegments;
  9428. end;
  9429. Function TManagementSegmentsResource.List(AQuery : TManagementSegmentslistOptions) : TSegments;
  9430. Var
  9431. _Q : String;
  9432. begin
  9433. _Q:='';
  9434. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9435. AddToQuery(_Q,'start-index',AQuery.startindex);
  9436. Result:=List(_Q);
  9437. end;
  9438. { --------------------------------------------------------------------
  9439. TManagementUnsampledReportsResource
  9440. --------------------------------------------------------------------}
  9441. Class Function TManagementUnsampledReportsResource.ResourceName : String;
  9442. begin
  9443. Result:='unsampledReports';
  9444. end;
  9445. Class Function TManagementUnsampledReportsResource.DefaultAPI : TGoogleAPIClass;
  9446. begin
  9447. Result:=TanalyticsAPI;
  9448. end;
  9449. Procedure TManagementUnsampledReportsResource.Delete(accountId: string; profileId: string; unsampledReportId: string; webPropertyId: string);
  9450. Const
  9451. _HTTPMethod = 'DELETE';
  9452. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}';
  9453. _Methodid = 'analytics.management.unsampledReports.delete';
  9454. Var
  9455. _P : String;
  9456. begin
  9457. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'unsampledReportId',unsampledReportId,'webPropertyId',webPropertyId]);
  9458. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9459. end;
  9460. Function TManagementUnsampledReportsResource.Get(accountId: string; profileId: string; unsampledReportId: string; webPropertyId: string) : TUnsampledReport;
  9461. Const
  9462. _HTTPMethod = 'GET';
  9463. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}';
  9464. _Methodid = 'analytics.management.unsampledReports.get';
  9465. Var
  9466. _P : String;
  9467. begin
  9468. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'unsampledReportId',unsampledReportId,'webPropertyId',webPropertyId]);
  9469. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TUnsampledReport) as TUnsampledReport;
  9470. end;
  9471. Function TManagementUnsampledReportsResource.Insert(accountId: string; profileId: string; webPropertyId: string; aUnsampledReport : TUnsampledReport) : TUnsampledReport;
  9472. Const
  9473. _HTTPMethod = 'POST';
  9474. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports';
  9475. _Methodid = 'analytics.management.unsampledReports.insert';
  9476. Var
  9477. _P : String;
  9478. begin
  9479. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9480. Result:=ServiceCall(_HTTPMethod,_P,'',aUnsampledReport,TUnsampledReport) as TUnsampledReport;
  9481. end;
  9482. Function TManagementUnsampledReportsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TUnsampledReports;
  9483. Const
  9484. _HTTPMethod = 'GET';
  9485. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports';
  9486. _Methodid = 'analytics.management.unsampledReports.list';
  9487. Var
  9488. _P : String;
  9489. begin
  9490. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9491. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TUnsampledReports) as TUnsampledReports;
  9492. end;
  9493. Function TManagementUnsampledReportsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementUnsampledReportslistOptions) : TUnsampledReports;
  9494. Var
  9495. _Q : String;
  9496. begin
  9497. _Q:='';
  9498. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9499. AddToQuery(_Q,'start-index',AQuery.startindex);
  9500. Result:=List(accountId,profileId,webPropertyId,_Q);
  9501. end;
  9502. { --------------------------------------------------------------------
  9503. TManagementUploadsResource
  9504. --------------------------------------------------------------------}
  9505. Class Function TManagementUploadsResource.ResourceName : String;
  9506. begin
  9507. Result:='uploads';
  9508. end;
  9509. Class Function TManagementUploadsResource.DefaultAPI : TGoogleAPIClass;
  9510. begin
  9511. Result:=TanalyticsAPI;
  9512. end;
  9513. Procedure TManagementUploadsResource.DeleteUploadData(accountId: string; customDataSourceId: string; webPropertyId: string; aAnalyticsDataimportDeleteUploadDataRequest : TAnalyticsDataimportDeleteUploadDataRequest);
  9514. Const
  9515. _HTTPMethod = 'POST';
  9516. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData';
  9517. _Methodid = 'analytics.management.uploads.deleteUploadData';
  9518. Var
  9519. _P : String;
  9520. begin
  9521. _P:=SubstitutePath(_Path,['accountId',accountId,'customDataSourceId',customDataSourceId,'webPropertyId',webPropertyId]);
  9522. ServiceCall(_HTTPMethod,_P,'',aAnalyticsDataimportDeleteUploadDataRequest,Nil);
  9523. end;
  9524. Function TManagementUploadsResource.Get(accountId: string; customDataSourceId: string; uploadId: string; webPropertyId: string) : TUpload;
  9525. Const
  9526. _HTTPMethod = 'GET';
  9527. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}';
  9528. _Methodid = 'analytics.management.uploads.get';
  9529. Var
  9530. _P : String;
  9531. begin
  9532. _P:=SubstitutePath(_Path,['accountId',accountId,'customDataSourceId',customDataSourceId,'uploadId',uploadId,'webPropertyId',webPropertyId]);
  9533. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TUpload) as TUpload;
  9534. end;
  9535. Function TManagementUploadsResource.List(accountId: string; customDataSourceId: string; webPropertyId: string; AQuery : string = '') : TUploads;
  9536. Const
  9537. _HTTPMethod = 'GET';
  9538. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads';
  9539. _Methodid = 'analytics.management.uploads.list';
  9540. Var
  9541. _P : String;
  9542. begin
  9543. _P:=SubstitutePath(_Path,['accountId',accountId,'customDataSourceId',customDataSourceId,'webPropertyId',webPropertyId]);
  9544. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TUploads) as TUploads;
  9545. end;
  9546. Function TManagementUploadsResource.List(accountId: string; customDataSourceId: string; webPropertyId: string; AQuery : TManagementUploadslistOptions) : TUploads;
  9547. Var
  9548. _Q : String;
  9549. begin
  9550. _Q:='';
  9551. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9552. AddToQuery(_Q,'start-index',AQuery.startindex);
  9553. Result:=List(accountId,customDataSourceId,webPropertyId,_Q);
  9554. end;
  9555. Function TManagementUploadsResource.UploadData(accountId: string; customDataSourceId: string; webPropertyId: string) : TUpload;
  9556. Const
  9557. _HTTPMethod = 'POST';
  9558. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads';
  9559. _Methodid = 'analytics.management.uploads.uploadData';
  9560. Var
  9561. _P : String;
  9562. begin
  9563. _P:=SubstitutePath(_Path,['accountId',accountId,'customDataSourceId',customDataSourceId,'webPropertyId',webPropertyId]);
  9564. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TUpload) as TUpload;
  9565. end;
  9566. { --------------------------------------------------------------------
  9567. TManagementWebPropertyAdWordsLinksResource
  9568. --------------------------------------------------------------------}
  9569. Class Function TManagementWebPropertyAdWordsLinksResource.ResourceName : String;
  9570. begin
  9571. Result:='webPropertyAdWordsLinks';
  9572. end;
  9573. Class Function TManagementWebPropertyAdWordsLinksResource.DefaultAPI : TGoogleAPIClass;
  9574. begin
  9575. Result:=TanalyticsAPI;
  9576. end;
  9577. Procedure TManagementWebPropertyAdWordsLinksResource.Delete(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string);
  9578. Const
  9579. _HTTPMethod = 'DELETE';
  9580. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}';
  9581. _Methodid = 'analytics.management.webPropertyAdWordsLinks.delete';
  9582. Var
  9583. _P : String;
  9584. begin
  9585. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyAdWordsLinkId',webPropertyAdWordsLinkId,'webPropertyId',webPropertyId]);
  9586. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9587. end;
  9588. Function TManagementWebPropertyAdWordsLinksResource.Get(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string) : TEntityAdWordsLink;
  9589. Const
  9590. _HTTPMethod = 'GET';
  9591. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}';
  9592. _Methodid = 'analytics.management.webPropertyAdWordsLinks.get';
  9593. Var
  9594. _P : String;
  9595. begin
  9596. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyAdWordsLinkId',webPropertyAdWordsLinkId,'webPropertyId',webPropertyId]);
  9597. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEntityAdWordsLink) as TEntityAdWordsLink;
  9598. end;
  9599. Function TManagementWebPropertyAdWordsLinksResource.Insert(accountId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  9600. Const
  9601. _HTTPMethod = 'POST';
  9602. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks';
  9603. _Methodid = 'analytics.management.webPropertyAdWordsLinks.insert';
  9604. Var
  9605. _P : String;
  9606. begin
  9607. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9608. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityAdWordsLink,TEntityAdWordsLink) as TEntityAdWordsLink;
  9609. end;
  9610. Function TManagementWebPropertyAdWordsLinksResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TEntityAdWordsLinks;
  9611. Const
  9612. _HTTPMethod = 'GET';
  9613. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks';
  9614. _Methodid = 'analytics.management.webPropertyAdWordsLinks.list';
  9615. Var
  9616. _P : String;
  9617. begin
  9618. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9619. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEntityAdWordsLinks) as TEntityAdWordsLinks;
  9620. end;
  9621. Function TManagementWebPropertyAdWordsLinksResource.List(accountId: string; webPropertyId: string; AQuery : TManagementWebPropertyAdWordsLinkslistOptions) : TEntityAdWordsLinks;
  9622. Var
  9623. _Q : String;
  9624. begin
  9625. _Q:='';
  9626. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9627. AddToQuery(_Q,'start-index',AQuery.startindex);
  9628. Result:=List(accountId,webPropertyId,_Q);
  9629. end;
  9630. Function TManagementWebPropertyAdWordsLinksResource.Patch(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  9631. Const
  9632. _HTTPMethod = 'PATCH';
  9633. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}';
  9634. _Methodid = 'analytics.management.webPropertyAdWordsLinks.patch';
  9635. Var
  9636. _P : String;
  9637. begin
  9638. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyAdWordsLinkId',webPropertyAdWordsLinkId,'webPropertyId',webPropertyId]);
  9639. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityAdWordsLink,TEntityAdWordsLink) as TEntityAdWordsLink;
  9640. end;
  9641. Function TManagementWebPropertyAdWordsLinksResource.Update(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  9642. Const
  9643. _HTTPMethod = 'PUT';
  9644. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}';
  9645. _Methodid = 'analytics.management.webPropertyAdWordsLinks.update';
  9646. Var
  9647. _P : String;
  9648. begin
  9649. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyAdWordsLinkId',webPropertyAdWordsLinkId,'webPropertyId',webPropertyId]);
  9650. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityAdWordsLink,TEntityAdWordsLink) as TEntityAdWordsLink;
  9651. end;
  9652. { --------------------------------------------------------------------
  9653. TManagementWebpropertiesResource
  9654. --------------------------------------------------------------------}
  9655. Class Function TManagementWebpropertiesResource.ResourceName : String;
  9656. begin
  9657. Result:='webproperties';
  9658. end;
  9659. Class Function TManagementWebpropertiesResource.DefaultAPI : TGoogleAPIClass;
  9660. begin
  9661. Result:=TanalyticsAPI;
  9662. end;
  9663. Function TManagementWebpropertiesResource.Get(accountId: string; webPropertyId: string) : TWebproperty;
  9664. Const
  9665. _HTTPMethod = 'GET';
  9666. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}';
  9667. _Methodid = 'analytics.management.webproperties.get';
  9668. Var
  9669. _P : String;
  9670. begin
  9671. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9672. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TWebproperty) as TWebproperty;
  9673. end;
  9674. Function TManagementWebpropertiesResource.Insert(accountId: string; aWebproperty : TWebproperty) : TWebproperty;
  9675. Const
  9676. _HTTPMethod = 'POST';
  9677. _Path = 'management/accounts/{accountId}/webproperties';
  9678. _Methodid = 'analytics.management.webproperties.insert';
  9679. Var
  9680. _P : String;
  9681. begin
  9682. _P:=SubstitutePath(_Path,['accountId',accountId]);
  9683. Result:=ServiceCall(_HTTPMethod,_P,'',aWebproperty,TWebproperty) as TWebproperty;
  9684. end;
  9685. Function TManagementWebpropertiesResource.List(accountId: string; AQuery : string = '') : TWebproperties;
  9686. Const
  9687. _HTTPMethod = 'GET';
  9688. _Path = 'management/accounts/{accountId}/webproperties';
  9689. _Methodid = 'analytics.management.webproperties.list';
  9690. Var
  9691. _P : String;
  9692. begin
  9693. _P:=SubstitutePath(_Path,['accountId',accountId]);
  9694. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TWebproperties) as TWebproperties;
  9695. end;
  9696. Function TManagementWebpropertiesResource.List(accountId: string; AQuery : TManagementWebpropertieslistOptions) : TWebproperties;
  9697. Var
  9698. _Q : String;
  9699. begin
  9700. _Q:='';
  9701. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9702. AddToQuery(_Q,'start-index',AQuery.startindex);
  9703. Result:=List(accountId,_Q);
  9704. end;
  9705. Function TManagementWebpropertiesResource.Patch(accountId: string; webPropertyId: string; aWebproperty : TWebproperty) : TWebproperty;
  9706. Const
  9707. _HTTPMethod = 'PATCH';
  9708. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}';
  9709. _Methodid = 'analytics.management.webproperties.patch';
  9710. Var
  9711. _P : String;
  9712. begin
  9713. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9714. Result:=ServiceCall(_HTTPMethod,_P,'',aWebproperty,TWebproperty) as TWebproperty;
  9715. end;
  9716. Function TManagementWebpropertiesResource.Update(accountId: string; webPropertyId: string; aWebproperty : TWebproperty) : TWebproperty;
  9717. Const
  9718. _HTTPMethod = 'PUT';
  9719. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}';
  9720. _Methodid = 'analytics.management.webproperties.update';
  9721. Var
  9722. _P : String;
  9723. begin
  9724. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9725. Result:=ServiceCall(_HTTPMethod,_P,'',aWebproperty,TWebproperty) as TWebproperty;
  9726. end;
  9727. { --------------------------------------------------------------------
  9728. TManagementWebpropertyUserLinksResource
  9729. --------------------------------------------------------------------}
  9730. Class Function TManagementWebpropertyUserLinksResource.ResourceName : String;
  9731. begin
  9732. Result:='webpropertyUserLinks';
  9733. end;
  9734. Class Function TManagementWebpropertyUserLinksResource.DefaultAPI : TGoogleAPIClass;
  9735. begin
  9736. Result:=TanalyticsAPI;
  9737. end;
  9738. Procedure TManagementWebpropertyUserLinksResource.Delete(accountId: string; linkId: string; webPropertyId: string);
  9739. Const
  9740. _HTTPMethod = 'DELETE';
  9741. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}';
  9742. _Methodid = 'analytics.management.webpropertyUserLinks.delete';
  9743. Var
  9744. _P : String;
  9745. begin
  9746. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'webPropertyId',webPropertyId]);
  9747. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9748. end;
  9749. Function TManagementWebpropertyUserLinksResource.Insert(accountId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  9750. Const
  9751. _HTTPMethod = 'POST';
  9752. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks';
  9753. _Methodid = 'analytics.management.webpropertyUserLinks.insert';
  9754. Var
  9755. _P : String;
  9756. begin
  9757. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9758. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  9759. end;
  9760. Function TManagementWebpropertyUserLinksResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TEntityUserLinks;
  9761. Const
  9762. _HTTPMethod = 'GET';
  9763. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks';
  9764. _Methodid = 'analytics.management.webpropertyUserLinks.list';
  9765. Var
  9766. _P : String;
  9767. begin
  9768. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9769. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEntityUserLinks) as TEntityUserLinks;
  9770. end;
  9771. Function TManagementWebpropertyUserLinksResource.List(accountId: string; webPropertyId: string; AQuery : TManagementWebpropertyUserLinkslistOptions) : TEntityUserLinks;
  9772. Var
  9773. _Q : String;
  9774. begin
  9775. _Q:='';
  9776. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9777. AddToQuery(_Q,'start-index',AQuery.startindex);
  9778. Result:=List(accountId,webPropertyId,_Q);
  9779. end;
  9780. Function TManagementWebpropertyUserLinksResource.Update(accountId: string; linkId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  9781. Const
  9782. _HTTPMethod = 'PUT';
  9783. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}';
  9784. _Methodid = 'analytics.management.webpropertyUserLinks.update';
  9785. Var
  9786. _P : String;
  9787. begin
  9788. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'webPropertyId',webPropertyId]);
  9789. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  9790. end;
  9791. { --------------------------------------------------------------------
  9792. TManagementResource
  9793. --------------------------------------------------------------------}
  9794. Class Function TManagementResource.ResourceName : String;
  9795. begin
  9796. Result:='management';
  9797. end;
  9798. Class Function TManagementResource.DefaultAPI : TGoogleAPIClass;
  9799. begin
  9800. Result:=TanalyticsAPI;
  9801. end;
  9802. Function TManagementResource.GetAccountSummariesInstance : TManagementAccountSummariesResource;
  9803. begin
  9804. if (FAccountSummariesInstance=Nil) then
  9805. FAccountSummariesInstance:=CreateAccountSummariesResource;
  9806. Result:=FAccountSummariesInstance;
  9807. end;
  9808. Function TManagementResource.CreateAccountSummariesResource : TManagementAccountSummariesResource;
  9809. begin
  9810. Result:=CreateAccountSummariesResource(Self);
  9811. end;
  9812. Function TManagementResource.CreateAccountSummariesResource(AOwner : TComponent) : TManagementAccountSummariesResource;
  9813. begin
  9814. Result:=TManagementAccountSummariesResource.Create(AOwner);
  9815. Result.API:=Self.API;
  9816. end;
  9817. Function TManagementResource.GetAccountUserLinksInstance : TManagementAccountUserLinksResource;
  9818. begin
  9819. if (FAccountUserLinksInstance=Nil) then
  9820. FAccountUserLinksInstance:=CreateAccountUserLinksResource;
  9821. Result:=FAccountUserLinksInstance;
  9822. end;
  9823. Function TManagementResource.CreateAccountUserLinksResource : TManagementAccountUserLinksResource;
  9824. begin
  9825. Result:=CreateAccountUserLinksResource(Self);
  9826. end;
  9827. Function TManagementResource.CreateAccountUserLinksResource(AOwner : TComponent) : TManagementAccountUserLinksResource;
  9828. begin
  9829. Result:=TManagementAccountUserLinksResource.Create(AOwner);
  9830. Result.API:=Self.API;
  9831. end;
  9832. Function TManagementResource.GetAccountsInstance : TManagementAccountsResource;
  9833. begin
  9834. if (FAccountsInstance=Nil) then
  9835. FAccountsInstance:=CreateAccountsResource;
  9836. Result:=FAccountsInstance;
  9837. end;
  9838. Function TManagementResource.CreateAccountsResource : TManagementAccountsResource;
  9839. begin
  9840. Result:=CreateAccountsResource(Self);
  9841. end;
  9842. Function TManagementResource.CreateAccountsResource(AOwner : TComponent) : TManagementAccountsResource;
  9843. begin
  9844. Result:=TManagementAccountsResource.Create(AOwner);
  9845. Result.API:=Self.API;
  9846. end;
  9847. Function TManagementResource.GetCustomDataSourcesInstance : TManagementCustomDataSourcesResource;
  9848. begin
  9849. if (FCustomDataSourcesInstance=Nil) then
  9850. FCustomDataSourcesInstance:=CreateCustomDataSourcesResource;
  9851. Result:=FCustomDataSourcesInstance;
  9852. end;
  9853. Function TManagementResource.CreateCustomDataSourcesResource : TManagementCustomDataSourcesResource;
  9854. begin
  9855. Result:=CreateCustomDataSourcesResource(Self);
  9856. end;
  9857. Function TManagementResource.CreateCustomDataSourcesResource(AOwner : TComponent) : TManagementCustomDataSourcesResource;
  9858. begin
  9859. Result:=TManagementCustomDataSourcesResource.Create(AOwner);
  9860. Result.API:=Self.API;
  9861. end;
  9862. Function TManagementResource.GetCustomDimensionsInstance : TManagementCustomDimensionsResource;
  9863. begin
  9864. if (FCustomDimensionsInstance=Nil) then
  9865. FCustomDimensionsInstance:=CreateCustomDimensionsResource;
  9866. Result:=FCustomDimensionsInstance;
  9867. end;
  9868. Function TManagementResource.CreateCustomDimensionsResource : TManagementCustomDimensionsResource;
  9869. begin
  9870. Result:=CreateCustomDimensionsResource(Self);
  9871. end;
  9872. Function TManagementResource.CreateCustomDimensionsResource(AOwner : TComponent) : TManagementCustomDimensionsResource;
  9873. begin
  9874. Result:=TManagementCustomDimensionsResource.Create(AOwner);
  9875. Result.API:=Self.API;
  9876. end;
  9877. Function TManagementResource.GetCustomMetricsInstance : TManagementCustomMetricsResource;
  9878. begin
  9879. if (FCustomMetricsInstance=Nil) then
  9880. FCustomMetricsInstance:=CreateCustomMetricsResource;
  9881. Result:=FCustomMetricsInstance;
  9882. end;
  9883. Function TManagementResource.CreateCustomMetricsResource : TManagementCustomMetricsResource;
  9884. begin
  9885. Result:=CreateCustomMetricsResource(Self);
  9886. end;
  9887. Function TManagementResource.CreateCustomMetricsResource(AOwner : TComponent) : TManagementCustomMetricsResource;
  9888. begin
  9889. Result:=TManagementCustomMetricsResource.Create(AOwner);
  9890. Result.API:=Self.API;
  9891. end;
  9892. Function TManagementResource.GetExperimentsInstance : TManagementExperimentsResource;
  9893. begin
  9894. if (FExperimentsInstance=Nil) then
  9895. FExperimentsInstance:=CreateExperimentsResource;
  9896. Result:=FExperimentsInstance;
  9897. end;
  9898. Function TManagementResource.CreateExperimentsResource : TManagementExperimentsResource;
  9899. begin
  9900. Result:=CreateExperimentsResource(Self);
  9901. end;
  9902. Function TManagementResource.CreateExperimentsResource(AOwner : TComponent) : TManagementExperimentsResource;
  9903. begin
  9904. Result:=TManagementExperimentsResource.Create(AOwner);
  9905. Result.API:=Self.API;
  9906. end;
  9907. Function TManagementResource.GetFiltersInstance : TManagementFiltersResource;
  9908. begin
  9909. if (FFiltersInstance=Nil) then
  9910. FFiltersInstance:=CreateFiltersResource;
  9911. Result:=FFiltersInstance;
  9912. end;
  9913. Function TManagementResource.CreateFiltersResource : TManagementFiltersResource;
  9914. begin
  9915. Result:=CreateFiltersResource(Self);
  9916. end;
  9917. Function TManagementResource.CreateFiltersResource(AOwner : TComponent) : TManagementFiltersResource;
  9918. begin
  9919. Result:=TManagementFiltersResource.Create(AOwner);
  9920. Result.API:=Self.API;
  9921. end;
  9922. Function TManagementResource.GetGoalsInstance : TManagementGoalsResource;
  9923. begin
  9924. if (FGoalsInstance=Nil) then
  9925. FGoalsInstance:=CreateGoalsResource;
  9926. Result:=FGoalsInstance;
  9927. end;
  9928. Function TManagementResource.CreateGoalsResource : TManagementGoalsResource;
  9929. begin
  9930. Result:=CreateGoalsResource(Self);
  9931. end;
  9932. Function TManagementResource.CreateGoalsResource(AOwner : TComponent) : TManagementGoalsResource;
  9933. begin
  9934. Result:=TManagementGoalsResource.Create(AOwner);
  9935. Result.API:=Self.API;
  9936. end;
  9937. Function TManagementResource.GetProfileFilterLinksInstance : TManagementProfileFilterLinksResource;
  9938. begin
  9939. if (FProfileFilterLinksInstance=Nil) then
  9940. FProfileFilterLinksInstance:=CreateProfileFilterLinksResource;
  9941. Result:=FProfileFilterLinksInstance;
  9942. end;
  9943. Function TManagementResource.CreateProfileFilterLinksResource : TManagementProfileFilterLinksResource;
  9944. begin
  9945. Result:=CreateProfileFilterLinksResource(Self);
  9946. end;
  9947. Function TManagementResource.CreateProfileFilterLinksResource(AOwner : TComponent) : TManagementProfileFilterLinksResource;
  9948. begin
  9949. Result:=TManagementProfileFilterLinksResource.Create(AOwner);
  9950. Result.API:=Self.API;
  9951. end;
  9952. Function TManagementResource.GetProfileUserLinksInstance : TManagementProfileUserLinksResource;
  9953. begin
  9954. if (FProfileUserLinksInstance=Nil) then
  9955. FProfileUserLinksInstance:=CreateProfileUserLinksResource;
  9956. Result:=FProfileUserLinksInstance;
  9957. end;
  9958. Function TManagementResource.CreateProfileUserLinksResource : TManagementProfileUserLinksResource;
  9959. begin
  9960. Result:=CreateProfileUserLinksResource(Self);
  9961. end;
  9962. Function TManagementResource.CreateProfileUserLinksResource(AOwner : TComponent) : TManagementProfileUserLinksResource;
  9963. begin
  9964. Result:=TManagementProfileUserLinksResource.Create(AOwner);
  9965. Result.API:=Self.API;
  9966. end;
  9967. Function TManagementResource.GetProfilesInstance : TManagementProfilesResource;
  9968. begin
  9969. if (FProfilesInstance=Nil) then
  9970. FProfilesInstance:=CreateProfilesResource;
  9971. Result:=FProfilesInstance;
  9972. end;
  9973. Function TManagementResource.CreateProfilesResource : TManagementProfilesResource;
  9974. begin
  9975. Result:=CreateProfilesResource(Self);
  9976. end;
  9977. Function TManagementResource.CreateProfilesResource(AOwner : TComponent) : TManagementProfilesResource;
  9978. begin
  9979. Result:=TManagementProfilesResource.Create(AOwner);
  9980. Result.API:=Self.API;
  9981. end;
  9982. Function TManagementResource.GetSegmentsInstance : TManagementSegmentsResource;
  9983. begin
  9984. if (FSegmentsInstance=Nil) then
  9985. FSegmentsInstance:=CreateSegmentsResource;
  9986. Result:=FSegmentsInstance;
  9987. end;
  9988. Function TManagementResource.CreateSegmentsResource : TManagementSegmentsResource;
  9989. begin
  9990. Result:=CreateSegmentsResource(Self);
  9991. end;
  9992. Function TManagementResource.CreateSegmentsResource(AOwner : TComponent) : TManagementSegmentsResource;
  9993. begin
  9994. Result:=TManagementSegmentsResource.Create(AOwner);
  9995. Result.API:=Self.API;
  9996. end;
  9997. Function TManagementResource.GetUnsampledReportsInstance : TManagementUnsampledReportsResource;
  9998. begin
  9999. if (FUnsampledReportsInstance=Nil) then
  10000. FUnsampledReportsInstance:=CreateUnsampledReportsResource;
  10001. Result:=FUnsampledReportsInstance;
  10002. end;
  10003. Function TManagementResource.CreateUnsampledReportsResource : TManagementUnsampledReportsResource;
  10004. begin
  10005. Result:=CreateUnsampledReportsResource(Self);
  10006. end;
  10007. Function TManagementResource.CreateUnsampledReportsResource(AOwner : TComponent) : TManagementUnsampledReportsResource;
  10008. begin
  10009. Result:=TManagementUnsampledReportsResource.Create(AOwner);
  10010. Result.API:=Self.API;
  10011. end;
  10012. Function TManagementResource.GetUploadsInstance : TManagementUploadsResource;
  10013. begin
  10014. if (FUploadsInstance=Nil) then
  10015. FUploadsInstance:=CreateUploadsResource;
  10016. Result:=FUploadsInstance;
  10017. end;
  10018. Function TManagementResource.CreateUploadsResource : TManagementUploadsResource;
  10019. begin
  10020. Result:=CreateUploadsResource(Self);
  10021. end;
  10022. Function TManagementResource.CreateUploadsResource(AOwner : TComponent) : TManagementUploadsResource;
  10023. begin
  10024. Result:=TManagementUploadsResource.Create(AOwner);
  10025. Result.API:=Self.API;
  10026. end;
  10027. Function TManagementResource.GetWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;
  10028. begin
  10029. if (FWebPropertyAdWordsLinksInstance=Nil) then
  10030. FWebPropertyAdWordsLinksInstance:=CreateWebPropertyAdWordsLinksResource;
  10031. Result:=FWebPropertyAdWordsLinksInstance;
  10032. end;
  10033. Function TManagementResource.CreateWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource;
  10034. begin
  10035. Result:=CreateWebPropertyAdWordsLinksResource(Self);
  10036. end;
  10037. Function TManagementResource.CreateWebPropertyAdWordsLinksResource(AOwner : TComponent) : TManagementWebPropertyAdWordsLinksResource;
  10038. begin
  10039. Result:=TManagementWebPropertyAdWordsLinksResource.Create(AOwner);
  10040. Result.API:=Self.API;
  10041. end;
  10042. Function TManagementResource.GetWebpropertiesInstance : TManagementWebpropertiesResource;
  10043. begin
  10044. if (FWebpropertiesInstance=Nil) then
  10045. FWebpropertiesInstance:=CreateWebpropertiesResource;
  10046. Result:=FWebpropertiesInstance;
  10047. end;
  10048. Function TManagementResource.CreateWebpropertiesResource : TManagementWebpropertiesResource;
  10049. begin
  10050. Result:=CreateWebpropertiesResource(Self);
  10051. end;
  10052. Function TManagementResource.CreateWebpropertiesResource(AOwner : TComponent) : TManagementWebpropertiesResource;
  10053. begin
  10054. Result:=TManagementWebpropertiesResource.Create(AOwner);
  10055. Result.API:=Self.API;
  10056. end;
  10057. Function TManagementResource.GetWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;
  10058. begin
  10059. if (FWebpropertyUserLinksInstance=Nil) then
  10060. FWebpropertyUserLinksInstance:=CreateWebpropertyUserLinksResource;
  10061. Result:=FWebpropertyUserLinksInstance;
  10062. end;
  10063. Function TManagementResource.CreateWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource;
  10064. begin
  10065. Result:=CreateWebpropertyUserLinksResource(Self);
  10066. end;
  10067. Function TManagementResource.CreateWebpropertyUserLinksResource(AOwner : TComponent) : TManagementWebpropertyUserLinksResource;
  10068. begin
  10069. Result:=TManagementWebpropertyUserLinksResource.Create(AOwner);
  10070. Result.API:=Self.API;
  10071. end;
  10072. { --------------------------------------------------------------------
  10073. TMetadataColumnsResource
  10074. --------------------------------------------------------------------}
  10075. Class Function TMetadataColumnsResource.ResourceName : String;
  10076. begin
  10077. Result:='columns';
  10078. end;
  10079. Class Function TMetadataColumnsResource.DefaultAPI : TGoogleAPIClass;
  10080. begin
  10081. Result:=TanalyticsAPI;
  10082. end;
  10083. Function TMetadataColumnsResource.List(reportType: string) : TColumns;
  10084. Const
  10085. _HTTPMethod = 'GET';
  10086. _Path = 'metadata/{reportType}/columns';
  10087. _Methodid = 'analytics.metadata.columns.list';
  10088. Var
  10089. _P : String;
  10090. begin
  10091. _P:=SubstitutePath(_Path,['reportType',reportType]);
  10092. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TColumns) as TColumns;
  10093. end;
  10094. { --------------------------------------------------------------------
  10095. TMetadataResource
  10096. --------------------------------------------------------------------}
  10097. Class Function TMetadataResource.ResourceName : String;
  10098. begin
  10099. Result:='metadata';
  10100. end;
  10101. Class Function TMetadataResource.DefaultAPI : TGoogleAPIClass;
  10102. begin
  10103. Result:=TanalyticsAPI;
  10104. end;
  10105. Function TMetadataResource.GetColumnsInstance : TMetadataColumnsResource;
  10106. begin
  10107. if (FColumnsInstance=Nil) then
  10108. FColumnsInstance:=CreateColumnsResource;
  10109. Result:=FColumnsInstance;
  10110. end;
  10111. Function TMetadataResource.CreateColumnsResource : TMetadataColumnsResource;
  10112. begin
  10113. Result:=CreateColumnsResource(Self);
  10114. end;
  10115. Function TMetadataResource.CreateColumnsResource(AOwner : TComponent) : TMetadataColumnsResource;
  10116. begin
  10117. Result:=TMetadataColumnsResource.Create(AOwner);
  10118. Result.API:=Self.API;
  10119. end;
  10120. { --------------------------------------------------------------------
  10121. TProvisioningResource
  10122. --------------------------------------------------------------------}
  10123. Class Function TProvisioningResource.ResourceName : String;
  10124. begin
  10125. Result:='provisioning';
  10126. end;
  10127. Class Function TProvisioningResource.DefaultAPI : TGoogleAPIClass;
  10128. begin
  10129. Result:=TanalyticsAPI;
  10130. end;
  10131. Function TProvisioningResource.CreateAccountTicket(aAccountTicket : TAccountTicket) : TAccountTicket;
  10132. Const
  10133. _HTTPMethod = 'POST';
  10134. _Path = 'provisioning/createAccountTicket';
  10135. _Methodid = 'analytics.provisioning.createAccountTicket';
  10136. begin
  10137. Result:=ServiceCall(_HTTPMethod,_Path,'',aAccountTicket,TAccountTicket) as TAccountTicket;
  10138. end;
  10139. { --------------------------------------------------------------------
  10140. TAnalyticsAPI
  10141. --------------------------------------------------------------------}
  10142. Class Function TAnalyticsAPI.APIName : String;
  10143. begin
  10144. Result:='analytics';
  10145. end;
  10146. Class Function TAnalyticsAPI.APIVersion : String;
  10147. begin
  10148. Result:='v3';
  10149. end;
  10150. Class Function TAnalyticsAPI.APIRevision : String;
  10151. begin
  10152. Result:='20160401';
  10153. end;
  10154. Class Function TAnalyticsAPI.APIID : String;
  10155. begin
  10156. Result:='analytics:v3';
  10157. end;
  10158. Class Function TAnalyticsAPI.APITitle : String;
  10159. begin
  10160. Result:='Google Analytics API';
  10161. end;
  10162. Class Function TAnalyticsAPI.APIDescription : String;
  10163. begin
  10164. Result:='Views and manages your Google Analytics data.';
  10165. end;
  10166. Class Function TAnalyticsAPI.APIOwnerDomain : String;
  10167. begin
  10168. Result:='google.com';
  10169. end;
  10170. Class Function TAnalyticsAPI.APIOwnerName : String;
  10171. begin
  10172. Result:='Google';
  10173. end;
  10174. Class Function TAnalyticsAPI.APIIcon16 : String;
  10175. begin
  10176. Result:='https://www.google.com/images/icons/product/analytics-16.png';
  10177. end;
  10178. Class Function TAnalyticsAPI.APIIcon32 : String;
  10179. begin
  10180. Result:='https://www.google.com/images/icons/product/analytics-32.png';
  10181. end;
  10182. Class Function TAnalyticsAPI.APIdocumentationLink : String;
  10183. begin
  10184. Result:='https://developers.google.com/analytics/';
  10185. end;
  10186. Class Function TAnalyticsAPI.APIrootUrl : string;
  10187. begin
  10188. Result:='https://www.googleapis.com/';
  10189. end;
  10190. Class Function TAnalyticsAPI.APIbasePath : string;
  10191. begin
  10192. Result:='/analytics/v3/';
  10193. end;
  10194. Class Function TAnalyticsAPI.APIbaseURL : String;
  10195. begin
  10196. Result:='https://www.googleapis.com/analytics/v3/';
  10197. end;
  10198. Class Function TAnalyticsAPI.APIProtocol : string;
  10199. begin
  10200. Result:='rest';
  10201. end;
  10202. Class Function TAnalyticsAPI.APIservicePath : string;
  10203. begin
  10204. Result:='analytics/v3/';
  10205. end;
  10206. Class Function TAnalyticsAPI.APIbatchPath : String;
  10207. begin
  10208. Result:='batch';
  10209. end;
  10210. Class Function TAnalyticsAPI.APIAuthScopes : TScopeInfoArray;
  10211. begin
  10212. SetLength(Result,6);
  10213. Result[0].Name:='https://www.googleapis.com/auth/analytics';
  10214. Result[0].Description:='View and manage your Google Analytics data';
  10215. Result[1].Name:='https://www.googleapis.com/auth/analytics.edit';
  10216. Result[1].Description:='Edit Google Analytics management entities';
  10217. Result[2].Name:='https://www.googleapis.com/auth/analytics.manage.users';
  10218. Result[2].Description:='Manage Google Analytics Account users by email address';
  10219. Result[3].Name:='https://www.googleapis.com/auth/analytics.manage.users.readonly';
  10220. Result[3].Description:='View Google Analytics user permissions';
  10221. Result[4].Name:='https://www.googleapis.com/auth/analytics.provision';
  10222. Result[4].Description:='Create a new Google Analytics account along with its default property and view';
  10223. Result[5].Name:='https://www.googleapis.com/auth/analytics.readonly';
  10224. Result[5].Description:='View your Google Analytics data';
  10225. end;
  10226. Class Function TAnalyticsAPI.APINeedsAuth : Boolean;
  10227. begin
  10228. Result:=True;
  10229. end;
  10230. Class Procedure TAnalyticsAPI.RegisterAPIResources;
  10231. begin
  10232. TAccountTypechildLink.RegisterObject;
  10233. TAccountTypepermissions.RegisterObject;
  10234. TAccount.RegisterObject;
  10235. TAccountRef.RegisterObject;
  10236. TAccountSummaries.RegisterObject;
  10237. TAccountSummary.RegisterObject;
  10238. TAccountTicket.RegisterObject;
  10239. TAccounts.RegisterObject;
  10240. TAdWordsAccount.RegisterObject;
  10241. TAnalyticsDataimportDeleteUploadDataRequest.RegisterObject;
  10242. TColumnTypeattributes.RegisterObject;
  10243. TColumn.RegisterObject;
  10244. TColumns.RegisterObject;
  10245. TCustomDataSourceTypechildLink.RegisterObject;
  10246. TCustomDataSourceTypeparentLink.RegisterObject;
  10247. TCustomDataSource.RegisterObject;
  10248. TCustomDataSources.RegisterObject;
  10249. TCustomDimensionTypeparentLink.RegisterObject;
  10250. TCustomDimension.RegisterObject;
  10251. TCustomDimensions.RegisterObject;
  10252. TCustomMetricTypeparentLink.RegisterObject;
  10253. TCustomMetric.RegisterObject;
  10254. TCustomMetrics.RegisterObject;
  10255. TEntityAdWordsLinkTypeentity.RegisterObject;
  10256. TEntityAdWordsLink.RegisterObject;
  10257. TEntityAdWordsLinks.RegisterObject;
  10258. TEntityUserLinkTypeentity.RegisterObject;
  10259. TEntityUserLinkTypepermissions.RegisterObject;
  10260. TEntityUserLink.RegisterObject;
  10261. TEntityUserLinks.RegisterObject;
  10262. TExperimentTypeparentLink.RegisterObject;
  10263. TExperimentTypevariationsItem.RegisterObject;
  10264. TExperiment.RegisterObject;
  10265. TExperiments.RegisterObject;
  10266. TFilterTypeadvancedDetails.RegisterObject;
  10267. TFilterTypelowercaseDetails.RegisterObject;
  10268. TFilterTypeparentLink.RegisterObject;
  10269. TFilterTypesearchAndReplaceDetails.RegisterObject;
  10270. TFilterTypeuppercaseDetails.RegisterObject;
  10271. TFilter.RegisterObject;
  10272. TFilterExpression.RegisterObject;
  10273. TFilterRef.RegisterObject;
  10274. TFilters.RegisterObject;
  10275. TGaDataTypecolumnHeadersItem.RegisterObject;
  10276. TGaDataTypedataTableTypecolsItem.RegisterObject;
  10277. TGaDataTypedataTableTyperowsItemTypecItem.RegisterObject;
  10278. TGaDataTypedataTableTyperowsItem.RegisterObject;
  10279. TGaDataTypedataTable.RegisterObject;
  10280. TGaDataTypeprofileInfo.RegisterObject;
  10281. TGaDataTypequery.RegisterObject;
  10282. TGaDataTypetotalsForAllResults.RegisterObject;
  10283. TGaData.RegisterObject;
  10284. TGoalTypeeventDetailsTypeeventConditionsItem.RegisterObject;
  10285. TGoalTypeeventDetails.RegisterObject;
  10286. TGoalTypeparentLink.RegisterObject;
  10287. TGoalTypeurlDestinationDetailsTypestepsItem.RegisterObject;
  10288. TGoalTypeurlDestinationDetails.RegisterObject;
  10289. TGoalTypevisitNumPagesDetails.RegisterObject;
  10290. TGoalTypevisitTimeOnSiteDetails.RegisterObject;
  10291. TGoal.RegisterObject;
  10292. TGoals.RegisterObject;
  10293. TMcfDataTypecolumnHeadersItem.RegisterObject;
  10294. TMcfDataTypeprofileInfo.RegisterObject;
  10295. TMcfDataTypequery.RegisterObject;
  10296. TMcfDataTyperowsItemItemTypeconversionPathValueItem.RegisterObject;
  10297. TMcfDataTyperowsItemItem.RegisterObject;
  10298. TMcfDataTypetotalsForAllResults.RegisterObject;
  10299. TMcfData.RegisterObject;
  10300. TProfileTypechildLink.RegisterObject;
  10301. TProfileTypeparentLink.RegisterObject;
  10302. TProfileTypepermissions.RegisterObject;
  10303. TProfile.RegisterObject;
  10304. TProfileFilterLink.RegisterObject;
  10305. TProfileFilterLinks.RegisterObject;
  10306. TProfileRef.RegisterObject;
  10307. TProfileSummary.RegisterObject;
  10308. TProfiles.RegisterObject;
  10309. TRealtimeDataTypecolumnHeadersItem.RegisterObject;
  10310. TRealtimeDataTypeprofileInfo.RegisterObject;
  10311. TRealtimeDataTypequery.RegisterObject;
  10312. TRealtimeDataTypetotalsForAllResults.RegisterObject;
  10313. TRealtimeData.RegisterObject;
  10314. TSegment.RegisterObject;
  10315. TSegments.RegisterObject;
  10316. TUnsampledReportTypecloudStorageDownloadDetails.RegisterObject;
  10317. TUnsampledReportTypedriveDownloadDetails.RegisterObject;
  10318. TUnsampledReport.RegisterObject;
  10319. TUnsampledReports.RegisterObject;
  10320. TUpload.RegisterObject;
  10321. TUploads.RegisterObject;
  10322. TUserRef.RegisterObject;
  10323. TWebPropertyRef.RegisterObject;
  10324. TWebPropertySummary.RegisterObject;
  10325. TWebproperties.RegisterObject;
  10326. TWebpropertyTypechildLink.RegisterObject;
  10327. TWebpropertyTypeparentLink.RegisterObject;
  10328. TWebpropertyTypepermissions.RegisterObject;
  10329. TWebproperty.RegisterObject;
  10330. end;
  10331. Function TAnalyticsAPI.GetDataGaInstance : TDataGaResource;
  10332. begin
  10333. if (FDataGaInstance=Nil) then
  10334. FDataGaInstance:=CreateDataGaResource;
  10335. Result:=FDataGaInstance;
  10336. end;
  10337. Function TAnalyticsAPI.CreateDataGaResource : TDataGaResource;
  10338. begin
  10339. Result:=CreateDataGaResource(Self);
  10340. end;
  10341. Function TAnalyticsAPI.CreateDataGaResource(AOwner : TComponent) : TDataGaResource;
  10342. begin
  10343. Result:=TDataGaResource.Create(AOwner);
  10344. Result.API:=Self.API;
  10345. end;
  10346. Function TAnalyticsAPI.GetDataMcfInstance : TDataMcfResource;
  10347. begin
  10348. if (FDataMcfInstance=Nil) then
  10349. FDataMcfInstance:=CreateDataMcfResource;
  10350. Result:=FDataMcfInstance;
  10351. end;
  10352. Function TAnalyticsAPI.CreateDataMcfResource : TDataMcfResource;
  10353. begin
  10354. Result:=CreateDataMcfResource(Self);
  10355. end;
  10356. Function TAnalyticsAPI.CreateDataMcfResource(AOwner : TComponent) : TDataMcfResource;
  10357. begin
  10358. Result:=TDataMcfResource.Create(AOwner);
  10359. Result.API:=Self.API;
  10360. end;
  10361. Function TAnalyticsAPI.GetDataRealtimeInstance : TDataRealtimeResource;
  10362. begin
  10363. if (FDataRealtimeInstance=Nil) then
  10364. FDataRealtimeInstance:=CreateDataRealtimeResource;
  10365. Result:=FDataRealtimeInstance;
  10366. end;
  10367. Function TAnalyticsAPI.CreateDataRealtimeResource : TDataRealtimeResource;
  10368. begin
  10369. Result:=CreateDataRealtimeResource(Self);
  10370. end;
  10371. Function TAnalyticsAPI.CreateDataRealtimeResource(AOwner : TComponent) : TDataRealtimeResource;
  10372. begin
  10373. Result:=TDataRealtimeResource.Create(AOwner);
  10374. Result.API:=Self.API;
  10375. end;
  10376. Function TAnalyticsAPI.GetDataInstance : TDataResource;
  10377. begin
  10378. if (FDataInstance=Nil) then
  10379. FDataInstance:=CreateDataResource;
  10380. Result:=FDataInstance;
  10381. end;
  10382. Function TAnalyticsAPI.CreateDataResource : TDataResource;
  10383. begin
  10384. Result:=CreateDataResource(Self);
  10385. end;
  10386. Function TAnalyticsAPI.CreateDataResource(AOwner : TComponent) : TDataResource;
  10387. begin
  10388. Result:=TDataResource.Create(AOwner);
  10389. Result.API:=Self.API;
  10390. end;
  10391. Function TAnalyticsAPI.GetManagementAccountSummariesInstance : TManagementAccountSummariesResource;
  10392. begin
  10393. if (FManagementAccountSummariesInstance=Nil) then
  10394. FManagementAccountSummariesInstance:=CreateManagementAccountSummariesResource;
  10395. Result:=FManagementAccountSummariesInstance;
  10396. end;
  10397. Function TAnalyticsAPI.CreateManagementAccountSummariesResource : TManagementAccountSummariesResource;
  10398. begin
  10399. Result:=CreateManagementAccountSummariesResource(Self);
  10400. end;
  10401. Function TAnalyticsAPI.CreateManagementAccountSummariesResource(AOwner : TComponent) : TManagementAccountSummariesResource;
  10402. begin
  10403. Result:=TManagementAccountSummariesResource.Create(AOwner);
  10404. Result.API:=Self.API;
  10405. end;
  10406. Function TAnalyticsAPI.GetManagementAccountUserLinksInstance : TManagementAccountUserLinksResource;
  10407. begin
  10408. if (FManagementAccountUserLinksInstance=Nil) then
  10409. FManagementAccountUserLinksInstance:=CreateManagementAccountUserLinksResource;
  10410. Result:=FManagementAccountUserLinksInstance;
  10411. end;
  10412. Function TAnalyticsAPI.CreateManagementAccountUserLinksResource : TManagementAccountUserLinksResource;
  10413. begin
  10414. Result:=CreateManagementAccountUserLinksResource(Self);
  10415. end;
  10416. Function TAnalyticsAPI.CreateManagementAccountUserLinksResource(AOwner : TComponent) : TManagementAccountUserLinksResource;
  10417. begin
  10418. Result:=TManagementAccountUserLinksResource.Create(AOwner);
  10419. Result.API:=Self.API;
  10420. end;
  10421. Function TAnalyticsAPI.GetManagementAccountsInstance : TManagementAccountsResource;
  10422. begin
  10423. if (FManagementAccountsInstance=Nil) then
  10424. FManagementAccountsInstance:=CreateManagementAccountsResource;
  10425. Result:=FManagementAccountsInstance;
  10426. end;
  10427. Function TAnalyticsAPI.CreateManagementAccountsResource : TManagementAccountsResource;
  10428. begin
  10429. Result:=CreateManagementAccountsResource(Self);
  10430. end;
  10431. Function TAnalyticsAPI.CreateManagementAccountsResource(AOwner : TComponent) : TManagementAccountsResource;
  10432. begin
  10433. Result:=TManagementAccountsResource.Create(AOwner);
  10434. Result.API:=Self.API;
  10435. end;
  10436. Function TAnalyticsAPI.GetManagementCustomDataSourcesInstance : TManagementCustomDataSourcesResource;
  10437. begin
  10438. if (FManagementCustomDataSourcesInstance=Nil) then
  10439. FManagementCustomDataSourcesInstance:=CreateManagementCustomDataSourcesResource;
  10440. Result:=FManagementCustomDataSourcesInstance;
  10441. end;
  10442. Function TAnalyticsAPI.CreateManagementCustomDataSourcesResource : TManagementCustomDataSourcesResource;
  10443. begin
  10444. Result:=CreateManagementCustomDataSourcesResource(Self);
  10445. end;
  10446. Function TAnalyticsAPI.CreateManagementCustomDataSourcesResource(AOwner : TComponent) : TManagementCustomDataSourcesResource;
  10447. begin
  10448. Result:=TManagementCustomDataSourcesResource.Create(AOwner);
  10449. Result.API:=Self.API;
  10450. end;
  10451. Function TAnalyticsAPI.GetManagementCustomDimensionsInstance : TManagementCustomDimensionsResource;
  10452. begin
  10453. if (FManagementCustomDimensionsInstance=Nil) then
  10454. FManagementCustomDimensionsInstance:=CreateManagementCustomDimensionsResource;
  10455. Result:=FManagementCustomDimensionsInstance;
  10456. end;
  10457. Function TAnalyticsAPI.CreateManagementCustomDimensionsResource : TManagementCustomDimensionsResource;
  10458. begin
  10459. Result:=CreateManagementCustomDimensionsResource(Self);
  10460. end;
  10461. Function TAnalyticsAPI.CreateManagementCustomDimensionsResource(AOwner : TComponent) : TManagementCustomDimensionsResource;
  10462. begin
  10463. Result:=TManagementCustomDimensionsResource.Create(AOwner);
  10464. Result.API:=Self.API;
  10465. end;
  10466. Function TAnalyticsAPI.GetManagementCustomMetricsInstance : TManagementCustomMetricsResource;
  10467. begin
  10468. if (FManagementCustomMetricsInstance=Nil) then
  10469. FManagementCustomMetricsInstance:=CreateManagementCustomMetricsResource;
  10470. Result:=FManagementCustomMetricsInstance;
  10471. end;
  10472. Function TAnalyticsAPI.CreateManagementCustomMetricsResource : TManagementCustomMetricsResource;
  10473. begin
  10474. Result:=CreateManagementCustomMetricsResource(Self);
  10475. end;
  10476. Function TAnalyticsAPI.CreateManagementCustomMetricsResource(AOwner : TComponent) : TManagementCustomMetricsResource;
  10477. begin
  10478. Result:=TManagementCustomMetricsResource.Create(AOwner);
  10479. Result.API:=Self.API;
  10480. end;
  10481. Function TAnalyticsAPI.GetManagementExperimentsInstance : TManagementExperimentsResource;
  10482. begin
  10483. if (FManagementExperimentsInstance=Nil) then
  10484. FManagementExperimentsInstance:=CreateManagementExperimentsResource;
  10485. Result:=FManagementExperimentsInstance;
  10486. end;
  10487. Function TAnalyticsAPI.CreateManagementExperimentsResource : TManagementExperimentsResource;
  10488. begin
  10489. Result:=CreateManagementExperimentsResource(Self);
  10490. end;
  10491. Function TAnalyticsAPI.CreateManagementExperimentsResource(AOwner : TComponent) : TManagementExperimentsResource;
  10492. begin
  10493. Result:=TManagementExperimentsResource.Create(AOwner);
  10494. Result.API:=Self.API;
  10495. end;
  10496. Function TAnalyticsAPI.GetManagementFiltersInstance : TManagementFiltersResource;
  10497. begin
  10498. if (FManagementFiltersInstance=Nil) then
  10499. FManagementFiltersInstance:=CreateManagementFiltersResource;
  10500. Result:=FManagementFiltersInstance;
  10501. end;
  10502. Function TAnalyticsAPI.CreateManagementFiltersResource : TManagementFiltersResource;
  10503. begin
  10504. Result:=CreateManagementFiltersResource(Self);
  10505. end;
  10506. Function TAnalyticsAPI.CreateManagementFiltersResource(AOwner : TComponent) : TManagementFiltersResource;
  10507. begin
  10508. Result:=TManagementFiltersResource.Create(AOwner);
  10509. Result.API:=Self.API;
  10510. end;
  10511. Function TAnalyticsAPI.GetManagementGoalsInstance : TManagementGoalsResource;
  10512. begin
  10513. if (FManagementGoalsInstance=Nil) then
  10514. FManagementGoalsInstance:=CreateManagementGoalsResource;
  10515. Result:=FManagementGoalsInstance;
  10516. end;
  10517. Function TAnalyticsAPI.CreateManagementGoalsResource : TManagementGoalsResource;
  10518. begin
  10519. Result:=CreateManagementGoalsResource(Self);
  10520. end;
  10521. Function TAnalyticsAPI.CreateManagementGoalsResource(AOwner : TComponent) : TManagementGoalsResource;
  10522. begin
  10523. Result:=TManagementGoalsResource.Create(AOwner);
  10524. Result.API:=Self.API;
  10525. end;
  10526. Function TAnalyticsAPI.GetManagementProfileFilterLinksInstance : TManagementProfileFilterLinksResource;
  10527. begin
  10528. if (FManagementProfileFilterLinksInstance=Nil) then
  10529. FManagementProfileFilterLinksInstance:=CreateManagementProfileFilterLinksResource;
  10530. Result:=FManagementProfileFilterLinksInstance;
  10531. end;
  10532. Function TAnalyticsAPI.CreateManagementProfileFilterLinksResource : TManagementProfileFilterLinksResource;
  10533. begin
  10534. Result:=CreateManagementProfileFilterLinksResource(Self);
  10535. end;
  10536. Function TAnalyticsAPI.CreateManagementProfileFilterLinksResource(AOwner : TComponent) : TManagementProfileFilterLinksResource;
  10537. begin
  10538. Result:=TManagementProfileFilterLinksResource.Create(AOwner);
  10539. Result.API:=Self.API;
  10540. end;
  10541. Function TAnalyticsAPI.GetManagementProfileUserLinksInstance : TManagementProfileUserLinksResource;
  10542. begin
  10543. if (FManagementProfileUserLinksInstance=Nil) then
  10544. FManagementProfileUserLinksInstance:=CreateManagementProfileUserLinksResource;
  10545. Result:=FManagementProfileUserLinksInstance;
  10546. end;
  10547. Function TAnalyticsAPI.CreateManagementProfileUserLinksResource : TManagementProfileUserLinksResource;
  10548. begin
  10549. Result:=CreateManagementProfileUserLinksResource(Self);
  10550. end;
  10551. Function TAnalyticsAPI.CreateManagementProfileUserLinksResource(AOwner : TComponent) : TManagementProfileUserLinksResource;
  10552. begin
  10553. Result:=TManagementProfileUserLinksResource.Create(AOwner);
  10554. Result.API:=Self.API;
  10555. end;
  10556. Function TAnalyticsAPI.GetManagementProfilesInstance : TManagementProfilesResource;
  10557. begin
  10558. if (FManagementProfilesInstance=Nil) then
  10559. FManagementProfilesInstance:=CreateManagementProfilesResource;
  10560. Result:=FManagementProfilesInstance;
  10561. end;
  10562. Function TAnalyticsAPI.CreateManagementProfilesResource : TManagementProfilesResource;
  10563. begin
  10564. Result:=CreateManagementProfilesResource(Self);
  10565. end;
  10566. Function TAnalyticsAPI.CreateManagementProfilesResource(AOwner : TComponent) : TManagementProfilesResource;
  10567. begin
  10568. Result:=TManagementProfilesResource.Create(AOwner);
  10569. Result.API:=Self.API;
  10570. end;
  10571. Function TAnalyticsAPI.GetManagementSegmentsInstance : TManagementSegmentsResource;
  10572. begin
  10573. if (FManagementSegmentsInstance=Nil) then
  10574. FManagementSegmentsInstance:=CreateManagementSegmentsResource;
  10575. Result:=FManagementSegmentsInstance;
  10576. end;
  10577. Function TAnalyticsAPI.CreateManagementSegmentsResource : TManagementSegmentsResource;
  10578. begin
  10579. Result:=CreateManagementSegmentsResource(Self);
  10580. end;
  10581. Function TAnalyticsAPI.CreateManagementSegmentsResource(AOwner : TComponent) : TManagementSegmentsResource;
  10582. begin
  10583. Result:=TManagementSegmentsResource.Create(AOwner);
  10584. Result.API:=Self.API;
  10585. end;
  10586. Function TAnalyticsAPI.GetManagementUnsampledReportsInstance : TManagementUnsampledReportsResource;
  10587. begin
  10588. if (FManagementUnsampledReportsInstance=Nil) then
  10589. FManagementUnsampledReportsInstance:=CreateManagementUnsampledReportsResource;
  10590. Result:=FManagementUnsampledReportsInstance;
  10591. end;
  10592. Function TAnalyticsAPI.CreateManagementUnsampledReportsResource : TManagementUnsampledReportsResource;
  10593. begin
  10594. Result:=CreateManagementUnsampledReportsResource(Self);
  10595. end;
  10596. Function TAnalyticsAPI.CreateManagementUnsampledReportsResource(AOwner : TComponent) : TManagementUnsampledReportsResource;
  10597. begin
  10598. Result:=TManagementUnsampledReportsResource.Create(AOwner);
  10599. Result.API:=Self.API;
  10600. end;
  10601. Function TAnalyticsAPI.GetManagementUploadsInstance : TManagementUploadsResource;
  10602. begin
  10603. if (FManagementUploadsInstance=Nil) then
  10604. FManagementUploadsInstance:=CreateManagementUploadsResource;
  10605. Result:=FManagementUploadsInstance;
  10606. end;
  10607. Function TAnalyticsAPI.CreateManagementUploadsResource : TManagementUploadsResource;
  10608. begin
  10609. Result:=CreateManagementUploadsResource(Self);
  10610. end;
  10611. Function TAnalyticsAPI.CreateManagementUploadsResource(AOwner : TComponent) : TManagementUploadsResource;
  10612. begin
  10613. Result:=TManagementUploadsResource.Create(AOwner);
  10614. Result.API:=Self.API;
  10615. end;
  10616. Function TAnalyticsAPI.GetManagementWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;
  10617. begin
  10618. if (FManagementWebPropertyAdWordsLinksInstance=Nil) then
  10619. FManagementWebPropertyAdWordsLinksInstance:=CreateManagementWebPropertyAdWordsLinksResource;
  10620. Result:=FManagementWebPropertyAdWordsLinksInstance;
  10621. end;
  10622. Function TAnalyticsAPI.CreateManagementWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource;
  10623. begin
  10624. Result:=CreateManagementWebPropertyAdWordsLinksResource(Self);
  10625. end;
  10626. Function TAnalyticsAPI.CreateManagementWebPropertyAdWordsLinksResource(AOwner : TComponent) : TManagementWebPropertyAdWordsLinksResource;
  10627. begin
  10628. Result:=TManagementWebPropertyAdWordsLinksResource.Create(AOwner);
  10629. Result.API:=Self.API;
  10630. end;
  10631. Function TAnalyticsAPI.GetManagementWebpropertiesInstance : TManagementWebpropertiesResource;
  10632. begin
  10633. if (FManagementWebpropertiesInstance=Nil) then
  10634. FManagementWebpropertiesInstance:=CreateManagementWebpropertiesResource;
  10635. Result:=FManagementWebpropertiesInstance;
  10636. end;
  10637. Function TAnalyticsAPI.CreateManagementWebpropertiesResource : TManagementWebpropertiesResource;
  10638. begin
  10639. Result:=CreateManagementWebpropertiesResource(Self);
  10640. end;
  10641. Function TAnalyticsAPI.CreateManagementWebpropertiesResource(AOwner : TComponent) : TManagementWebpropertiesResource;
  10642. begin
  10643. Result:=TManagementWebpropertiesResource.Create(AOwner);
  10644. Result.API:=Self.API;
  10645. end;
  10646. Function TAnalyticsAPI.GetManagementWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;
  10647. begin
  10648. if (FManagementWebpropertyUserLinksInstance=Nil) then
  10649. FManagementWebpropertyUserLinksInstance:=CreateManagementWebpropertyUserLinksResource;
  10650. Result:=FManagementWebpropertyUserLinksInstance;
  10651. end;
  10652. Function TAnalyticsAPI.CreateManagementWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource;
  10653. begin
  10654. Result:=CreateManagementWebpropertyUserLinksResource(Self);
  10655. end;
  10656. Function TAnalyticsAPI.CreateManagementWebpropertyUserLinksResource(AOwner : TComponent) : TManagementWebpropertyUserLinksResource;
  10657. begin
  10658. Result:=TManagementWebpropertyUserLinksResource.Create(AOwner);
  10659. Result.API:=Self.API;
  10660. end;
  10661. Function TAnalyticsAPI.GetManagementInstance : TManagementResource;
  10662. begin
  10663. if (FManagementInstance=Nil) then
  10664. FManagementInstance:=CreateManagementResource;
  10665. Result:=FManagementInstance;
  10666. end;
  10667. Function TAnalyticsAPI.CreateManagementResource : TManagementResource;
  10668. begin
  10669. Result:=CreateManagementResource(Self);
  10670. end;
  10671. Function TAnalyticsAPI.CreateManagementResource(AOwner : TComponent) : TManagementResource;
  10672. begin
  10673. Result:=TManagementResource.Create(AOwner);
  10674. Result.API:=Self.API;
  10675. end;
  10676. Function TAnalyticsAPI.GetMetadataColumnsInstance : TMetadataColumnsResource;
  10677. begin
  10678. if (FMetadataColumnsInstance=Nil) then
  10679. FMetadataColumnsInstance:=CreateMetadataColumnsResource;
  10680. Result:=FMetadataColumnsInstance;
  10681. end;
  10682. Function TAnalyticsAPI.CreateMetadataColumnsResource : TMetadataColumnsResource;
  10683. begin
  10684. Result:=CreateMetadataColumnsResource(Self);
  10685. end;
  10686. Function TAnalyticsAPI.CreateMetadataColumnsResource(AOwner : TComponent) : TMetadataColumnsResource;
  10687. begin
  10688. Result:=TMetadataColumnsResource.Create(AOwner);
  10689. Result.API:=Self.API;
  10690. end;
  10691. Function TAnalyticsAPI.GetMetadataInstance : TMetadataResource;
  10692. begin
  10693. if (FMetadataInstance=Nil) then
  10694. FMetadataInstance:=CreateMetadataResource;
  10695. Result:=FMetadataInstance;
  10696. end;
  10697. Function TAnalyticsAPI.CreateMetadataResource : TMetadataResource;
  10698. begin
  10699. Result:=CreateMetadataResource(Self);
  10700. end;
  10701. Function TAnalyticsAPI.CreateMetadataResource(AOwner : TComponent) : TMetadataResource;
  10702. begin
  10703. Result:=TMetadataResource.Create(AOwner);
  10704. Result.API:=Self.API;
  10705. end;
  10706. Function TAnalyticsAPI.GetProvisioningInstance : TProvisioningResource;
  10707. begin
  10708. if (FProvisioningInstance=Nil) then
  10709. FProvisioningInstance:=CreateProvisioningResource;
  10710. Result:=FProvisioningInstance;
  10711. end;
  10712. Function TAnalyticsAPI.CreateProvisioningResource : TProvisioningResource;
  10713. begin
  10714. Result:=CreateProvisioningResource(Self);
  10715. end;
  10716. Function TAnalyticsAPI.CreateProvisioningResource(AOwner : TComponent) : TProvisioningResource;
  10717. begin
  10718. Result:=TProvisioningResource.Create(AOwner);
  10719. Result.API:=Self.API;
  10720. end;
  10721. initialization
  10722. TAnalyticsAPI.RegisterAPI;
  10723. end.