googleanalytics.pp 444 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084
  1. {$IFNDEF FPC_DOTTEDUNITS}
  2. unit googleanalytics;
  3. {$ENDIF FPC_DOTTEDUNITS}
  4. {$MODE objfpc}
  5. {$H+}
  6. interface
  7. {$IFDEF FPC_DOTTEDUNITS}
  8. uses System.SysUtils, System.Classes, GoogleApi.Service, FpWeb.Rest.Base, GoogleApi.Base;
  9. {$ELSE FPC_DOTTEDUNITS}
  10. uses sysutils, classes, googleservice, restbase, googlebase;
  11. {$ENDIF FPC_DOTTEDUNITS}
  12. type
  13. //Top-level schema types
  14. TAccount = Class;
  15. TAccountRef = Class;
  16. TAccountSummaries = Class;
  17. TAccountSummary = Class;
  18. TAccountTicket = Class;
  19. TAccounts = Class;
  20. TAdWordsAccount = Class;
  21. TAnalyticsDataimportDeleteUploadDataRequest = Class;
  22. TColumn = Class;
  23. TColumns = Class;
  24. TCustomDataSource = Class;
  25. TCustomDataSources = Class;
  26. TCustomDimension = Class;
  27. TCustomDimensions = Class;
  28. TCustomMetric = Class;
  29. TCustomMetrics = Class;
  30. TEntityAdWordsLink = Class;
  31. TEntityAdWordsLinks = Class;
  32. TEntityUserLink = Class;
  33. TEntityUserLinks = Class;
  34. TExperiment = Class;
  35. TExperiments = Class;
  36. TFilter = Class;
  37. TFilterExpression = Class;
  38. TFilterRef = Class;
  39. TFilters = Class;
  40. TGaData = Class;
  41. TGoal = Class;
  42. TGoals = Class;
  43. TMcfData = Class;
  44. TProfile = Class;
  45. TProfileFilterLink = Class;
  46. TProfileFilterLinks = Class;
  47. TProfileRef = Class;
  48. TProfileSummary = Class;
  49. TProfiles = Class;
  50. TRealtimeData = Class;
  51. TSegment = Class;
  52. TSegments = Class;
  53. TUnsampledReport = Class;
  54. TUnsampledReports = Class;
  55. TUpload = Class;
  56. TUploads = Class;
  57. TUserRef = Class;
  58. TWebPropertyRef = Class;
  59. TWebPropertySummary = Class;
  60. TWebproperties = Class;
  61. TWebproperty = Class;
  62. TAccountArray = Array of TAccount;
  63. TAccountRefArray = Array of TAccountRef;
  64. TAccountSummariesArray = Array of TAccountSummaries;
  65. TAccountSummaryArray = Array of TAccountSummary;
  66. TAccountTicketArray = Array of TAccountTicket;
  67. TAccountsArray = Array of TAccounts;
  68. TAdWordsAccountArray = Array of TAdWordsAccount;
  69. TAnalyticsDataimportDeleteUploadDataRequestArray = Array of TAnalyticsDataimportDeleteUploadDataRequest;
  70. TColumnArray = Array of TColumn;
  71. TColumnsArray = Array of TColumns;
  72. TCustomDataSourceArray = Array of TCustomDataSource;
  73. TCustomDataSourcesArray = Array of TCustomDataSources;
  74. TCustomDimensionArray = Array of TCustomDimension;
  75. TCustomDimensionsArray = Array of TCustomDimensions;
  76. TCustomMetricArray = Array of TCustomMetric;
  77. TCustomMetricsArray = Array of TCustomMetrics;
  78. TEntityAdWordsLinkArray = Array of TEntityAdWordsLink;
  79. TEntityAdWordsLinksArray = Array of TEntityAdWordsLinks;
  80. TEntityUserLinkArray = Array of TEntityUserLink;
  81. TEntityUserLinksArray = Array of TEntityUserLinks;
  82. TExperimentArray = Array of TExperiment;
  83. TExperimentsArray = Array of TExperiments;
  84. TFilterArray = Array of TFilter;
  85. TFilterExpressionArray = Array of TFilterExpression;
  86. TFilterRefArray = Array of TFilterRef;
  87. TFiltersArray = Array of TFilters;
  88. TGaDataArray = Array of TGaData;
  89. TGoalArray = Array of TGoal;
  90. TGoalsArray = Array of TGoals;
  91. TMcfDataArray = Array of TMcfData;
  92. TProfileArray = Array of TProfile;
  93. TProfileFilterLinkArray = Array of TProfileFilterLink;
  94. TProfileFilterLinksArray = Array of TProfileFilterLinks;
  95. TProfileRefArray = Array of TProfileRef;
  96. TProfileSummaryArray = Array of TProfileSummary;
  97. TProfilesArray = Array of TProfiles;
  98. TRealtimeDataArray = Array of TRealtimeData;
  99. TSegmentArray = Array of TSegment;
  100. TSegmentsArray = Array of TSegments;
  101. TUnsampledReportArray = Array of TUnsampledReport;
  102. TUnsampledReportsArray = Array of TUnsampledReports;
  103. TUploadArray = Array of TUpload;
  104. TUploadsArray = Array of TUploads;
  105. TUserRefArray = Array of TUserRef;
  106. TWebPropertyRefArray = Array of TWebPropertyRef;
  107. TWebPropertySummaryArray = Array of TWebPropertySummary;
  108. TWebpropertiesArray = Array of TWebproperties;
  109. TWebpropertyArray = Array of TWebproperty;
  110. //Anonymous types, using auto-generated names
  111. TAccountTypechildLink = Class;
  112. TAccountTypepermissions = Class;
  113. TColumnTypeattributes = Class;
  114. TCustomDataSourceTypechildLink = Class;
  115. TCustomDataSourceTypeparentLink = Class;
  116. TCustomDimensionTypeparentLink = Class;
  117. TCustomMetricTypeparentLink = Class;
  118. TEntityAdWordsLinkTypeentity = Class;
  119. TEntityUserLinkTypeentity = Class;
  120. TEntityUserLinkTypepermissions = Class;
  121. TExperimentTypeparentLink = Class;
  122. TExperimentTypevariationsItem = Class;
  123. TFilterTypeadvancedDetails = Class;
  124. TFilterTypelowercaseDetails = Class;
  125. TFilterTypeparentLink = Class;
  126. TFilterTypesearchAndReplaceDetails = Class;
  127. TFilterTypeuppercaseDetails = Class;
  128. TGaDataTypecolumnHeadersItem = Class;
  129. TGaDataTypedataTableTypecolsItem = Class;
  130. TGaDataTypedataTableTyperowsItemTypecItem = Class;
  131. TGaDataTypedataTableTyperowsItem = Class;
  132. TGaDataTypedataTable = Class;
  133. TGaDataTypeprofileInfo = Class;
  134. TGaDataTypequery = Class;
  135. TGaDataTypetotalsForAllResults = Class;
  136. TGoalTypeeventDetailsTypeeventConditionsItem = Class;
  137. TGoalTypeeventDetails = Class;
  138. TGoalTypeparentLink = Class;
  139. TGoalTypeurlDestinationDetailsTypestepsItem = Class;
  140. TGoalTypeurlDestinationDetails = Class;
  141. TGoalTypevisitNumPagesDetails = Class;
  142. TGoalTypevisitTimeOnSiteDetails = Class;
  143. TMcfDataTypecolumnHeadersItem = Class;
  144. TMcfDataTypeprofileInfo = Class;
  145. TMcfDataTypequery = Class;
  146. TMcfDataTyperowsItemItemTypeconversionPathValueItem = Class;
  147. TMcfDataTyperowsItemItem = Class;
  148. TMcfDataTypetotalsForAllResults = Class;
  149. TProfileTypechildLink = Class;
  150. TProfileTypeparentLink = Class;
  151. TProfileTypepermissions = Class;
  152. TRealtimeDataTypecolumnHeadersItem = Class;
  153. TRealtimeDataTypeprofileInfo = Class;
  154. TRealtimeDataTypequery = Class;
  155. TRealtimeDataTypetotalsForAllResults = Class;
  156. TUnsampledReportTypecloudStorageDownloadDetails = Class;
  157. TUnsampledReportTypedriveDownloadDetails = Class;
  158. TWebpropertyTypechildLink = Class;
  159. TWebpropertyTypeparentLink = Class;
  160. TWebpropertyTypepermissions = Class;
  161. TAccountSummariesTypeitemsArray = Array of TAccountSummary;
  162. TAccountSummaryTypewebPropertiesArray = Array of TWebPropertySummary;
  163. TAccountsTypeitemsArray = Array of TAccount;
  164. TColumnsTypeitemsArray = Array of TColumn;
  165. TCustomDataSourcesTypeitemsArray = Array of TCustomDataSource;
  166. TCustomDimensionsTypeitemsArray = Array of TCustomDimension;
  167. TCustomMetricsTypeitemsArray = Array of TCustomMetric;
  168. TEntityAdWordsLinkTypeadWordsAccountsArray = Array of TAdWordsAccount;
  169. TEntityAdWordsLinksTypeitemsArray = Array of TEntityAdWordsLink;
  170. TEntityUserLinksTypeitemsArray = Array of TEntityUserLink;
  171. TExperimentTypevariationsArray = Array of TExperimentTypevariationsItem;
  172. TExperimentsTypeitemsArray = Array of TExperiment;
  173. TFiltersTypeitemsArray = Array of TFilter;
  174. TGaDataTypecolumnHeadersArray = Array of TGaDataTypecolumnHeadersItem;
  175. TGaDataTypedataTableTypecolsArray = Array of TGaDataTypedataTableTypecolsItem;
  176. TGaDataTypedataTableTyperowsItemTypecArray = Array of TGaDataTypedataTableTyperowsItemTypecItem;
  177. TGaDataTypedataTableTyperowsArray = Array of TGaDataTypedataTableTyperowsItem;
  178. TGaDataTyperowsArray = Array of TStringArray;
  179. TGoalTypeeventDetailsTypeeventConditionsArray = Array of TGoalTypeeventDetailsTypeeventConditionsItem;
  180. TGoalTypeurlDestinationDetailsTypestepsArray = Array of TGoalTypeurlDestinationDetailsTypestepsItem;
  181. TGoalsTypeitemsArray = Array of TGoal;
  182. TMcfDataTypecolumnHeadersArray = Array of TMcfDataTypecolumnHeadersItem;
  183. TMcfDataTyperowsItemItemTypeconversionPathValueArray = Array of TMcfDataTyperowsItemItemTypeconversionPathValueItem;
  184. TMcfDataTyperowsItemArray = Array of TMcfDataTyperowsItemItem;
  185. TMcfDataTyperowsArray = Array of TMcfDataTyperowsItemArray;
  186. TProfileFilterLinksTypeitemsArray = Array of TProfileFilterLink;
  187. TProfilesTypeitemsArray = Array of TProfile;
  188. TRealtimeDataTypecolumnHeadersArray = Array of TRealtimeDataTypecolumnHeadersItem;
  189. TRealtimeDataTyperowsArray = Array of TStringArray;
  190. TSegmentsTypeitemsArray = Array of TSegment;
  191. TUnsampledReportsTypeitemsArray = Array of TUnsampledReport;
  192. TUploadsTypeitemsArray = Array of TUpload;
  193. TWebPropertySummaryTypeprofilesArray = Array of TProfileSummary;
  194. TWebpropertiesTypeitemsArray = Array of TWebproperty;
  195. { --------------------------------------------------------------------
  196. TAccountTypechildLink
  197. --------------------------------------------------------------------}
  198. TAccountTypechildLink = Class(TGoogleBaseObject)
  199. Private
  200. Fhref : String;
  201. F_type : String;
  202. Protected
  203. Class Function ExportPropertyName(Const AName : String) : string; override;
  204. //Property setters
  205. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  206. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  207. Public
  208. Published
  209. Property href : String Index 0 Read Fhref Write Sethref;
  210. Property _type : String Index 8 Read F_type Write Set_type;
  211. end;
  212. TAccountTypechildLinkClass = Class of TAccountTypechildLink;
  213. { --------------------------------------------------------------------
  214. TAccountTypepermissions
  215. --------------------------------------------------------------------}
  216. TAccountTypepermissions = Class(TGoogleBaseObject)
  217. Private
  218. Feffective : TStringArray;
  219. Protected
  220. //Property setters
  221. Procedure Seteffective(AIndex : Integer; const AValue : TStringArray); virtual;
  222. //2.6.4. bug workaround
  223. {$IFDEF VER2_6}
  224. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  225. {$ENDIF VER2_6}
  226. Public
  227. Published
  228. Property effective : TStringArray Index 0 Read Feffective Write Seteffective;
  229. end;
  230. TAccountTypepermissionsClass = Class of TAccountTypepermissions;
  231. { --------------------------------------------------------------------
  232. TAccount
  233. --------------------------------------------------------------------}
  234. TAccount = Class(TGoogleBaseObject)
  235. Private
  236. FchildLink : TAccountTypechildLink;
  237. Fcreated : TDatetime;
  238. Fid : String;
  239. Fkind : String;
  240. Fname : String;
  241. Fpermissions : TAccountTypepermissions;
  242. FselfLink : String;
  243. Fstarred : boolean;
  244. Fupdated : TDatetime;
  245. Protected
  246. //Property setters
  247. Procedure SetchildLink(AIndex : Integer; const AValue : TAccountTypechildLink); virtual;
  248. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  249. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  250. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  251. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  252. Procedure Setpermissions(AIndex : Integer; const AValue : TAccountTypepermissions); virtual;
  253. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  254. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  255. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  256. Public
  257. Published
  258. Property childLink : TAccountTypechildLink Index 0 Read FchildLink Write SetchildLink;
  259. Property created : TDatetime Index 8 Read Fcreated Write Setcreated;
  260. Property id : String Index 16 Read Fid Write Setid;
  261. Property kind : String Index 24 Read Fkind Write Setkind;
  262. Property name : String Index 32 Read Fname Write Setname;
  263. Property permissions : TAccountTypepermissions Index 40 Read Fpermissions Write Setpermissions;
  264. Property selfLink : String Index 48 Read FselfLink Write SetselfLink;
  265. Property starred : boolean Index 56 Read Fstarred Write Setstarred;
  266. Property updated : TDatetime Index 64 Read Fupdated Write Setupdated;
  267. end;
  268. TAccountClass = Class of TAccount;
  269. { --------------------------------------------------------------------
  270. TAccountRef
  271. --------------------------------------------------------------------}
  272. TAccountRef = Class(TGoogleBaseObject)
  273. Private
  274. Fhref : String;
  275. Fid : String;
  276. Fkind : String;
  277. Fname : String;
  278. Protected
  279. //Property setters
  280. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  281. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  282. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  283. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  284. Public
  285. Published
  286. Property href : String Index 0 Read Fhref Write Sethref;
  287. Property id : String Index 8 Read Fid Write Setid;
  288. Property kind : String Index 16 Read Fkind Write Setkind;
  289. Property name : String Index 24 Read Fname Write Setname;
  290. end;
  291. TAccountRefClass = Class of TAccountRef;
  292. { --------------------------------------------------------------------
  293. TAccountSummaries
  294. --------------------------------------------------------------------}
  295. TAccountSummaries = Class(TGoogleBaseObject)
  296. Private
  297. Fitems : TAccountSummariesTypeitemsArray;
  298. FitemsPerPage : integer;
  299. Fkind : String;
  300. FnextLink : String;
  301. FpreviousLink : String;
  302. FstartIndex : integer;
  303. FtotalResults : integer;
  304. Fusername : String;
  305. Protected
  306. //Property setters
  307. Procedure Setitems(AIndex : Integer; const AValue : TAccountSummariesTypeitemsArray); virtual;
  308. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  309. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  310. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  311. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  312. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  313. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  314. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  315. //2.6.4. bug workaround
  316. {$IFDEF VER2_6}
  317. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  318. {$ENDIF VER2_6}
  319. Public
  320. Published
  321. Property items : TAccountSummariesTypeitemsArray Index 0 Read Fitems Write Setitems;
  322. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  323. Property kind : String Index 16 Read Fkind Write Setkind;
  324. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  325. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  326. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  327. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  328. Property username : String Index 56 Read Fusername Write Setusername;
  329. end;
  330. TAccountSummariesClass = Class of TAccountSummaries;
  331. { --------------------------------------------------------------------
  332. TAccountSummary
  333. --------------------------------------------------------------------}
  334. TAccountSummary = Class(TGoogleBaseObject)
  335. Private
  336. Fid : String;
  337. Fkind : String;
  338. Fname : String;
  339. Fstarred : boolean;
  340. FwebProperties : TAccountSummaryTypewebPropertiesArray;
  341. Protected
  342. //Property setters
  343. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  344. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  345. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  346. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  347. Procedure SetwebProperties(AIndex : Integer; const AValue : TAccountSummaryTypewebPropertiesArray); virtual;
  348. //2.6.4. bug workaround
  349. {$IFDEF VER2_6}
  350. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  351. {$ENDIF VER2_6}
  352. Public
  353. Published
  354. Property id : String Index 0 Read Fid Write Setid;
  355. Property kind : String Index 8 Read Fkind Write Setkind;
  356. Property name : String Index 16 Read Fname Write Setname;
  357. Property starred : boolean Index 24 Read Fstarred Write Setstarred;
  358. Property webProperties : TAccountSummaryTypewebPropertiesArray Index 32 Read FwebProperties Write SetwebProperties;
  359. end;
  360. TAccountSummaryClass = Class of TAccountSummary;
  361. { --------------------------------------------------------------------
  362. TAccountTicket
  363. --------------------------------------------------------------------}
  364. TAccountTicket = Class(TGoogleBaseObject)
  365. Private
  366. Faccount : TAccount;
  367. Fid : String;
  368. Fkind : String;
  369. Fprofile : TProfile;
  370. FredirectUri : String;
  371. Fwebproperty : TWebproperty;
  372. Protected
  373. //Property setters
  374. Procedure Setaccount(AIndex : Integer; const AValue : TAccount); virtual;
  375. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  376. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  377. Procedure Setprofile(AIndex : Integer; const AValue : TProfile); virtual;
  378. Procedure SetredirectUri(AIndex : Integer; const AValue : String); virtual;
  379. Procedure Setwebproperty(AIndex : Integer; const AValue : TWebproperty); virtual;
  380. Public
  381. Published
  382. Property account : TAccount Index 0 Read Faccount Write Setaccount;
  383. Property id : String Index 8 Read Fid Write Setid;
  384. Property kind : String Index 16 Read Fkind Write Setkind;
  385. Property profile : TProfile Index 24 Read Fprofile Write Setprofile;
  386. Property redirectUri : String Index 32 Read FredirectUri Write SetredirectUri;
  387. Property webproperty : TWebproperty Index 40 Read Fwebproperty Write Setwebproperty;
  388. end;
  389. TAccountTicketClass = Class of TAccountTicket;
  390. { --------------------------------------------------------------------
  391. TAccounts
  392. --------------------------------------------------------------------}
  393. TAccounts = Class(TGoogleBaseObject)
  394. Private
  395. Fitems : TAccountsTypeitemsArray;
  396. FitemsPerPage : integer;
  397. Fkind : String;
  398. FnextLink : String;
  399. FpreviousLink : String;
  400. FstartIndex : integer;
  401. FtotalResults : integer;
  402. Fusername : String;
  403. Protected
  404. //Property setters
  405. Procedure Setitems(AIndex : Integer; const AValue : TAccountsTypeitemsArray); virtual;
  406. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  407. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  408. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  409. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  410. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  411. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  412. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  413. //2.6.4. bug workaround
  414. {$IFDEF VER2_6}
  415. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  416. {$ENDIF VER2_6}
  417. Public
  418. Published
  419. Property items : TAccountsTypeitemsArray Index 0 Read Fitems Write Setitems;
  420. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  421. Property kind : String Index 16 Read Fkind Write Setkind;
  422. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  423. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  424. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  425. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  426. Property username : String Index 56 Read Fusername Write Setusername;
  427. end;
  428. TAccountsClass = Class of TAccounts;
  429. { --------------------------------------------------------------------
  430. TAdWordsAccount
  431. --------------------------------------------------------------------}
  432. TAdWordsAccount = Class(TGoogleBaseObject)
  433. Private
  434. FautoTaggingEnabled : boolean;
  435. FcustomerId : String;
  436. Fkind : String;
  437. Protected
  438. //Property setters
  439. Procedure SetautoTaggingEnabled(AIndex : Integer; const AValue : boolean); virtual;
  440. Procedure SetcustomerId(AIndex : Integer; const AValue : String); virtual;
  441. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  442. Public
  443. Published
  444. Property autoTaggingEnabled : boolean Index 0 Read FautoTaggingEnabled Write SetautoTaggingEnabled;
  445. Property customerId : String Index 8 Read FcustomerId Write SetcustomerId;
  446. Property kind : String Index 16 Read Fkind Write Setkind;
  447. end;
  448. TAdWordsAccountClass = Class of TAdWordsAccount;
  449. { --------------------------------------------------------------------
  450. TAnalyticsDataimportDeleteUploadDataRequest
  451. --------------------------------------------------------------------}
  452. TAnalyticsDataimportDeleteUploadDataRequest = Class(TGoogleBaseObject)
  453. Private
  454. FcustomDataImportUids : TStringArray;
  455. Protected
  456. //Property setters
  457. Procedure SetcustomDataImportUids(AIndex : Integer; const AValue : TStringArray); virtual;
  458. //2.6.4. bug workaround
  459. {$IFDEF VER2_6}
  460. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  461. {$ENDIF VER2_6}
  462. Public
  463. Published
  464. Property customDataImportUids : TStringArray Index 0 Read FcustomDataImportUids Write SetcustomDataImportUids;
  465. end;
  466. TAnalyticsDataimportDeleteUploadDataRequestClass = Class of TAnalyticsDataimportDeleteUploadDataRequest;
  467. { --------------------------------------------------------------------
  468. TColumnTypeattributes
  469. --------------------------------------------------------------------}
  470. TColumnTypeattributes = Class(TGoogleBaseObject)
  471. Private
  472. Protected
  473. //Property setters
  474. Public
  475. Class Function AllowAdditionalProperties : Boolean; override;
  476. Published
  477. end;
  478. TColumnTypeattributesClass = Class of TColumnTypeattributes;
  479. { --------------------------------------------------------------------
  480. TColumn
  481. --------------------------------------------------------------------}
  482. TColumn = Class(TGoogleBaseObject)
  483. Private
  484. Fattributes : TColumnTypeattributes;
  485. Fid : String;
  486. Fkind : String;
  487. Protected
  488. //Property setters
  489. Procedure Setattributes(AIndex : Integer; const AValue : TColumnTypeattributes); virtual;
  490. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  491. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  492. Public
  493. Published
  494. Property attributes : TColumnTypeattributes Index 0 Read Fattributes Write Setattributes;
  495. Property id : String Index 8 Read Fid Write Setid;
  496. Property kind : String Index 16 Read Fkind Write Setkind;
  497. end;
  498. TColumnClass = Class of TColumn;
  499. { --------------------------------------------------------------------
  500. TColumns
  501. --------------------------------------------------------------------}
  502. TColumns = Class(TGoogleBaseObject)
  503. Private
  504. FattributeNames : TStringArray;
  505. Fetag : String;
  506. Fitems : TColumnsTypeitemsArray;
  507. Fkind : String;
  508. FtotalResults : integer;
  509. Protected
  510. //Property setters
  511. Procedure SetattributeNames(AIndex : Integer; const AValue : TStringArray); virtual;
  512. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  513. Procedure Setitems(AIndex : Integer; const AValue : TColumnsTypeitemsArray); virtual;
  514. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  515. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  516. //2.6.4. bug workaround
  517. {$IFDEF VER2_6}
  518. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  519. {$ENDIF VER2_6}
  520. Public
  521. Published
  522. Property attributeNames : TStringArray Index 0 Read FattributeNames Write SetattributeNames;
  523. Property etag : String Index 8 Read Fetag Write Setetag;
  524. Property items : TColumnsTypeitemsArray Index 16 Read Fitems Write Setitems;
  525. Property kind : String Index 24 Read Fkind Write Setkind;
  526. Property totalResults : integer Index 32 Read FtotalResults Write SettotalResults;
  527. end;
  528. TColumnsClass = Class of TColumns;
  529. { --------------------------------------------------------------------
  530. TCustomDataSourceTypechildLink
  531. --------------------------------------------------------------------}
  532. TCustomDataSourceTypechildLink = Class(TGoogleBaseObject)
  533. Private
  534. Fhref : String;
  535. F_type : String;
  536. Protected
  537. Class Function ExportPropertyName(Const AName : String) : string; override;
  538. //Property setters
  539. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  540. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  541. Public
  542. Published
  543. Property href : String Index 0 Read Fhref Write Sethref;
  544. Property _type : String Index 8 Read F_type Write Set_type;
  545. end;
  546. TCustomDataSourceTypechildLinkClass = Class of TCustomDataSourceTypechildLink;
  547. { --------------------------------------------------------------------
  548. TCustomDataSourceTypeparentLink
  549. --------------------------------------------------------------------}
  550. TCustomDataSourceTypeparentLink = Class(TGoogleBaseObject)
  551. Private
  552. Fhref : String;
  553. F_type : String;
  554. Protected
  555. Class Function ExportPropertyName(Const AName : String) : string; override;
  556. //Property setters
  557. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  558. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  559. Public
  560. Published
  561. Property href : String Index 0 Read Fhref Write Sethref;
  562. Property _type : String Index 8 Read F_type Write Set_type;
  563. end;
  564. TCustomDataSourceTypeparentLinkClass = Class of TCustomDataSourceTypeparentLink;
  565. { --------------------------------------------------------------------
  566. TCustomDataSource
  567. --------------------------------------------------------------------}
  568. TCustomDataSource = Class(TGoogleBaseObject)
  569. Private
  570. FaccountId : String;
  571. FchildLink : TCustomDataSourceTypechildLink;
  572. Fcreated : TDatetime;
  573. Fdescription : String;
  574. Fid : String;
  575. FimportBehavior : String;
  576. Fkind : String;
  577. Fname : String;
  578. FparentLink : TCustomDataSourceTypeparentLink;
  579. FprofilesLinked : TStringArray;
  580. FselfLink : String;
  581. F_type : String;
  582. Fupdated : TDatetime;
  583. FuploadType : String;
  584. FwebPropertyId : String;
  585. Protected
  586. Class Function ExportPropertyName(Const AName : String) : string; override;
  587. //Property setters
  588. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  589. Procedure SetchildLink(AIndex : Integer; const AValue : TCustomDataSourceTypechildLink); virtual;
  590. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  591. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  592. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  593. Procedure SetimportBehavior(AIndex : Integer; const AValue : String); virtual;
  594. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  595. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  596. Procedure SetparentLink(AIndex : Integer; const AValue : TCustomDataSourceTypeparentLink); virtual;
  597. Procedure SetprofilesLinked(AIndex : Integer; const AValue : TStringArray); virtual;
  598. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  599. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  600. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  601. Procedure SetuploadType(AIndex : Integer; const AValue : String); virtual;
  602. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  603. //2.6.4. bug workaround
  604. {$IFDEF VER2_6}
  605. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  606. {$ENDIF VER2_6}
  607. Public
  608. Published
  609. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  610. Property childLink : TCustomDataSourceTypechildLink Index 8 Read FchildLink Write SetchildLink;
  611. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  612. Property description : String Index 24 Read Fdescription Write Setdescription;
  613. Property id : String Index 32 Read Fid Write Setid;
  614. Property importBehavior : String Index 40 Read FimportBehavior Write SetimportBehavior;
  615. Property kind : String Index 48 Read Fkind Write Setkind;
  616. Property name : String Index 56 Read Fname Write Setname;
  617. Property parentLink : TCustomDataSourceTypeparentLink Index 64 Read FparentLink Write SetparentLink;
  618. Property profilesLinked : TStringArray Index 72 Read FprofilesLinked Write SetprofilesLinked;
  619. Property selfLink : String Index 80 Read FselfLink Write SetselfLink;
  620. Property _type : String Index 88 Read F_type Write Set_type;
  621. Property updated : TDatetime Index 96 Read Fupdated Write Setupdated;
  622. Property uploadType : String Index 104 Read FuploadType Write SetuploadType;
  623. Property webPropertyId : String Index 112 Read FwebPropertyId Write SetwebPropertyId;
  624. end;
  625. TCustomDataSourceClass = Class of TCustomDataSource;
  626. { --------------------------------------------------------------------
  627. TCustomDataSources
  628. --------------------------------------------------------------------}
  629. TCustomDataSources = Class(TGoogleBaseObject)
  630. Private
  631. Fitems : TCustomDataSourcesTypeitemsArray;
  632. FitemsPerPage : integer;
  633. Fkind : String;
  634. FnextLink : String;
  635. FpreviousLink : String;
  636. FstartIndex : integer;
  637. FtotalResults : integer;
  638. Fusername : String;
  639. Protected
  640. //Property setters
  641. Procedure Setitems(AIndex : Integer; const AValue : TCustomDataSourcesTypeitemsArray); virtual;
  642. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  643. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  644. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  645. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  646. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  647. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  648. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  649. //2.6.4. bug workaround
  650. {$IFDEF VER2_6}
  651. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  652. {$ENDIF VER2_6}
  653. Public
  654. Published
  655. Property items : TCustomDataSourcesTypeitemsArray Index 0 Read Fitems Write Setitems;
  656. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  657. Property kind : String Index 16 Read Fkind Write Setkind;
  658. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  659. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  660. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  661. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  662. Property username : String Index 56 Read Fusername Write Setusername;
  663. end;
  664. TCustomDataSourcesClass = Class of TCustomDataSources;
  665. { --------------------------------------------------------------------
  666. TCustomDimensionTypeparentLink
  667. --------------------------------------------------------------------}
  668. TCustomDimensionTypeparentLink = Class(TGoogleBaseObject)
  669. Private
  670. Fhref : String;
  671. F_type : String;
  672. Protected
  673. Class Function ExportPropertyName(Const AName : String) : string; override;
  674. //Property setters
  675. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  676. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  677. Public
  678. Published
  679. Property href : String Index 0 Read Fhref Write Sethref;
  680. Property _type : String Index 8 Read F_type Write Set_type;
  681. end;
  682. TCustomDimensionTypeparentLinkClass = Class of TCustomDimensionTypeparentLink;
  683. { --------------------------------------------------------------------
  684. TCustomDimension
  685. --------------------------------------------------------------------}
  686. TCustomDimension = Class(TGoogleBaseObject)
  687. Private
  688. FaccountId : String;
  689. Factive : boolean;
  690. Fcreated : TDatetime;
  691. Fid : String;
  692. Findex : integer;
  693. Fkind : String;
  694. Fname : String;
  695. FparentLink : TCustomDimensionTypeparentLink;
  696. Fscope : String;
  697. FselfLink : String;
  698. Fupdated : TDatetime;
  699. FwebPropertyId : String;
  700. Protected
  701. //Property setters
  702. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  703. Procedure Setactive(AIndex : Integer; const AValue : boolean); virtual;
  704. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  705. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  706. Procedure Setindex(AIndex : Integer; const AValue : integer); virtual;
  707. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  708. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  709. Procedure SetparentLink(AIndex : Integer; const AValue : TCustomDimensionTypeparentLink); virtual;
  710. Procedure Setscope(AIndex : Integer; const AValue : String); virtual;
  711. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  712. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  713. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  714. Public
  715. Published
  716. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  717. Property active : boolean Index 8 Read Factive Write Setactive;
  718. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  719. Property id : String Index 24 Read Fid Write Setid;
  720. Property index : integer Index 32 Read Findex Write Setindex;
  721. Property kind : String Index 40 Read Fkind Write Setkind;
  722. Property name : String Index 48 Read Fname Write Setname;
  723. Property parentLink : TCustomDimensionTypeparentLink Index 56 Read FparentLink Write SetparentLink;
  724. Property scope : String Index 64 Read Fscope Write Setscope;
  725. Property selfLink : String Index 72 Read FselfLink Write SetselfLink;
  726. Property updated : TDatetime Index 80 Read Fupdated Write Setupdated;
  727. Property webPropertyId : String Index 88 Read FwebPropertyId Write SetwebPropertyId;
  728. end;
  729. TCustomDimensionClass = Class of TCustomDimension;
  730. { --------------------------------------------------------------------
  731. TCustomDimensions
  732. --------------------------------------------------------------------}
  733. TCustomDimensions = Class(TGoogleBaseObject)
  734. Private
  735. Fitems : TCustomDimensionsTypeitemsArray;
  736. FitemsPerPage : integer;
  737. Fkind : String;
  738. FnextLink : String;
  739. FpreviousLink : String;
  740. FstartIndex : integer;
  741. FtotalResults : integer;
  742. Fusername : String;
  743. Protected
  744. //Property setters
  745. Procedure Setitems(AIndex : Integer; const AValue : TCustomDimensionsTypeitemsArray); virtual;
  746. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  747. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  748. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  749. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  750. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  751. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  752. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  753. //2.6.4. bug workaround
  754. {$IFDEF VER2_6}
  755. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  756. {$ENDIF VER2_6}
  757. Public
  758. Published
  759. Property items : TCustomDimensionsTypeitemsArray Index 0 Read Fitems Write Setitems;
  760. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  761. Property kind : String Index 16 Read Fkind Write Setkind;
  762. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  763. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  764. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  765. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  766. Property username : String Index 56 Read Fusername Write Setusername;
  767. end;
  768. TCustomDimensionsClass = Class of TCustomDimensions;
  769. { --------------------------------------------------------------------
  770. TCustomMetricTypeparentLink
  771. --------------------------------------------------------------------}
  772. TCustomMetricTypeparentLink = Class(TGoogleBaseObject)
  773. Private
  774. Fhref : String;
  775. F_type : String;
  776. Protected
  777. Class Function ExportPropertyName(Const AName : String) : string; override;
  778. //Property setters
  779. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  780. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  781. Public
  782. Published
  783. Property href : String Index 0 Read Fhref Write Sethref;
  784. Property _type : String Index 8 Read F_type Write Set_type;
  785. end;
  786. TCustomMetricTypeparentLinkClass = Class of TCustomMetricTypeparentLink;
  787. { --------------------------------------------------------------------
  788. TCustomMetric
  789. --------------------------------------------------------------------}
  790. TCustomMetric = Class(TGoogleBaseObject)
  791. Private
  792. FaccountId : String;
  793. Factive : boolean;
  794. Fcreated : TDatetime;
  795. Fid : String;
  796. Findex : integer;
  797. Fkind : String;
  798. Fmax_value : String;
  799. Fmin_value : String;
  800. Fname : String;
  801. FparentLink : TCustomMetricTypeparentLink;
  802. Fscope : String;
  803. FselfLink : String;
  804. F_type : String;
  805. Fupdated : TDatetime;
  806. FwebPropertyId : String;
  807. Protected
  808. Class Function ExportPropertyName(Const AName : String) : string; override;
  809. //Property setters
  810. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  811. Procedure Setactive(AIndex : Integer; const AValue : boolean); virtual;
  812. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  813. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  814. Procedure Setindex(AIndex : Integer; const AValue : integer); virtual;
  815. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  816. Procedure Setmax_value(AIndex : Integer; const AValue : String); virtual;
  817. Procedure Setmin_value(AIndex : Integer; const AValue : String); virtual;
  818. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  819. Procedure SetparentLink(AIndex : Integer; const AValue : TCustomMetricTypeparentLink); virtual;
  820. Procedure Setscope(AIndex : Integer; const AValue : String); virtual;
  821. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  822. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  823. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  824. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  825. Public
  826. Published
  827. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  828. Property active : boolean Index 8 Read Factive Write Setactive;
  829. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  830. Property id : String Index 24 Read Fid Write Setid;
  831. Property index : integer Index 32 Read Findex Write Setindex;
  832. Property kind : String Index 40 Read Fkind Write Setkind;
  833. Property max_value : String Index 48 Read Fmax_value Write Setmax_value;
  834. Property min_value : String Index 56 Read Fmin_value Write Setmin_value;
  835. Property name : String Index 64 Read Fname Write Setname;
  836. Property parentLink : TCustomMetricTypeparentLink Index 72 Read FparentLink Write SetparentLink;
  837. Property scope : String Index 80 Read Fscope Write Setscope;
  838. Property selfLink : String Index 88 Read FselfLink Write SetselfLink;
  839. Property _type : String Index 96 Read F_type Write Set_type;
  840. Property updated : TDatetime Index 104 Read Fupdated Write Setupdated;
  841. Property webPropertyId : String Index 112 Read FwebPropertyId Write SetwebPropertyId;
  842. end;
  843. TCustomMetricClass = Class of TCustomMetric;
  844. { --------------------------------------------------------------------
  845. TCustomMetrics
  846. --------------------------------------------------------------------}
  847. TCustomMetrics = Class(TGoogleBaseObject)
  848. Private
  849. Fitems : TCustomMetricsTypeitemsArray;
  850. FitemsPerPage : integer;
  851. Fkind : String;
  852. FnextLink : String;
  853. FpreviousLink : String;
  854. FstartIndex : integer;
  855. FtotalResults : integer;
  856. Fusername : String;
  857. Protected
  858. //Property setters
  859. Procedure Setitems(AIndex : Integer; const AValue : TCustomMetricsTypeitemsArray); virtual;
  860. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  861. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  862. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  863. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  864. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  865. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  866. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  867. //2.6.4. bug workaround
  868. {$IFDEF VER2_6}
  869. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  870. {$ENDIF VER2_6}
  871. Public
  872. Published
  873. Property items : TCustomMetricsTypeitemsArray Index 0 Read Fitems Write Setitems;
  874. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  875. Property kind : String Index 16 Read Fkind Write Setkind;
  876. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  877. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  878. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  879. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  880. Property username : String Index 56 Read Fusername Write Setusername;
  881. end;
  882. TCustomMetricsClass = Class of TCustomMetrics;
  883. { --------------------------------------------------------------------
  884. TEntityAdWordsLinkTypeentity
  885. --------------------------------------------------------------------}
  886. TEntityAdWordsLinkTypeentity = Class(TGoogleBaseObject)
  887. Private
  888. FwebPropertyRef : TWebPropertyRef;
  889. Protected
  890. //Property setters
  891. Procedure SetwebPropertyRef(AIndex : Integer; const AValue : TWebPropertyRef); virtual;
  892. Public
  893. Published
  894. Property webPropertyRef : TWebPropertyRef Index 0 Read FwebPropertyRef Write SetwebPropertyRef;
  895. end;
  896. TEntityAdWordsLinkTypeentityClass = Class of TEntityAdWordsLinkTypeentity;
  897. { --------------------------------------------------------------------
  898. TEntityAdWordsLink
  899. --------------------------------------------------------------------}
  900. TEntityAdWordsLink = Class(TGoogleBaseObject)
  901. Private
  902. FadWordsAccounts : TEntityAdWordsLinkTypeadWordsAccountsArray;
  903. Fentity : TEntityAdWordsLinkTypeentity;
  904. Fid : String;
  905. Fkind : String;
  906. Fname : String;
  907. FprofileIds : TStringArray;
  908. FselfLink : String;
  909. Protected
  910. //Property setters
  911. Procedure SetadWordsAccounts(AIndex : Integer; const AValue : TEntityAdWordsLinkTypeadWordsAccountsArray); virtual;
  912. Procedure Setentity(AIndex : Integer; const AValue : TEntityAdWordsLinkTypeentity); virtual;
  913. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  914. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  915. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  916. Procedure SetprofileIds(AIndex : Integer; const AValue : TStringArray); virtual;
  917. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  918. //2.6.4. bug workaround
  919. {$IFDEF VER2_6}
  920. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  921. {$ENDIF VER2_6}
  922. Public
  923. Published
  924. Property adWordsAccounts : TEntityAdWordsLinkTypeadWordsAccountsArray Index 0 Read FadWordsAccounts Write SetadWordsAccounts;
  925. Property entity : TEntityAdWordsLinkTypeentity Index 8 Read Fentity Write Setentity;
  926. Property id : String Index 16 Read Fid Write Setid;
  927. Property kind : String Index 24 Read Fkind Write Setkind;
  928. Property name : String Index 32 Read Fname Write Setname;
  929. Property profileIds : TStringArray Index 40 Read FprofileIds Write SetprofileIds;
  930. Property selfLink : String Index 48 Read FselfLink Write SetselfLink;
  931. end;
  932. TEntityAdWordsLinkClass = Class of TEntityAdWordsLink;
  933. { --------------------------------------------------------------------
  934. TEntityAdWordsLinks
  935. --------------------------------------------------------------------}
  936. TEntityAdWordsLinks = Class(TGoogleBaseObject)
  937. Private
  938. Fitems : TEntityAdWordsLinksTypeitemsArray;
  939. FitemsPerPage : integer;
  940. Fkind : String;
  941. FnextLink : String;
  942. FpreviousLink : String;
  943. FstartIndex : integer;
  944. FtotalResults : integer;
  945. Protected
  946. //Property setters
  947. Procedure Setitems(AIndex : Integer; const AValue : TEntityAdWordsLinksTypeitemsArray); virtual;
  948. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  949. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  950. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  951. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  952. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  953. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  954. //2.6.4. bug workaround
  955. {$IFDEF VER2_6}
  956. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  957. {$ENDIF VER2_6}
  958. Public
  959. Published
  960. Property items : TEntityAdWordsLinksTypeitemsArray Index 0 Read Fitems Write Setitems;
  961. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  962. Property kind : String Index 16 Read Fkind Write Setkind;
  963. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  964. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  965. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  966. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  967. end;
  968. TEntityAdWordsLinksClass = Class of TEntityAdWordsLinks;
  969. { --------------------------------------------------------------------
  970. TEntityUserLinkTypeentity
  971. --------------------------------------------------------------------}
  972. TEntityUserLinkTypeentity = Class(TGoogleBaseObject)
  973. Private
  974. FaccountRef : TAccountRef;
  975. FprofileRef : TProfileRef;
  976. FwebPropertyRef : TWebPropertyRef;
  977. Protected
  978. //Property setters
  979. Procedure SetaccountRef(AIndex : Integer; const AValue : TAccountRef); virtual;
  980. Procedure SetprofileRef(AIndex : Integer; const AValue : TProfileRef); virtual;
  981. Procedure SetwebPropertyRef(AIndex : Integer; const AValue : TWebPropertyRef); virtual;
  982. Public
  983. Published
  984. Property accountRef : TAccountRef Index 0 Read FaccountRef Write SetaccountRef;
  985. Property profileRef : TProfileRef Index 8 Read FprofileRef Write SetprofileRef;
  986. Property webPropertyRef : TWebPropertyRef Index 16 Read FwebPropertyRef Write SetwebPropertyRef;
  987. end;
  988. TEntityUserLinkTypeentityClass = Class of TEntityUserLinkTypeentity;
  989. { --------------------------------------------------------------------
  990. TEntityUserLinkTypepermissions
  991. --------------------------------------------------------------------}
  992. TEntityUserLinkTypepermissions = Class(TGoogleBaseObject)
  993. Private
  994. Feffective : TStringArray;
  995. Flocal : TStringArray;
  996. Protected
  997. //Property setters
  998. Procedure Seteffective(AIndex : Integer; const AValue : TStringArray); virtual;
  999. Procedure Setlocal(AIndex : Integer; const AValue : TStringArray); virtual;
  1000. //2.6.4. bug workaround
  1001. {$IFDEF VER2_6}
  1002. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1003. {$ENDIF VER2_6}
  1004. Public
  1005. Published
  1006. Property effective : TStringArray Index 0 Read Feffective Write Seteffective;
  1007. Property local : TStringArray Index 8 Read Flocal Write Setlocal;
  1008. end;
  1009. TEntityUserLinkTypepermissionsClass = Class of TEntityUserLinkTypepermissions;
  1010. { --------------------------------------------------------------------
  1011. TEntityUserLink
  1012. --------------------------------------------------------------------}
  1013. TEntityUserLink = Class(TGoogleBaseObject)
  1014. Private
  1015. Fentity : TEntityUserLinkTypeentity;
  1016. Fid : String;
  1017. Fkind : String;
  1018. Fpermissions : TEntityUserLinkTypepermissions;
  1019. FselfLink : String;
  1020. FuserRef : TUserRef;
  1021. Protected
  1022. //Property setters
  1023. Procedure Setentity(AIndex : Integer; const AValue : TEntityUserLinkTypeentity); virtual;
  1024. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1025. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1026. Procedure Setpermissions(AIndex : Integer; const AValue : TEntityUserLinkTypepermissions); virtual;
  1027. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1028. Procedure SetuserRef(AIndex : Integer; const AValue : TUserRef); virtual;
  1029. Public
  1030. Published
  1031. Property entity : TEntityUserLinkTypeentity Index 0 Read Fentity Write Setentity;
  1032. Property id : String Index 8 Read Fid Write Setid;
  1033. Property kind : String Index 16 Read Fkind Write Setkind;
  1034. Property permissions : TEntityUserLinkTypepermissions Index 24 Read Fpermissions Write Setpermissions;
  1035. Property selfLink : String Index 32 Read FselfLink Write SetselfLink;
  1036. Property userRef : TUserRef Index 40 Read FuserRef Write SetuserRef;
  1037. end;
  1038. TEntityUserLinkClass = Class of TEntityUserLink;
  1039. { --------------------------------------------------------------------
  1040. TEntityUserLinks
  1041. --------------------------------------------------------------------}
  1042. TEntityUserLinks = Class(TGoogleBaseObject)
  1043. Private
  1044. Fitems : TEntityUserLinksTypeitemsArray;
  1045. FitemsPerPage : integer;
  1046. Fkind : String;
  1047. FnextLink : String;
  1048. FpreviousLink : String;
  1049. FstartIndex : integer;
  1050. FtotalResults : integer;
  1051. Protected
  1052. //Property setters
  1053. Procedure Setitems(AIndex : Integer; const AValue : TEntityUserLinksTypeitemsArray); virtual;
  1054. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  1055. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1056. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  1057. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  1058. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  1059. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  1060. //2.6.4. bug workaround
  1061. {$IFDEF VER2_6}
  1062. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1063. {$ENDIF VER2_6}
  1064. Public
  1065. Published
  1066. Property items : TEntityUserLinksTypeitemsArray Index 0 Read Fitems Write Setitems;
  1067. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  1068. Property kind : String Index 16 Read Fkind Write Setkind;
  1069. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  1070. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  1071. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  1072. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  1073. end;
  1074. TEntityUserLinksClass = Class of TEntityUserLinks;
  1075. { --------------------------------------------------------------------
  1076. TExperimentTypeparentLink
  1077. --------------------------------------------------------------------}
  1078. TExperimentTypeparentLink = Class(TGoogleBaseObject)
  1079. Private
  1080. Fhref : String;
  1081. F_type : String;
  1082. Protected
  1083. Class Function ExportPropertyName(Const AName : String) : string; override;
  1084. //Property setters
  1085. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  1086. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1087. Public
  1088. Published
  1089. Property href : String Index 0 Read Fhref Write Sethref;
  1090. Property _type : String Index 8 Read F_type Write Set_type;
  1091. end;
  1092. TExperimentTypeparentLinkClass = Class of TExperimentTypeparentLink;
  1093. { --------------------------------------------------------------------
  1094. TExperimentTypevariationsItem
  1095. --------------------------------------------------------------------}
  1096. TExperimentTypevariationsItem = Class(TGoogleBaseObject)
  1097. Private
  1098. Fname : String;
  1099. Fstatus : String;
  1100. Furl : String;
  1101. Fweight : double;
  1102. Fwon : boolean;
  1103. Protected
  1104. //Property setters
  1105. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1106. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  1107. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  1108. Procedure Setweight(AIndex : Integer; const AValue : double); virtual;
  1109. Procedure Setwon(AIndex : Integer; const AValue : boolean); virtual;
  1110. Public
  1111. Published
  1112. Property name : String Index 0 Read Fname Write Setname;
  1113. Property status : String Index 8 Read Fstatus Write Setstatus;
  1114. Property url : String Index 16 Read Furl Write Seturl;
  1115. Property weight : double Index 24 Read Fweight Write Setweight;
  1116. Property won : boolean Index 32 Read Fwon Write Setwon;
  1117. end;
  1118. TExperimentTypevariationsItemClass = Class of TExperimentTypevariationsItem;
  1119. { --------------------------------------------------------------------
  1120. TExperiment
  1121. --------------------------------------------------------------------}
  1122. TExperiment = Class(TGoogleBaseObject)
  1123. Private
  1124. FaccountId : String;
  1125. Fcreated : TDatetime;
  1126. Fdescription : String;
  1127. FeditableInGaUi : boolean;
  1128. FendTime : TDatetime;
  1129. FequalWeighting : boolean;
  1130. Fid : String;
  1131. FinternalWebPropertyId : String;
  1132. Fkind : String;
  1133. FminimumExperimentLengthInDays : integer;
  1134. Fname : String;
  1135. FobjectiveMetric : String;
  1136. FoptimizationType : String;
  1137. FparentLink : TExperimentTypeparentLink;
  1138. FprofileId : String;
  1139. FreasonExperimentEnded : String;
  1140. FrewriteVariationUrlsAsOriginal : boolean;
  1141. FselfLink : String;
  1142. FservingFramework : String;
  1143. Fsnippet : String;
  1144. FstartTime : TDatetime;
  1145. Fstatus : String;
  1146. FtrafficCoverage : double;
  1147. Fupdated : TDatetime;
  1148. Fvariations : TExperimentTypevariationsArray;
  1149. FwebPropertyId : String;
  1150. FwinnerConfidenceLevel : double;
  1151. FwinnerFound : boolean;
  1152. Protected
  1153. //Property setters
  1154. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1155. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  1156. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1157. Procedure SeteditableInGaUi(AIndex : Integer; const AValue : boolean); virtual;
  1158. Procedure SetendTime(AIndex : Integer; const AValue : TDatetime); virtual;
  1159. Procedure SetequalWeighting(AIndex : Integer; const AValue : boolean); virtual;
  1160. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1161. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1162. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1163. Procedure SetminimumExperimentLengthInDays(AIndex : Integer; const AValue : integer); virtual;
  1164. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1165. Procedure SetobjectiveMetric(AIndex : Integer; const AValue : String); virtual;
  1166. Procedure SetoptimizationType(AIndex : Integer; const AValue : String); virtual;
  1167. Procedure SetparentLink(AIndex : Integer; const AValue : TExperimentTypeparentLink); virtual;
  1168. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  1169. Procedure SetreasonExperimentEnded(AIndex : Integer; const AValue : String); virtual;
  1170. Procedure SetrewriteVariationUrlsAsOriginal(AIndex : Integer; const AValue : boolean); virtual;
  1171. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1172. Procedure SetservingFramework(AIndex : Integer; const AValue : String); virtual;
  1173. Procedure Setsnippet(AIndex : Integer; const AValue : String); virtual;
  1174. Procedure SetstartTime(AIndex : Integer; const AValue : TDatetime); virtual;
  1175. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  1176. Procedure SettrafficCoverage(AIndex : Integer; const AValue : double); virtual;
  1177. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  1178. Procedure Setvariations(AIndex : Integer; const AValue : TExperimentTypevariationsArray); virtual;
  1179. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1180. Procedure SetwinnerConfidenceLevel(AIndex : Integer; const AValue : double); virtual;
  1181. Procedure SetwinnerFound(AIndex : Integer; const AValue : boolean); virtual;
  1182. //2.6.4. bug workaround
  1183. {$IFDEF VER2_6}
  1184. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1185. {$ENDIF VER2_6}
  1186. Public
  1187. Published
  1188. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1189. Property created : TDatetime Index 8 Read Fcreated Write Setcreated;
  1190. Property description : String Index 16 Read Fdescription Write Setdescription;
  1191. Property editableInGaUi : boolean Index 24 Read FeditableInGaUi Write SeteditableInGaUi;
  1192. Property endTime : TDatetime Index 32 Read FendTime Write SetendTime;
  1193. Property equalWeighting : boolean Index 40 Read FequalWeighting Write SetequalWeighting;
  1194. Property id : String Index 48 Read Fid Write Setid;
  1195. Property internalWebPropertyId : String Index 56 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  1196. Property kind : String Index 64 Read Fkind Write Setkind;
  1197. Property minimumExperimentLengthInDays : integer Index 72 Read FminimumExperimentLengthInDays Write SetminimumExperimentLengthInDays;
  1198. Property name : String Index 80 Read Fname Write Setname;
  1199. Property objectiveMetric : String Index 88 Read FobjectiveMetric Write SetobjectiveMetric;
  1200. Property optimizationType : String Index 96 Read FoptimizationType Write SetoptimizationType;
  1201. Property parentLink : TExperimentTypeparentLink Index 104 Read FparentLink Write SetparentLink;
  1202. Property profileId : String Index 112 Read FprofileId Write SetprofileId;
  1203. Property reasonExperimentEnded : String Index 120 Read FreasonExperimentEnded Write SetreasonExperimentEnded;
  1204. Property rewriteVariationUrlsAsOriginal : boolean Index 128 Read FrewriteVariationUrlsAsOriginal Write SetrewriteVariationUrlsAsOriginal;
  1205. Property selfLink : String Index 136 Read FselfLink Write SetselfLink;
  1206. Property servingFramework : String Index 144 Read FservingFramework Write SetservingFramework;
  1207. Property snippet : String Index 152 Read Fsnippet Write Setsnippet;
  1208. Property startTime : TDatetime Index 160 Read FstartTime Write SetstartTime;
  1209. Property status : String Index 168 Read Fstatus Write Setstatus;
  1210. Property trafficCoverage : double Index 176 Read FtrafficCoverage Write SettrafficCoverage;
  1211. Property updated : TDatetime Index 184 Read Fupdated Write Setupdated;
  1212. Property variations : TExperimentTypevariationsArray Index 192 Read Fvariations Write Setvariations;
  1213. Property webPropertyId : String Index 200 Read FwebPropertyId Write SetwebPropertyId;
  1214. Property winnerConfidenceLevel : double Index 208 Read FwinnerConfidenceLevel Write SetwinnerConfidenceLevel;
  1215. Property winnerFound : boolean Index 216 Read FwinnerFound Write SetwinnerFound;
  1216. end;
  1217. TExperimentClass = Class of TExperiment;
  1218. { --------------------------------------------------------------------
  1219. TExperiments
  1220. --------------------------------------------------------------------}
  1221. TExperiments = Class(TGoogleBaseObject)
  1222. Private
  1223. Fitems : TExperimentsTypeitemsArray;
  1224. FitemsPerPage : integer;
  1225. Fkind : String;
  1226. FnextLink : String;
  1227. FpreviousLink : String;
  1228. FstartIndex : integer;
  1229. FtotalResults : integer;
  1230. Fusername : String;
  1231. Protected
  1232. //Property setters
  1233. Procedure Setitems(AIndex : Integer; const AValue : TExperimentsTypeitemsArray); virtual;
  1234. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  1235. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1236. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  1237. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  1238. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  1239. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  1240. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  1241. //2.6.4. bug workaround
  1242. {$IFDEF VER2_6}
  1243. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1244. {$ENDIF VER2_6}
  1245. Public
  1246. Published
  1247. Property items : TExperimentsTypeitemsArray Index 0 Read Fitems Write Setitems;
  1248. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  1249. Property kind : String Index 16 Read Fkind Write Setkind;
  1250. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  1251. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  1252. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  1253. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  1254. Property username : String Index 56 Read Fusername Write Setusername;
  1255. end;
  1256. TExperimentsClass = Class of TExperiments;
  1257. { --------------------------------------------------------------------
  1258. TFilterTypeadvancedDetails
  1259. --------------------------------------------------------------------}
  1260. TFilterTypeadvancedDetails = Class(TGoogleBaseObject)
  1261. Private
  1262. FcaseSensitive : boolean;
  1263. FextractA : String;
  1264. FextractB : String;
  1265. FfieldA : String;
  1266. FfieldAIndex : integer;
  1267. FfieldARequired : boolean;
  1268. FfieldB : String;
  1269. FfieldBIndex : integer;
  1270. FfieldBRequired : boolean;
  1271. FoutputConstructor : String;
  1272. FoutputToField : String;
  1273. FoutputToFieldIndex : integer;
  1274. FoverrideOutputField : boolean;
  1275. Protected
  1276. //Property setters
  1277. Procedure SetcaseSensitive(AIndex : Integer; const AValue : boolean); virtual;
  1278. Procedure SetextractA(AIndex : Integer; const AValue : String); virtual;
  1279. Procedure SetextractB(AIndex : Integer; const AValue : String); virtual;
  1280. Procedure SetfieldA(AIndex : Integer; const AValue : String); virtual;
  1281. Procedure SetfieldAIndex(AIndex : Integer; const AValue : integer); virtual;
  1282. Procedure SetfieldARequired(AIndex : Integer; const AValue : boolean); virtual;
  1283. Procedure SetfieldB(AIndex : Integer; const AValue : String); virtual;
  1284. Procedure SetfieldBIndex(AIndex : Integer; const AValue : integer); virtual;
  1285. Procedure SetfieldBRequired(AIndex : Integer; const AValue : boolean); virtual;
  1286. Procedure SetoutputConstructor(AIndex : Integer; const AValue : String); virtual;
  1287. Procedure SetoutputToField(AIndex : Integer; const AValue : String); virtual;
  1288. Procedure SetoutputToFieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1289. Procedure SetoverrideOutputField(AIndex : Integer; const AValue : boolean); virtual;
  1290. Public
  1291. Published
  1292. Property caseSensitive : boolean Index 0 Read FcaseSensitive Write SetcaseSensitive;
  1293. Property extractA : String Index 8 Read FextractA Write SetextractA;
  1294. Property extractB : String Index 16 Read FextractB Write SetextractB;
  1295. Property fieldA : String Index 24 Read FfieldA Write SetfieldA;
  1296. Property fieldAIndex : integer Index 32 Read FfieldAIndex Write SetfieldAIndex;
  1297. Property fieldARequired : boolean Index 40 Read FfieldARequired Write SetfieldARequired;
  1298. Property fieldB : String Index 48 Read FfieldB Write SetfieldB;
  1299. Property fieldBIndex : integer Index 56 Read FfieldBIndex Write SetfieldBIndex;
  1300. Property fieldBRequired : boolean Index 64 Read FfieldBRequired Write SetfieldBRequired;
  1301. Property outputConstructor : String Index 72 Read FoutputConstructor Write SetoutputConstructor;
  1302. Property outputToField : String Index 80 Read FoutputToField Write SetoutputToField;
  1303. Property outputToFieldIndex : integer Index 88 Read FoutputToFieldIndex Write SetoutputToFieldIndex;
  1304. Property overrideOutputField : boolean Index 96 Read FoverrideOutputField Write SetoverrideOutputField;
  1305. end;
  1306. TFilterTypeadvancedDetailsClass = Class of TFilterTypeadvancedDetails;
  1307. { --------------------------------------------------------------------
  1308. TFilterTypelowercaseDetails
  1309. --------------------------------------------------------------------}
  1310. TFilterTypelowercaseDetails = Class(TGoogleBaseObject)
  1311. Private
  1312. Ffield : String;
  1313. FfieldIndex : integer;
  1314. Protected
  1315. //Property setters
  1316. Procedure Setfield(AIndex : Integer; const AValue : String); virtual;
  1317. Procedure SetfieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1318. Public
  1319. Published
  1320. Property field : String Index 0 Read Ffield Write Setfield;
  1321. Property fieldIndex : integer Index 8 Read FfieldIndex Write SetfieldIndex;
  1322. end;
  1323. TFilterTypelowercaseDetailsClass = Class of TFilterTypelowercaseDetails;
  1324. { --------------------------------------------------------------------
  1325. TFilterTypeparentLink
  1326. --------------------------------------------------------------------}
  1327. TFilterTypeparentLink = Class(TGoogleBaseObject)
  1328. Private
  1329. Fhref : String;
  1330. F_type : String;
  1331. Protected
  1332. Class Function ExportPropertyName(Const AName : String) : string; override;
  1333. //Property setters
  1334. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  1335. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1336. Public
  1337. Published
  1338. Property href : String Index 0 Read Fhref Write Sethref;
  1339. Property _type : String Index 8 Read F_type Write Set_type;
  1340. end;
  1341. TFilterTypeparentLinkClass = Class of TFilterTypeparentLink;
  1342. { --------------------------------------------------------------------
  1343. TFilterTypesearchAndReplaceDetails
  1344. --------------------------------------------------------------------}
  1345. TFilterTypesearchAndReplaceDetails = Class(TGoogleBaseObject)
  1346. Private
  1347. FcaseSensitive : boolean;
  1348. Ffield : String;
  1349. FfieldIndex : integer;
  1350. FreplaceString : String;
  1351. FsearchString : String;
  1352. Protected
  1353. //Property setters
  1354. Procedure SetcaseSensitive(AIndex : Integer; const AValue : boolean); virtual;
  1355. Procedure Setfield(AIndex : Integer; const AValue : String); virtual;
  1356. Procedure SetfieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1357. Procedure SetreplaceString(AIndex : Integer; const AValue : String); virtual;
  1358. Procedure SetsearchString(AIndex : Integer; const AValue : String); virtual;
  1359. Public
  1360. Published
  1361. Property caseSensitive : boolean Index 0 Read FcaseSensitive Write SetcaseSensitive;
  1362. Property field : String Index 8 Read Ffield Write Setfield;
  1363. Property fieldIndex : integer Index 16 Read FfieldIndex Write SetfieldIndex;
  1364. Property replaceString : String Index 24 Read FreplaceString Write SetreplaceString;
  1365. Property searchString : String Index 32 Read FsearchString Write SetsearchString;
  1366. end;
  1367. TFilterTypesearchAndReplaceDetailsClass = Class of TFilterTypesearchAndReplaceDetails;
  1368. { --------------------------------------------------------------------
  1369. TFilterTypeuppercaseDetails
  1370. --------------------------------------------------------------------}
  1371. TFilterTypeuppercaseDetails = Class(TGoogleBaseObject)
  1372. Private
  1373. Ffield : String;
  1374. FfieldIndex : integer;
  1375. Protected
  1376. //Property setters
  1377. Procedure Setfield(AIndex : Integer; const AValue : String); virtual;
  1378. Procedure SetfieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1379. Public
  1380. Published
  1381. Property field : String Index 0 Read Ffield Write Setfield;
  1382. Property fieldIndex : integer Index 8 Read FfieldIndex Write SetfieldIndex;
  1383. end;
  1384. TFilterTypeuppercaseDetailsClass = Class of TFilterTypeuppercaseDetails;
  1385. { --------------------------------------------------------------------
  1386. TFilter
  1387. --------------------------------------------------------------------}
  1388. TFilter = Class(TGoogleBaseObject)
  1389. Private
  1390. FaccountId : String;
  1391. FadvancedDetails : TFilterTypeadvancedDetails;
  1392. Fcreated : TDatetime;
  1393. FexcludeDetails : TFilterExpression;
  1394. Fid : String;
  1395. FincludeDetails : TFilterExpression;
  1396. Fkind : String;
  1397. FlowercaseDetails : TFilterTypelowercaseDetails;
  1398. Fname : String;
  1399. FparentLink : TFilterTypeparentLink;
  1400. FsearchAndReplaceDetails : TFilterTypesearchAndReplaceDetails;
  1401. FselfLink : String;
  1402. F_type : String;
  1403. Fupdated : TDatetime;
  1404. FuppercaseDetails : TFilterTypeuppercaseDetails;
  1405. Protected
  1406. Class Function ExportPropertyName(Const AName : String) : string; override;
  1407. //Property setters
  1408. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1409. Procedure SetadvancedDetails(AIndex : Integer; const AValue : TFilterTypeadvancedDetails); virtual;
  1410. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  1411. Procedure SetexcludeDetails(AIndex : Integer; const AValue : TFilterExpression); virtual;
  1412. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1413. Procedure SetincludeDetails(AIndex : Integer; const AValue : TFilterExpression); virtual;
  1414. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1415. Procedure SetlowercaseDetails(AIndex : Integer; const AValue : TFilterTypelowercaseDetails); virtual;
  1416. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1417. Procedure SetparentLink(AIndex : Integer; const AValue : TFilterTypeparentLink); virtual;
  1418. Procedure SetsearchAndReplaceDetails(AIndex : Integer; const AValue : TFilterTypesearchAndReplaceDetails); virtual;
  1419. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1420. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1421. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  1422. Procedure SetuppercaseDetails(AIndex : Integer; const AValue : TFilterTypeuppercaseDetails); virtual;
  1423. Public
  1424. Published
  1425. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1426. Property advancedDetails : TFilterTypeadvancedDetails Index 8 Read FadvancedDetails Write SetadvancedDetails;
  1427. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  1428. Property excludeDetails : TFilterExpression Index 24 Read FexcludeDetails Write SetexcludeDetails;
  1429. Property id : String Index 32 Read Fid Write Setid;
  1430. Property includeDetails : TFilterExpression Index 40 Read FincludeDetails Write SetincludeDetails;
  1431. Property kind : String Index 48 Read Fkind Write Setkind;
  1432. Property lowercaseDetails : TFilterTypelowercaseDetails Index 56 Read FlowercaseDetails Write SetlowercaseDetails;
  1433. Property name : String Index 64 Read Fname Write Setname;
  1434. Property parentLink : TFilterTypeparentLink Index 72 Read FparentLink Write SetparentLink;
  1435. Property searchAndReplaceDetails : TFilterTypesearchAndReplaceDetails Index 80 Read FsearchAndReplaceDetails Write SetsearchAndReplaceDetails;
  1436. Property selfLink : String Index 88 Read FselfLink Write SetselfLink;
  1437. Property _type : String Index 96 Read F_type Write Set_type;
  1438. Property updated : TDatetime Index 104 Read Fupdated Write Setupdated;
  1439. Property uppercaseDetails : TFilterTypeuppercaseDetails Index 112 Read FuppercaseDetails Write SetuppercaseDetails;
  1440. end;
  1441. TFilterClass = Class of TFilter;
  1442. { --------------------------------------------------------------------
  1443. TFilterExpression
  1444. --------------------------------------------------------------------}
  1445. TFilterExpression = Class(TGoogleBaseObject)
  1446. Private
  1447. FcaseSensitive : boolean;
  1448. FexpressionValue : String;
  1449. Ffield : String;
  1450. FfieldIndex : integer;
  1451. Fkind : String;
  1452. FmatchType : String;
  1453. Protected
  1454. //Property setters
  1455. Procedure SetcaseSensitive(AIndex : Integer; const AValue : boolean); virtual;
  1456. Procedure SetexpressionValue(AIndex : Integer; const AValue : String); virtual;
  1457. Procedure Setfield(AIndex : Integer; const AValue : String); virtual;
  1458. Procedure SetfieldIndex(AIndex : Integer; const AValue : integer); virtual;
  1459. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1460. Procedure SetmatchType(AIndex : Integer; const AValue : String); virtual;
  1461. Public
  1462. Published
  1463. Property caseSensitive : boolean Index 0 Read FcaseSensitive Write SetcaseSensitive;
  1464. Property expressionValue : String Index 8 Read FexpressionValue Write SetexpressionValue;
  1465. Property field : String Index 16 Read Ffield Write Setfield;
  1466. Property fieldIndex : integer Index 24 Read FfieldIndex Write SetfieldIndex;
  1467. Property kind : String Index 32 Read Fkind Write Setkind;
  1468. Property matchType : String Index 40 Read FmatchType Write SetmatchType;
  1469. end;
  1470. TFilterExpressionClass = Class of TFilterExpression;
  1471. { --------------------------------------------------------------------
  1472. TFilterRef
  1473. --------------------------------------------------------------------}
  1474. TFilterRef = Class(TGoogleBaseObject)
  1475. Private
  1476. FaccountId : String;
  1477. Fhref : String;
  1478. Fid : String;
  1479. Fkind : String;
  1480. Fname : String;
  1481. Protected
  1482. //Property setters
  1483. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1484. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  1485. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1486. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1487. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1488. Public
  1489. Published
  1490. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1491. Property href : String Index 8 Read Fhref Write Sethref;
  1492. Property id : String Index 16 Read Fid Write Setid;
  1493. Property kind : String Index 24 Read Fkind Write Setkind;
  1494. Property name : String Index 32 Read Fname Write Setname;
  1495. end;
  1496. TFilterRefClass = Class of TFilterRef;
  1497. { --------------------------------------------------------------------
  1498. TFilters
  1499. --------------------------------------------------------------------}
  1500. TFilters = Class(TGoogleBaseObject)
  1501. Private
  1502. Fitems : TFiltersTypeitemsArray;
  1503. FitemsPerPage : integer;
  1504. Fkind : String;
  1505. FnextLink : String;
  1506. FpreviousLink : String;
  1507. FstartIndex : integer;
  1508. FtotalResults : integer;
  1509. Fusername : String;
  1510. Protected
  1511. //Property setters
  1512. Procedure Setitems(AIndex : Integer; const AValue : TFiltersTypeitemsArray); virtual;
  1513. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  1514. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1515. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  1516. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  1517. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  1518. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  1519. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  1520. //2.6.4. bug workaround
  1521. {$IFDEF VER2_6}
  1522. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1523. {$ENDIF VER2_6}
  1524. Public
  1525. Published
  1526. Property items : TFiltersTypeitemsArray Index 0 Read Fitems Write Setitems;
  1527. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  1528. Property kind : String Index 16 Read Fkind Write Setkind;
  1529. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  1530. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  1531. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  1532. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  1533. Property username : String Index 56 Read Fusername Write Setusername;
  1534. end;
  1535. TFiltersClass = Class of TFilters;
  1536. { --------------------------------------------------------------------
  1537. TGaDataTypecolumnHeadersItem
  1538. --------------------------------------------------------------------}
  1539. TGaDataTypecolumnHeadersItem = Class(TGoogleBaseObject)
  1540. Private
  1541. FcolumnType : String;
  1542. FdataType : String;
  1543. Fname : String;
  1544. Protected
  1545. //Property setters
  1546. Procedure SetcolumnType(AIndex : Integer; const AValue : String); virtual;
  1547. Procedure SetdataType(AIndex : Integer; const AValue : String); virtual;
  1548. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1549. Public
  1550. Published
  1551. Property columnType : String Index 0 Read FcolumnType Write SetcolumnType;
  1552. Property dataType : String Index 8 Read FdataType Write SetdataType;
  1553. Property name : String Index 16 Read Fname Write Setname;
  1554. end;
  1555. TGaDataTypecolumnHeadersItemClass = Class of TGaDataTypecolumnHeadersItem;
  1556. { --------------------------------------------------------------------
  1557. TGaDataTypedataTableTypecolsItem
  1558. --------------------------------------------------------------------}
  1559. TGaDataTypedataTableTypecolsItem = Class(TGoogleBaseObject)
  1560. Private
  1561. Fid : String;
  1562. F_label : String;
  1563. F_type : String;
  1564. Protected
  1565. Class Function ExportPropertyName(Const AName : String) : string; override;
  1566. //Property setters
  1567. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1568. Procedure Set_label(AIndex : Integer; const AValue : String); virtual;
  1569. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1570. Public
  1571. Published
  1572. Property id : String Index 0 Read Fid Write Setid;
  1573. Property _label : String Index 8 Read F_label Write Set_label;
  1574. Property _type : String Index 16 Read F_type Write Set_type;
  1575. end;
  1576. TGaDataTypedataTableTypecolsItemClass = Class of TGaDataTypedataTableTypecolsItem;
  1577. { --------------------------------------------------------------------
  1578. TGaDataTypedataTableTyperowsItemTypecItem
  1579. --------------------------------------------------------------------}
  1580. TGaDataTypedataTableTyperowsItemTypecItem = Class(TGoogleBaseObject)
  1581. Private
  1582. Fv : String;
  1583. Protected
  1584. //Property setters
  1585. Procedure Setv(AIndex : Integer; const AValue : String); virtual;
  1586. Public
  1587. Published
  1588. Property v : String Index 0 Read Fv Write Setv;
  1589. end;
  1590. TGaDataTypedataTableTyperowsItemTypecItemClass = Class of TGaDataTypedataTableTyperowsItemTypecItem;
  1591. { --------------------------------------------------------------------
  1592. TGaDataTypedataTableTyperowsItem
  1593. --------------------------------------------------------------------}
  1594. TGaDataTypedataTableTyperowsItem = Class(TGoogleBaseObject)
  1595. Private
  1596. Fc : TGaDataTypedataTableTyperowsItemTypecArray;
  1597. Protected
  1598. //Property setters
  1599. Procedure Setc(AIndex : Integer; const AValue : TGaDataTypedataTableTyperowsItemTypecArray); virtual;
  1600. //2.6.4. bug workaround
  1601. {$IFDEF VER2_6}
  1602. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1603. {$ENDIF VER2_6}
  1604. Public
  1605. Published
  1606. Property c : TGaDataTypedataTableTyperowsItemTypecArray Index 0 Read Fc Write Setc;
  1607. end;
  1608. TGaDataTypedataTableTyperowsItemClass = Class of TGaDataTypedataTableTyperowsItem;
  1609. { --------------------------------------------------------------------
  1610. TGaDataTypedataTable
  1611. --------------------------------------------------------------------}
  1612. TGaDataTypedataTable = Class(TGoogleBaseObject)
  1613. Private
  1614. Fcols : TGaDataTypedataTableTypecolsArray;
  1615. Frows : TGaDataTypedataTableTyperowsArray;
  1616. Protected
  1617. //Property setters
  1618. Procedure Setcols(AIndex : Integer; const AValue : TGaDataTypedataTableTypecolsArray); virtual;
  1619. Procedure Setrows(AIndex : Integer; const AValue : TGaDataTypedataTableTyperowsArray); virtual;
  1620. //2.6.4. bug workaround
  1621. {$IFDEF VER2_6}
  1622. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1623. {$ENDIF VER2_6}
  1624. Public
  1625. Published
  1626. Property cols : TGaDataTypedataTableTypecolsArray Index 0 Read Fcols Write Setcols;
  1627. Property rows : TGaDataTypedataTableTyperowsArray Index 8 Read Frows Write Setrows;
  1628. end;
  1629. TGaDataTypedataTableClass = Class of TGaDataTypedataTable;
  1630. { --------------------------------------------------------------------
  1631. TGaDataTypeprofileInfo
  1632. --------------------------------------------------------------------}
  1633. TGaDataTypeprofileInfo = Class(TGoogleBaseObject)
  1634. Private
  1635. FaccountId : String;
  1636. FinternalWebPropertyId : String;
  1637. FprofileId : String;
  1638. FprofileName : String;
  1639. FtableId : String;
  1640. FwebPropertyId : String;
  1641. Protected
  1642. //Property setters
  1643. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1644. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1645. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  1646. Procedure SetprofileName(AIndex : Integer; const AValue : String); virtual;
  1647. Procedure SettableId(AIndex : Integer; const AValue : String); virtual;
  1648. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1649. Public
  1650. Published
  1651. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1652. Property internalWebPropertyId : String Index 8 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  1653. Property profileId : String Index 16 Read FprofileId Write SetprofileId;
  1654. Property profileName : String Index 24 Read FprofileName Write SetprofileName;
  1655. Property tableId : String Index 32 Read FtableId Write SettableId;
  1656. Property webPropertyId : String Index 40 Read FwebPropertyId Write SetwebPropertyId;
  1657. end;
  1658. TGaDataTypeprofileInfoClass = Class of TGaDataTypeprofileInfo;
  1659. { --------------------------------------------------------------------
  1660. TGaDataTypequery
  1661. --------------------------------------------------------------------}
  1662. TGaDataTypequery = Class(TGoogleBaseObject)
  1663. Private
  1664. Fdimensions : String;
  1665. Fenddate : String;
  1666. Ffilters : String;
  1667. Fids : String;
  1668. Fmaxresults : integer;
  1669. Fmetrics : TStringArray;
  1670. FsamplingLevel : String;
  1671. Fsegment : String;
  1672. Fsort : TStringArray;
  1673. Fstartdate : String;
  1674. Fstartindex : integer;
  1675. Protected
  1676. Class Function ExportPropertyName(Const AName : String) : string; override;
  1677. //Property setters
  1678. Procedure Setdimensions(AIndex : Integer; const AValue : String); virtual;
  1679. Procedure Setenddate(AIndex : Integer; const AValue : String); virtual;
  1680. Procedure Setfilters(AIndex : Integer; const AValue : String); virtual;
  1681. Procedure Setids(AIndex : Integer; const AValue : String); virtual;
  1682. Procedure Setmaxresults(AIndex : Integer; const AValue : integer); virtual;
  1683. Procedure Setmetrics(AIndex : Integer; const AValue : TStringArray); virtual;
  1684. Procedure SetsamplingLevel(AIndex : Integer; const AValue : String); virtual;
  1685. Procedure Setsegment(AIndex : Integer; const AValue : String); virtual;
  1686. Procedure Setsort(AIndex : Integer; const AValue : TStringArray); virtual;
  1687. Procedure Setstartdate(AIndex : Integer; const AValue : String); virtual;
  1688. Procedure Setstartindex(AIndex : Integer; const AValue : integer); virtual;
  1689. //2.6.4. bug workaround
  1690. {$IFDEF VER2_6}
  1691. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1692. {$ENDIF VER2_6}
  1693. Public
  1694. Published
  1695. Property dimensions : String Index 0 Read Fdimensions Write Setdimensions;
  1696. Property enddate : String Index 8 Read Fenddate Write Setenddate;
  1697. Property filters : String Index 16 Read Ffilters Write Setfilters;
  1698. Property ids : String Index 24 Read Fids Write Setids;
  1699. Property maxresults : integer Index 32 Read Fmaxresults Write Setmaxresults;
  1700. Property metrics : TStringArray Index 40 Read Fmetrics Write Setmetrics;
  1701. Property samplingLevel : String Index 48 Read FsamplingLevel Write SetsamplingLevel;
  1702. Property segment : String Index 56 Read Fsegment Write Setsegment;
  1703. Property sort : TStringArray Index 64 Read Fsort Write Setsort;
  1704. Property startdate : String Index 72 Read Fstartdate Write Setstartdate;
  1705. Property startindex : integer Index 80 Read Fstartindex Write Setstartindex;
  1706. end;
  1707. TGaDataTypequeryClass = Class of TGaDataTypequery;
  1708. { --------------------------------------------------------------------
  1709. TGaDataTypetotalsForAllResults
  1710. --------------------------------------------------------------------}
  1711. TGaDataTypetotalsForAllResults = Class(TGoogleBaseObject)
  1712. Private
  1713. Protected
  1714. //Property setters
  1715. Public
  1716. Class Function AllowAdditionalProperties : Boolean; override;
  1717. Published
  1718. end;
  1719. TGaDataTypetotalsForAllResultsClass = Class of TGaDataTypetotalsForAllResults;
  1720. { --------------------------------------------------------------------
  1721. TGaData
  1722. --------------------------------------------------------------------}
  1723. TGaData = Class(TGoogleBaseObject)
  1724. Private
  1725. FcolumnHeaders : TGaDataTypecolumnHeadersArray;
  1726. FcontainsSampledData : boolean;
  1727. FdataTable : TGaDataTypedataTable;
  1728. Fid : String;
  1729. FitemsPerPage : integer;
  1730. Fkind : String;
  1731. FnextLink : String;
  1732. FpreviousLink : String;
  1733. FprofileInfo : TGaDataTypeprofileInfo;
  1734. Fquery : TGaDataTypequery;
  1735. Frows : TGaDataTyperowsArray;
  1736. FsampleSize : String;
  1737. FsampleSpace : String;
  1738. FselfLink : String;
  1739. FtotalResults : integer;
  1740. FtotalsForAllResults : TGaDataTypetotalsForAllResults;
  1741. Protected
  1742. //Property setters
  1743. Procedure SetcolumnHeaders(AIndex : Integer; const AValue : TGaDataTypecolumnHeadersArray); virtual;
  1744. Procedure SetcontainsSampledData(AIndex : Integer; const AValue : boolean); virtual;
  1745. Procedure SetdataTable(AIndex : Integer; const AValue : TGaDataTypedataTable); virtual;
  1746. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1747. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  1748. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1749. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  1750. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  1751. Procedure SetprofileInfo(AIndex : Integer; const AValue : TGaDataTypeprofileInfo); virtual;
  1752. Procedure Setquery(AIndex : Integer; const AValue : TGaDataTypequery); virtual;
  1753. Procedure Setrows(AIndex : Integer; const AValue : TGaDataTyperowsArray); virtual;
  1754. Procedure SetsampleSize(AIndex : Integer; const AValue : String); virtual;
  1755. Procedure SetsampleSpace(AIndex : Integer; const AValue : String); virtual;
  1756. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1757. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  1758. Procedure SettotalsForAllResults(AIndex : Integer; const AValue : TGaDataTypetotalsForAllResults); virtual;
  1759. //2.6.4. bug workaround
  1760. {$IFDEF VER2_6}
  1761. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1762. {$ENDIF VER2_6}
  1763. Public
  1764. Published
  1765. Property columnHeaders : TGaDataTypecolumnHeadersArray Index 0 Read FcolumnHeaders Write SetcolumnHeaders;
  1766. Property containsSampledData : boolean Index 8 Read FcontainsSampledData Write SetcontainsSampledData;
  1767. Property dataTable : TGaDataTypedataTable Index 16 Read FdataTable Write SetdataTable;
  1768. Property id : String Index 24 Read Fid Write Setid;
  1769. Property itemsPerPage : integer Index 32 Read FitemsPerPage Write SetitemsPerPage;
  1770. Property kind : String Index 40 Read Fkind Write Setkind;
  1771. Property nextLink : String Index 48 Read FnextLink Write SetnextLink;
  1772. Property previousLink : String Index 56 Read FpreviousLink Write SetpreviousLink;
  1773. Property profileInfo : TGaDataTypeprofileInfo Index 64 Read FprofileInfo Write SetprofileInfo;
  1774. Property query : TGaDataTypequery Index 72 Read Fquery Write Setquery;
  1775. Property rows : TGaDataTyperowsArray Index 80 Read Frows Write Setrows;
  1776. Property sampleSize : String Index 88 Read FsampleSize Write SetsampleSize;
  1777. Property sampleSpace : String Index 96 Read FsampleSpace Write SetsampleSpace;
  1778. Property selfLink : String Index 104 Read FselfLink Write SetselfLink;
  1779. Property totalResults : integer Index 112 Read FtotalResults Write SettotalResults;
  1780. Property totalsForAllResults : TGaDataTypetotalsForAllResults Index 120 Read FtotalsForAllResults Write SettotalsForAllResults;
  1781. end;
  1782. TGaDataClass = Class of TGaData;
  1783. { --------------------------------------------------------------------
  1784. TGoalTypeeventDetailsTypeeventConditionsItem
  1785. --------------------------------------------------------------------}
  1786. TGoalTypeeventDetailsTypeeventConditionsItem = Class(TGoogleBaseObject)
  1787. Private
  1788. FcomparisonType : String;
  1789. FcomparisonValue : String;
  1790. Fexpression : String;
  1791. FmatchType : String;
  1792. F_type : String;
  1793. Protected
  1794. Class Function ExportPropertyName(Const AName : String) : string; override;
  1795. //Property setters
  1796. Procedure SetcomparisonType(AIndex : Integer; const AValue : String); virtual;
  1797. Procedure SetcomparisonValue(AIndex : Integer; const AValue : String); virtual;
  1798. Procedure Setexpression(AIndex : Integer; const AValue : String); virtual;
  1799. Procedure SetmatchType(AIndex : Integer; const AValue : String); virtual;
  1800. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1801. Public
  1802. Published
  1803. Property comparisonType : String Index 0 Read FcomparisonType Write SetcomparisonType;
  1804. Property comparisonValue : String Index 8 Read FcomparisonValue Write SetcomparisonValue;
  1805. Property expression : String Index 16 Read Fexpression Write Setexpression;
  1806. Property matchType : String Index 24 Read FmatchType Write SetmatchType;
  1807. Property _type : String Index 32 Read F_type Write Set_type;
  1808. end;
  1809. TGoalTypeeventDetailsTypeeventConditionsItemClass = Class of TGoalTypeeventDetailsTypeeventConditionsItem;
  1810. { --------------------------------------------------------------------
  1811. TGoalTypeeventDetails
  1812. --------------------------------------------------------------------}
  1813. TGoalTypeeventDetails = Class(TGoogleBaseObject)
  1814. Private
  1815. FeventConditions : TGoalTypeeventDetailsTypeeventConditionsArray;
  1816. FuseEventValue : boolean;
  1817. Protected
  1818. //Property setters
  1819. Procedure SeteventConditions(AIndex : Integer; const AValue : TGoalTypeeventDetailsTypeeventConditionsArray); virtual;
  1820. Procedure SetuseEventValue(AIndex : Integer; const AValue : boolean); virtual;
  1821. //2.6.4. bug workaround
  1822. {$IFDEF VER2_6}
  1823. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1824. {$ENDIF VER2_6}
  1825. Public
  1826. Published
  1827. Property eventConditions : TGoalTypeeventDetailsTypeeventConditionsArray Index 0 Read FeventConditions Write SeteventConditions;
  1828. Property useEventValue : boolean Index 8 Read FuseEventValue Write SetuseEventValue;
  1829. end;
  1830. TGoalTypeeventDetailsClass = Class of TGoalTypeeventDetails;
  1831. { --------------------------------------------------------------------
  1832. TGoalTypeparentLink
  1833. --------------------------------------------------------------------}
  1834. TGoalTypeparentLink = Class(TGoogleBaseObject)
  1835. Private
  1836. Fhref : String;
  1837. F_type : String;
  1838. Protected
  1839. Class Function ExportPropertyName(Const AName : String) : string; override;
  1840. //Property setters
  1841. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  1842. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1843. Public
  1844. Published
  1845. Property href : String Index 0 Read Fhref Write Sethref;
  1846. Property _type : String Index 8 Read F_type Write Set_type;
  1847. end;
  1848. TGoalTypeparentLinkClass = Class of TGoalTypeparentLink;
  1849. { --------------------------------------------------------------------
  1850. TGoalTypeurlDestinationDetailsTypestepsItem
  1851. --------------------------------------------------------------------}
  1852. TGoalTypeurlDestinationDetailsTypestepsItem = Class(TGoogleBaseObject)
  1853. Private
  1854. Fname : String;
  1855. Fnumber : integer;
  1856. Furl : String;
  1857. Protected
  1858. //Property setters
  1859. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1860. Procedure Setnumber(AIndex : Integer; const AValue : integer); virtual;
  1861. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  1862. Public
  1863. Published
  1864. Property name : String Index 0 Read Fname Write Setname;
  1865. Property number : integer Index 8 Read Fnumber Write Setnumber;
  1866. Property url : String Index 16 Read Furl Write Seturl;
  1867. end;
  1868. TGoalTypeurlDestinationDetailsTypestepsItemClass = Class of TGoalTypeurlDestinationDetailsTypestepsItem;
  1869. { --------------------------------------------------------------------
  1870. TGoalTypeurlDestinationDetails
  1871. --------------------------------------------------------------------}
  1872. TGoalTypeurlDestinationDetails = Class(TGoogleBaseObject)
  1873. Private
  1874. FcaseSensitive : boolean;
  1875. FfirstStepRequired : boolean;
  1876. FmatchType : String;
  1877. Fsteps : TGoalTypeurlDestinationDetailsTypestepsArray;
  1878. Furl : String;
  1879. Protected
  1880. //Property setters
  1881. Procedure SetcaseSensitive(AIndex : Integer; const AValue : boolean); virtual;
  1882. Procedure SetfirstStepRequired(AIndex : Integer; const AValue : boolean); virtual;
  1883. Procedure SetmatchType(AIndex : Integer; const AValue : String); virtual;
  1884. Procedure Setsteps(AIndex : Integer; const AValue : TGoalTypeurlDestinationDetailsTypestepsArray); virtual;
  1885. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  1886. //2.6.4. bug workaround
  1887. {$IFDEF VER2_6}
  1888. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1889. {$ENDIF VER2_6}
  1890. Public
  1891. Published
  1892. Property caseSensitive : boolean Index 0 Read FcaseSensitive Write SetcaseSensitive;
  1893. Property firstStepRequired : boolean Index 8 Read FfirstStepRequired Write SetfirstStepRequired;
  1894. Property matchType : String Index 16 Read FmatchType Write SetmatchType;
  1895. Property steps : TGoalTypeurlDestinationDetailsTypestepsArray Index 24 Read Fsteps Write Setsteps;
  1896. Property url : String Index 32 Read Furl Write Seturl;
  1897. end;
  1898. TGoalTypeurlDestinationDetailsClass = Class of TGoalTypeurlDestinationDetails;
  1899. { --------------------------------------------------------------------
  1900. TGoalTypevisitNumPagesDetails
  1901. --------------------------------------------------------------------}
  1902. TGoalTypevisitNumPagesDetails = Class(TGoogleBaseObject)
  1903. Private
  1904. FcomparisonType : String;
  1905. FcomparisonValue : String;
  1906. Protected
  1907. //Property setters
  1908. Procedure SetcomparisonType(AIndex : Integer; const AValue : String); virtual;
  1909. Procedure SetcomparisonValue(AIndex : Integer; const AValue : String); virtual;
  1910. Public
  1911. Published
  1912. Property comparisonType : String Index 0 Read FcomparisonType Write SetcomparisonType;
  1913. Property comparisonValue : String Index 8 Read FcomparisonValue Write SetcomparisonValue;
  1914. end;
  1915. TGoalTypevisitNumPagesDetailsClass = Class of TGoalTypevisitNumPagesDetails;
  1916. { --------------------------------------------------------------------
  1917. TGoalTypevisitTimeOnSiteDetails
  1918. --------------------------------------------------------------------}
  1919. TGoalTypevisitTimeOnSiteDetails = Class(TGoogleBaseObject)
  1920. Private
  1921. FcomparisonType : String;
  1922. FcomparisonValue : String;
  1923. Protected
  1924. //Property setters
  1925. Procedure SetcomparisonType(AIndex : Integer; const AValue : String); virtual;
  1926. Procedure SetcomparisonValue(AIndex : Integer; const AValue : String); virtual;
  1927. Public
  1928. Published
  1929. Property comparisonType : String Index 0 Read FcomparisonType Write SetcomparisonType;
  1930. Property comparisonValue : String Index 8 Read FcomparisonValue Write SetcomparisonValue;
  1931. end;
  1932. TGoalTypevisitTimeOnSiteDetailsClass = Class of TGoalTypevisitTimeOnSiteDetails;
  1933. { --------------------------------------------------------------------
  1934. TGoal
  1935. --------------------------------------------------------------------}
  1936. TGoal = Class(TGoogleBaseObject)
  1937. Private
  1938. FaccountId : String;
  1939. Factive : boolean;
  1940. Fcreated : TDatetime;
  1941. FeventDetails : TGoalTypeeventDetails;
  1942. Fid : String;
  1943. FinternalWebPropertyId : String;
  1944. Fkind : String;
  1945. Fname : String;
  1946. FparentLink : TGoalTypeparentLink;
  1947. FprofileId : String;
  1948. FselfLink : String;
  1949. F_type : String;
  1950. Fupdated : TDatetime;
  1951. FurlDestinationDetails : TGoalTypeurlDestinationDetails;
  1952. Fvalue : integer;
  1953. FvisitNumPagesDetails : TGoalTypevisitNumPagesDetails;
  1954. FvisitTimeOnSiteDetails : TGoalTypevisitTimeOnSiteDetails;
  1955. FwebPropertyId : String;
  1956. Protected
  1957. Class Function ExportPropertyName(Const AName : String) : string; override;
  1958. //Property setters
  1959. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  1960. Procedure Setactive(AIndex : Integer; const AValue : boolean); virtual;
  1961. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  1962. Procedure SeteventDetails(AIndex : Integer; const AValue : TGoalTypeeventDetails); virtual;
  1963. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1964. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1965. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1966. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1967. Procedure SetparentLink(AIndex : Integer; const AValue : TGoalTypeparentLink); virtual;
  1968. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  1969. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1970. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1971. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  1972. Procedure SeturlDestinationDetails(AIndex : Integer; const AValue : TGoalTypeurlDestinationDetails); virtual;
  1973. Procedure Setvalue(AIndex : Integer; const AValue : integer); virtual;
  1974. Procedure SetvisitNumPagesDetails(AIndex : Integer; const AValue : TGoalTypevisitNumPagesDetails); virtual;
  1975. Procedure SetvisitTimeOnSiteDetails(AIndex : Integer; const AValue : TGoalTypevisitTimeOnSiteDetails); virtual;
  1976. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  1977. Public
  1978. Published
  1979. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  1980. Property active : boolean Index 8 Read Factive Write Setactive;
  1981. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  1982. Property eventDetails : TGoalTypeeventDetails Index 24 Read FeventDetails Write SeteventDetails;
  1983. Property id : String Index 32 Read Fid Write Setid;
  1984. Property internalWebPropertyId : String Index 40 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  1985. Property kind : String Index 48 Read Fkind Write Setkind;
  1986. Property name : String Index 56 Read Fname Write Setname;
  1987. Property parentLink : TGoalTypeparentLink Index 64 Read FparentLink Write SetparentLink;
  1988. Property profileId : String Index 72 Read FprofileId Write SetprofileId;
  1989. Property selfLink : String Index 80 Read FselfLink Write SetselfLink;
  1990. Property _type : String Index 88 Read F_type Write Set_type;
  1991. Property updated : TDatetime Index 96 Read Fupdated Write Setupdated;
  1992. Property urlDestinationDetails : TGoalTypeurlDestinationDetails Index 104 Read FurlDestinationDetails Write SeturlDestinationDetails;
  1993. Property value : integer Index 112 Read Fvalue Write Setvalue;
  1994. Property visitNumPagesDetails : TGoalTypevisitNumPagesDetails Index 120 Read FvisitNumPagesDetails Write SetvisitNumPagesDetails;
  1995. Property visitTimeOnSiteDetails : TGoalTypevisitTimeOnSiteDetails Index 128 Read FvisitTimeOnSiteDetails Write SetvisitTimeOnSiteDetails;
  1996. Property webPropertyId : String Index 136 Read FwebPropertyId Write SetwebPropertyId;
  1997. end;
  1998. TGoalClass = Class of TGoal;
  1999. { --------------------------------------------------------------------
  2000. TGoals
  2001. --------------------------------------------------------------------}
  2002. TGoals = Class(TGoogleBaseObject)
  2003. Private
  2004. Fitems : TGoalsTypeitemsArray;
  2005. FitemsPerPage : integer;
  2006. Fkind : String;
  2007. FnextLink : String;
  2008. FpreviousLink : String;
  2009. FstartIndex : integer;
  2010. FtotalResults : integer;
  2011. Fusername : String;
  2012. Protected
  2013. //Property setters
  2014. Procedure Setitems(AIndex : Integer; const AValue : TGoalsTypeitemsArray); virtual;
  2015. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2016. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2017. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2018. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2019. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2020. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2021. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2022. //2.6.4. bug workaround
  2023. {$IFDEF VER2_6}
  2024. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2025. {$ENDIF VER2_6}
  2026. Public
  2027. Published
  2028. Property items : TGoalsTypeitemsArray Index 0 Read Fitems Write Setitems;
  2029. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2030. Property kind : String Index 16 Read Fkind Write Setkind;
  2031. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2032. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2033. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2034. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2035. Property username : String Index 56 Read Fusername Write Setusername;
  2036. end;
  2037. TGoalsClass = Class of TGoals;
  2038. { --------------------------------------------------------------------
  2039. TMcfDataTypecolumnHeadersItem
  2040. --------------------------------------------------------------------}
  2041. TMcfDataTypecolumnHeadersItem = Class(TGoogleBaseObject)
  2042. Private
  2043. FcolumnType : String;
  2044. FdataType : String;
  2045. Fname : String;
  2046. Protected
  2047. //Property setters
  2048. Procedure SetcolumnType(AIndex : Integer; const AValue : String); virtual;
  2049. Procedure SetdataType(AIndex : Integer; const AValue : String); virtual;
  2050. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2051. Public
  2052. Published
  2053. Property columnType : String Index 0 Read FcolumnType Write SetcolumnType;
  2054. Property dataType : String Index 8 Read FdataType Write SetdataType;
  2055. Property name : String Index 16 Read Fname Write Setname;
  2056. end;
  2057. TMcfDataTypecolumnHeadersItemClass = Class of TMcfDataTypecolumnHeadersItem;
  2058. { --------------------------------------------------------------------
  2059. TMcfDataTypeprofileInfo
  2060. --------------------------------------------------------------------}
  2061. TMcfDataTypeprofileInfo = Class(TGoogleBaseObject)
  2062. Private
  2063. FaccountId : String;
  2064. FinternalWebPropertyId : String;
  2065. FprofileId : String;
  2066. FprofileName : String;
  2067. FtableId : String;
  2068. FwebPropertyId : String;
  2069. Protected
  2070. //Property setters
  2071. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2072. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2073. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  2074. Procedure SetprofileName(AIndex : Integer; const AValue : String); virtual;
  2075. Procedure SettableId(AIndex : Integer; const AValue : String); virtual;
  2076. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2077. Public
  2078. Published
  2079. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2080. Property internalWebPropertyId : String Index 8 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  2081. Property profileId : String Index 16 Read FprofileId Write SetprofileId;
  2082. Property profileName : String Index 24 Read FprofileName Write SetprofileName;
  2083. Property tableId : String Index 32 Read FtableId Write SettableId;
  2084. Property webPropertyId : String Index 40 Read FwebPropertyId Write SetwebPropertyId;
  2085. end;
  2086. TMcfDataTypeprofileInfoClass = Class of TMcfDataTypeprofileInfo;
  2087. { --------------------------------------------------------------------
  2088. TMcfDataTypequery
  2089. --------------------------------------------------------------------}
  2090. TMcfDataTypequery = Class(TGoogleBaseObject)
  2091. Private
  2092. Fdimensions : String;
  2093. Fenddate : String;
  2094. Ffilters : String;
  2095. Fids : String;
  2096. Fmaxresults : integer;
  2097. Fmetrics : TStringArray;
  2098. FsamplingLevel : String;
  2099. Fsegment : String;
  2100. Fsort : TStringArray;
  2101. Fstartdate : String;
  2102. Fstartindex : integer;
  2103. Protected
  2104. Class Function ExportPropertyName(Const AName : String) : string; override;
  2105. //Property setters
  2106. Procedure Setdimensions(AIndex : Integer; const AValue : String); virtual;
  2107. Procedure Setenddate(AIndex : Integer; const AValue : String); virtual;
  2108. Procedure Setfilters(AIndex : Integer; const AValue : String); virtual;
  2109. Procedure Setids(AIndex : Integer; const AValue : String); virtual;
  2110. Procedure Setmaxresults(AIndex : Integer; const AValue : integer); virtual;
  2111. Procedure Setmetrics(AIndex : Integer; const AValue : TStringArray); virtual;
  2112. Procedure SetsamplingLevel(AIndex : Integer; const AValue : String); virtual;
  2113. Procedure Setsegment(AIndex : Integer; const AValue : String); virtual;
  2114. Procedure Setsort(AIndex : Integer; const AValue : TStringArray); virtual;
  2115. Procedure Setstartdate(AIndex : Integer; const AValue : String); virtual;
  2116. Procedure Setstartindex(AIndex : Integer; const AValue : integer); virtual;
  2117. //2.6.4. bug workaround
  2118. {$IFDEF VER2_6}
  2119. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2120. {$ENDIF VER2_6}
  2121. Public
  2122. Published
  2123. Property dimensions : String Index 0 Read Fdimensions Write Setdimensions;
  2124. Property enddate : String Index 8 Read Fenddate Write Setenddate;
  2125. Property filters : String Index 16 Read Ffilters Write Setfilters;
  2126. Property ids : String Index 24 Read Fids Write Setids;
  2127. Property maxresults : integer Index 32 Read Fmaxresults Write Setmaxresults;
  2128. Property metrics : TStringArray Index 40 Read Fmetrics Write Setmetrics;
  2129. Property samplingLevel : String Index 48 Read FsamplingLevel Write SetsamplingLevel;
  2130. Property segment : String Index 56 Read Fsegment Write Setsegment;
  2131. Property sort : TStringArray Index 64 Read Fsort Write Setsort;
  2132. Property startdate : String Index 72 Read Fstartdate Write Setstartdate;
  2133. Property startindex : integer Index 80 Read Fstartindex Write Setstartindex;
  2134. end;
  2135. TMcfDataTypequeryClass = Class of TMcfDataTypequery;
  2136. { --------------------------------------------------------------------
  2137. TMcfDataTyperowsItemItemTypeconversionPathValueItem
  2138. --------------------------------------------------------------------}
  2139. TMcfDataTyperowsItemItemTypeconversionPathValueItem = Class(TGoogleBaseObject)
  2140. Private
  2141. FinteractionType : String;
  2142. FnodeValue : String;
  2143. Protected
  2144. //Property setters
  2145. Procedure SetinteractionType(AIndex : Integer; const AValue : String); virtual;
  2146. Procedure SetnodeValue(AIndex : Integer; const AValue : String); virtual;
  2147. Public
  2148. Published
  2149. Property interactionType : String Index 0 Read FinteractionType Write SetinteractionType;
  2150. Property nodeValue : String Index 8 Read FnodeValue Write SetnodeValue;
  2151. end;
  2152. TMcfDataTyperowsItemItemTypeconversionPathValueItemClass = Class of TMcfDataTyperowsItemItemTypeconversionPathValueItem;
  2153. { --------------------------------------------------------------------
  2154. TMcfDataTyperowsItemItem
  2155. --------------------------------------------------------------------}
  2156. TMcfDataTyperowsItemItem = Class(TGoogleBaseObject)
  2157. Private
  2158. FconversionPathValue : TMcfDataTyperowsItemItemTypeconversionPathValueArray;
  2159. FprimitiveValue : String;
  2160. Protected
  2161. //Property setters
  2162. Procedure SetconversionPathValue(AIndex : Integer; const AValue : TMcfDataTyperowsItemItemTypeconversionPathValueArray); virtual;
  2163. Procedure SetprimitiveValue(AIndex : Integer; const AValue : String); virtual;
  2164. //2.6.4. bug workaround
  2165. {$IFDEF VER2_6}
  2166. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2167. {$ENDIF VER2_6}
  2168. Public
  2169. Published
  2170. Property conversionPathValue : TMcfDataTyperowsItemItemTypeconversionPathValueArray Index 0 Read FconversionPathValue Write SetconversionPathValue;
  2171. Property primitiveValue : String Index 8 Read FprimitiveValue Write SetprimitiveValue;
  2172. end;
  2173. TMcfDataTyperowsItemItemClass = Class of TMcfDataTyperowsItemItem;
  2174. { --------------------------------------------------------------------
  2175. TMcfDataTypetotalsForAllResults
  2176. --------------------------------------------------------------------}
  2177. TMcfDataTypetotalsForAllResults = Class(TGoogleBaseObject)
  2178. Private
  2179. Protected
  2180. //Property setters
  2181. Public
  2182. Class Function AllowAdditionalProperties : Boolean; override;
  2183. Published
  2184. end;
  2185. TMcfDataTypetotalsForAllResultsClass = Class of TMcfDataTypetotalsForAllResults;
  2186. { --------------------------------------------------------------------
  2187. TMcfData
  2188. --------------------------------------------------------------------}
  2189. TMcfData = Class(TGoogleBaseObject)
  2190. Private
  2191. FcolumnHeaders : TMcfDataTypecolumnHeadersArray;
  2192. FcontainsSampledData : boolean;
  2193. Fid : String;
  2194. FitemsPerPage : integer;
  2195. Fkind : String;
  2196. FnextLink : String;
  2197. FpreviousLink : String;
  2198. FprofileInfo : TMcfDataTypeprofileInfo;
  2199. Fquery : TMcfDataTypequery;
  2200. Frows : TMcfDataTyperowsArray;
  2201. FsampleSize : String;
  2202. FsampleSpace : String;
  2203. FselfLink : String;
  2204. FtotalResults : integer;
  2205. FtotalsForAllResults : TMcfDataTypetotalsForAllResults;
  2206. Protected
  2207. //Property setters
  2208. Procedure SetcolumnHeaders(AIndex : Integer; const AValue : TMcfDataTypecolumnHeadersArray); virtual;
  2209. Procedure SetcontainsSampledData(AIndex : Integer; const AValue : boolean); virtual;
  2210. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2211. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2212. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2213. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2214. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2215. Procedure SetprofileInfo(AIndex : Integer; const AValue : TMcfDataTypeprofileInfo); virtual;
  2216. Procedure Setquery(AIndex : Integer; const AValue : TMcfDataTypequery); virtual;
  2217. Procedure Setrows(AIndex : Integer; const AValue : TMcfDataTyperowsArray); virtual;
  2218. Procedure SetsampleSize(AIndex : Integer; const AValue : String); virtual;
  2219. Procedure SetsampleSpace(AIndex : Integer; const AValue : String); virtual;
  2220. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2221. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2222. Procedure SettotalsForAllResults(AIndex : Integer; const AValue : TMcfDataTypetotalsForAllResults); virtual;
  2223. //2.6.4. bug workaround
  2224. {$IFDEF VER2_6}
  2225. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2226. {$ENDIF VER2_6}
  2227. Public
  2228. Published
  2229. Property columnHeaders : TMcfDataTypecolumnHeadersArray Index 0 Read FcolumnHeaders Write SetcolumnHeaders;
  2230. Property containsSampledData : boolean Index 8 Read FcontainsSampledData Write SetcontainsSampledData;
  2231. Property id : String Index 16 Read Fid Write Setid;
  2232. Property itemsPerPage : integer Index 24 Read FitemsPerPage Write SetitemsPerPage;
  2233. Property kind : String Index 32 Read Fkind Write Setkind;
  2234. Property nextLink : String Index 40 Read FnextLink Write SetnextLink;
  2235. Property previousLink : String Index 48 Read FpreviousLink Write SetpreviousLink;
  2236. Property profileInfo : TMcfDataTypeprofileInfo Index 56 Read FprofileInfo Write SetprofileInfo;
  2237. Property query : TMcfDataTypequery Index 64 Read Fquery Write Setquery;
  2238. Property rows : TMcfDataTyperowsArray Index 72 Read Frows Write Setrows;
  2239. Property sampleSize : String Index 80 Read FsampleSize Write SetsampleSize;
  2240. Property sampleSpace : String Index 88 Read FsampleSpace Write SetsampleSpace;
  2241. Property selfLink : String Index 96 Read FselfLink Write SetselfLink;
  2242. Property totalResults : integer Index 104 Read FtotalResults Write SettotalResults;
  2243. Property totalsForAllResults : TMcfDataTypetotalsForAllResults Index 112 Read FtotalsForAllResults Write SettotalsForAllResults;
  2244. end;
  2245. TMcfDataClass = Class of TMcfData;
  2246. { --------------------------------------------------------------------
  2247. TProfileTypechildLink
  2248. --------------------------------------------------------------------}
  2249. TProfileTypechildLink = Class(TGoogleBaseObject)
  2250. Private
  2251. Fhref : String;
  2252. F_type : String;
  2253. Protected
  2254. Class Function ExportPropertyName(Const AName : String) : string; override;
  2255. //Property setters
  2256. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  2257. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2258. Public
  2259. Published
  2260. Property href : String Index 0 Read Fhref Write Sethref;
  2261. Property _type : String Index 8 Read F_type Write Set_type;
  2262. end;
  2263. TProfileTypechildLinkClass = Class of TProfileTypechildLink;
  2264. { --------------------------------------------------------------------
  2265. TProfileTypeparentLink
  2266. --------------------------------------------------------------------}
  2267. TProfileTypeparentLink = Class(TGoogleBaseObject)
  2268. Private
  2269. Fhref : String;
  2270. F_type : String;
  2271. Protected
  2272. Class Function ExportPropertyName(Const AName : String) : string; override;
  2273. //Property setters
  2274. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  2275. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2276. Public
  2277. Published
  2278. Property href : String Index 0 Read Fhref Write Sethref;
  2279. Property _type : String Index 8 Read F_type Write Set_type;
  2280. end;
  2281. TProfileTypeparentLinkClass = Class of TProfileTypeparentLink;
  2282. { --------------------------------------------------------------------
  2283. TProfileTypepermissions
  2284. --------------------------------------------------------------------}
  2285. TProfileTypepermissions = Class(TGoogleBaseObject)
  2286. Private
  2287. Feffective : TStringArray;
  2288. Protected
  2289. //Property setters
  2290. Procedure Seteffective(AIndex : Integer; const AValue : TStringArray); virtual;
  2291. //2.6.4. bug workaround
  2292. {$IFDEF VER2_6}
  2293. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2294. {$ENDIF VER2_6}
  2295. Public
  2296. Published
  2297. Property effective : TStringArray Index 0 Read Feffective Write Seteffective;
  2298. end;
  2299. TProfileTypepermissionsClass = Class of TProfileTypepermissions;
  2300. { --------------------------------------------------------------------
  2301. TProfile
  2302. --------------------------------------------------------------------}
  2303. TProfile = Class(TGoogleBaseObject)
  2304. Private
  2305. FaccountId : String;
  2306. FbotFilteringEnabled : boolean;
  2307. FchildLink : TProfileTypechildLink;
  2308. Fcreated : TDatetime;
  2309. Fcurrency : String;
  2310. FdefaultPage : String;
  2311. FeCommerceTracking : boolean;
  2312. FenhancedECommerceTracking : boolean;
  2313. FexcludeQueryParameters : String;
  2314. Fid : String;
  2315. FinternalWebPropertyId : String;
  2316. Fkind : String;
  2317. Fname : String;
  2318. FparentLink : TProfileTypeparentLink;
  2319. Fpermissions : TProfileTypepermissions;
  2320. FselfLink : String;
  2321. FsiteSearchCategoryParameters : String;
  2322. FsiteSearchQueryParameters : String;
  2323. Fstarred : boolean;
  2324. FstripSiteSearchCategoryParameters : boolean;
  2325. FstripSiteSearchQueryParameters : boolean;
  2326. Ftimezone : String;
  2327. F_type : String;
  2328. Fupdated : TDatetime;
  2329. FwebPropertyId : String;
  2330. FwebsiteUrl : String;
  2331. Protected
  2332. Class Function ExportPropertyName(Const AName : String) : string; override;
  2333. //Property setters
  2334. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2335. Procedure SetbotFilteringEnabled(AIndex : Integer; const AValue : boolean); virtual;
  2336. Procedure SetchildLink(AIndex : Integer; const AValue : TProfileTypechildLink); virtual;
  2337. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  2338. Procedure Setcurrency(AIndex : Integer; const AValue : String); virtual;
  2339. Procedure SetdefaultPage(AIndex : Integer; const AValue : String); virtual;
  2340. Procedure SeteCommerceTracking(AIndex : Integer; const AValue : boolean); virtual;
  2341. Procedure SetenhancedECommerceTracking(AIndex : Integer; const AValue : boolean); virtual;
  2342. Procedure SetexcludeQueryParameters(AIndex : Integer; const AValue : String); virtual;
  2343. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2344. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2345. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2346. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2347. Procedure SetparentLink(AIndex : Integer; const AValue : TProfileTypeparentLink); virtual;
  2348. Procedure Setpermissions(AIndex : Integer; const AValue : TProfileTypepermissions); virtual;
  2349. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2350. Procedure SetsiteSearchCategoryParameters(AIndex : Integer; const AValue : String); virtual;
  2351. Procedure SetsiteSearchQueryParameters(AIndex : Integer; const AValue : String); virtual;
  2352. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  2353. Procedure SetstripSiteSearchCategoryParameters(AIndex : Integer; const AValue : boolean); virtual;
  2354. Procedure SetstripSiteSearchQueryParameters(AIndex : Integer; const AValue : boolean); virtual;
  2355. Procedure Settimezone(AIndex : Integer; const AValue : String); virtual;
  2356. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2357. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  2358. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2359. Procedure SetwebsiteUrl(AIndex : Integer; const AValue : String); virtual;
  2360. Public
  2361. Published
  2362. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2363. Property botFilteringEnabled : boolean Index 8 Read FbotFilteringEnabled Write SetbotFilteringEnabled;
  2364. Property childLink : TProfileTypechildLink Index 16 Read FchildLink Write SetchildLink;
  2365. Property created : TDatetime Index 24 Read Fcreated Write Setcreated;
  2366. Property currency : String Index 32 Read Fcurrency Write Setcurrency;
  2367. Property defaultPage : String Index 40 Read FdefaultPage Write SetdefaultPage;
  2368. Property eCommerceTracking : boolean Index 48 Read FeCommerceTracking Write SeteCommerceTracking;
  2369. Property enhancedECommerceTracking : boolean Index 56 Read FenhancedECommerceTracking Write SetenhancedECommerceTracking;
  2370. Property excludeQueryParameters : String Index 64 Read FexcludeQueryParameters Write SetexcludeQueryParameters;
  2371. Property id : String Index 72 Read Fid Write Setid;
  2372. Property internalWebPropertyId : String Index 80 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  2373. Property kind : String Index 88 Read Fkind Write Setkind;
  2374. Property name : String Index 96 Read Fname Write Setname;
  2375. Property parentLink : TProfileTypeparentLink Index 104 Read FparentLink Write SetparentLink;
  2376. Property permissions : TProfileTypepermissions Index 112 Read Fpermissions Write Setpermissions;
  2377. Property selfLink : String Index 120 Read FselfLink Write SetselfLink;
  2378. Property siteSearchCategoryParameters : String Index 128 Read FsiteSearchCategoryParameters Write SetsiteSearchCategoryParameters;
  2379. Property siteSearchQueryParameters : String Index 136 Read FsiteSearchQueryParameters Write SetsiteSearchQueryParameters;
  2380. Property starred : boolean Index 144 Read Fstarred Write Setstarred;
  2381. Property stripSiteSearchCategoryParameters : boolean Index 152 Read FstripSiteSearchCategoryParameters Write SetstripSiteSearchCategoryParameters;
  2382. Property stripSiteSearchQueryParameters : boolean Index 160 Read FstripSiteSearchQueryParameters Write SetstripSiteSearchQueryParameters;
  2383. Property timezone : String Index 168 Read Ftimezone Write Settimezone;
  2384. Property _type : String Index 176 Read F_type Write Set_type;
  2385. Property updated : TDatetime Index 184 Read Fupdated Write Setupdated;
  2386. Property webPropertyId : String Index 192 Read FwebPropertyId Write SetwebPropertyId;
  2387. Property websiteUrl : String Index 200 Read FwebsiteUrl Write SetwebsiteUrl;
  2388. end;
  2389. TProfileClass = Class of TProfile;
  2390. { --------------------------------------------------------------------
  2391. TProfileFilterLink
  2392. --------------------------------------------------------------------}
  2393. TProfileFilterLink = Class(TGoogleBaseObject)
  2394. Private
  2395. FfilterRef : TFilterRef;
  2396. Fid : String;
  2397. Fkind : String;
  2398. FprofileRef : TProfileRef;
  2399. Frank : integer;
  2400. FselfLink : String;
  2401. Protected
  2402. //Property setters
  2403. Procedure SetfilterRef(AIndex : Integer; const AValue : TFilterRef); virtual;
  2404. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2405. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2406. Procedure SetprofileRef(AIndex : Integer; const AValue : TProfileRef); virtual;
  2407. Procedure Setrank(AIndex : Integer; const AValue : integer); virtual;
  2408. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2409. Public
  2410. Published
  2411. Property filterRef : TFilterRef Index 0 Read FfilterRef Write SetfilterRef;
  2412. Property id : String Index 8 Read Fid Write Setid;
  2413. Property kind : String Index 16 Read Fkind Write Setkind;
  2414. Property profileRef : TProfileRef Index 24 Read FprofileRef Write SetprofileRef;
  2415. Property rank : integer Index 32 Read Frank Write Setrank;
  2416. Property selfLink : String Index 40 Read FselfLink Write SetselfLink;
  2417. end;
  2418. TProfileFilterLinkClass = Class of TProfileFilterLink;
  2419. { --------------------------------------------------------------------
  2420. TProfileFilterLinks
  2421. --------------------------------------------------------------------}
  2422. TProfileFilterLinks = Class(TGoogleBaseObject)
  2423. Private
  2424. Fitems : TProfileFilterLinksTypeitemsArray;
  2425. FitemsPerPage : integer;
  2426. Fkind : String;
  2427. FnextLink : String;
  2428. FpreviousLink : String;
  2429. FstartIndex : integer;
  2430. FtotalResults : integer;
  2431. Fusername : String;
  2432. Protected
  2433. //Property setters
  2434. Procedure Setitems(AIndex : Integer; const AValue : TProfileFilterLinksTypeitemsArray); virtual;
  2435. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2436. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2437. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2438. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2439. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2440. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2441. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2442. //2.6.4. bug workaround
  2443. {$IFDEF VER2_6}
  2444. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2445. {$ENDIF VER2_6}
  2446. Public
  2447. Published
  2448. Property items : TProfileFilterLinksTypeitemsArray Index 0 Read Fitems Write Setitems;
  2449. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2450. Property kind : String Index 16 Read Fkind Write Setkind;
  2451. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2452. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2453. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2454. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2455. Property username : String Index 56 Read Fusername Write Setusername;
  2456. end;
  2457. TProfileFilterLinksClass = Class of TProfileFilterLinks;
  2458. { --------------------------------------------------------------------
  2459. TProfileRef
  2460. --------------------------------------------------------------------}
  2461. TProfileRef = Class(TGoogleBaseObject)
  2462. Private
  2463. FaccountId : String;
  2464. Fhref : String;
  2465. Fid : String;
  2466. FinternalWebPropertyId : String;
  2467. Fkind : String;
  2468. Fname : String;
  2469. FwebPropertyId : String;
  2470. Protected
  2471. //Property setters
  2472. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2473. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  2474. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2475. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2476. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2477. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2478. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2479. Public
  2480. Published
  2481. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2482. Property href : String Index 8 Read Fhref Write Sethref;
  2483. Property id : String Index 16 Read Fid Write Setid;
  2484. Property internalWebPropertyId : String Index 24 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  2485. Property kind : String Index 32 Read Fkind Write Setkind;
  2486. Property name : String Index 40 Read Fname Write Setname;
  2487. Property webPropertyId : String Index 48 Read FwebPropertyId Write SetwebPropertyId;
  2488. end;
  2489. TProfileRefClass = Class of TProfileRef;
  2490. { --------------------------------------------------------------------
  2491. TProfileSummary
  2492. --------------------------------------------------------------------}
  2493. TProfileSummary = Class(TGoogleBaseObject)
  2494. Private
  2495. Fid : String;
  2496. Fkind : String;
  2497. Fname : String;
  2498. Fstarred : boolean;
  2499. F_type : String;
  2500. Protected
  2501. Class Function ExportPropertyName(Const AName : String) : string; override;
  2502. //Property setters
  2503. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2504. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2505. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2506. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  2507. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2508. Public
  2509. Published
  2510. Property id : String Index 0 Read Fid Write Setid;
  2511. Property kind : String Index 8 Read Fkind Write Setkind;
  2512. Property name : String Index 16 Read Fname Write Setname;
  2513. Property starred : boolean Index 24 Read Fstarred Write Setstarred;
  2514. Property _type : String Index 32 Read F_type Write Set_type;
  2515. end;
  2516. TProfileSummaryClass = Class of TProfileSummary;
  2517. { --------------------------------------------------------------------
  2518. TProfiles
  2519. --------------------------------------------------------------------}
  2520. TProfiles = Class(TGoogleBaseObject)
  2521. Private
  2522. Fitems : TProfilesTypeitemsArray;
  2523. FitemsPerPage : integer;
  2524. Fkind : String;
  2525. FnextLink : String;
  2526. FpreviousLink : String;
  2527. FstartIndex : integer;
  2528. FtotalResults : integer;
  2529. Fusername : String;
  2530. Protected
  2531. //Property setters
  2532. Procedure Setitems(AIndex : Integer; const AValue : TProfilesTypeitemsArray); virtual;
  2533. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2534. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2535. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2536. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2537. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2538. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2539. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2540. //2.6.4. bug workaround
  2541. {$IFDEF VER2_6}
  2542. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2543. {$ENDIF VER2_6}
  2544. Public
  2545. Published
  2546. Property items : TProfilesTypeitemsArray Index 0 Read Fitems Write Setitems;
  2547. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2548. Property kind : String Index 16 Read Fkind Write Setkind;
  2549. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2550. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2551. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2552. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2553. Property username : String Index 56 Read Fusername Write Setusername;
  2554. end;
  2555. TProfilesClass = Class of TProfiles;
  2556. { --------------------------------------------------------------------
  2557. TRealtimeDataTypecolumnHeadersItem
  2558. --------------------------------------------------------------------}
  2559. TRealtimeDataTypecolumnHeadersItem = Class(TGoogleBaseObject)
  2560. Private
  2561. FcolumnType : String;
  2562. FdataType : String;
  2563. Fname : String;
  2564. Protected
  2565. //Property setters
  2566. Procedure SetcolumnType(AIndex : Integer; const AValue : String); virtual;
  2567. Procedure SetdataType(AIndex : Integer; const AValue : String); virtual;
  2568. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2569. Public
  2570. Published
  2571. Property columnType : String Index 0 Read FcolumnType Write SetcolumnType;
  2572. Property dataType : String Index 8 Read FdataType Write SetdataType;
  2573. Property name : String Index 16 Read Fname Write Setname;
  2574. end;
  2575. TRealtimeDataTypecolumnHeadersItemClass = Class of TRealtimeDataTypecolumnHeadersItem;
  2576. { --------------------------------------------------------------------
  2577. TRealtimeDataTypeprofileInfo
  2578. --------------------------------------------------------------------}
  2579. TRealtimeDataTypeprofileInfo = Class(TGoogleBaseObject)
  2580. Private
  2581. FaccountId : String;
  2582. FinternalWebPropertyId : String;
  2583. FprofileId : String;
  2584. FprofileName : String;
  2585. FtableId : String;
  2586. FwebPropertyId : String;
  2587. Protected
  2588. //Property setters
  2589. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2590. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2591. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  2592. Procedure SetprofileName(AIndex : Integer; const AValue : String); virtual;
  2593. Procedure SettableId(AIndex : Integer; const AValue : String); virtual;
  2594. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2595. Public
  2596. Published
  2597. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2598. Property internalWebPropertyId : String Index 8 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  2599. Property profileId : String Index 16 Read FprofileId Write SetprofileId;
  2600. Property profileName : String Index 24 Read FprofileName Write SetprofileName;
  2601. Property tableId : String Index 32 Read FtableId Write SettableId;
  2602. Property webPropertyId : String Index 40 Read FwebPropertyId Write SetwebPropertyId;
  2603. end;
  2604. TRealtimeDataTypeprofileInfoClass = Class of TRealtimeDataTypeprofileInfo;
  2605. { --------------------------------------------------------------------
  2606. TRealtimeDataTypequery
  2607. --------------------------------------------------------------------}
  2608. TRealtimeDataTypequery = Class(TGoogleBaseObject)
  2609. Private
  2610. Fdimensions : String;
  2611. Ffilters : String;
  2612. Fids : String;
  2613. Fmaxresults : integer;
  2614. Fmetrics : TStringArray;
  2615. Fsort : TStringArray;
  2616. Protected
  2617. Class Function ExportPropertyName(Const AName : String) : string; override;
  2618. //Property setters
  2619. Procedure Setdimensions(AIndex : Integer; const AValue : String); virtual;
  2620. Procedure Setfilters(AIndex : Integer; const AValue : String); virtual;
  2621. Procedure Setids(AIndex : Integer; const AValue : String); virtual;
  2622. Procedure Setmaxresults(AIndex : Integer; const AValue : integer); virtual;
  2623. Procedure Setmetrics(AIndex : Integer; const AValue : TStringArray); virtual;
  2624. Procedure Setsort(AIndex : Integer; const AValue : TStringArray); virtual;
  2625. //2.6.4. bug workaround
  2626. {$IFDEF VER2_6}
  2627. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2628. {$ENDIF VER2_6}
  2629. Public
  2630. Published
  2631. Property dimensions : String Index 0 Read Fdimensions Write Setdimensions;
  2632. Property filters : String Index 8 Read Ffilters Write Setfilters;
  2633. Property ids : String Index 16 Read Fids Write Setids;
  2634. Property maxresults : integer Index 24 Read Fmaxresults Write Setmaxresults;
  2635. Property metrics : TStringArray Index 32 Read Fmetrics Write Setmetrics;
  2636. Property sort : TStringArray Index 40 Read Fsort Write Setsort;
  2637. end;
  2638. TRealtimeDataTypequeryClass = Class of TRealtimeDataTypequery;
  2639. { --------------------------------------------------------------------
  2640. TRealtimeDataTypetotalsForAllResults
  2641. --------------------------------------------------------------------}
  2642. TRealtimeDataTypetotalsForAllResults = Class(TGoogleBaseObject)
  2643. Private
  2644. Protected
  2645. //Property setters
  2646. Public
  2647. Class Function AllowAdditionalProperties : Boolean; override;
  2648. Published
  2649. end;
  2650. TRealtimeDataTypetotalsForAllResultsClass = Class of TRealtimeDataTypetotalsForAllResults;
  2651. { --------------------------------------------------------------------
  2652. TRealtimeData
  2653. --------------------------------------------------------------------}
  2654. TRealtimeData = Class(TGoogleBaseObject)
  2655. Private
  2656. FcolumnHeaders : TRealtimeDataTypecolumnHeadersArray;
  2657. Fid : String;
  2658. Fkind : String;
  2659. FprofileInfo : TRealtimeDataTypeprofileInfo;
  2660. Fquery : TRealtimeDataTypequery;
  2661. Frows : TRealtimeDataTyperowsArray;
  2662. FselfLink : String;
  2663. FtotalResults : integer;
  2664. FtotalsForAllResults : TRealtimeDataTypetotalsForAllResults;
  2665. Protected
  2666. //Property setters
  2667. Procedure SetcolumnHeaders(AIndex : Integer; const AValue : TRealtimeDataTypecolumnHeadersArray); virtual;
  2668. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2669. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2670. Procedure SetprofileInfo(AIndex : Integer; const AValue : TRealtimeDataTypeprofileInfo); virtual;
  2671. Procedure Setquery(AIndex : Integer; const AValue : TRealtimeDataTypequery); virtual;
  2672. Procedure Setrows(AIndex : Integer; const AValue : TRealtimeDataTyperowsArray); virtual;
  2673. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2674. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2675. Procedure SettotalsForAllResults(AIndex : Integer; const AValue : TRealtimeDataTypetotalsForAllResults); virtual;
  2676. //2.6.4. bug workaround
  2677. {$IFDEF VER2_6}
  2678. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2679. {$ENDIF VER2_6}
  2680. Public
  2681. Published
  2682. Property columnHeaders : TRealtimeDataTypecolumnHeadersArray Index 0 Read FcolumnHeaders Write SetcolumnHeaders;
  2683. Property id : String Index 8 Read Fid Write Setid;
  2684. Property kind : String Index 16 Read Fkind Write Setkind;
  2685. Property profileInfo : TRealtimeDataTypeprofileInfo Index 24 Read FprofileInfo Write SetprofileInfo;
  2686. Property query : TRealtimeDataTypequery Index 32 Read Fquery Write Setquery;
  2687. Property rows : TRealtimeDataTyperowsArray Index 40 Read Frows Write Setrows;
  2688. Property selfLink : String Index 48 Read FselfLink Write SetselfLink;
  2689. Property totalResults : integer Index 56 Read FtotalResults Write SettotalResults;
  2690. Property totalsForAllResults : TRealtimeDataTypetotalsForAllResults Index 64 Read FtotalsForAllResults Write SettotalsForAllResults;
  2691. end;
  2692. TRealtimeDataClass = Class of TRealtimeData;
  2693. { --------------------------------------------------------------------
  2694. TSegment
  2695. --------------------------------------------------------------------}
  2696. TSegment = Class(TGoogleBaseObject)
  2697. Private
  2698. Fcreated : TDatetime;
  2699. Fdefinition : String;
  2700. Fid : String;
  2701. Fkind : String;
  2702. Fname : String;
  2703. FsegmentId : String;
  2704. FselfLink : String;
  2705. F_type : String;
  2706. Fupdated : TDatetime;
  2707. Protected
  2708. Class Function ExportPropertyName(Const AName : String) : string; override;
  2709. //Property setters
  2710. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  2711. Procedure Setdefinition(AIndex : Integer; const AValue : String); virtual;
  2712. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2713. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2714. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2715. Procedure SetsegmentId(AIndex : Integer; const AValue : String); virtual;
  2716. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2717. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2718. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  2719. Public
  2720. Published
  2721. Property created : TDatetime Index 0 Read Fcreated Write Setcreated;
  2722. Property definition : String Index 8 Read Fdefinition Write Setdefinition;
  2723. Property id : String Index 16 Read Fid Write Setid;
  2724. Property kind : String Index 24 Read Fkind Write Setkind;
  2725. Property name : String Index 32 Read Fname Write Setname;
  2726. Property segmentId : String Index 40 Read FsegmentId Write SetsegmentId;
  2727. Property selfLink : String Index 48 Read FselfLink Write SetselfLink;
  2728. Property _type : String Index 56 Read F_type Write Set_type;
  2729. Property updated : TDatetime Index 64 Read Fupdated Write Setupdated;
  2730. end;
  2731. TSegmentClass = Class of TSegment;
  2732. { --------------------------------------------------------------------
  2733. TSegments
  2734. --------------------------------------------------------------------}
  2735. TSegments = Class(TGoogleBaseObject)
  2736. Private
  2737. Fitems : TSegmentsTypeitemsArray;
  2738. FitemsPerPage : integer;
  2739. Fkind : String;
  2740. FnextLink : String;
  2741. FpreviousLink : String;
  2742. FstartIndex : integer;
  2743. FtotalResults : integer;
  2744. Fusername : String;
  2745. Protected
  2746. //Property setters
  2747. Procedure Setitems(AIndex : Integer; const AValue : TSegmentsTypeitemsArray); virtual;
  2748. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2749. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2750. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2751. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2752. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2753. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2754. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2755. //2.6.4. bug workaround
  2756. {$IFDEF VER2_6}
  2757. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2758. {$ENDIF VER2_6}
  2759. Public
  2760. Published
  2761. Property items : TSegmentsTypeitemsArray Index 0 Read Fitems Write Setitems;
  2762. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2763. Property kind : String Index 16 Read Fkind Write Setkind;
  2764. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2765. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2766. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2767. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2768. Property username : String Index 56 Read Fusername Write Setusername;
  2769. end;
  2770. TSegmentsClass = Class of TSegments;
  2771. { --------------------------------------------------------------------
  2772. TUnsampledReportTypecloudStorageDownloadDetails
  2773. --------------------------------------------------------------------}
  2774. TUnsampledReportTypecloudStorageDownloadDetails = Class(TGoogleBaseObject)
  2775. Private
  2776. FbucketId : String;
  2777. FobjectId : String;
  2778. Protected
  2779. //Property setters
  2780. Procedure SetbucketId(AIndex : Integer; const AValue : String); virtual;
  2781. Procedure SetobjectId(AIndex : Integer; const AValue : String); virtual;
  2782. Public
  2783. Published
  2784. Property bucketId : String Index 0 Read FbucketId Write SetbucketId;
  2785. Property objectId : String Index 8 Read FobjectId Write SetobjectId;
  2786. end;
  2787. TUnsampledReportTypecloudStorageDownloadDetailsClass = Class of TUnsampledReportTypecloudStorageDownloadDetails;
  2788. { --------------------------------------------------------------------
  2789. TUnsampledReportTypedriveDownloadDetails
  2790. --------------------------------------------------------------------}
  2791. TUnsampledReportTypedriveDownloadDetails = Class(TGoogleBaseObject)
  2792. Private
  2793. FdocumentId : String;
  2794. Protected
  2795. //Property setters
  2796. Procedure SetdocumentId(AIndex : Integer; const AValue : String); virtual;
  2797. Public
  2798. Published
  2799. Property documentId : String Index 0 Read FdocumentId Write SetdocumentId;
  2800. end;
  2801. TUnsampledReportTypedriveDownloadDetailsClass = Class of TUnsampledReportTypedriveDownloadDetails;
  2802. { --------------------------------------------------------------------
  2803. TUnsampledReport
  2804. --------------------------------------------------------------------}
  2805. TUnsampledReport = Class(TGoogleBaseObject)
  2806. Private
  2807. FaccountId : String;
  2808. FcloudStorageDownloadDetails : TUnsampledReportTypecloudStorageDownloadDetails;
  2809. Fcreated : TDatetime;
  2810. Fdimensions : String;
  2811. FdownloadType : String;
  2812. FdriveDownloadDetails : TUnsampledReportTypedriveDownloadDetails;
  2813. Fenddate : String;
  2814. Ffilters : String;
  2815. Fid : String;
  2816. Fkind : String;
  2817. Fmetrics : String;
  2818. FprofileId : String;
  2819. Fsegment : String;
  2820. FselfLink : String;
  2821. Fstartdate : String;
  2822. Fstatus : String;
  2823. Ftitle : String;
  2824. Fupdated : TDatetime;
  2825. FwebPropertyId : String;
  2826. Protected
  2827. Class Function ExportPropertyName(Const AName : String) : string; override;
  2828. //Property setters
  2829. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2830. Procedure SetcloudStorageDownloadDetails(AIndex : Integer; const AValue : TUnsampledReportTypecloudStorageDownloadDetails); virtual;
  2831. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  2832. Procedure Setdimensions(AIndex : Integer; const AValue : String); virtual;
  2833. Procedure SetdownloadType(AIndex : Integer; const AValue : String); virtual;
  2834. Procedure SetdriveDownloadDetails(AIndex : Integer; const AValue : TUnsampledReportTypedriveDownloadDetails); virtual;
  2835. Procedure Setenddate(AIndex : Integer; const AValue : String); virtual;
  2836. Procedure Setfilters(AIndex : Integer; const AValue : String); virtual;
  2837. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2838. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2839. Procedure Setmetrics(AIndex : Integer; const AValue : String); virtual;
  2840. Procedure SetprofileId(AIndex : Integer; const AValue : String); virtual;
  2841. Procedure Setsegment(AIndex : Integer; const AValue : String); virtual;
  2842. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  2843. Procedure Setstartdate(AIndex : Integer; const AValue : String); virtual;
  2844. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2845. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  2846. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  2847. Procedure SetwebPropertyId(AIndex : Integer; const AValue : String); virtual;
  2848. Public
  2849. Published
  2850. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2851. Property cloudStorageDownloadDetails : TUnsampledReportTypecloudStorageDownloadDetails Index 8 Read FcloudStorageDownloadDetails Write SetcloudStorageDownloadDetails;
  2852. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  2853. Property dimensions : String Index 24 Read Fdimensions Write Setdimensions;
  2854. Property downloadType : String Index 32 Read FdownloadType Write SetdownloadType;
  2855. Property driveDownloadDetails : TUnsampledReportTypedriveDownloadDetails Index 40 Read FdriveDownloadDetails Write SetdriveDownloadDetails;
  2856. Property enddate : String Index 48 Read Fenddate Write Setenddate;
  2857. Property filters : String Index 56 Read Ffilters Write Setfilters;
  2858. Property id : String Index 64 Read Fid Write Setid;
  2859. Property kind : String Index 72 Read Fkind Write Setkind;
  2860. Property metrics : String Index 80 Read Fmetrics Write Setmetrics;
  2861. Property profileId : String Index 88 Read FprofileId Write SetprofileId;
  2862. Property segment : String Index 96 Read Fsegment Write Setsegment;
  2863. Property selfLink : String Index 104 Read FselfLink Write SetselfLink;
  2864. Property startdate : String Index 112 Read Fstartdate Write Setstartdate;
  2865. Property status : String Index 120 Read Fstatus Write Setstatus;
  2866. Property title : String Index 128 Read Ftitle Write Settitle;
  2867. Property updated : TDatetime Index 136 Read Fupdated Write Setupdated;
  2868. Property webPropertyId : String Index 144 Read FwebPropertyId Write SetwebPropertyId;
  2869. end;
  2870. TUnsampledReportClass = Class of TUnsampledReport;
  2871. { --------------------------------------------------------------------
  2872. TUnsampledReports
  2873. --------------------------------------------------------------------}
  2874. TUnsampledReports = Class(TGoogleBaseObject)
  2875. Private
  2876. Fitems : TUnsampledReportsTypeitemsArray;
  2877. FitemsPerPage : integer;
  2878. Fkind : String;
  2879. FnextLink : String;
  2880. FpreviousLink : String;
  2881. FstartIndex : integer;
  2882. FtotalResults : integer;
  2883. Fusername : String;
  2884. Protected
  2885. //Property setters
  2886. Procedure Setitems(AIndex : Integer; const AValue : TUnsampledReportsTypeitemsArray); virtual;
  2887. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2888. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2889. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2890. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2891. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2892. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2893. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  2894. //2.6.4. bug workaround
  2895. {$IFDEF VER2_6}
  2896. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2897. {$ENDIF VER2_6}
  2898. Public
  2899. Published
  2900. Property items : TUnsampledReportsTypeitemsArray Index 0 Read Fitems Write Setitems;
  2901. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2902. Property kind : String Index 16 Read Fkind Write Setkind;
  2903. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2904. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2905. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2906. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2907. Property username : String Index 56 Read Fusername Write Setusername;
  2908. end;
  2909. TUnsampledReportsClass = Class of TUnsampledReports;
  2910. { --------------------------------------------------------------------
  2911. TUpload
  2912. --------------------------------------------------------------------}
  2913. TUpload = Class(TGoogleBaseObject)
  2914. Private
  2915. FaccountId : String;
  2916. FcustomDataSourceId : String;
  2917. Ferrors : TStringArray;
  2918. Fid : String;
  2919. Fkind : String;
  2920. Fstatus : String;
  2921. Protected
  2922. //Property setters
  2923. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  2924. Procedure SetcustomDataSourceId(AIndex : Integer; const AValue : String); virtual;
  2925. Procedure Seterrors(AIndex : Integer; const AValue : TStringArray); virtual;
  2926. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2927. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2928. Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
  2929. //2.6.4. bug workaround
  2930. {$IFDEF VER2_6}
  2931. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2932. {$ENDIF VER2_6}
  2933. Public
  2934. Published
  2935. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  2936. Property customDataSourceId : String Index 8 Read FcustomDataSourceId Write SetcustomDataSourceId;
  2937. Property errors : TStringArray Index 16 Read Ferrors Write Seterrors;
  2938. Property id : String Index 24 Read Fid Write Setid;
  2939. Property kind : String Index 32 Read Fkind Write Setkind;
  2940. Property status : String Index 40 Read Fstatus Write Setstatus;
  2941. end;
  2942. TUploadClass = Class of TUpload;
  2943. { --------------------------------------------------------------------
  2944. TUploads
  2945. --------------------------------------------------------------------}
  2946. TUploads = Class(TGoogleBaseObject)
  2947. Private
  2948. Fitems : TUploadsTypeitemsArray;
  2949. FitemsPerPage : integer;
  2950. Fkind : String;
  2951. FnextLink : String;
  2952. FpreviousLink : String;
  2953. FstartIndex : integer;
  2954. FtotalResults : integer;
  2955. Protected
  2956. //Property setters
  2957. Procedure Setitems(AIndex : Integer; const AValue : TUploadsTypeitemsArray); virtual;
  2958. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  2959. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2960. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  2961. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  2962. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  2963. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  2964. //2.6.4. bug workaround
  2965. {$IFDEF VER2_6}
  2966. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2967. {$ENDIF VER2_6}
  2968. Public
  2969. Published
  2970. Property items : TUploadsTypeitemsArray Index 0 Read Fitems Write Setitems;
  2971. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  2972. Property kind : String Index 16 Read Fkind Write Setkind;
  2973. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  2974. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  2975. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  2976. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  2977. end;
  2978. TUploadsClass = Class of TUploads;
  2979. { --------------------------------------------------------------------
  2980. TUserRef
  2981. --------------------------------------------------------------------}
  2982. TUserRef = Class(TGoogleBaseObject)
  2983. Private
  2984. Femail : String;
  2985. Fid : String;
  2986. Fkind : String;
  2987. Protected
  2988. //Property setters
  2989. Procedure Setemail(AIndex : Integer; const AValue : String); virtual;
  2990. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  2991. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  2992. Public
  2993. Published
  2994. Property email : String Index 0 Read Femail Write Setemail;
  2995. Property id : String Index 8 Read Fid Write Setid;
  2996. Property kind : String Index 16 Read Fkind Write Setkind;
  2997. end;
  2998. TUserRefClass = Class of TUserRef;
  2999. { --------------------------------------------------------------------
  3000. TWebPropertyRef
  3001. --------------------------------------------------------------------}
  3002. TWebPropertyRef = Class(TGoogleBaseObject)
  3003. Private
  3004. FaccountId : String;
  3005. Fhref : String;
  3006. Fid : String;
  3007. FinternalWebPropertyId : String;
  3008. Fkind : String;
  3009. Fname : String;
  3010. Protected
  3011. //Property setters
  3012. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  3013. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  3014. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3015. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  3016. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3017. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  3018. Public
  3019. Published
  3020. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  3021. Property href : String Index 8 Read Fhref Write Sethref;
  3022. Property id : String Index 16 Read Fid Write Setid;
  3023. Property internalWebPropertyId : String Index 24 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  3024. Property kind : String Index 32 Read Fkind Write Setkind;
  3025. Property name : String Index 40 Read Fname Write Setname;
  3026. end;
  3027. TWebPropertyRefClass = Class of TWebPropertyRef;
  3028. { --------------------------------------------------------------------
  3029. TWebPropertySummary
  3030. --------------------------------------------------------------------}
  3031. TWebPropertySummary = Class(TGoogleBaseObject)
  3032. Private
  3033. Fid : String;
  3034. FinternalWebPropertyId : String;
  3035. Fkind : String;
  3036. Flevel : String;
  3037. Fname : String;
  3038. Fprofiles : TWebPropertySummaryTypeprofilesArray;
  3039. Fstarred : boolean;
  3040. FwebsiteUrl : String;
  3041. Protected
  3042. //Property setters
  3043. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3044. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  3045. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3046. Procedure Setlevel(AIndex : Integer; const AValue : String); virtual;
  3047. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  3048. Procedure Setprofiles(AIndex : Integer; const AValue : TWebPropertySummaryTypeprofilesArray); virtual;
  3049. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  3050. Procedure SetwebsiteUrl(AIndex : Integer; const AValue : String); virtual;
  3051. //2.6.4. bug workaround
  3052. {$IFDEF VER2_6}
  3053. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3054. {$ENDIF VER2_6}
  3055. Public
  3056. Published
  3057. Property id : String Index 0 Read Fid Write Setid;
  3058. Property internalWebPropertyId : String Index 8 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  3059. Property kind : String Index 16 Read Fkind Write Setkind;
  3060. Property level : String Index 24 Read Flevel Write Setlevel;
  3061. Property name : String Index 32 Read Fname Write Setname;
  3062. Property profiles : TWebPropertySummaryTypeprofilesArray Index 40 Read Fprofiles Write Setprofiles;
  3063. Property starred : boolean Index 48 Read Fstarred Write Setstarred;
  3064. Property websiteUrl : String Index 56 Read FwebsiteUrl Write SetwebsiteUrl;
  3065. end;
  3066. TWebPropertySummaryClass = Class of TWebPropertySummary;
  3067. { --------------------------------------------------------------------
  3068. TWebproperties
  3069. --------------------------------------------------------------------}
  3070. TWebproperties = Class(TGoogleBaseObject)
  3071. Private
  3072. Fitems : TWebpropertiesTypeitemsArray;
  3073. FitemsPerPage : integer;
  3074. Fkind : String;
  3075. FnextLink : String;
  3076. FpreviousLink : String;
  3077. FstartIndex : integer;
  3078. FtotalResults : integer;
  3079. Fusername : String;
  3080. Protected
  3081. //Property setters
  3082. Procedure Setitems(AIndex : Integer; const AValue : TWebpropertiesTypeitemsArray); virtual;
  3083. Procedure SetitemsPerPage(AIndex : Integer; const AValue : integer); virtual;
  3084. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3085. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  3086. Procedure SetpreviousLink(AIndex : Integer; const AValue : String); virtual;
  3087. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  3088. Procedure SettotalResults(AIndex : Integer; const AValue : integer); virtual;
  3089. Procedure Setusername(AIndex : Integer; const AValue : String); virtual;
  3090. //2.6.4. bug workaround
  3091. {$IFDEF VER2_6}
  3092. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3093. {$ENDIF VER2_6}
  3094. Public
  3095. Published
  3096. Property items : TWebpropertiesTypeitemsArray Index 0 Read Fitems Write Setitems;
  3097. Property itemsPerPage : integer Index 8 Read FitemsPerPage Write SetitemsPerPage;
  3098. Property kind : String Index 16 Read Fkind Write Setkind;
  3099. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  3100. Property previousLink : String Index 32 Read FpreviousLink Write SetpreviousLink;
  3101. Property startIndex : integer Index 40 Read FstartIndex Write SetstartIndex;
  3102. Property totalResults : integer Index 48 Read FtotalResults Write SettotalResults;
  3103. Property username : String Index 56 Read Fusername Write Setusername;
  3104. end;
  3105. TWebpropertiesClass = Class of TWebproperties;
  3106. { --------------------------------------------------------------------
  3107. TWebpropertyTypechildLink
  3108. --------------------------------------------------------------------}
  3109. TWebpropertyTypechildLink = Class(TGoogleBaseObject)
  3110. Private
  3111. Fhref : String;
  3112. F_type : String;
  3113. Protected
  3114. Class Function ExportPropertyName(Const AName : String) : string; override;
  3115. //Property setters
  3116. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  3117. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  3118. Public
  3119. Published
  3120. Property href : String Index 0 Read Fhref Write Sethref;
  3121. Property _type : String Index 8 Read F_type Write Set_type;
  3122. end;
  3123. TWebpropertyTypechildLinkClass = Class of TWebpropertyTypechildLink;
  3124. { --------------------------------------------------------------------
  3125. TWebpropertyTypeparentLink
  3126. --------------------------------------------------------------------}
  3127. TWebpropertyTypeparentLink = Class(TGoogleBaseObject)
  3128. Private
  3129. Fhref : String;
  3130. F_type : String;
  3131. Protected
  3132. Class Function ExportPropertyName(Const AName : String) : string; override;
  3133. //Property setters
  3134. Procedure Sethref(AIndex : Integer; const AValue : String); virtual;
  3135. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  3136. Public
  3137. Published
  3138. Property href : String Index 0 Read Fhref Write Sethref;
  3139. Property _type : String Index 8 Read F_type Write Set_type;
  3140. end;
  3141. TWebpropertyTypeparentLinkClass = Class of TWebpropertyTypeparentLink;
  3142. { --------------------------------------------------------------------
  3143. TWebpropertyTypepermissions
  3144. --------------------------------------------------------------------}
  3145. TWebpropertyTypepermissions = Class(TGoogleBaseObject)
  3146. Private
  3147. Feffective : TStringArray;
  3148. Protected
  3149. //Property setters
  3150. Procedure Seteffective(AIndex : Integer; const AValue : TStringArray); virtual;
  3151. //2.6.4. bug workaround
  3152. {$IFDEF VER2_6}
  3153. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  3154. {$ENDIF VER2_6}
  3155. Public
  3156. Published
  3157. Property effective : TStringArray Index 0 Read Feffective Write Seteffective;
  3158. end;
  3159. TWebpropertyTypepermissionsClass = Class of TWebpropertyTypepermissions;
  3160. { --------------------------------------------------------------------
  3161. TWebproperty
  3162. --------------------------------------------------------------------}
  3163. TWebproperty = Class(TGoogleBaseObject)
  3164. Private
  3165. FaccountId : String;
  3166. FchildLink : TWebpropertyTypechildLink;
  3167. Fcreated : TDatetime;
  3168. FdefaultProfileId : String;
  3169. Fid : String;
  3170. FindustryVertical : String;
  3171. FinternalWebPropertyId : String;
  3172. Fkind : String;
  3173. Flevel : String;
  3174. Fname : String;
  3175. FparentLink : TWebpropertyTypeparentLink;
  3176. Fpermissions : TWebpropertyTypepermissions;
  3177. FprofileCount : integer;
  3178. FselfLink : String;
  3179. Fstarred : boolean;
  3180. Fupdated : TDatetime;
  3181. FwebsiteUrl : String;
  3182. Protected
  3183. //Property setters
  3184. Procedure SetaccountId(AIndex : Integer; const AValue : String); virtual;
  3185. Procedure SetchildLink(AIndex : Integer; const AValue : TWebpropertyTypechildLink); virtual;
  3186. Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
  3187. Procedure SetdefaultProfileId(AIndex : Integer; const AValue : String); virtual;
  3188. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  3189. Procedure SetindustryVertical(AIndex : Integer; const AValue : String); virtual;
  3190. Procedure SetinternalWebPropertyId(AIndex : Integer; const AValue : String); virtual;
  3191. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  3192. Procedure Setlevel(AIndex : Integer; const AValue : String); virtual;
  3193. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  3194. Procedure SetparentLink(AIndex : Integer; const AValue : TWebpropertyTypeparentLink); virtual;
  3195. Procedure Setpermissions(AIndex : Integer; const AValue : TWebpropertyTypepermissions); virtual;
  3196. Procedure SetprofileCount(AIndex : Integer; const AValue : integer); virtual;
  3197. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  3198. Procedure Setstarred(AIndex : Integer; const AValue : boolean); virtual;
  3199. Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
  3200. Procedure SetwebsiteUrl(AIndex : Integer; const AValue : String); virtual;
  3201. Public
  3202. Published
  3203. Property accountId : String Index 0 Read FaccountId Write SetaccountId;
  3204. Property childLink : TWebpropertyTypechildLink Index 8 Read FchildLink Write SetchildLink;
  3205. Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
  3206. Property defaultProfileId : String Index 24 Read FdefaultProfileId Write SetdefaultProfileId;
  3207. Property id : String Index 32 Read Fid Write Setid;
  3208. Property industryVertical : String Index 40 Read FindustryVertical Write SetindustryVertical;
  3209. Property internalWebPropertyId : String Index 48 Read FinternalWebPropertyId Write SetinternalWebPropertyId;
  3210. Property kind : String Index 56 Read Fkind Write Setkind;
  3211. Property level : String Index 64 Read Flevel Write Setlevel;
  3212. Property name : String Index 72 Read Fname Write Setname;
  3213. Property parentLink : TWebpropertyTypeparentLink Index 80 Read FparentLink Write SetparentLink;
  3214. Property permissions : TWebpropertyTypepermissions Index 88 Read Fpermissions Write Setpermissions;
  3215. Property profileCount : integer Index 96 Read FprofileCount Write SetprofileCount;
  3216. Property selfLink : String Index 104 Read FselfLink Write SetselfLink;
  3217. Property starred : boolean Index 112 Read Fstarred Write Setstarred;
  3218. Property updated : TDatetime Index 120 Read Fupdated Write Setupdated;
  3219. Property websiteUrl : String Index 128 Read FwebsiteUrl Write SetwebsiteUrl;
  3220. end;
  3221. TWebpropertyClass = Class of TWebproperty;
  3222. { --------------------------------------------------------------------
  3223. TDataGaResource
  3224. --------------------------------------------------------------------}
  3225. //Optional query Options for TDataGaResource, method Get
  3226. TDataGaGetOptions = Record
  3227. dimensions : String;
  3228. enddate : String;
  3229. filters : String;
  3230. ids : String;
  3231. includeemptyrows : boolean;
  3232. maxresults : integer;
  3233. metrics : String;
  3234. output : String;
  3235. samplingLevel : String;
  3236. segment : String;
  3237. sort : String;
  3238. startdate : String;
  3239. startindex : integer;
  3240. end;
  3241. TDataGaResource = Class(TGoogleResource)
  3242. Public
  3243. Class Function ResourceName : String; override;
  3244. Class Function DefaultAPI : TGoogleAPIClass; override;
  3245. Function Get(AQuery : string = '') : TGaData;
  3246. Function Get(AQuery : TDataGagetOptions) : TGaData;
  3247. end;
  3248. { --------------------------------------------------------------------
  3249. TDataMcfResource
  3250. --------------------------------------------------------------------}
  3251. //Optional query Options for TDataMcfResource, method Get
  3252. TDataMcfGetOptions = Record
  3253. dimensions : String;
  3254. enddate : String;
  3255. filters : String;
  3256. ids : String;
  3257. maxresults : integer;
  3258. metrics : String;
  3259. samplingLevel : String;
  3260. sort : String;
  3261. startdate : String;
  3262. startindex : integer;
  3263. end;
  3264. TDataMcfResource = Class(TGoogleResource)
  3265. Public
  3266. Class Function ResourceName : String; override;
  3267. Class Function DefaultAPI : TGoogleAPIClass; override;
  3268. Function Get(AQuery : string = '') : TMcfData;
  3269. Function Get(AQuery : TDataMcfgetOptions) : TMcfData;
  3270. end;
  3271. { --------------------------------------------------------------------
  3272. TDataRealtimeResource
  3273. --------------------------------------------------------------------}
  3274. //Optional query Options for TDataRealtimeResource, method Get
  3275. TDataRealtimeGetOptions = Record
  3276. dimensions : String;
  3277. filters : String;
  3278. ids : String;
  3279. maxresults : integer;
  3280. metrics : String;
  3281. sort : String;
  3282. end;
  3283. TDataRealtimeResource = Class(TGoogleResource)
  3284. Public
  3285. Class Function ResourceName : String; override;
  3286. Class Function DefaultAPI : TGoogleAPIClass; override;
  3287. Function Get(AQuery : string = '') : TRealtimeData;
  3288. Function Get(AQuery : TDataRealtimegetOptions) : TRealtimeData;
  3289. end;
  3290. { --------------------------------------------------------------------
  3291. TDataResource
  3292. --------------------------------------------------------------------}
  3293. TDataResource = Class(TGoogleResource)
  3294. Private
  3295. FGaInstance : TDataGaResource;
  3296. FMcfInstance : TDataMcfResource;
  3297. FRealtimeInstance : TDataRealtimeResource;
  3298. Function GetGaInstance : TDataGaResource;virtual;
  3299. Function GetMcfInstance : TDataMcfResource;virtual;
  3300. Function GetRealtimeInstance : TDataRealtimeResource;virtual;
  3301. Public
  3302. Class Function ResourceName : String; override;
  3303. Class Function DefaultAPI : TGoogleAPIClass; override;
  3304. Function CreateGaResource(AOwner : TComponent) : TDataGaResource;virtual;overload;
  3305. Function CreateGaResource : TDataGaResource;virtual;overload;
  3306. Function CreateMcfResource(AOwner : TComponent) : TDataMcfResource;virtual;overload;
  3307. Function CreateMcfResource : TDataMcfResource;virtual;overload;
  3308. Function CreateRealtimeResource(AOwner : TComponent) : TDataRealtimeResource;virtual;overload;
  3309. Function CreateRealtimeResource : TDataRealtimeResource;virtual;overload;
  3310. Property GaResource : TDataGaResource Read GetGaInstance;
  3311. Property McfResource : TDataMcfResource Read GetMcfInstance;
  3312. Property RealtimeResource : TDataRealtimeResource Read GetRealtimeInstance;
  3313. end;
  3314. { --------------------------------------------------------------------
  3315. TManagementAccountSummariesResource
  3316. --------------------------------------------------------------------}
  3317. //Optional query Options for TManagementAccountSummariesResource, method List
  3318. TManagementAccountSummariesListOptions = Record
  3319. maxresults : integer;
  3320. startindex : integer;
  3321. end;
  3322. TManagementAccountSummariesResource = Class(TGoogleResource)
  3323. Public
  3324. Class Function ResourceName : String; override;
  3325. Class Function DefaultAPI : TGoogleAPIClass; override;
  3326. Function List(AQuery : string = '') : TAccountSummaries;
  3327. Function List(AQuery : TManagementAccountSummarieslistOptions) : TAccountSummaries;
  3328. end;
  3329. { --------------------------------------------------------------------
  3330. TManagementAccountUserLinksResource
  3331. --------------------------------------------------------------------}
  3332. //Optional query Options for TManagementAccountUserLinksResource, method List
  3333. TManagementAccountUserLinksListOptions = Record
  3334. maxresults : integer;
  3335. startindex : integer;
  3336. end;
  3337. TManagementAccountUserLinksResource = Class(TGoogleResource)
  3338. Public
  3339. Class Function ResourceName : String; override;
  3340. Class Function DefaultAPI : TGoogleAPIClass; override;
  3341. Procedure Delete(accountId: string; linkId: string);
  3342. Function Insert(accountId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3343. Function List(accountId: string; AQuery : string = '') : TEntityUserLinks;
  3344. Function List(accountId: string; AQuery : TManagementAccountUserLinkslistOptions) : TEntityUserLinks;
  3345. Function Update(accountId: string; linkId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3346. end;
  3347. { --------------------------------------------------------------------
  3348. TManagementAccountsResource
  3349. --------------------------------------------------------------------}
  3350. //Optional query Options for TManagementAccountsResource, method List
  3351. TManagementAccountsListOptions = Record
  3352. maxresults : integer;
  3353. startindex : integer;
  3354. end;
  3355. TManagementAccountsResource = Class(TGoogleResource)
  3356. Public
  3357. Class Function ResourceName : String; override;
  3358. Class Function DefaultAPI : TGoogleAPIClass; override;
  3359. Function List(AQuery : string = '') : TAccounts;
  3360. Function List(AQuery : TManagementAccountslistOptions) : TAccounts;
  3361. end;
  3362. { --------------------------------------------------------------------
  3363. TManagementCustomDataSourcesResource
  3364. --------------------------------------------------------------------}
  3365. //Optional query Options for TManagementCustomDataSourcesResource, method List
  3366. TManagementCustomDataSourcesListOptions = Record
  3367. maxresults : integer;
  3368. startindex : integer;
  3369. end;
  3370. TManagementCustomDataSourcesResource = Class(TGoogleResource)
  3371. Public
  3372. Class Function ResourceName : String; override;
  3373. Class Function DefaultAPI : TGoogleAPIClass; override;
  3374. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomDataSources;
  3375. Function List(accountId: string; webPropertyId: string; AQuery : TManagementCustomDataSourceslistOptions) : TCustomDataSources;
  3376. end;
  3377. { --------------------------------------------------------------------
  3378. TManagementCustomDimensionsResource
  3379. --------------------------------------------------------------------}
  3380. //Optional query Options for TManagementCustomDimensionsResource, method List
  3381. TManagementCustomDimensionsListOptions = Record
  3382. maxresults : integer;
  3383. startindex : integer;
  3384. end;
  3385. //Optional query Options for TManagementCustomDimensionsResource, method Patch
  3386. TManagementCustomDimensionsPatchOptions = Record
  3387. ignoreCustomDataSourceLinks : boolean;
  3388. end;
  3389. //Optional query Options for TManagementCustomDimensionsResource, method Update
  3390. TManagementCustomDimensionsUpdateOptions = Record
  3391. ignoreCustomDataSourceLinks : boolean;
  3392. end;
  3393. TManagementCustomDimensionsResource = Class(TGoogleResource)
  3394. Public
  3395. Class Function ResourceName : String; override;
  3396. Class Function DefaultAPI : TGoogleAPIClass; override;
  3397. Function Get(accountId: string; customDimensionId: string; webPropertyId: string) : TCustomDimension;
  3398. Function Insert(accountId: string; webPropertyId: string; aCustomDimension : TCustomDimension) : TCustomDimension;
  3399. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomDimensions;
  3400. Function List(accountId: string; webPropertyId: string; AQuery : TManagementCustomDimensionslistOptions) : TCustomDimensions;
  3401. Function Patch(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : string = '') : TCustomDimension;
  3402. Function Patch(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : TManagementCustomDimensionspatchOptions) : TCustomDimension;
  3403. Function Update(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : string = '') : TCustomDimension;
  3404. Function Update(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : TManagementCustomDimensionsupdateOptions) : TCustomDimension;
  3405. end;
  3406. { --------------------------------------------------------------------
  3407. TManagementCustomMetricsResource
  3408. --------------------------------------------------------------------}
  3409. //Optional query Options for TManagementCustomMetricsResource, method List
  3410. TManagementCustomMetricsListOptions = Record
  3411. maxresults : integer;
  3412. startindex : integer;
  3413. end;
  3414. //Optional query Options for TManagementCustomMetricsResource, method Patch
  3415. TManagementCustomMetricsPatchOptions = Record
  3416. ignoreCustomDataSourceLinks : boolean;
  3417. end;
  3418. //Optional query Options for TManagementCustomMetricsResource, method Update
  3419. TManagementCustomMetricsUpdateOptions = Record
  3420. ignoreCustomDataSourceLinks : boolean;
  3421. end;
  3422. TManagementCustomMetricsResource = Class(TGoogleResource)
  3423. Public
  3424. Class Function ResourceName : String; override;
  3425. Class Function DefaultAPI : TGoogleAPIClass; override;
  3426. Function Get(accountId: string; customMetricId: string; webPropertyId: string) : TCustomMetric;
  3427. Function Insert(accountId: string; webPropertyId: string; aCustomMetric : TCustomMetric) : TCustomMetric;
  3428. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomMetrics;
  3429. Function List(accountId: string; webPropertyId: string; AQuery : TManagementCustomMetricslistOptions) : TCustomMetrics;
  3430. Function Patch(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : string = '') : TCustomMetric;
  3431. Function Patch(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : TManagementCustomMetricspatchOptions) : TCustomMetric;
  3432. Function Update(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : string = '') : TCustomMetric;
  3433. Function Update(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : TManagementCustomMetricsupdateOptions) : TCustomMetric;
  3434. end;
  3435. { --------------------------------------------------------------------
  3436. TManagementExperimentsResource
  3437. --------------------------------------------------------------------}
  3438. //Optional query Options for TManagementExperimentsResource, method List
  3439. TManagementExperimentsListOptions = Record
  3440. maxresults : integer;
  3441. startindex : integer;
  3442. end;
  3443. TManagementExperimentsResource = Class(TGoogleResource)
  3444. Public
  3445. Class Function ResourceName : String; override;
  3446. Class Function DefaultAPI : TGoogleAPIClass; override;
  3447. Procedure Delete(accountId: string; experimentId: string; profileId: string; webPropertyId: string);
  3448. Function Get(accountId: string; experimentId: string; profileId: string; webPropertyId: string) : TExperiment;
  3449. Function Insert(accountId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  3450. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TExperiments;
  3451. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementExperimentslistOptions) : TExperiments;
  3452. Function Patch(accountId: string; experimentId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  3453. Function Update(accountId: string; experimentId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  3454. end;
  3455. { --------------------------------------------------------------------
  3456. TManagementFiltersResource
  3457. --------------------------------------------------------------------}
  3458. //Optional query Options for TManagementFiltersResource, method List
  3459. TManagementFiltersListOptions = Record
  3460. maxresults : integer;
  3461. startindex : integer;
  3462. end;
  3463. TManagementFiltersResource = Class(TGoogleResource)
  3464. Public
  3465. Class Function ResourceName : String; override;
  3466. Class Function DefaultAPI : TGoogleAPIClass; override;
  3467. Function Delete(accountId: string; filterId: string) : TFilter;
  3468. Function Get(accountId: string; filterId: string) : TFilter;
  3469. Function Insert(accountId: string; aFilter : TFilter) : TFilter;
  3470. Function List(accountId: string; AQuery : string = '') : TFilters;
  3471. Function List(accountId: string; AQuery : TManagementFilterslistOptions) : TFilters;
  3472. Function Patch(accountId: string; filterId: string; aFilter : TFilter) : TFilter;
  3473. Function Update(accountId: string; filterId: string; aFilter : TFilter) : TFilter;
  3474. end;
  3475. { --------------------------------------------------------------------
  3476. TManagementGoalsResource
  3477. --------------------------------------------------------------------}
  3478. //Optional query Options for TManagementGoalsResource, method List
  3479. TManagementGoalsListOptions = Record
  3480. maxresults : integer;
  3481. startindex : integer;
  3482. end;
  3483. TManagementGoalsResource = Class(TGoogleResource)
  3484. Public
  3485. Class Function ResourceName : String; override;
  3486. Class Function DefaultAPI : TGoogleAPIClass; override;
  3487. Function Get(accountId: string; goalId: string; profileId: string; webPropertyId: string) : TGoal;
  3488. Function Insert(accountId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  3489. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TGoals;
  3490. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementGoalslistOptions) : TGoals;
  3491. Function Patch(accountId: string; goalId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  3492. Function Update(accountId: string; goalId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  3493. end;
  3494. { --------------------------------------------------------------------
  3495. TManagementProfileFilterLinksResource
  3496. --------------------------------------------------------------------}
  3497. //Optional query Options for TManagementProfileFilterLinksResource, method List
  3498. TManagementProfileFilterLinksListOptions = Record
  3499. maxresults : integer;
  3500. startindex : integer;
  3501. end;
  3502. TManagementProfileFilterLinksResource = Class(TGoogleResource)
  3503. Public
  3504. Class Function ResourceName : String; override;
  3505. Class Function DefaultAPI : TGoogleAPIClass; override;
  3506. Procedure Delete(accountId: string; linkId: string; profileId: string; webPropertyId: string);
  3507. Function Get(accountId: string; linkId: string; profileId: string; webPropertyId: string) : TProfileFilterLink;
  3508. Function Insert(accountId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  3509. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TProfileFilterLinks;
  3510. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementProfileFilterLinkslistOptions) : TProfileFilterLinks;
  3511. Function Patch(accountId: string; linkId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  3512. Function Update(accountId: string; linkId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  3513. end;
  3514. { --------------------------------------------------------------------
  3515. TManagementProfileUserLinksResource
  3516. --------------------------------------------------------------------}
  3517. //Optional query Options for TManagementProfileUserLinksResource, method List
  3518. TManagementProfileUserLinksListOptions = Record
  3519. maxresults : integer;
  3520. startindex : integer;
  3521. end;
  3522. TManagementProfileUserLinksResource = Class(TGoogleResource)
  3523. Public
  3524. Class Function ResourceName : String; override;
  3525. Class Function DefaultAPI : TGoogleAPIClass; override;
  3526. Procedure Delete(accountId: string; linkId: string; profileId: string; webPropertyId: string);
  3527. Function Insert(accountId: string; profileId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3528. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TEntityUserLinks;
  3529. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementProfileUserLinkslistOptions) : TEntityUserLinks;
  3530. Function Update(accountId: string; linkId: string; profileId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3531. end;
  3532. { --------------------------------------------------------------------
  3533. TManagementProfilesResource
  3534. --------------------------------------------------------------------}
  3535. //Optional query Options for TManagementProfilesResource, method List
  3536. TManagementProfilesListOptions = Record
  3537. maxresults : integer;
  3538. startindex : integer;
  3539. end;
  3540. TManagementProfilesResource = Class(TGoogleResource)
  3541. Public
  3542. Class Function ResourceName : String; override;
  3543. Class Function DefaultAPI : TGoogleAPIClass; override;
  3544. Procedure Delete(accountId: string; profileId: string; webPropertyId: string);
  3545. Function Get(accountId: string; profileId: string; webPropertyId: string) : TProfile;
  3546. Function Insert(accountId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  3547. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TProfiles;
  3548. Function List(accountId: string; webPropertyId: string; AQuery : TManagementProfileslistOptions) : TProfiles;
  3549. Function Patch(accountId: string; profileId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  3550. Function Update(accountId: string; profileId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  3551. end;
  3552. { --------------------------------------------------------------------
  3553. TManagementSegmentsResource
  3554. --------------------------------------------------------------------}
  3555. //Optional query Options for TManagementSegmentsResource, method List
  3556. TManagementSegmentsListOptions = Record
  3557. maxresults : integer;
  3558. startindex : integer;
  3559. end;
  3560. TManagementSegmentsResource = Class(TGoogleResource)
  3561. Public
  3562. Class Function ResourceName : String; override;
  3563. Class Function DefaultAPI : TGoogleAPIClass; override;
  3564. Function List(AQuery : string = '') : TSegments;
  3565. Function List(AQuery : TManagementSegmentslistOptions) : TSegments;
  3566. end;
  3567. { --------------------------------------------------------------------
  3568. TManagementUnsampledReportsResource
  3569. --------------------------------------------------------------------}
  3570. //Optional query Options for TManagementUnsampledReportsResource, method List
  3571. TManagementUnsampledReportsListOptions = Record
  3572. maxresults : integer;
  3573. startindex : integer;
  3574. end;
  3575. TManagementUnsampledReportsResource = Class(TGoogleResource)
  3576. Public
  3577. Class Function ResourceName : String; override;
  3578. Class Function DefaultAPI : TGoogleAPIClass; override;
  3579. Procedure Delete(accountId: string; profileId: string; unsampledReportId: string; webPropertyId: string);
  3580. Function Get(accountId: string; profileId: string; unsampledReportId: string; webPropertyId: string) : TUnsampledReport;
  3581. Function Insert(accountId: string; profileId: string; webPropertyId: string; aUnsampledReport : TUnsampledReport) : TUnsampledReport;
  3582. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TUnsampledReports;
  3583. Function List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementUnsampledReportslistOptions) : TUnsampledReports;
  3584. end;
  3585. { --------------------------------------------------------------------
  3586. TManagementUploadsResource
  3587. --------------------------------------------------------------------}
  3588. //Optional query Options for TManagementUploadsResource, method List
  3589. TManagementUploadsListOptions = Record
  3590. maxresults : integer;
  3591. startindex : integer;
  3592. end;
  3593. TManagementUploadsResource = Class(TGoogleResource)
  3594. Public
  3595. Class Function ResourceName : String; override;
  3596. Class Function DefaultAPI : TGoogleAPIClass; override;
  3597. Procedure DeleteUploadData(accountId: string; customDataSourceId: string; webPropertyId: string; aAnalyticsDataimportDeleteUploadDataRequest : TAnalyticsDataimportDeleteUploadDataRequest);
  3598. Function Get(accountId: string; customDataSourceId: string; uploadId: string; webPropertyId: string) : TUpload;
  3599. Function List(accountId: string; customDataSourceId: string; webPropertyId: string; AQuery : string = '') : TUploads;
  3600. Function List(accountId: string; customDataSourceId: string; webPropertyId: string; AQuery : TManagementUploadslistOptions) : TUploads;
  3601. Function UploadData(accountId: string; customDataSourceId: string; webPropertyId: string) : TUpload;
  3602. end;
  3603. { --------------------------------------------------------------------
  3604. TManagementWebPropertyAdWordsLinksResource
  3605. --------------------------------------------------------------------}
  3606. //Optional query Options for TManagementWebPropertyAdWordsLinksResource, method List
  3607. TManagementWebPropertyAdWordsLinksListOptions = Record
  3608. maxresults : integer;
  3609. startindex : integer;
  3610. end;
  3611. TManagementWebPropertyAdWordsLinksResource = Class(TGoogleResource)
  3612. Public
  3613. Class Function ResourceName : String; override;
  3614. Class Function DefaultAPI : TGoogleAPIClass; override;
  3615. Procedure Delete(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string);
  3616. Function Get(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string) : TEntityAdWordsLink;
  3617. Function Insert(accountId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  3618. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TEntityAdWordsLinks;
  3619. Function List(accountId: string; webPropertyId: string; AQuery : TManagementWebPropertyAdWordsLinkslistOptions) : TEntityAdWordsLinks;
  3620. Function Patch(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  3621. Function Update(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  3622. end;
  3623. { --------------------------------------------------------------------
  3624. TManagementWebpropertiesResource
  3625. --------------------------------------------------------------------}
  3626. //Optional query Options for TManagementWebpropertiesResource, method List
  3627. TManagementWebpropertiesListOptions = Record
  3628. maxresults : integer;
  3629. startindex : integer;
  3630. end;
  3631. TManagementWebpropertiesResource = Class(TGoogleResource)
  3632. Public
  3633. Class Function ResourceName : String; override;
  3634. Class Function DefaultAPI : TGoogleAPIClass; override;
  3635. Function Get(accountId: string; webPropertyId: string) : TWebproperty;
  3636. Function Insert(accountId: string; aWebproperty : TWebproperty) : TWebproperty;
  3637. Function List(accountId: string; AQuery : string = '') : TWebproperties;
  3638. Function List(accountId: string; AQuery : TManagementWebpropertieslistOptions) : TWebproperties;
  3639. Function Patch(accountId: string; webPropertyId: string; aWebproperty : TWebproperty) : TWebproperty;
  3640. Function Update(accountId: string; webPropertyId: string; aWebproperty : TWebproperty) : TWebproperty;
  3641. end;
  3642. { --------------------------------------------------------------------
  3643. TManagementWebpropertyUserLinksResource
  3644. --------------------------------------------------------------------}
  3645. //Optional query Options for TManagementWebpropertyUserLinksResource, method List
  3646. TManagementWebpropertyUserLinksListOptions = Record
  3647. maxresults : integer;
  3648. startindex : integer;
  3649. end;
  3650. TManagementWebpropertyUserLinksResource = Class(TGoogleResource)
  3651. Public
  3652. Class Function ResourceName : String; override;
  3653. Class Function DefaultAPI : TGoogleAPIClass; override;
  3654. Procedure Delete(accountId: string; linkId: string; webPropertyId: string);
  3655. Function Insert(accountId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3656. Function List(accountId: string; webPropertyId: string; AQuery : string = '') : TEntityUserLinks;
  3657. Function List(accountId: string; webPropertyId: string; AQuery : TManagementWebpropertyUserLinkslistOptions) : TEntityUserLinks;
  3658. Function Update(accountId: string; linkId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  3659. end;
  3660. { --------------------------------------------------------------------
  3661. TManagementResource
  3662. --------------------------------------------------------------------}
  3663. TManagementResource = Class(TGoogleResource)
  3664. Private
  3665. FAccountSummariesInstance : TManagementAccountSummariesResource;
  3666. FAccountUserLinksInstance : TManagementAccountUserLinksResource;
  3667. FAccountsInstance : TManagementAccountsResource;
  3668. FCustomDataSourcesInstance : TManagementCustomDataSourcesResource;
  3669. FCustomDimensionsInstance : TManagementCustomDimensionsResource;
  3670. FCustomMetricsInstance : TManagementCustomMetricsResource;
  3671. FExperimentsInstance : TManagementExperimentsResource;
  3672. FFiltersInstance : TManagementFiltersResource;
  3673. FGoalsInstance : TManagementGoalsResource;
  3674. FProfileFilterLinksInstance : TManagementProfileFilterLinksResource;
  3675. FProfileUserLinksInstance : TManagementProfileUserLinksResource;
  3676. FProfilesInstance : TManagementProfilesResource;
  3677. FSegmentsInstance : TManagementSegmentsResource;
  3678. FUnsampledReportsInstance : TManagementUnsampledReportsResource;
  3679. FUploadsInstance : TManagementUploadsResource;
  3680. FWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;
  3681. FWebpropertiesInstance : TManagementWebpropertiesResource;
  3682. FWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;
  3683. Function GetAccountSummariesInstance : TManagementAccountSummariesResource;virtual;
  3684. Function GetAccountUserLinksInstance : TManagementAccountUserLinksResource;virtual;
  3685. Function GetAccountsInstance : TManagementAccountsResource;virtual;
  3686. Function GetCustomDataSourcesInstance : TManagementCustomDataSourcesResource;virtual;
  3687. Function GetCustomDimensionsInstance : TManagementCustomDimensionsResource;virtual;
  3688. Function GetCustomMetricsInstance : TManagementCustomMetricsResource;virtual;
  3689. Function GetExperimentsInstance : TManagementExperimentsResource;virtual;
  3690. Function GetFiltersInstance : TManagementFiltersResource;virtual;
  3691. Function GetGoalsInstance : TManagementGoalsResource;virtual;
  3692. Function GetProfileFilterLinksInstance : TManagementProfileFilterLinksResource;virtual;
  3693. Function GetProfileUserLinksInstance : TManagementProfileUserLinksResource;virtual;
  3694. Function GetProfilesInstance : TManagementProfilesResource;virtual;
  3695. Function GetSegmentsInstance : TManagementSegmentsResource;virtual;
  3696. Function GetUnsampledReportsInstance : TManagementUnsampledReportsResource;virtual;
  3697. Function GetUploadsInstance : TManagementUploadsResource;virtual;
  3698. Function GetWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;virtual;
  3699. Function GetWebpropertiesInstance : TManagementWebpropertiesResource;virtual;
  3700. Function GetWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;virtual;
  3701. Public
  3702. Class Function ResourceName : String; override;
  3703. Class Function DefaultAPI : TGoogleAPIClass; override;
  3704. Function CreateAccountSummariesResource(AOwner : TComponent) : TManagementAccountSummariesResource;virtual;overload;
  3705. Function CreateAccountSummariesResource : TManagementAccountSummariesResource;virtual;overload;
  3706. Function CreateAccountUserLinksResource(AOwner : TComponent) : TManagementAccountUserLinksResource;virtual;overload;
  3707. Function CreateAccountUserLinksResource : TManagementAccountUserLinksResource;virtual;overload;
  3708. Function CreateAccountsResource(AOwner : TComponent) : TManagementAccountsResource;virtual;overload;
  3709. Function CreateAccountsResource : TManagementAccountsResource;virtual;overload;
  3710. Function CreateCustomDataSourcesResource(AOwner : TComponent) : TManagementCustomDataSourcesResource;virtual;overload;
  3711. Function CreateCustomDataSourcesResource : TManagementCustomDataSourcesResource;virtual;overload;
  3712. Function CreateCustomDimensionsResource(AOwner : TComponent) : TManagementCustomDimensionsResource;virtual;overload;
  3713. Function CreateCustomDimensionsResource : TManagementCustomDimensionsResource;virtual;overload;
  3714. Function CreateCustomMetricsResource(AOwner : TComponent) : TManagementCustomMetricsResource;virtual;overload;
  3715. Function CreateCustomMetricsResource : TManagementCustomMetricsResource;virtual;overload;
  3716. Function CreateExperimentsResource(AOwner : TComponent) : TManagementExperimentsResource;virtual;overload;
  3717. Function CreateExperimentsResource : TManagementExperimentsResource;virtual;overload;
  3718. Function CreateFiltersResource(AOwner : TComponent) : TManagementFiltersResource;virtual;overload;
  3719. Function CreateFiltersResource : TManagementFiltersResource;virtual;overload;
  3720. Function CreateGoalsResource(AOwner : TComponent) : TManagementGoalsResource;virtual;overload;
  3721. Function CreateGoalsResource : TManagementGoalsResource;virtual;overload;
  3722. Function CreateProfileFilterLinksResource(AOwner : TComponent) : TManagementProfileFilterLinksResource;virtual;overload;
  3723. Function CreateProfileFilterLinksResource : TManagementProfileFilterLinksResource;virtual;overload;
  3724. Function CreateProfileUserLinksResource(AOwner : TComponent) : TManagementProfileUserLinksResource;virtual;overload;
  3725. Function CreateProfileUserLinksResource : TManagementProfileUserLinksResource;virtual;overload;
  3726. Function CreateProfilesResource(AOwner : TComponent) : TManagementProfilesResource;virtual;overload;
  3727. Function CreateProfilesResource : TManagementProfilesResource;virtual;overload;
  3728. Function CreateSegmentsResource(AOwner : TComponent) : TManagementSegmentsResource;virtual;overload;
  3729. Function CreateSegmentsResource : TManagementSegmentsResource;virtual;overload;
  3730. Function CreateUnsampledReportsResource(AOwner : TComponent) : TManagementUnsampledReportsResource;virtual;overload;
  3731. Function CreateUnsampledReportsResource : TManagementUnsampledReportsResource;virtual;overload;
  3732. Function CreateUploadsResource(AOwner : TComponent) : TManagementUploadsResource;virtual;overload;
  3733. Function CreateUploadsResource : TManagementUploadsResource;virtual;overload;
  3734. Function CreateWebPropertyAdWordsLinksResource(AOwner : TComponent) : TManagementWebPropertyAdWordsLinksResource;virtual;overload;
  3735. Function CreateWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource;virtual;overload;
  3736. Function CreateWebpropertiesResource(AOwner : TComponent) : TManagementWebpropertiesResource;virtual;overload;
  3737. Function CreateWebpropertiesResource : TManagementWebpropertiesResource;virtual;overload;
  3738. Function CreateWebpropertyUserLinksResource(AOwner : TComponent) : TManagementWebpropertyUserLinksResource;virtual;overload;
  3739. Function CreateWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource;virtual;overload;
  3740. Property AccountSummariesResource : TManagementAccountSummariesResource Read GetAccountSummariesInstance;
  3741. Property AccountUserLinksResource : TManagementAccountUserLinksResource Read GetAccountUserLinksInstance;
  3742. Property AccountsResource : TManagementAccountsResource Read GetAccountsInstance;
  3743. Property CustomDataSourcesResource : TManagementCustomDataSourcesResource Read GetCustomDataSourcesInstance;
  3744. Property CustomDimensionsResource : TManagementCustomDimensionsResource Read GetCustomDimensionsInstance;
  3745. Property CustomMetricsResource : TManagementCustomMetricsResource Read GetCustomMetricsInstance;
  3746. Property ExperimentsResource : TManagementExperimentsResource Read GetExperimentsInstance;
  3747. Property FiltersResource : TManagementFiltersResource Read GetFiltersInstance;
  3748. Property GoalsResource : TManagementGoalsResource Read GetGoalsInstance;
  3749. Property ProfileFilterLinksResource : TManagementProfileFilterLinksResource Read GetProfileFilterLinksInstance;
  3750. Property ProfileUserLinksResource : TManagementProfileUserLinksResource Read GetProfileUserLinksInstance;
  3751. Property ProfilesResource : TManagementProfilesResource Read GetProfilesInstance;
  3752. Property SegmentsResource : TManagementSegmentsResource Read GetSegmentsInstance;
  3753. Property UnsampledReportsResource : TManagementUnsampledReportsResource Read GetUnsampledReportsInstance;
  3754. Property UploadsResource : TManagementUploadsResource Read GetUploadsInstance;
  3755. Property WebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource Read GetWebPropertyAdWordsLinksInstance;
  3756. Property WebpropertiesResource : TManagementWebpropertiesResource Read GetWebpropertiesInstance;
  3757. Property WebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource Read GetWebpropertyUserLinksInstance;
  3758. end;
  3759. { --------------------------------------------------------------------
  3760. TMetadataColumnsResource
  3761. --------------------------------------------------------------------}
  3762. TMetadataColumnsResource = Class(TGoogleResource)
  3763. Public
  3764. Class Function ResourceName : String; override;
  3765. Class Function DefaultAPI : TGoogleAPIClass; override;
  3766. Function List(reportType: string) : TColumns;
  3767. end;
  3768. { --------------------------------------------------------------------
  3769. TMetadataResource
  3770. --------------------------------------------------------------------}
  3771. TMetadataResource = Class(TGoogleResource)
  3772. Private
  3773. FColumnsInstance : TMetadataColumnsResource;
  3774. Function GetColumnsInstance : TMetadataColumnsResource;virtual;
  3775. Public
  3776. Class Function ResourceName : String; override;
  3777. Class Function DefaultAPI : TGoogleAPIClass; override;
  3778. Function CreateColumnsResource(AOwner : TComponent) : TMetadataColumnsResource;virtual;overload;
  3779. Function CreateColumnsResource : TMetadataColumnsResource;virtual;overload;
  3780. Property ColumnsResource : TMetadataColumnsResource Read GetColumnsInstance;
  3781. end;
  3782. { --------------------------------------------------------------------
  3783. TProvisioningResource
  3784. --------------------------------------------------------------------}
  3785. TProvisioningResource = Class(TGoogleResource)
  3786. Public
  3787. Class Function ResourceName : String; override;
  3788. Class Function DefaultAPI : TGoogleAPIClass; override;
  3789. Function CreateAccountTicket(aAccountTicket : TAccountTicket) : TAccountTicket;
  3790. end;
  3791. { --------------------------------------------------------------------
  3792. TAnalyticsAPI
  3793. --------------------------------------------------------------------}
  3794. TAnalyticsAPI = Class(TGoogleAPI)
  3795. Private
  3796. FDataGaInstance : TDataGaResource;
  3797. FDataMcfInstance : TDataMcfResource;
  3798. FDataRealtimeInstance : TDataRealtimeResource;
  3799. FDataInstance : TDataResource;
  3800. FManagementAccountSummariesInstance : TManagementAccountSummariesResource;
  3801. FManagementAccountUserLinksInstance : TManagementAccountUserLinksResource;
  3802. FManagementAccountsInstance : TManagementAccountsResource;
  3803. FManagementCustomDataSourcesInstance : TManagementCustomDataSourcesResource;
  3804. FManagementCustomDimensionsInstance : TManagementCustomDimensionsResource;
  3805. FManagementCustomMetricsInstance : TManagementCustomMetricsResource;
  3806. FManagementExperimentsInstance : TManagementExperimentsResource;
  3807. FManagementFiltersInstance : TManagementFiltersResource;
  3808. FManagementGoalsInstance : TManagementGoalsResource;
  3809. FManagementProfileFilterLinksInstance : TManagementProfileFilterLinksResource;
  3810. FManagementProfileUserLinksInstance : TManagementProfileUserLinksResource;
  3811. FManagementProfilesInstance : TManagementProfilesResource;
  3812. FManagementSegmentsInstance : TManagementSegmentsResource;
  3813. FManagementUnsampledReportsInstance : TManagementUnsampledReportsResource;
  3814. FManagementUploadsInstance : TManagementUploadsResource;
  3815. FManagementWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;
  3816. FManagementWebpropertiesInstance : TManagementWebpropertiesResource;
  3817. FManagementWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;
  3818. FManagementInstance : TManagementResource;
  3819. FMetadataColumnsInstance : TMetadataColumnsResource;
  3820. FMetadataInstance : TMetadataResource;
  3821. FProvisioningInstance : TProvisioningResource;
  3822. Function GetDataGaInstance : TDataGaResource;virtual;
  3823. Function GetDataMcfInstance : TDataMcfResource;virtual;
  3824. Function GetDataRealtimeInstance : TDataRealtimeResource;virtual;
  3825. Function GetDataInstance : TDataResource;virtual;
  3826. Function GetManagementAccountSummariesInstance : TManagementAccountSummariesResource;virtual;
  3827. Function GetManagementAccountUserLinksInstance : TManagementAccountUserLinksResource;virtual;
  3828. Function GetManagementAccountsInstance : TManagementAccountsResource;virtual;
  3829. Function GetManagementCustomDataSourcesInstance : TManagementCustomDataSourcesResource;virtual;
  3830. Function GetManagementCustomDimensionsInstance : TManagementCustomDimensionsResource;virtual;
  3831. Function GetManagementCustomMetricsInstance : TManagementCustomMetricsResource;virtual;
  3832. Function GetManagementExperimentsInstance : TManagementExperimentsResource;virtual;
  3833. Function GetManagementFiltersInstance : TManagementFiltersResource;virtual;
  3834. Function GetManagementGoalsInstance : TManagementGoalsResource;virtual;
  3835. Function GetManagementProfileFilterLinksInstance : TManagementProfileFilterLinksResource;virtual;
  3836. Function GetManagementProfileUserLinksInstance : TManagementProfileUserLinksResource;virtual;
  3837. Function GetManagementProfilesInstance : TManagementProfilesResource;virtual;
  3838. Function GetManagementSegmentsInstance : TManagementSegmentsResource;virtual;
  3839. Function GetManagementUnsampledReportsInstance : TManagementUnsampledReportsResource;virtual;
  3840. Function GetManagementUploadsInstance : TManagementUploadsResource;virtual;
  3841. Function GetManagementWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;virtual;
  3842. Function GetManagementWebpropertiesInstance : TManagementWebpropertiesResource;virtual;
  3843. Function GetManagementWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;virtual;
  3844. Function GetManagementInstance : TManagementResource;virtual;
  3845. Function GetMetadataColumnsInstance : TMetadataColumnsResource;virtual;
  3846. Function GetMetadataInstance : TMetadataResource;virtual;
  3847. Function GetProvisioningInstance : TProvisioningResource;virtual;
  3848. Public
  3849. //Override class functions with API info
  3850. Class Function APIName : String; override;
  3851. Class Function APIVersion : String; override;
  3852. Class Function APIRevision : String; override;
  3853. Class Function APIID : String; override;
  3854. Class Function APITitle : String; override;
  3855. Class Function APIDescription : String; override;
  3856. Class Function APIOwnerDomain : String; override;
  3857. Class Function APIOwnerName : String; override;
  3858. Class Function APIIcon16 : String; override;
  3859. Class Function APIIcon32 : String; override;
  3860. Class Function APIdocumentationLink : String; override;
  3861. Class Function APIrootUrl : string; override;
  3862. Class Function APIbasePath : string;override;
  3863. Class Function APIbaseURL : String;override;
  3864. Class Function APIProtocol : string;override;
  3865. Class Function APIservicePath : string;override;
  3866. Class Function APIbatchPath : String;override;
  3867. Class Function APIAuthScopes : TScopeInfoArray;override;
  3868. Class Function APINeedsAuth : Boolean;override;
  3869. Class Procedure RegisterAPIResources; override;
  3870. //Add create function for resources
  3871. Function CreateDataGaResource(AOwner : TComponent) : TDataGaResource;virtual;overload;
  3872. Function CreateDataGaResource : TDataGaResource;virtual;overload;
  3873. Function CreateDataMcfResource(AOwner : TComponent) : TDataMcfResource;virtual;overload;
  3874. Function CreateDataMcfResource : TDataMcfResource;virtual;overload;
  3875. Function CreateDataRealtimeResource(AOwner : TComponent) : TDataRealtimeResource;virtual;overload;
  3876. Function CreateDataRealtimeResource : TDataRealtimeResource;virtual;overload;
  3877. Function CreateDataResource(AOwner : TComponent) : TDataResource;virtual;overload;
  3878. Function CreateDataResource : TDataResource;virtual;overload;
  3879. Function CreateManagementAccountSummariesResource(AOwner : TComponent) : TManagementAccountSummariesResource;virtual;overload;
  3880. Function CreateManagementAccountSummariesResource : TManagementAccountSummariesResource;virtual;overload;
  3881. Function CreateManagementAccountUserLinksResource(AOwner : TComponent) : TManagementAccountUserLinksResource;virtual;overload;
  3882. Function CreateManagementAccountUserLinksResource : TManagementAccountUserLinksResource;virtual;overload;
  3883. Function CreateManagementAccountsResource(AOwner : TComponent) : TManagementAccountsResource;virtual;overload;
  3884. Function CreateManagementAccountsResource : TManagementAccountsResource;virtual;overload;
  3885. Function CreateManagementCustomDataSourcesResource(AOwner : TComponent) : TManagementCustomDataSourcesResource;virtual;overload;
  3886. Function CreateManagementCustomDataSourcesResource : TManagementCustomDataSourcesResource;virtual;overload;
  3887. Function CreateManagementCustomDimensionsResource(AOwner : TComponent) : TManagementCustomDimensionsResource;virtual;overload;
  3888. Function CreateManagementCustomDimensionsResource : TManagementCustomDimensionsResource;virtual;overload;
  3889. Function CreateManagementCustomMetricsResource(AOwner : TComponent) : TManagementCustomMetricsResource;virtual;overload;
  3890. Function CreateManagementCustomMetricsResource : TManagementCustomMetricsResource;virtual;overload;
  3891. Function CreateManagementExperimentsResource(AOwner : TComponent) : TManagementExperimentsResource;virtual;overload;
  3892. Function CreateManagementExperimentsResource : TManagementExperimentsResource;virtual;overload;
  3893. Function CreateManagementFiltersResource(AOwner : TComponent) : TManagementFiltersResource;virtual;overload;
  3894. Function CreateManagementFiltersResource : TManagementFiltersResource;virtual;overload;
  3895. Function CreateManagementGoalsResource(AOwner : TComponent) : TManagementGoalsResource;virtual;overload;
  3896. Function CreateManagementGoalsResource : TManagementGoalsResource;virtual;overload;
  3897. Function CreateManagementProfileFilterLinksResource(AOwner : TComponent) : TManagementProfileFilterLinksResource;virtual;overload;
  3898. Function CreateManagementProfileFilterLinksResource : TManagementProfileFilterLinksResource;virtual;overload;
  3899. Function CreateManagementProfileUserLinksResource(AOwner : TComponent) : TManagementProfileUserLinksResource;virtual;overload;
  3900. Function CreateManagementProfileUserLinksResource : TManagementProfileUserLinksResource;virtual;overload;
  3901. Function CreateManagementProfilesResource(AOwner : TComponent) : TManagementProfilesResource;virtual;overload;
  3902. Function CreateManagementProfilesResource : TManagementProfilesResource;virtual;overload;
  3903. Function CreateManagementSegmentsResource(AOwner : TComponent) : TManagementSegmentsResource;virtual;overload;
  3904. Function CreateManagementSegmentsResource : TManagementSegmentsResource;virtual;overload;
  3905. Function CreateManagementUnsampledReportsResource(AOwner : TComponent) : TManagementUnsampledReportsResource;virtual;overload;
  3906. Function CreateManagementUnsampledReportsResource : TManagementUnsampledReportsResource;virtual;overload;
  3907. Function CreateManagementUploadsResource(AOwner : TComponent) : TManagementUploadsResource;virtual;overload;
  3908. Function CreateManagementUploadsResource : TManagementUploadsResource;virtual;overload;
  3909. Function CreateManagementWebPropertyAdWordsLinksResource(AOwner : TComponent) : TManagementWebPropertyAdWordsLinksResource;virtual;overload;
  3910. Function CreateManagementWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource;virtual;overload;
  3911. Function CreateManagementWebpropertiesResource(AOwner : TComponent) : TManagementWebpropertiesResource;virtual;overload;
  3912. Function CreateManagementWebpropertiesResource : TManagementWebpropertiesResource;virtual;overload;
  3913. Function CreateManagementWebpropertyUserLinksResource(AOwner : TComponent) : TManagementWebpropertyUserLinksResource;virtual;overload;
  3914. Function CreateManagementWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource;virtual;overload;
  3915. Function CreateManagementResource(AOwner : TComponent) : TManagementResource;virtual;overload;
  3916. Function CreateManagementResource : TManagementResource;virtual;overload;
  3917. Function CreateMetadataColumnsResource(AOwner : TComponent) : TMetadataColumnsResource;virtual;overload;
  3918. Function CreateMetadataColumnsResource : TMetadataColumnsResource;virtual;overload;
  3919. Function CreateMetadataResource(AOwner : TComponent) : TMetadataResource;virtual;overload;
  3920. Function CreateMetadataResource : TMetadataResource;virtual;overload;
  3921. Function CreateProvisioningResource(AOwner : TComponent) : TProvisioningResource;virtual;overload;
  3922. Function CreateProvisioningResource : TProvisioningResource;virtual;overload;
  3923. //Add default on-demand instances for resources
  3924. Property DataGaResource : TDataGaResource Read GetDataGaInstance;
  3925. Property DataMcfResource : TDataMcfResource Read GetDataMcfInstance;
  3926. Property DataRealtimeResource : TDataRealtimeResource Read GetDataRealtimeInstance;
  3927. Property DataResource : TDataResource Read GetDataInstance;
  3928. Property ManagementAccountSummariesResource : TManagementAccountSummariesResource Read GetManagementAccountSummariesInstance;
  3929. Property ManagementAccountUserLinksResource : TManagementAccountUserLinksResource Read GetManagementAccountUserLinksInstance;
  3930. Property ManagementAccountsResource : TManagementAccountsResource Read GetManagementAccountsInstance;
  3931. Property ManagementCustomDataSourcesResource : TManagementCustomDataSourcesResource Read GetManagementCustomDataSourcesInstance;
  3932. Property ManagementCustomDimensionsResource : TManagementCustomDimensionsResource Read GetManagementCustomDimensionsInstance;
  3933. Property ManagementCustomMetricsResource : TManagementCustomMetricsResource Read GetManagementCustomMetricsInstance;
  3934. Property ManagementExperimentsResource : TManagementExperimentsResource Read GetManagementExperimentsInstance;
  3935. Property ManagementFiltersResource : TManagementFiltersResource Read GetManagementFiltersInstance;
  3936. Property ManagementGoalsResource : TManagementGoalsResource Read GetManagementGoalsInstance;
  3937. Property ManagementProfileFilterLinksResource : TManagementProfileFilterLinksResource Read GetManagementProfileFilterLinksInstance;
  3938. Property ManagementProfileUserLinksResource : TManagementProfileUserLinksResource Read GetManagementProfileUserLinksInstance;
  3939. Property ManagementProfilesResource : TManagementProfilesResource Read GetManagementProfilesInstance;
  3940. Property ManagementSegmentsResource : TManagementSegmentsResource Read GetManagementSegmentsInstance;
  3941. Property ManagementUnsampledReportsResource : TManagementUnsampledReportsResource Read GetManagementUnsampledReportsInstance;
  3942. Property ManagementUploadsResource : TManagementUploadsResource Read GetManagementUploadsInstance;
  3943. Property ManagementWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource Read GetManagementWebPropertyAdWordsLinksInstance;
  3944. Property ManagementWebpropertiesResource : TManagementWebpropertiesResource Read GetManagementWebpropertiesInstance;
  3945. Property ManagementWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource Read GetManagementWebpropertyUserLinksInstance;
  3946. Property ManagementResource : TManagementResource Read GetManagementInstance;
  3947. Property MetadataColumnsResource : TMetadataColumnsResource Read GetMetadataColumnsInstance;
  3948. Property MetadataResource : TMetadataResource Read GetMetadataInstance;
  3949. Property ProvisioningResource : TProvisioningResource Read GetProvisioningInstance;
  3950. end;
  3951. implementation
  3952. { --------------------------------------------------------------------
  3953. TAccountTypechildLink
  3954. --------------------------------------------------------------------}
  3955. Procedure TAccountTypechildLink.Sethref(AIndex : Integer; const AValue : String);
  3956. begin
  3957. If (Fhref=AValue) then exit;
  3958. Fhref:=AValue;
  3959. MarkPropertyChanged(AIndex);
  3960. end;
  3961. Procedure TAccountTypechildLink.Set_type(AIndex : Integer; const AValue : String);
  3962. begin
  3963. If (F_type=AValue) then exit;
  3964. F_type:=AValue;
  3965. MarkPropertyChanged(AIndex);
  3966. end;
  3967. Class Function TAccountTypechildLink.ExportPropertyName(Const AName : String) :String;
  3968. begin
  3969. Case AName of
  3970. '_type' : Result:='type';
  3971. else
  3972. Result:=Inherited ExportPropertyName(AName);
  3973. end;
  3974. end;
  3975. { --------------------------------------------------------------------
  3976. TAccountTypepermissions
  3977. --------------------------------------------------------------------}
  3978. Procedure TAccountTypepermissions.Seteffective(AIndex : Integer; const AValue : TStringArray);
  3979. begin
  3980. If (Feffective=AValue) then exit;
  3981. Feffective:=AValue;
  3982. MarkPropertyChanged(AIndex);
  3983. end;
  3984. //2.6.4. bug workaround
  3985. {$IFDEF VER2_6}
  3986. Procedure TAccountTypepermissions.SetArrayLength(Const AName : String; ALength : Longint);
  3987. begin
  3988. Case AName of
  3989. 'effective' : SetLength(Feffective,ALength);
  3990. else
  3991. Inherited SetArrayLength(AName,ALength);
  3992. end;
  3993. end;
  3994. {$ENDIF VER2_6}
  3995. { --------------------------------------------------------------------
  3996. TAccount
  3997. --------------------------------------------------------------------}
  3998. Procedure TAccount.SetchildLink(AIndex : Integer; const AValue : TAccountTypechildLink);
  3999. begin
  4000. If (FchildLink=AValue) then exit;
  4001. FchildLink:=AValue;
  4002. MarkPropertyChanged(AIndex);
  4003. end;
  4004. Procedure TAccount.Setcreated(AIndex : Integer; const AValue : TDatetime);
  4005. begin
  4006. If (Fcreated=AValue) then exit;
  4007. Fcreated:=AValue;
  4008. MarkPropertyChanged(AIndex);
  4009. end;
  4010. Procedure TAccount.Setid(AIndex : Integer; const AValue : String);
  4011. begin
  4012. If (Fid=AValue) then exit;
  4013. Fid:=AValue;
  4014. MarkPropertyChanged(AIndex);
  4015. end;
  4016. Procedure TAccount.Setkind(AIndex : Integer; const AValue : String);
  4017. begin
  4018. If (Fkind=AValue) then exit;
  4019. Fkind:=AValue;
  4020. MarkPropertyChanged(AIndex);
  4021. end;
  4022. Procedure TAccount.Setname(AIndex : Integer; const AValue : String);
  4023. begin
  4024. If (Fname=AValue) then exit;
  4025. Fname:=AValue;
  4026. MarkPropertyChanged(AIndex);
  4027. end;
  4028. Procedure TAccount.Setpermissions(AIndex : Integer; const AValue : TAccountTypepermissions);
  4029. begin
  4030. If (Fpermissions=AValue) then exit;
  4031. Fpermissions:=AValue;
  4032. MarkPropertyChanged(AIndex);
  4033. end;
  4034. Procedure TAccount.SetselfLink(AIndex : Integer; const AValue : String);
  4035. begin
  4036. If (FselfLink=AValue) then exit;
  4037. FselfLink:=AValue;
  4038. MarkPropertyChanged(AIndex);
  4039. end;
  4040. Procedure TAccount.Setstarred(AIndex : Integer; const AValue : boolean);
  4041. begin
  4042. If (Fstarred=AValue) then exit;
  4043. Fstarred:=AValue;
  4044. MarkPropertyChanged(AIndex);
  4045. end;
  4046. Procedure TAccount.Setupdated(AIndex : Integer; const AValue : TDatetime);
  4047. begin
  4048. If (Fupdated=AValue) then exit;
  4049. Fupdated:=AValue;
  4050. MarkPropertyChanged(AIndex);
  4051. end;
  4052. { --------------------------------------------------------------------
  4053. TAccountRef
  4054. --------------------------------------------------------------------}
  4055. Procedure TAccountRef.Sethref(AIndex : Integer; const AValue : String);
  4056. begin
  4057. If (Fhref=AValue) then exit;
  4058. Fhref:=AValue;
  4059. MarkPropertyChanged(AIndex);
  4060. end;
  4061. Procedure TAccountRef.Setid(AIndex : Integer; const AValue : String);
  4062. begin
  4063. If (Fid=AValue) then exit;
  4064. Fid:=AValue;
  4065. MarkPropertyChanged(AIndex);
  4066. end;
  4067. Procedure TAccountRef.Setkind(AIndex : Integer; const AValue : String);
  4068. begin
  4069. If (Fkind=AValue) then exit;
  4070. Fkind:=AValue;
  4071. MarkPropertyChanged(AIndex);
  4072. end;
  4073. Procedure TAccountRef.Setname(AIndex : Integer; const AValue : String);
  4074. begin
  4075. If (Fname=AValue) then exit;
  4076. Fname:=AValue;
  4077. MarkPropertyChanged(AIndex);
  4078. end;
  4079. { --------------------------------------------------------------------
  4080. TAccountSummaries
  4081. --------------------------------------------------------------------}
  4082. Procedure TAccountSummaries.Setitems(AIndex : Integer; const AValue : TAccountSummariesTypeitemsArray);
  4083. begin
  4084. If (Fitems=AValue) then exit;
  4085. Fitems:=AValue;
  4086. MarkPropertyChanged(AIndex);
  4087. end;
  4088. Procedure TAccountSummaries.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4089. begin
  4090. If (FitemsPerPage=AValue) then exit;
  4091. FitemsPerPage:=AValue;
  4092. MarkPropertyChanged(AIndex);
  4093. end;
  4094. Procedure TAccountSummaries.Setkind(AIndex : Integer; const AValue : String);
  4095. begin
  4096. If (Fkind=AValue) then exit;
  4097. Fkind:=AValue;
  4098. MarkPropertyChanged(AIndex);
  4099. end;
  4100. Procedure TAccountSummaries.SetnextLink(AIndex : Integer; const AValue : String);
  4101. begin
  4102. If (FnextLink=AValue) then exit;
  4103. FnextLink:=AValue;
  4104. MarkPropertyChanged(AIndex);
  4105. end;
  4106. Procedure TAccountSummaries.SetpreviousLink(AIndex : Integer; const AValue : String);
  4107. begin
  4108. If (FpreviousLink=AValue) then exit;
  4109. FpreviousLink:=AValue;
  4110. MarkPropertyChanged(AIndex);
  4111. end;
  4112. Procedure TAccountSummaries.SetstartIndex(AIndex : Integer; const AValue : integer);
  4113. begin
  4114. If (FstartIndex=AValue) then exit;
  4115. FstartIndex:=AValue;
  4116. MarkPropertyChanged(AIndex);
  4117. end;
  4118. Procedure TAccountSummaries.SettotalResults(AIndex : Integer; const AValue : integer);
  4119. begin
  4120. If (FtotalResults=AValue) then exit;
  4121. FtotalResults:=AValue;
  4122. MarkPropertyChanged(AIndex);
  4123. end;
  4124. Procedure TAccountSummaries.Setusername(AIndex : Integer; const AValue : String);
  4125. begin
  4126. If (Fusername=AValue) then exit;
  4127. Fusername:=AValue;
  4128. MarkPropertyChanged(AIndex);
  4129. end;
  4130. //2.6.4. bug workaround
  4131. {$IFDEF VER2_6}
  4132. Procedure TAccountSummaries.SetArrayLength(Const AName : String; ALength : Longint);
  4133. begin
  4134. Case AName of
  4135. 'items' : SetLength(Fitems,ALength);
  4136. else
  4137. Inherited SetArrayLength(AName,ALength);
  4138. end;
  4139. end;
  4140. {$ENDIF VER2_6}
  4141. { --------------------------------------------------------------------
  4142. TAccountSummary
  4143. --------------------------------------------------------------------}
  4144. Procedure TAccountSummary.Setid(AIndex : Integer; const AValue : String);
  4145. begin
  4146. If (Fid=AValue) then exit;
  4147. Fid:=AValue;
  4148. MarkPropertyChanged(AIndex);
  4149. end;
  4150. Procedure TAccountSummary.Setkind(AIndex : Integer; const AValue : String);
  4151. begin
  4152. If (Fkind=AValue) then exit;
  4153. Fkind:=AValue;
  4154. MarkPropertyChanged(AIndex);
  4155. end;
  4156. Procedure TAccountSummary.Setname(AIndex : Integer; const AValue : String);
  4157. begin
  4158. If (Fname=AValue) then exit;
  4159. Fname:=AValue;
  4160. MarkPropertyChanged(AIndex);
  4161. end;
  4162. Procedure TAccountSummary.Setstarred(AIndex : Integer; const AValue : boolean);
  4163. begin
  4164. If (Fstarred=AValue) then exit;
  4165. Fstarred:=AValue;
  4166. MarkPropertyChanged(AIndex);
  4167. end;
  4168. Procedure TAccountSummary.SetwebProperties(AIndex : Integer; const AValue : TAccountSummaryTypewebPropertiesArray);
  4169. begin
  4170. If (FwebProperties=AValue) then exit;
  4171. FwebProperties:=AValue;
  4172. MarkPropertyChanged(AIndex);
  4173. end;
  4174. //2.6.4. bug workaround
  4175. {$IFDEF VER2_6}
  4176. Procedure TAccountSummary.SetArrayLength(Const AName : String; ALength : Longint);
  4177. begin
  4178. Case AName of
  4179. 'webproperties' : SetLength(FwebProperties,ALength);
  4180. else
  4181. Inherited SetArrayLength(AName,ALength);
  4182. end;
  4183. end;
  4184. {$ENDIF VER2_6}
  4185. { --------------------------------------------------------------------
  4186. TAccountTicket
  4187. --------------------------------------------------------------------}
  4188. Procedure TAccountTicket.Setaccount(AIndex : Integer; const AValue : TAccount);
  4189. begin
  4190. If (Faccount=AValue) then exit;
  4191. Faccount:=AValue;
  4192. MarkPropertyChanged(AIndex);
  4193. end;
  4194. Procedure TAccountTicket.Setid(AIndex : Integer; const AValue : String);
  4195. begin
  4196. If (Fid=AValue) then exit;
  4197. Fid:=AValue;
  4198. MarkPropertyChanged(AIndex);
  4199. end;
  4200. Procedure TAccountTicket.Setkind(AIndex : Integer; const AValue : String);
  4201. begin
  4202. If (Fkind=AValue) then exit;
  4203. Fkind:=AValue;
  4204. MarkPropertyChanged(AIndex);
  4205. end;
  4206. Procedure TAccountTicket.Setprofile(AIndex : Integer; const AValue : TProfile);
  4207. begin
  4208. If (Fprofile=AValue) then exit;
  4209. Fprofile:=AValue;
  4210. MarkPropertyChanged(AIndex);
  4211. end;
  4212. Procedure TAccountTicket.SetredirectUri(AIndex : Integer; const AValue : String);
  4213. begin
  4214. If (FredirectUri=AValue) then exit;
  4215. FredirectUri:=AValue;
  4216. MarkPropertyChanged(AIndex);
  4217. end;
  4218. Procedure TAccountTicket.Setwebproperty(AIndex : Integer; const AValue : TWebproperty);
  4219. begin
  4220. If (Fwebproperty=AValue) then exit;
  4221. Fwebproperty:=AValue;
  4222. MarkPropertyChanged(AIndex);
  4223. end;
  4224. { --------------------------------------------------------------------
  4225. TAccounts
  4226. --------------------------------------------------------------------}
  4227. Procedure TAccounts.Setitems(AIndex : Integer; const AValue : TAccountsTypeitemsArray);
  4228. begin
  4229. If (Fitems=AValue) then exit;
  4230. Fitems:=AValue;
  4231. MarkPropertyChanged(AIndex);
  4232. end;
  4233. Procedure TAccounts.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4234. begin
  4235. If (FitemsPerPage=AValue) then exit;
  4236. FitemsPerPage:=AValue;
  4237. MarkPropertyChanged(AIndex);
  4238. end;
  4239. Procedure TAccounts.Setkind(AIndex : Integer; const AValue : String);
  4240. begin
  4241. If (Fkind=AValue) then exit;
  4242. Fkind:=AValue;
  4243. MarkPropertyChanged(AIndex);
  4244. end;
  4245. Procedure TAccounts.SetnextLink(AIndex : Integer; const AValue : String);
  4246. begin
  4247. If (FnextLink=AValue) then exit;
  4248. FnextLink:=AValue;
  4249. MarkPropertyChanged(AIndex);
  4250. end;
  4251. Procedure TAccounts.SetpreviousLink(AIndex : Integer; const AValue : String);
  4252. begin
  4253. If (FpreviousLink=AValue) then exit;
  4254. FpreviousLink:=AValue;
  4255. MarkPropertyChanged(AIndex);
  4256. end;
  4257. Procedure TAccounts.SetstartIndex(AIndex : Integer; const AValue : integer);
  4258. begin
  4259. If (FstartIndex=AValue) then exit;
  4260. FstartIndex:=AValue;
  4261. MarkPropertyChanged(AIndex);
  4262. end;
  4263. Procedure TAccounts.SettotalResults(AIndex : Integer; const AValue : integer);
  4264. begin
  4265. If (FtotalResults=AValue) then exit;
  4266. FtotalResults:=AValue;
  4267. MarkPropertyChanged(AIndex);
  4268. end;
  4269. Procedure TAccounts.Setusername(AIndex : Integer; const AValue : String);
  4270. begin
  4271. If (Fusername=AValue) then exit;
  4272. Fusername:=AValue;
  4273. MarkPropertyChanged(AIndex);
  4274. end;
  4275. //2.6.4. bug workaround
  4276. {$IFDEF VER2_6}
  4277. Procedure TAccounts.SetArrayLength(Const AName : String; ALength : Longint);
  4278. begin
  4279. Case AName of
  4280. 'items' : SetLength(Fitems,ALength);
  4281. else
  4282. Inherited SetArrayLength(AName,ALength);
  4283. end;
  4284. end;
  4285. {$ENDIF VER2_6}
  4286. { --------------------------------------------------------------------
  4287. TAdWordsAccount
  4288. --------------------------------------------------------------------}
  4289. Procedure TAdWordsAccount.SetautoTaggingEnabled(AIndex : Integer; const AValue : boolean);
  4290. begin
  4291. If (FautoTaggingEnabled=AValue) then exit;
  4292. FautoTaggingEnabled:=AValue;
  4293. MarkPropertyChanged(AIndex);
  4294. end;
  4295. Procedure TAdWordsAccount.SetcustomerId(AIndex : Integer; const AValue : String);
  4296. begin
  4297. If (FcustomerId=AValue) then exit;
  4298. FcustomerId:=AValue;
  4299. MarkPropertyChanged(AIndex);
  4300. end;
  4301. Procedure TAdWordsAccount.Setkind(AIndex : Integer; const AValue : String);
  4302. begin
  4303. If (Fkind=AValue) then exit;
  4304. Fkind:=AValue;
  4305. MarkPropertyChanged(AIndex);
  4306. end;
  4307. { --------------------------------------------------------------------
  4308. TAnalyticsDataimportDeleteUploadDataRequest
  4309. --------------------------------------------------------------------}
  4310. Procedure TAnalyticsDataimportDeleteUploadDataRequest.SetcustomDataImportUids(AIndex : Integer; const AValue : TStringArray);
  4311. begin
  4312. If (FcustomDataImportUids=AValue) then exit;
  4313. FcustomDataImportUids:=AValue;
  4314. MarkPropertyChanged(AIndex);
  4315. end;
  4316. //2.6.4. bug workaround
  4317. {$IFDEF VER2_6}
  4318. Procedure TAnalyticsDataimportDeleteUploadDataRequest.SetArrayLength(Const AName : String; ALength : Longint);
  4319. begin
  4320. Case AName of
  4321. 'customdataimportuids' : SetLength(FcustomDataImportUids,ALength);
  4322. else
  4323. Inherited SetArrayLength(AName,ALength);
  4324. end;
  4325. end;
  4326. {$ENDIF VER2_6}
  4327. { --------------------------------------------------------------------
  4328. TColumnTypeattributes
  4329. --------------------------------------------------------------------}
  4330. Class Function TColumnTypeattributes.AllowAdditionalProperties : Boolean;
  4331. begin
  4332. Result:=True;
  4333. end;
  4334. { --------------------------------------------------------------------
  4335. TColumn
  4336. --------------------------------------------------------------------}
  4337. Procedure TColumn.Setattributes(AIndex : Integer; const AValue : TColumnTypeattributes);
  4338. begin
  4339. If (Fattributes=AValue) then exit;
  4340. Fattributes:=AValue;
  4341. MarkPropertyChanged(AIndex);
  4342. end;
  4343. Procedure TColumn.Setid(AIndex : Integer; const AValue : String);
  4344. begin
  4345. If (Fid=AValue) then exit;
  4346. Fid:=AValue;
  4347. MarkPropertyChanged(AIndex);
  4348. end;
  4349. Procedure TColumn.Setkind(AIndex : Integer; const AValue : String);
  4350. begin
  4351. If (Fkind=AValue) then exit;
  4352. Fkind:=AValue;
  4353. MarkPropertyChanged(AIndex);
  4354. end;
  4355. { --------------------------------------------------------------------
  4356. TColumns
  4357. --------------------------------------------------------------------}
  4358. Procedure TColumns.SetattributeNames(AIndex : Integer; const AValue : TStringArray);
  4359. begin
  4360. If (FattributeNames=AValue) then exit;
  4361. FattributeNames:=AValue;
  4362. MarkPropertyChanged(AIndex);
  4363. end;
  4364. Procedure TColumns.Setetag(AIndex : Integer; const AValue : String);
  4365. begin
  4366. If (Fetag=AValue) then exit;
  4367. Fetag:=AValue;
  4368. MarkPropertyChanged(AIndex);
  4369. end;
  4370. Procedure TColumns.Setitems(AIndex : Integer; const AValue : TColumnsTypeitemsArray);
  4371. begin
  4372. If (Fitems=AValue) then exit;
  4373. Fitems:=AValue;
  4374. MarkPropertyChanged(AIndex);
  4375. end;
  4376. Procedure TColumns.Setkind(AIndex : Integer; const AValue : String);
  4377. begin
  4378. If (Fkind=AValue) then exit;
  4379. Fkind:=AValue;
  4380. MarkPropertyChanged(AIndex);
  4381. end;
  4382. Procedure TColumns.SettotalResults(AIndex : Integer; const AValue : integer);
  4383. begin
  4384. If (FtotalResults=AValue) then exit;
  4385. FtotalResults:=AValue;
  4386. MarkPropertyChanged(AIndex);
  4387. end;
  4388. //2.6.4. bug workaround
  4389. {$IFDEF VER2_6}
  4390. Procedure TColumns.SetArrayLength(Const AName : String; ALength : Longint);
  4391. begin
  4392. Case AName of
  4393. 'attributenames' : SetLength(FattributeNames,ALength);
  4394. 'items' : SetLength(Fitems,ALength);
  4395. else
  4396. Inherited SetArrayLength(AName,ALength);
  4397. end;
  4398. end;
  4399. {$ENDIF VER2_6}
  4400. { --------------------------------------------------------------------
  4401. TCustomDataSourceTypechildLink
  4402. --------------------------------------------------------------------}
  4403. Procedure TCustomDataSourceTypechildLink.Sethref(AIndex : Integer; const AValue : String);
  4404. begin
  4405. If (Fhref=AValue) then exit;
  4406. Fhref:=AValue;
  4407. MarkPropertyChanged(AIndex);
  4408. end;
  4409. Procedure TCustomDataSourceTypechildLink.Set_type(AIndex : Integer; const AValue : String);
  4410. begin
  4411. If (F_type=AValue) then exit;
  4412. F_type:=AValue;
  4413. MarkPropertyChanged(AIndex);
  4414. end;
  4415. Class Function TCustomDataSourceTypechildLink.ExportPropertyName(Const AName : String) :String;
  4416. begin
  4417. Case AName of
  4418. '_type' : Result:='type';
  4419. else
  4420. Result:=Inherited ExportPropertyName(AName);
  4421. end;
  4422. end;
  4423. { --------------------------------------------------------------------
  4424. TCustomDataSourceTypeparentLink
  4425. --------------------------------------------------------------------}
  4426. Procedure TCustomDataSourceTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  4427. begin
  4428. If (Fhref=AValue) then exit;
  4429. Fhref:=AValue;
  4430. MarkPropertyChanged(AIndex);
  4431. end;
  4432. Procedure TCustomDataSourceTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  4433. begin
  4434. If (F_type=AValue) then exit;
  4435. F_type:=AValue;
  4436. MarkPropertyChanged(AIndex);
  4437. end;
  4438. Class Function TCustomDataSourceTypeparentLink.ExportPropertyName(Const AName : String) :String;
  4439. begin
  4440. Case AName of
  4441. '_type' : Result:='type';
  4442. else
  4443. Result:=Inherited ExportPropertyName(AName);
  4444. end;
  4445. end;
  4446. { --------------------------------------------------------------------
  4447. TCustomDataSource
  4448. --------------------------------------------------------------------}
  4449. Procedure TCustomDataSource.SetaccountId(AIndex : Integer; const AValue : String);
  4450. begin
  4451. If (FaccountId=AValue) then exit;
  4452. FaccountId:=AValue;
  4453. MarkPropertyChanged(AIndex);
  4454. end;
  4455. Procedure TCustomDataSource.SetchildLink(AIndex : Integer; const AValue : TCustomDataSourceTypechildLink);
  4456. begin
  4457. If (FchildLink=AValue) then exit;
  4458. FchildLink:=AValue;
  4459. MarkPropertyChanged(AIndex);
  4460. end;
  4461. Procedure TCustomDataSource.Setcreated(AIndex : Integer; const AValue : TDatetime);
  4462. begin
  4463. If (Fcreated=AValue) then exit;
  4464. Fcreated:=AValue;
  4465. MarkPropertyChanged(AIndex);
  4466. end;
  4467. Procedure TCustomDataSource.Setdescription(AIndex : Integer; const AValue : String);
  4468. begin
  4469. If (Fdescription=AValue) then exit;
  4470. Fdescription:=AValue;
  4471. MarkPropertyChanged(AIndex);
  4472. end;
  4473. Procedure TCustomDataSource.Setid(AIndex : Integer; const AValue : String);
  4474. begin
  4475. If (Fid=AValue) then exit;
  4476. Fid:=AValue;
  4477. MarkPropertyChanged(AIndex);
  4478. end;
  4479. Procedure TCustomDataSource.SetimportBehavior(AIndex : Integer; const AValue : String);
  4480. begin
  4481. If (FimportBehavior=AValue) then exit;
  4482. FimportBehavior:=AValue;
  4483. MarkPropertyChanged(AIndex);
  4484. end;
  4485. Procedure TCustomDataSource.Setkind(AIndex : Integer; const AValue : String);
  4486. begin
  4487. If (Fkind=AValue) then exit;
  4488. Fkind:=AValue;
  4489. MarkPropertyChanged(AIndex);
  4490. end;
  4491. Procedure TCustomDataSource.Setname(AIndex : Integer; const AValue : String);
  4492. begin
  4493. If (Fname=AValue) then exit;
  4494. Fname:=AValue;
  4495. MarkPropertyChanged(AIndex);
  4496. end;
  4497. Procedure TCustomDataSource.SetparentLink(AIndex : Integer; const AValue : TCustomDataSourceTypeparentLink);
  4498. begin
  4499. If (FparentLink=AValue) then exit;
  4500. FparentLink:=AValue;
  4501. MarkPropertyChanged(AIndex);
  4502. end;
  4503. Procedure TCustomDataSource.SetprofilesLinked(AIndex : Integer; const AValue : TStringArray);
  4504. begin
  4505. If (FprofilesLinked=AValue) then exit;
  4506. FprofilesLinked:=AValue;
  4507. MarkPropertyChanged(AIndex);
  4508. end;
  4509. Procedure TCustomDataSource.SetselfLink(AIndex : Integer; const AValue : String);
  4510. begin
  4511. If (FselfLink=AValue) then exit;
  4512. FselfLink:=AValue;
  4513. MarkPropertyChanged(AIndex);
  4514. end;
  4515. Procedure TCustomDataSource.Set_type(AIndex : Integer; const AValue : String);
  4516. begin
  4517. If (F_type=AValue) then exit;
  4518. F_type:=AValue;
  4519. MarkPropertyChanged(AIndex);
  4520. end;
  4521. Procedure TCustomDataSource.Setupdated(AIndex : Integer; const AValue : TDatetime);
  4522. begin
  4523. If (Fupdated=AValue) then exit;
  4524. Fupdated:=AValue;
  4525. MarkPropertyChanged(AIndex);
  4526. end;
  4527. Procedure TCustomDataSource.SetuploadType(AIndex : Integer; const AValue : String);
  4528. begin
  4529. If (FuploadType=AValue) then exit;
  4530. FuploadType:=AValue;
  4531. MarkPropertyChanged(AIndex);
  4532. end;
  4533. Procedure TCustomDataSource.SetwebPropertyId(AIndex : Integer; const AValue : String);
  4534. begin
  4535. If (FwebPropertyId=AValue) then exit;
  4536. FwebPropertyId:=AValue;
  4537. MarkPropertyChanged(AIndex);
  4538. end;
  4539. Class Function TCustomDataSource.ExportPropertyName(Const AName : String) :String;
  4540. begin
  4541. Case AName of
  4542. '_type' : Result:='type';
  4543. else
  4544. Result:=Inherited ExportPropertyName(AName);
  4545. end;
  4546. end;
  4547. //2.6.4. bug workaround
  4548. {$IFDEF VER2_6}
  4549. Procedure TCustomDataSource.SetArrayLength(Const AName : String; ALength : Longint);
  4550. begin
  4551. Case AName of
  4552. 'profileslinked' : SetLength(FprofilesLinked,ALength);
  4553. else
  4554. Inherited SetArrayLength(AName,ALength);
  4555. end;
  4556. end;
  4557. {$ENDIF VER2_6}
  4558. { --------------------------------------------------------------------
  4559. TCustomDataSources
  4560. --------------------------------------------------------------------}
  4561. Procedure TCustomDataSources.Setitems(AIndex : Integer; const AValue : TCustomDataSourcesTypeitemsArray);
  4562. begin
  4563. If (Fitems=AValue) then exit;
  4564. Fitems:=AValue;
  4565. MarkPropertyChanged(AIndex);
  4566. end;
  4567. Procedure TCustomDataSources.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4568. begin
  4569. If (FitemsPerPage=AValue) then exit;
  4570. FitemsPerPage:=AValue;
  4571. MarkPropertyChanged(AIndex);
  4572. end;
  4573. Procedure TCustomDataSources.Setkind(AIndex : Integer; const AValue : String);
  4574. begin
  4575. If (Fkind=AValue) then exit;
  4576. Fkind:=AValue;
  4577. MarkPropertyChanged(AIndex);
  4578. end;
  4579. Procedure TCustomDataSources.SetnextLink(AIndex : Integer; const AValue : String);
  4580. begin
  4581. If (FnextLink=AValue) then exit;
  4582. FnextLink:=AValue;
  4583. MarkPropertyChanged(AIndex);
  4584. end;
  4585. Procedure TCustomDataSources.SetpreviousLink(AIndex : Integer; const AValue : String);
  4586. begin
  4587. If (FpreviousLink=AValue) then exit;
  4588. FpreviousLink:=AValue;
  4589. MarkPropertyChanged(AIndex);
  4590. end;
  4591. Procedure TCustomDataSources.SetstartIndex(AIndex : Integer; const AValue : integer);
  4592. begin
  4593. If (FstartIndex=AValue) then exit;
  4594. FstartIndex:=AValue;
  4595. MarkPropertyChanged(AIndex);
  4596. end;
  4597. Procedure TCustomDataSources.SettotalResults(AIndex : Integer; const AValue : integer);
  4598. begin
  4599. If (FtotalResults=AValue) then exit;
  4600. FtotalResults:=AValue;
  4601. MarkPropertyChanged(AIndex);
  4602. end;
  4603. Procedure TCustomDataSources.Setusername(AIndex : Integer; const AValue : String);
  4604. begin
  4605. If (Fusername=AValue) then exit;
  4606. Fusername:=AValue;
  4607. MarkPropertyChanged(AIndex);
  4608. end;
  4609. //2.6.4. bug workaround
  4610. {$IFDEF VER2_6}
  4611. Procedure TCustomDataSources.SetArrayLength(Const AName : String; ALength : Longint);
  4612. begin
  4613. Case AName of
  4614. 'items' : SetLength(Fitems,ALength);
  4615. else
  4616. Inherited SetArrayLength(AName,ALength);
  4617. end;
  4618. end;
  4619. {$ENDIF VER2_6}
  4620. { --------------------------------------------------------------------
  4621. TCustomDimensionTypeparentLink
  4622. --------------------------------------------------------------------}
  4623. Procedure TCustomDimensionTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  4624. begin
  4625. If (Fhref=AValue) then exit;
  4626. Fhref:=AValue;
  4627. MarkPropertyChanged(AIndex);
  4628. end;
  4629. Procedure TCustomDimensionTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  4630. begin
  4631. If (F_type=AValue) then exit;
  4632. F_type:=AValue;
  4633. MarkPropertyChanged(AIndex);
  4634. end;
  4635. Class Function TCustomDimensionTypeparentLink.ExportPropertyName(Const AName : String) :String;
  4636. begin
  4637. Case AName of
  4638. '_type' : Result:='type';
  4639. else
  4640. Result:=Inherited ExportPropertyName(AName);
  4641. end;
  4642. end;
  4643. { --------------------------------------------------------------------
  4644. TCustomDimension
  4645. --------------------------------------------------------------------}
  4646. Procedure TCustomDimension.SetaccountId(AIndex : Integer; const AValue : String);
  4647. begin
  4648. If (FaccountId=AValue) then exit;
  4649. FaccountId:=AValue;
  4650. MarkPropertyChanged(AIndex);
  4651. end;
  4652. Procedure TCustomDimension.Setactive(AIndex : Integer; const AValue : boolean);
  4653. begin
  4654. If (Factive=AValue) then exit;
  4655. Factive:=AValue;
  4656. MarkPropertyChanged(AIndex);
  4657. end;
  4658. Procedure TCustomDimension.Setcreated(AIndex : Integer; const AValue : TDatetime);
  4659. begin
  4660. If (Fcreated=AValue) then exit;
  4661. Fcreated:=AValue;
  4662. MarkPropertyChanged(AIndex);
  4663. end;
  4664. Procedure TCustomDimension.Setid(AIndex : Integer; const AValue : String);
  4665. begin
  4666. If (Fid=AValue) then exit;
  4667. Fid:=AValue;
  4668. MarkPropertyChanged(AIndex);
  4669. end;
  4670. Procedure TCustomDimension.Setindex(AIndex : Integer; const AValue : integer);
  4671. begin
  4672. If (Findex=AValue) then exit;
  4673. Findex:=AValue;
  4674. MarkPropertyChanged(AIndex);
  4675. end;
  4676. Procedure TCustomDimension.Setkind(AIndex : Integer; const AValue : String);
  4677. begin
  4678. If (Fkind=AValue) then exit;
  4679. Fkind:=AValue;
  4680. MarkPropertyChanged(AIndex);
  4681. end;
  4682. Procedure TCustomDimension.Setname(AIndex : Integer; const AValue : String);
  4683. begin
  4684. If (Fname=AValue) then exit;
  4685. Fname:=AValue;
  4686. MarkPropertyChanged(AIndex);
  4687. end;
  4688. Procedure TCustomDimension.SetparentLink(AIndex : Integer; const AValue : TCustomDimensionTypeparentLink);
  4689. begin
  4690. If (FparentLink=AValue) then exit;
  4691. FparentLink:=AValue;
  4692. MarkPropertyChanged(AIndex);
  4693. end;
  4694. Procedure TCustomDimension.Setscope(AIndex : Integer; const AValue : String);
  4695. begin
  4696. If (Fscope=AValue) then exit;
  4697. Fscope:=AValue;
  4698. MarkPropertyChanged(AIndex);
  4699. end;
  4700. Procedure TCustomDimension.SetselfLink(AIndex : Integer; const AValue : String);
  4701. begin
  4702. If (FselfLink=AValue) then exit;
  4703. FselfLink:=AValue;
  4704. MarkPropertyChanged(AIndex);
  4705. end;
  4706. Procedure TCustomDimension.Setupdated(AIndex : Integer; const AValue : TDatetime);
  4707. begin
  4708. If (Fupdated=AValue) then exit;
  4709. Fupdated:=AValue;
  4710. MarkPropertyChanged(AIndex);
  4711. end;
  4712. Procedure TCustomDimension.SetwebPropertyId(AIndex : Integer; const AValue : String);
  4713. begin
  4714. If (FwebPropertyId=AValue) then exit;
  4715. FwebPropertyId:=AValue;
  4716. MarkPropertyChanged(AIndex);
  4717. end;
  4718. { --------------------------------------------------------------------
  4719. TCustomDimensions
  4720. --------------------------------------------------------------------}
  4721. Procedure TCustomDimensions.Setitems(AIndex : Integer; const AValue : TCustomDimensionsTypeitemsArray);
  4722. begin
  4723. If (Fitems=AValue) then exit;
  4724. Fitems:=AValue;
  4725. MarkPropertyChanged(AIndex);
  4726. end;
  4727. Procedure TCustomDimensions.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4728. begin
  4729. If (FitemsPerPage=AValue) then exit;
  4730. FitemsPerPage:=AValue;
  4731. MarkPropertyChanged(AIndex);
  4732. end;
  4733. Procedure TCustomDimensions.Setkind(AIndex : Integer; const AValue : String);
  4734. begin
  4735. If (Fkind=AValue) then exit;
  4736. Fkind:=AValue;
  4737. MarkPropertyChanged(AIndex);
  4738. end;
  4739. Procedure TCustomDimensions.SetnextLink(AIndex : Integer; const AValue : String);
  4740. begin
  4741. If (FnextLink=AValue) then exit;
  4742. FnextLink:=AValue;
  4743. MarkPropertyChanged(AIndex);
  4744. end;
  4745. Procedure TCustomDimensions.SetpreviousLink(AIndex : Integer; const AValue : String);
  4746. begin
  4747. If (FpreviousLink=AValue) then exit;
  4748. FpreviousLink:=AValue;
  4749. MarkPropertyChanged(AIndex);
  4750. end;
  4751. Procedure TCustomDimensions.SetstartIndex(AIndex : Integer; const AValue : integer);
  4752. begin
  4753. If (FstartIndex=AValue) then exit;
  4754. FstartIndex:=AValue;
  4755. MarkPropertyChanged(AIndex);
  4756. end;
  4757. Procedure TCustomDimensions.SettotalResults(AIndex : Integer; const AValue : integer);
  4758. begin
  4759. If (FtotalResults=AValue) then exit;
  4760. FtotalResults:=AValue;
  4761. MarkPropertyChanged(AIndex);
  4762. end;
  4763. Procedure TCustomDimensions.Setusername(AIndex : Integer; const AValue : String);
  4764. begin
  4765. If (Fusername=AValue) then exit;
  4766. Fusername:=AValue;
  4767. MarkPropertyChanged(AIndex);
  4768. end;
  4769. //2.6.4. bug workaround
  4770. {$IFDEF VER2_6}
  4771. Procedure TCustomDimensions.SetArrayLength(Const AName : String; ALength : Longint);
  4772. begin
  4773. Case AName of
  4774. 'items' : SetLength(Fitems,ALength);
  4775. else
  4776. Inherited SetArrayLength(AName,ALength);
  4777. end;
  4778. end;
  4779. {$ENDIF VER2_6}
  4780. { --------------------------------------------------------------------
  4781. TCustomMetricTypeparentLink
  4782. --------------------------------------------------------------------}
  4783. Procedure TCustomMetricTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  4784. begin
  4785. If (Fhref=AValue) then exit;
  4786. Fhref:=AValue;
  4787. MarkPropertyChanged(AIndex);
  4788. end;
  4789. Procedure TCustomMetricTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  4790. begin
  4791. If (F_type=AValue) then exit;
  4792. F_type:=AValue;
  4793. MarkPropertyChanged(AIndex);
  4794. end;
  4795. Class Function TCustomMetricTypeparentLink.ExportPropertyName(Const AName : String) :String;
  4796. begin
  4797. Case AName of
  4798. '_type' : Result:='type';
  4799. else
  4800. Result:=Inherited ExportPropertyName(AName);
  4801. end;
  4802. end;
  4803. { --------------------------------------------------------------------
  4804. TCustomMetric
  4805. --------------------------------------------------------------------}
  4806. Procedure TCustomMetric.SetaccountId(AIndex : Integer; const AValue : String);
  4807. begin
  4808. If (FaccountId=AValue) then exit;
  4809. FaccountId:=AValue;
  4810. MarkPropertyChanged(AIndex);
  4811. end;
  4812. Procedure TCustomMetric.Setactive(AIndex : Integer; const AValue : boolean);
  4813. begin
  4814. If (Factive=AValue) then exit;
  4815. Factive:=AValue;
  4816. MarkPropertyChanged(AIndex);
  4817. end;
  4818. Procedure TCustomMetric.Setcreated(AIndex : Integer; const AValue : TDatetime);
  4819. begin
  4820. If (Fcreated=AValue) then exit;
  4821. Fcreated:=AValue;
  4822. MarkPropertyChanged(AIndex);
  4823. end;
  4824. Procedure TCustomMetric.Setid(AIndex : Integer; const AValue : String);
  4825. begin
  4826. If (Fid=AValue) then exit;
  4827. Fid:=AValue;
  4828. MarkPropertyChanged(AIndex);
  4829. end;
  4830. Procedure TCustomMetric.Setindex(AIndex : Integer; const AValue : integer);
  4831. begin
  4832. If (Findex=AValue) then exit;
  4833. Findex:=AValue;
  4834. MarkPropertyChanged(AIndex);
  4835. end;
  4836. Procedure TCustomMetric.Setkind(AIndex : Integer; const AValue : String);
  4837. begin
  4838. If (Fkind=AValue) then exit;
  4839. Fkind:=AValue;
  4840. MarkPropertyChanged(AIndex);
  4841. end;
  4842. Procedure TCustomMetric.Setmax_value(AIndex : Integer; const AValue : String);
  4843. begin
  4844. If (Fmax_value=AValue) then exit;
  4845. Fmax_value:=AValue;
  4846. MarkPropertyChanged(AIndex);
  4847. end;
  4848. Procedure TCustomMetric.Setmin_value(AIndex : Integer; const AValue : String);
  4849. begin
  4850. If (Fmin_value=AValue) then exit;
  4851. Fmin_value:=AValue;
  4852. MarkPropertyChanged(AIndex);
  4853. end;
  4854. Procedure TCustomMetric.Setname(AIndex : Integer; const AValue : String);
  4855. begin
  4856. If (Fname=AValue) then exit;
  4857. Fname:=AValue;
  4858. MarkPropertyChanged(AIndex);
  4859. end;
  4860. Procedure TCustomMetric.SetparentLink(AIndex : Integer; const AValue : TCustomMetricTypeparentLink);
  4861. begin
  4862. If (FparentLink=AValue) then exit;
  4863. FparentLink:=AValue;
  4864. MarkPropertyChanged(AIndex);
  4865. end;
  4866. Procedure TCustomMetric.Setscope(AIndex : Integer; const AValue : String);
  4867. begin
  4868. If (Fscope=AValue) then exit;
  4869. Fscope:=AValue;
  4870. MarkPropertyChanged(AIndex);
  4871. end;
  4872. Procedure TCustomMetric.SetselfLink(AIndex : Integer; const AValue : String);
  4873. begin
  4874. If (FselfLink=AValue) then exit;
  4875. FselfLink:=AValue;
  4876. MarkPropertyChanged(AIndex);
  4877. end;
  4878. Procedure TCustomMetric.Set_type(AIndex : Integer; const AValue : String);
  4879. begin
  4880. If (F_type=AValue) then exit;
  4881. F_type:=AValue;
  4882. MarkPropertyChanged(AIndex);
  4883. end;
  4884. Procedure TCustomMetric.Setupdated(AIndex : Integer; const AValue : TDatetime);
  4885. begin
  4886. If (Fupdated=AValue) then exit;
  4887. Fupdated:=AValue;
  4888. MarkPropertyChanged(AIndex);
  4889. end;
  4890. Procedure TCustomMetric.SetwebPropertyId(AIndex : Integer; const AValue : String);
  4891. begin
  4892. If (FwebPropertyId=AValue) then exit;
  4893. FwebPropertyId:=AValue;
  4894. MarkPropertyChanged(AIndex);
  4895. end;
  4896. Class Function TCustomMetric.ExportPropertyName(Const AName : String) :String;
  4897. begin
  4898. Case AName of
  4899. '_type' : Result:='type';
  4900. else
  4901. Result:=Inherited ExportPropertyName(AName);
  4902. end;
  4903. end;
  4904. { --------------------------------------------------------------------
  4905. TCustomMetrics
  4906. --------------------------------------------------------------------}
  4907. Procedure TCustomMetrics.Setitems(AIndex : Integer; const AValue : TCustomMetricsTypeitemsArray);
  4908. begin
  4909. If (Fitems=AValue) then exit;
  4910. Fitems:=AValue;
  4911. MarkPropertyChanged(AIndex);
  4912. end;
  4913. Procedure TCustomMetrics.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  4914. begin
  4915. If (FitemsPerPage=AValue) then exit;
  4916. FitemsPerPage:=AValue;
  4917. MarkPropertyChanged(AIndex);
  4918. end;
  4919. Procedure TCustomMetrics.Setkind(AIndex : Integer; const AValue : String);
  4920. begin
  4921. If (Fkind=AValue) then exit;
  4922. Fkind:=AValue;
  4923. MarkPropertyChanged(AIndex);
  4924. end;
  4925. Procedure TCustomMetrics.SetnextLink(AIndex : Integer; const AValue : String);
  4926. begin
  4927. If (FnextLink=AValue) then exit;
  4928. FnextLink:=AValue;
  4929. MarkPropertyChanged(AIndex);
  4930. end;
  4931. Procedure TCustomMetrics.SetpreviousLink(AIndex : Integer; const AValue : String);
  4932. begin
  4933. If (FpreviousLink=AValue) then exit;
  4934. FpreviousLink:=AValue;
  4935. MarkPropertyChanged(AIndex);
  4936. end;
  4937. Procedure TCustomMetrics.SetstartIndex(AIndex : Integer; const AValue : integer);
  4938. begin
  4939. If (FstartIndex=AValue) then exit;
  4940. FstartIndex:=AValue;
  4941. MarkPropertyChanged(AIndex);
  4942. end;
  4943. Procedure TCustomMetrics.SettotalResults(AIndex : Integer; const AValue : integer);
  4944. begin
  4945. If (FtotalResults=AValue) then exit;
  4946. FtotalResults:=AValue;
  4947. MarkPropertyChanged(AIndex);
  4948. end;
  4949. Procedure TCustomMetrics.Setusername(AIndex : Integer; const AValue : String);
  4950. begin
  4951. If (Fusername=AValue) then exit;
  4952. Fusername:=AValue;
  4953. MarkPropertyChanged(AIndex);
  4954. end;
  4955. //2.6.4. bug workaround
  4956. {$IFDEF VER2_6}
  4957. Procedure TCustomMetrics.SetArrayLength(Const AName : String; ALength : Longint);
  4958. begin
  4959. Case AName of
  4960. 'items' : SetLength(Fitems,ALength);
  4961. else
  4962. Inherited SetArrayLength(AName,ALength);
  4963. end;
  4964. end;
  4965. {$ENDIF VER2_6}
  4966. { --------------------------------------------------------------------
  4967. TEntityAdWordsLinkTypeentity
  4968. --------------------------------------------------------------------}
  4969. Procedure TEntityAdWordsLinkTypeentity.SetwebPropertyRef(AIndex : Integer; const AValue : TWebPropertyRef);
  4970. begin
  4971. If (FwebPropertyRef=AValue) then exit;
  4972. FwebPropertyRef:=AValue;
  4973. MarkPropertyChanged(AIndex);
  4974. end;
  4975. { --------------------------------------------------------------------
  4976. TEntityAdWordsLink
  4977. --------------------------------------------------------------------}
  4978. Procedure TEntityAdWordsLink.SetadWordsAccounts(AIndex : Integer; const AValue : TEntityAdWordsLinkTypeadWordsAccountsArray);
  4979. begin
  4980. If (FadWordsAccounts=AValue) then exit;
  4981. FadWordsAccounts:=AValue;
  4982. MarkPropertyChanged(AIndex);
  4983. end;
  4984. Procedure TEntityAdWordsLink.Setentity(AIndex : Integer; const AValue : TEntityAdWordsLinkTypeentity);
  4985. begin
  4986. If (Fentity=AValue) then exit;
  4987. Fentity:=AValue;
  4988. MarkPropertyChanged(AIndex);
  4989. end;
  4990. Procedure TEntityAdWordsLink.Setid(AIndex : Integer; const AValue : String);
  4991. begin
  4992. If (Fid=AValue) then exit;
  4993. Fid:=AValue;
  4994. MarkPropertyChanged(AIndex);
  4995. end;
  4996. Procedure TEntityAdWordsLink.Setkind(AIndex : Integer; const AValue : String);
  4997. begin
  4998. If (Fkind=AValue) then exit;
  4999. Fkind:=AValue;
  5000. MarkPropertyChanged(AIndex);
  5001. end;
  5002. Procedure TEntityAdWordsLink.Setname(AIndex : Integer; const AValue : String);
  5003. begin
  5004. If (Fname=AValue) then exit;
  5005. Fname:=AValue;
  5006. MarkPropertyChanged(AIndex);
  5007. end;
  5008. Procedure TEntityAdWordsLink.SetprofileIds(AIndex : Integer; const AValue : TStringArray);
  5009. begin
  5010. If (FprofileIds=AValue) then exit;
  5011. FprofileIds:=AValue;
  5012. MarkPropertyChanged(AIndex);
  5013. end;
  5014. Procedure TEntityAdWordsLink.SetselfLink(AIndex : Integer; const AValue : String);
  5015. begin
  5016. If (FselfLink=AValue) then exit;
  5017. FselfLink:=AValue;
  5018. MarkPropertyChanged(AIndex);
  5019. end;
  5020. //2.6.4. bug workaround
  5021. {$IFDEF VER2_6}
  5022. Procedure TEntityAdWordsLink.SetArrayLength(Const AName : String; ALength : Longint);
  5023. begin
  5024. Case AName of
  5025. 'adwordsaccounts' : SetLength(FadWordsAccounts,ALength);
  5026. 'profileids' : SetLength(FprofileIds,ALength);
  5027. else
  5028. Inherited SetArrayLength(AName,ALength);
  5029. end;
  5030. end;
  5031. {$ENDIF VER2_6}
  5032. { --------------------------------------------------------------------
  5033. TEntityAdWordsLinks
  5034. --------------------------------------------------------------------}
  5035. Procedure TEntityAdWordsLinks.Setitems(AIndex : Integer; const AValue : TEntityAdWordsLinksTypeitemsArray);
  5036. begin
  5037. If (Fitems=AValue) then exit;
  5038. Fitems:=AValue;
  5039. MarkPropertyChanged(AIndex);
  5040. end;
  5041. Procedure TEntityAdWordsLinks.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  5042. begin
  5043. If (FitemsPerPage=AValue) then exit;
  5044. FitemsPerPage:=AValue;
  5045. MarkPropertyChanged(AIndex);
  5046. end;
  5047. Procedure TEntityAdWordsLinks.Setkind(AIndex : Integer; const AValue : String);
  5048. begin
  5049. If (Fkind=AValue) then exit;
  5050. Fkind:=AValue;
  5051. MarkPropertyChanged(AIndex);
  5052. end;
  5053. Procedure TEntityAdWordsLinks.SetnextLink(AIndex : Integer; const AValue : String);
  5054. begin
  5055. If (FnextLink=AValue) then exit;
  5056. FnextLink:=AValue;
  5057. MarkPropertyChanged(AIndex);
  5058. end;
  5059. Procedure TEntityAdWordsLinks.SetpreviousLink(AIndex : Integer; const AValue : String);
  5060. begin
  5061. If (FpreviousLink=AValue) then exit;
  5062. FpreviousLink:=AValue;
  5063. MarkPropertyChanged(AIndex);
  5064. end;
  5065. Procedure TEntityAdWordsLinks.SetstartIndex(AIndex : Integer; const AValue : integer);
  5066. begin
  5067. If (FstartIndex=AValue) then exit;
  5068. FstartIndex:=AValue;
  5069. MarkPropertyChanged(AIndex);
  5070. end;
  5071. Procedure TEntityAdWordsLinks.SettotalResults(AIndex : Integer; const AValue : integer);
  5072. begin
  5073. If (FtotalResults=AValue) then exit;
  5074. FtotalResults:=AValue;
  5075. MarkPropertyChanged(AIndex);
  5076. end;
  5077. //2.6.4. bug workaround
  5078. {$IFDEF VER2_6}
  5079. Procedure TEntityAdWordsLinks.SetArrayLength(Const AName : String; ALength : Longint);
  5080. begin
  5081. Case AName of
  5082. 'items' : SetLength(Fitems,ALength);
  5083. else
  5084. Inherited SetArrayLength(AName,ALength);
  5085. end;
  5086. end;
  5087. {$ENDIF VER2_6}
  5088. { --------------------------------------------------------------------
  5089. TEntityUserLinkTypeentity
  5090. --------------------------------------------------------------------}
  5091. Procedure TEntityUserLinkTypeentity.SetaccountRef(AIndex : Integer; const AValue : TAccountRef);
  5092. begin
  5093. If (FaccountRef=AValue) then exit;
  5094. FaccountRef:=AValue;
  5095. MarkPropertyChanged(AIndex);
  5096. end;
  5097. Procedure TEntityUserLinkTypeentity.SetprofileRef(AIndex : Integer; const AValue : TProfileRef);
  5098. begin
  5099. If (FprofileRef=AValue) then exit;
  5100. FprofileRef:=AValue;
  5101. MarkPropertyChanged(AIndex);
  5102. end;
  5103. Procedure TEntityUserLinkTypeentity.SetwebPropertyRef(AIndex : Integer; const AValue : TWebPropertyRef);
  5104. begin
  5105. If (FwebPropertyRef=AValue) then exit;
  5106. FwebPropertyRef:=AValue;
  5107. MarkPropertyChanged(AIndex);
  5108. end;
  5109. { --------------------------------------------------------------------
  5110. TEntityUserLinkTypepermissions
  5111. --------------------------------------------------------------------}
  5112. Procedure TEntityUserLinkTypepermissions.Seteffective(AIndex : Integer; const AValue : TStringArray);
  5113. begin
  5114. If (Feffective=AValue) then exit;
  5115. Feffective:=AValue;
  5116. MarkPropertyChanged(AIndex);
  5117. end;
  5118. Procedure TEntityUserLinkTypepermissions.Setlocal(AIndex : Integer; const AValue : TStringArray);
  5119. begin
  5120. If (Flocal=AValue) then exit;
  5121. Flocal:=AValue;
  5122. MarkPropertyChanged(AIndex);
  5123. end;
  5124. //2.6.4. bug workaround
  5125. {$IFDEF VER2_6}
  5126. Procedure TEntityUserLinkTypepermissions.SetArrayLength(Const AName : String; ALength : Longint);
  5127. begin
  5128. Case AName of
  5129. 'effective' : SetLength(Feffective,ALength);
  5130. 'local' : SetLength(Flocal,ALength);
  5131. else
  5132. Inherited SetArrayLength(AName,ALength);
  5133. end;
  5134. end;
  5135. {$ENDIF VER2_6}
  5136. { --------------------------------------------------------------------
  5137. TEntityUserLink
  5138. --------------------------------------------------------------------}
  5139. Procedure TEntityUserLink.Setentity(AIndex : Integer; const AValue : TEntityUserLinkTypeentity);
  5140. begin
  5141. If (Fentity=AValue) then exit;
  5142. Fentity:=AValue;
  5143. MarkPropertyChanged(AIndex);
  5144. end;
  5145. Procedure TEntityUserLink.Setid(AIndex : Integer; const AValue : String);
  5146. begin
  5147. If (Fid=AValue) then exit;
  5148. Fid:=AValue;
  5149. MarkPropertyChanged(AIndex);
  5150. end;
  5151. Procedure TEntityUserLink.Setkind(AIndex : Integer; const AValue : String);
  5152. begin
  5153. If (Fkind=AValue) then exit;
  5154. Fkind:=AValue;
  5155. MarkPropertyChanged(AIndex);
  5156. end;
  5157. Procedure TEntityUserLink.Setpermissions(AIndex : Integer; const AValue : TEntityUserLinkTypepermissions);
  5158. begin
  5159. If (Fpermissions=AValue) then exit;
  5160. Fpermissions:=AValue;
  5161. MarkPropertyChanged(AIndex);
  5162. end;
  5163. Procedure TEntityUserLink.SetselfLink(AIndex : Integer; const AValue : String);
  5164. begin
  5165. If (FselfLink=AValue) then exit;
  5166. FselfLink:=AValue;
  5167. MarkPropertyChanged(AIndex);
  5168. end;
  5169. Procedure TEntityUserLink.SetuserRef(AIndex : Integer; const AValue : TUserRef);
  5170. begin
  5171. If (FuserRef=AValue) then exit;
  5172. FuserRef:=AValue;
  5173. MarkPropertyChanged(AIndex);
  5174. end;
  5175. { --------------------------------------------------------------------
  5176. TEntityUserLinks
  5177. --------------------------------------------------------------------}
  5178. Procedure TEntityUserLinks.Setitems(AIndex : Integer; const AValue : TEntityUserLinksTypeitemsArray);
  5179. begin
  5180. If (Fitems=AValue) then exit;
  5181. Fitems:=AValue;
  5182. MarkPropertyChanged(AIndex);
  5183. end;
  5184. Procedure TEntityUserLinks.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  5185. begin
  5186. If (FitemsPerPage=AValue) then exit;
  5187. FitemsPerPage:=AValue;
  5188. MarkPropertyChanged(AIndex);
  5189. end;
  5190. Procedure TEntityUserLinks.Setkind(AIndex : Integer; const AValue : String);
  5191. begin
  5192. If (Fkind=AValue) then exit;
  5193. Fkind:=AValue;
  5194. MarkPropertyChanged(AIndex);
  5195. end;
  5196. Procedure TEntityUserLinks.SetnextLink(AIndex : Integer; const AValue : String);
  5197. begin
  5198. If (FnextLink=AValue) then exit;
  5199. FnextLink:=AValue;
  5200. MarkPropertyChanged(AIndex);
  5201. end;
  5202. Procedure TEntityUserLinks.SetpreviousLink(AIndex : Integer; const AValue : String);
  5203. begin
  5204. If (FpreviousLink=AValue) then exit;
  5205. FpreviousLink:=AValue;
  5206. MarkPropertyChanged(AIndex);
  5207. end;
  5208. Procedure TEntityUserLinks.SetstartIndex(AIndex : Integer; const AValue : integer);
  5209. begin
  5210. If (FstartIndex=AValue) then exit;
  5211. FstartIndex:=AValue;
  5212. MarkPropertyChanged(AIndex);
  5213. end;
  5214. Procedure TEntityUserLinks.SettotalResults(AIndex : Integer; const AValue : integer);
  5215. begin
  5216. If (FtotalResults=AValue) then exit;
  5217. FtotalResults:=AValue;
  5218. MarkPropertyChanged(AIndex);
  5219. end;
  5220. //2.6.4. bug workaround
  5221. {$IFDEF VER2_6}
  5222. Procedure TEntityUserLinks.SetArrayLength(Const AName : String; ALength : Longint);
  5223. begin
  5224. Case AName of
  5225. 'items' : SetLength(Fitems,ALength);
  5226. else
  5227. Inherited SetArrayLength(AName,ALength);
  5228. end;
  5229. end;
  5230. {$ENDIF VER2_6}
  5231. { --------------------------------------------------------------------
  5232. TExperimentTypeparentLink
  5233. --------------------------------------------------------------------}
  5234. Procedure TExperimentTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  5235. begin
  5236. If (Fhref=AValue) then exit;
  5237. Fhref:=AValue;
  5238. MarkPropertyChanged(AIndex);
  5239. end;
  5240. Procedure TExperimentTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  5241. begin
  5242. If (F_type=AValue) then exit;
  5243. F_type:=AValue;
  5244. MarkPropertyChanged(AIndex);
  5245. end;
  5246. Class Function TExperimentTypeparentLink.ExportPropertyName(Const AName : String) :String;
  5247. begin
  5248. Case AName of
  5249. '_type' : Result:='type';
  5250. else
  5251. Result:=Inherited ExportPropertyName(AName);
  5252. end;
  5253. end;
  5254. { --------------------------------------------------------------------
  5255. TExperimentTypevariationsItem
  5256. --------------------------------------------------------------------}
  5257. Procedure TExperimentTypevariationsItem.Setname(AIndex : Integer; const AValue : String);
  5258. begin
  5259. If (Fname=AValue) then exit;
  5260. Fname:=AValue;
  5261. MarkPropertyChanged(AIndex);
  5262. end;
  5263. Procedure TExperimentTypevariationsItem.Setstatus(AIndex : Integer; const AValue : String);
  5264. begin
  5265. If (Fstatus=AValue) then exit;
  5266. Fstatus:=AValue;
  5267. MarkPropertyChanged(AIndex);
  5268. end;
  5269. Procedure TExperimentTypevariationsItem.Seturl(AIndex : Integer; const AValue : String);
  5270. begin
  5271. If (Furl=AValue) then exit;
  5272. Furl:=AValue;
  5273. MarkPropertyChanged(AIndex);
  5274. end;
  5275. Procedure TExperimentTypevariationsItem.Setweight(AIndex : Integer; const AValue : double);
  5276. begin
  5277. If (Fweight=AValue) then exit;
  5278. Fweight:=AValue;
  5279. MarkPropertyChanged(AIndex);
  5280. end;
  5281. Procedure TExperimentTypevariationsItem.Setwon(AIndex : Integer; const AValue : boolean);
  5282. begin
  5283. If (Fwon=AValue) then exit;
  5284. Fwon:=AValue;
  5285. MarkPropertyChanged(AIndex);
  5286. end;
  5287. { --------------------------------------------------------------------
  5288. TExperiment
  5289. --------------------------------------------------------------------}
  5290. Procedure TExperiment.SetaccountId(AIndex : Integer; const AValue : String);
  5291. begin
  5292. If (FaccountId=AValue) then exit;
  5293. FaccountId:=AValue;
  5294. MarkPropertyChanged(AIndex);
  5295. end;
  5296. Procedure TExperiment.Setcreated(AIndex : Integer; const AValue : TDatetime);
  5297. begin
  5298. If (Fcreated=AValue) then exit;
  5299. Fcreated:=AValue;
  5300. MarkPropertyChanged(AIndex);
  5301. end;
  5302. Procedure TExperiment.Setdescription(AIndex : Integer; const AValue : String);
  5303. begin
  5304. If (Fdescription=AValue) then exit;
  5305. Fdescription:=AValue;
  5306. MarkPropertyChanged(AIndex);
  5307. end;
  5308. Procedure TExperiment.SeteditableInGaUi(AIndex : Integer; const AValue : boolean);
  5309. begin
  5310. If (FeditableInGaUi=AValue) then exit;
  5311. FeditableInGaUi:=AValue;
  5312. MarkPropertyChanged(AIndex);
  5313. end;
  5314. Procedure TExperiment.SetendTime(AIndex : Integer; const AValue : TDatetime);
  5315. begin
  5316. If (FendTime=AValue) then exit;
  5317. FendTime:=AValue;
  5318. MarkPropertyChanged(AIndex);
  5319. end;
  5320. Procedure TExperiment.SetequalWeighting(AIndex : Integer; const AValue : boolean);
  5321. begin
  5322. If (FequalWeighting=AValue) then exit;
  5323. FequalWeighting:=AValue;
  5324. MarkPropertyChanged(AIndex);
  5325. end;
  5326. Procedure TExperiment.Setid(AIndex : Integer; const AValue : String);
  5327. begin
  5328. If (Fid=AValue) then exit;
  5329. Fid:=AValue;
  5330. MarkPropertyChanged(AIndex);
  5331. end;
  5332. Procedure TExperiment.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  5333. begin
  5334. If (FinternalWebPropertyId=AValue) then exit;
  5335. FinternalWebPropertyId:=AValue;
  5336. MarkPropertyChanged(AIndex);
  5337. end;
  5338. Procedure TExperiment.Setkind(AIndex : Integer; const AValue : String);
  5339. begin
  5340. If (Fkind=AValue) then exit;
  5341. Fkind:=AValue;
  5342. MarkPropertyChanged(AIndex);
  5343. end;
  5344. Procedure TExperiment.SetminimumExperimentLengthInDays(AIndex : Integer; const AValue : integer);
  5345. begin
  5346. If (FminimumExperimentLengthInDays=AValue) then exit;
  5347. FminimumExperimentLengthInDays:=AValue;
  5348. MarkPropertyChanged(AIndex);
  5349. end;
  5350. Procedure TExperiment.Setname(AIndex : Integer; const AValue : String);
  5351. begin
  5352. If (Fname=AValue) then exit;
  5353. Fname:=AValue;
  5354. MarkPropertyChanged(AIndex);
  5355. end;
  5356. Procedure TExperiment.SetobjectiveMetric(AIndex : Integer; const AValue : String);
  5357. begin
  5358. If (FobjectiveMetric=AValue) then exit;
  5359. FobjectiveMetric:=AValue;
  5360. MarkPropertyChanged(AIndex);
  5361. end;
  5362. Procedure TExperiment.SetoptimizationType(AIndex : Integer; const AValue : String);
  5363. begin
  5364. If (FoptimizationType=AValue) then exit;
  5365. FoptimizationType:=AValue;
  5366. MarkPropertyChanged(AIndex);
  5367. end;
  5368. Procedure TExperiment.SetparentLink(AIndex : Integer; const AValue : TExperimentTypeparentLink);
  5369. begin
  5370. If (FparentLink=AValue) then exit;
  5371. FparentLink:=AValue;
  5372. MarkPropertyChanged(AIndex);
  5373. end;
  5374. Procedure TExperiment.SetprofileId(AIndex : Integer; const AValue : String);
  5375. begin
  5376. If (FprofileId=AValue) then exit;
  5377. FprofileId:=AValue;
  5378. MarkPropertyChanged(AIndex);
  5379. end;
  5380. Procedure TExperiment.SetreasonExperimentEnded(AIndex : Integer; const AValue : String);
  5381. begin
  5382. If (FreasonExperimentEnded=AValue) then exit;
  5383. FreasonExperimentEnded:=AValue;
  5384. MarkPropertyChanged(AIndex);
  5385. end;
  5386. Procedure TExperiment.SetrewriteVariationUrlsAsOriginal(AIndex : Integer; const AValue : boolean);
  5387. begin
  5388. If (FrewriteVariationUrlsAsOriginal=AValue) then exit;
  5389. FrewriteVariationUrlsAsOriginal:=AValue;
  5390. MarkPropertyChanged(AIndex);
  5391. end;
  5392. Procedure TExperiment.SetselfLink(AIndex : Integer; const AValue : String);
  5393. begin
  5394. If (FselfLink=AValue) then exit;
  5395. FselfLink:=AValue;
  5396. MarkPropertyChanged(AIndex);
  5397. end;
  5398. Procedure TExperiment.SetservingFramework(AIndex : Integer; const AValue : String);
  5399. begin
  5400. If (FservingFramework=AValue) then exit;
  5401. FservingFramework:=AValue;
  5402. MarkPropertyChanged(AIndex);
  5403. end;
  5404. Procedure TExperiment.Setsnippet(AIndex : Integer; const AValue : String);
  5405. begin
  5406. If (Fsnippet=AValue) then exit;
  5407. Fsnippet:=AValue;
  5408. MarkPropertyChanged(AIndex);
  5409. end;
  5410. Procedure TExperiment.SetstartTime(AIndex : Integer; const AValue : TDatetime);
  5411. begin
  5412. If (FstartTime=AValue) then exit;
  5413. FstartTime:=AValue;
  5414. MarkPropertyChanged(AIndex);
  5415. end;
  5416. Procedure TExperiment.Setstatus(AIndex : Integer; const AValue : String);
  5417. begin
  5418. If (Fstatus=AValue) then exit;
  5419. Fstatus:=AValue;
  5420. MarkPropertyChanged(AIndex);
  5421. end;
  5422. Procedure TExperiment.SettrafficCoverage(AIndex : Integer; const AValue : double);
  5423. begin
  5424. If (FtrafficCoverage=AValue) then exit;
  5425. FtrafficCoverage:=AValue;
  5426. MarkPropertyChanged(AIndex);
  5427. end;
  5428. Procedure TExperiment.Setupdated(AIndex : Integer; const AValue : TDatetime);
  5429. begin
  5430. If (Fupdated=AValue) then exit;
  5431. Fupdated:=AValue;
  5432. MarkPropertyChanged(AIndex);
  5433. end;
  5434. Procedure TExperiment.Setvariations(AIndex : Integer; const AValue : TExperimentTypevariationsArray);
  5435. begin
  5436. If (Fvariations=AValue) then exit;
  5437. Fvariations:=AValue;
  5438. MarkPropertyChanged(AIndex);
  5439. end;
  5440. Procedure TExperiment.SetwebPropertyId(AIndex : Integer; const AValue : String);
  5441. begin
  5442. If (FwebPropertyId=AValue) then exit;
  5443. FwebPropertyId:=AValue;
  5444. MarkPropertyChanged(AIndex);
  5445. end;
  5446. Procedure TExperiment.SetwinnerConfidenceLevel(AIndex : Integer; const AValue : double);
  5447. begin
  5448. If (FwinnerConfidenceLevel=AValue) then exit;
  5449. FwinnerConfidenceLevel:=AValue;
  5450. MarkPropertyChanged(AIndex);
  5451. end;
  5452. Procedure TExperiment.SetwinnerFound(AIndex : Integer; const AValue : boolean);
  5453. begin
  5454. If (FwinnerFound=AValue) then exit;
  5455. FwinnerFound:=AValue;
  5456. MarkPropertyChanged(AIndex);
  5457. end;
  5458. //2.6.4. bug workaround
  5459. {$IFDEF VER2_6}
  5460. Procedure TExperiment.SetArrayLength(Const AName : String; ALength : Longint);
  5461. begin
  5462. Case AName of
  5463. 'variations' : SetLength(Fvariations,ALength);
  5464. else
  5465. Inherited SetArrayLength(AName,ALength);
  5466. end;
  5467. end;
  5468. {$ENDIF VER2_6}
  5469. { --------------------------------------------------------------------
  5470. TExperiments
  5471. --------------------------------------------------------------------}
  5472. Procedure TExperiments.Setitems(AIndex : Integer; const AValue : TExperimentsTypeitemsArray);
  5473. begin
  5474. If (Fitems=AValue) then exit;
  5475. Fitems:=AValue;
  5476. MarkPropertyChanged(AIndex);
  5477. end;
  5478. Procedure TExperiments.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  5479. begin
  5480. If (FitemsPerPage=AValue) then exit;
  5481. FitemsPerPage:=AValue;
  5482. MarkPropertyChanged(AIndex);
  5483. end;
  5484. Procedure TExperiments.Setkind(AIndex : Integer; const AValue : String);
  5485. begin
  5486. If (Fkind=AValue) then exit;
  5487. Fkind:=AValue;
  5488. MarkPropertyChanged(AIndex);
  5489. end;
  5490. Procedure TExperiments.SetnextLink(AIndex : Integer; const AValue : String);
  5491. begin
  5492. If (FnextLink=AValue) then exit;
  5493. FnextLink:=AValue;
  5494. MarkPropertyChanged(AIndex);
  5495. end;
  5496. Procedure TExperiments.SetpreviousLink(AIndex : Integer; const AValue : String);
  5497. begin
  5498. If (FpreviousLink=AValue) then exit;
  5499. FpreviousLink:=AValue;
  5500. MarkPropertyChanged(AIndex);
  5501. end;
  5502. Procedure TExperiments.SetstartIndex(AIndex : Integer; const AValue : integer);
  5503. begin
  5504. If (FstartIndex=AValue) then exit;
  5505. FstartIndex:=AValue;
  5506. MarkPropertyChanged(AIndex);
  5507. end;
  5508. Procedure TExperiments.SettotalResults(AIndex : Integer; const AValue : integer);
  5509. begin
  5510. If (FtotalResults=AValue) then exit;
  5511. FtotalResults:=AValue;
  5512. MarkPropertyChanged(AIndex);
  5513. end;
  5514. Procedure TExperiments.Setusername(AIndex : Integer; const AValue : String);
  5515. begin
  5516. If (Fusername=AValue) then exit;
  5517. Fusername:=AValue;
  5518. MarkPropertyChanged(AIndex);
  5519. end;
  5520. //2.6.4. bug workaround
  5521. {$IFDEF VER2_6}
  5522. Procedure TExperiments.SetArrayLength(Const AName : String; ALength : Longint);
  5523. begin
  5524. Case AName of
  5525. 'items' : SetLength(Fitems,ALength);
  5526. else
  5527. Inherited SetArrayLength(AName,ALength);
  5528. end;
  5529. end;
  5530. {$ENDIF VER2_6}
  5531. { --------------------------------------------------------------------
  5532. TFilterTypeadvancedDetails
  5533. --------------------------------------------------------------------}
  5534. Procedure TFilterTypeadvancedDetails.SetcaseSensitive(AIndex : Integer; const AValue : boolean);
  5535. begin
  5536. If (FcaseSensitive=AValue) then exit;
  5537. FcaseSensitive:=AValue;
  5538. MarkPropertyChanged(AIndex);
  5539. end;
  5540. Procedure TFilterTypeadvancedDetails.SetextractA(AIndex : Integer; const AValue : String);
  5541. begin
  5542. If (FextractA=AValue) then exit;
  5543. FextractA:=AValue;
  5544. MarkPropertyChanged(AIndex);
  5545. end;
  5546. Procedure TFilterTypeadvancedDetails.SetextractB(AIndex : Integer; const AValue : String);
  5547. begin
  5548. If (FextractB=AValue) then exit;
  5549. FextractB:=AValue;
  5550. MarkPropertyChanged(AIndex);
  5551. end;
  5552. Procedure TFilterTypeadvancedDetails.SetfieldA(AIndex : Integer; const AValue : String);
  5553. begin
  5554. If (FfieldA=AValue) then exit;
  5555. FfieldA:=AValue;
  5556. MarkPropertyChanged(AIndex);
  5557. end;
  5558. Procedure TFilterTypeadvancedDetails.SetfieldAIndex(AIndex : Integer; const AValue : integer);
  5559. begin
  5560. If (FfieldAIndex=AValue) then exit;
  5561. FfieldAIndex:=AValue;
  5562. MarkPropertyChanged(AIndex);
  5563. end;
  5564. Procedure TFilterTypeadvancedDetails.SetfieldARequired(AIndex : Integer; const AValue : boolean);
  5565. begin
  5566. If (FfieldARequired=AValue) then exit;
  5567. FfieldARequired:=AValue;
  5568. MarkPropertyChanged(AIndex);
  5569. end;
  5570. Procedure TFilterTypeadvancedDetails.SetfieldB(AIndex : Integer; const AValue : String);
  5571. begin
  5572. If (FfieldB=AValue) then exit;
  5573. FfieldB:=AValue;
  5574. MarkPropertyChanged(AIndex);
  5575. end;
  5576. Procedure TFilterTypeadvancedDetails.SetfieldBIndex(AIndex : Integer; const AValue : integer);
  5577. begin
  5578. If (FfieldBIndex=AValue) then exit;
  5579. FfieldBIndex:=AValue;
  5580. MarkPropertyChanged(AIndex);
  5581. end;
  5582. Procedure TFilterTypeadvancedDetails.SetfieldBRequired(AIndex : Integer; const AValue : boolean);
  5583. begin
  5584. If (FfieldBRequired=AValue) then exit;
  5585. FfieldBRequired:=AValue;
  5586. MarkPropertyChanged(AIndex);
  5587. end;
  5588. Procedure TFilterTypeadvancedDetails.SetoutputConstructor(AIndex : Integer; const AValue : String);
  5589. begin
  5590. If (FoutputConstructor=AValue) then exit;
  5591. FoutputConstructor:=AValue;
  5592. MarkPropertyChanged(AIndex);
  5593. end;
  5594. Procedure TFilterTypeadvancedDetails.SetoutputToField(AIndex : Integer; const AValue : String);
  5595. begin
  5596. If (FoutputToField=AValue) then exit;
  5597. FoutputToField:=AValue;
  5598. MarkPropertyChanged(AIndex);
  5599. end;
  5600. Procedure TFilterTypeadvancedDetails.SetoutputToFieldIndex(AIndex : Integer; const AValue : integer);
  5601. begin
  5602. If (FoutputToFieldIndex=AValue) then exit;
  5603. FoutputToFieldIndex:=AValue;
  5604. MarkPropertyChanged(AIndex);
  5605. end;
  5606. Procedure TFilterTypeadvancedDetails.SetoverrideOutputField(AIndex : Integer; const AValue : boolean);
  5607. begin
  5608. If (FoverrideOutputField=AValue) then exit;
  5609. FoverrideOutputField:=AValue;
  5610. MarkPropertyChanged(AIndex);
  5611. end;
  5612. { --------------------------------------------------------------------
  5613. TFilterTypelowercaseDetails
  5614. --------------------------------------------------------------------}
  5615. Procedure TFilterTypelowercaseDetails.Setfield(AIndex : Integer; const AValue : String);
  5616. begin
  5617. If (Ffield=AValue) then exit;
  5618. Ffield:=AValue;
  5619. MarkPropertyChanged(AIndex);
  5620. end;
  5621. Procedure TFilterTypelowercaseDetails.SetfieldIndex(AIndex : Integer; const AValue : integer);
  5622. begin
  5623. If (FfieldIndex=AValue) then exit;
  5624. FfieldIndex:=AValue;
  5625. MarkPropertyChanged(AIndex);
  5626. end;
  5627. { --------------------------------------------------------------------
  5628. TFilterTypeparentLink
  5629. --------------------------------------------------------------------}
  5630. Procedure TFilterTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  5631. begin
  5632. If (Fhref=AValue) then exit;
  5633. Fhref:=AValue;
  5634. MarkPropertyChanged(AIndex);
  5635. end;
  5636. Procedure TFilterTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  5637. begin
  5638. If (F_type=AValue) then exit;
  5639. F_type:=AValue;
  5640. MarkPropertyChanged(AIndex);
  5641. end;
  5642. Class Function TFilterTypeparentLink.ExportPropertyName(Const AName : String) :String;
  5643. begin
  5644. Case AName of
  5645. '_type' : Result:='type';
  5646. else
  5647. Result:=Inherited ExportPropertyName(AName);
  5648. end;
  5649. end;
  5650. { --------------------------------------------------------------------
  5651. TFilterTypesearchAndReplaceDetails
  5652. --------------------------------------------------------------------}
  5653. Procedure TFilterTypesearchAndReplaceDetails.SetcaseSensitive(AIndex : Integer; const AValue : boolean);
  5654. begin
  5655. If (FcaseSensitive=AValue) then exit;
  5656. FcaseSensitive:=AValue;
  5657. MarkPropertyChanged(AIndex);
  5658. end;
  5659. Procedure TFilterTypesearchAndReplaceDetails.Setfield(AIndex : Integer; const AValue : String);
  5660. begin
  5661. If (Ffield=AValue) then exit;
  5662. Ffield:=AValue;
  5663. MarkPropertyChanged(AIndex);
  5664. end;
  5665. Procedure TFilterTypesearchAndReplaceDetails.SetfieldIndex(AIndex : Integer; const AValue : integer);
  5666. begin
  5667. If (FfieldIndex=AValue) then exit;
  5668. FfieldIndex:=AValue;
  5669. MarkPropertyChanged(AIndex);
  5670. end;
  5671. Procedure TFilterTypesearchAndReplaceDetails.SetreplaceString(AIndex : Integer; const AValue : String);
  5672. begin
  5673. If (FreplaceString=AValue) then exit;
  5674. FreplaceString:=AValue;
  5675. MarkPropertyChanged(AIndex);
  5676. end;
  5677. Procedure TFilterTypesearchAndReplaceDetails.SetsearchString(AIndex : Integer; const AValue : String);
  5678. begin
  5679. If (FsearchString=AValue) then exit;
  5680. FsearchString:=AValue;
  5681. MarkPropertyChanged(AIndex);
  5682. end;
  5683. { --------------------------------------------------------------------
  5684. TFilterTypeuppercaseDetails
  5685. --------------------------------------------------------------------}
  5686. Procedure TFilterTypeuppercaseDetails.Setfield(AIndex : Integer; const AValue : String);
  5687. begin
  5688. If (Ffield=AValue) then exit;
  5689. Ffield:=AValue;
  5690. MarkPropertyChanged(AIndex);
  5691. end;
  5692. Procedure TFilterTypeuppercaseDetails.SetfieldIndex(AIndex : Integer; const AValue : integer);
  5693. begin
  5694. If (FfieldIndex=AValue) then exit;
  5695. FfieldIndex:=AValue;
  5696. MarkPropertyChanged(AIndex);
  5697. end;
  5698. { --------------------------------------------------------------------
  5699. TFilter
  5700. --------------------------------------------------------------------}
  5701. Procedure TFilter.SetaccountId(AIndex : Integer; const AValue : String);
  5702. begin
  5703. If (FaccountId=AValue) then exit;
  5704. FaccountId:=AValue;
  5705. MarkPropertyChanged(AIndex);
  5706. end;
  5707. Procedure TFilter.SetadvancedDetails(AIndex : Integer; const AValue : TFilterTypeadvancedDetails);
  5708. begin
  5709. If (FadvancedDetails=AValue) then exit;
  5710. FadvancedDetails:=AValue;
  5711. MarkPropertyChanged(AIndex);
  5712. end;
  5713. Procedure TFilter.Setcreated(AIndex : Integer; const AValue : TDatetime);
  5714. begin
  5715. If (Fcreated=AValue) then exit;
  5716. Fcreated:=AValue;
  5717. MarkPropertyChanged(AIndex);
  5718. end;
  5719. Procedure TFilter.SetexcludeDetails(AIndex : Integer; const AValue : TFilterExpression);
  5720. begin
  5721. If (FexcludeDetails=AValue) then exit;
  5722. FexcludeDetails:=AValue;
  5723. MarkPropertyChanged(AIndex);
  5724. end;
  5725. Procedure TFilter.Setid(AIndex : Integer; const AValue : String);
  5726. begin
  5727. If (Fid=AValue) then exit;
  5728. Fid:=AValue;
  5729. MarkPropertyChanged(AIndex);
  5730. end;
  5731. Procedure TFilter.SetincludeDetails(AIndex : Integer; const AValue : TFilterExpression);
  5732. begin
  5733. If (FincludeDetails=AValue) then exit;
  5734. FincludeDetails:=AValue;
  5735. MarkPropertyChanged(AIndex);
  5736. end;
  5737. Procedure TFilter.Setkind(AIndex : Integer; const AValue : String);
  5738. begin
  5739. If (Fkind=AValue) then exit;
  5740. Fkind:=AValue;
  5741. MarkPropertyChanged(AIndex);
  5742. end;
  5743. Procedure TFilter.SetlowercaseDetails(AIndex : Integer; const AValue : TFilterTypelowercaseDetails);
  5744. begin
  5745. If (FlowercaseDetails=AValue) then exit;
  5746. FlowercaseDetails:=AValue;
  5747. MarkPropertyChanged(AIndex);
  5748. end;
  5749. Procedure TFilter.Setname(AIndex : Integer; const AValue : String);
  5750. begin
  5751. If (Fname=AValue) then exit;
  5752. Fname:=AValue;
  5753. MarkPropertyChanged(AIndex);
  5754. end;
  5755. Procedure TFilter.SetparentLink(AIndex : Integer; const AValue : TFilterTypeparentLink);
  5756. begin
  5757. If (FparentLink=AValue) then exit;
  5758. FparentLink:=AValue;
  5759. MarkPropertyChanged(AIndex);
  5760. end;
  5761. Procedure TFilter.SetsearchAndReplaceDetails(AIndex : Integer; const AValue : TFilterTypesearchAndReplaceDetails);
  5762. begin
  5763. If (FsearchAndReplaceDetails=AValue) then exit;
  5764. FsearchAndReplaceDetails:=AValue;
  5765. MarkPropertyChanged(AIndex);
  5766. end;
  5767. Procedure TFilter.SetselfLink(AIndex : Integer; const AValue : String);
  5768. begin
  5769. If (FselfLink=AValue) then exit;
  5770. FselfLink:=AValue;
  5771. MarkPropertyChanged(AIndex);
  5772. end;
  5773. Procedure TFilter.Set_type(AIndex : Integer; const AValue : String);
  5774. begin
  5775. If (F_type=AValue) then exit;
  5776. F_type:=AValue;
  5777. MarkPropertyChanged(AIndex);
  5778. end;
  5779. Procedure TFilter.Setupdated(AIndex : Integer; const AValue : TDatetime);
  5780. begin
  5781. If (Fupdated=AValue) then exit;
  5782. Fupdated:=AValue;
  5783. MarkPropertyChanged(AIndex);
  5784. end;
  5785. Procedure TFilter.SetuppercaseDetails(AIndex : Integer; const AValue : TFilterTypeuppercaseDetails);
  5786. begin
  5787. If (FuppercaseDetails=AValue) then exit;
  5788. FuppercaseDetails:=AValue;
  5789. MarkPropertyChanged(AIndex);
  5790. end;
  5791. Class Function TFilter.ExportPropertyName(Const AName : String) :String;
  5792. begin
  5793. Case AName of
  5794. '_type' : Result:='type';
  5795. else
  5796. Result:=Inherited ExportPropertyName(AName);
  5797. end;
  5798. end;
  5799. { --------------------------------------------------------------------
  5800. TFilterExpression
  5801. --------------------------------------------------------------------}
  5802. Procedure TFilterExpression.SetcaseSensitive(AIndex : Integer; const AValue : boolean);
  5803. begin
  5804. If (FcaseSensitive=AValue) then exit;
  5805. FcaseSensitive:=AValue;
  5806. MarkPropertyChanged(AIndex);
  5807. end;
  5808. Procedure TFilterExpression.SetexpressionValue(AIndex : Integer; const AValue : String);
  5809. begin
  5810. If (FexpressionValue=AValue) then exit;
  5811. FexpressionValue:=AValue;
  5812. MarkPropertyChanged(AIndex);
  5813. end;
  5814. Procedure TFilterExpression.Setfield(AIndex : Integer; const AValue : String);
  5815. begin
  5816. If (Ffield=AValue) then exit;
  5817. Ffield:=AValue;
  5818. MarkPropertyChanged(AIndex);
  5819. end;
  5820. Procedure TFilterExpression.SetfieldIndex(AIndex : Integer; const AValue : integer);
  5821. begin
  5822. If (FfieldIndex=AValue) then exit;
  5823. FfieldIndex:=AValue;
  5824. MarkPropertyChanged(AIndex);
  5825. end;
  5826. Procedure TFilterExpression.Setkind(AIndex : Integer; const AValue : String);
  5827. begin
  5828. If (Fkind=AValue) then exit;
  5829. Fkind:=AValue;
  5830. MarkPropertyChanged(AIndex);
  5831. end;
  5832. Procedure TFilterExpression.SetmatchType(AIndex : Integer; const AValue : String);
  5833. begin
  5834. If (FmatchType=AValue) then exit;
  5835. FmatchType:=AValue;
  5836. MarkPropertyChanged(AIndex);
  5837. end;
  5838. { --------------------------------------------------------------------
  5839. TFilterRef
  5840. --------------------------------------------------------------------}
  5841. Procedure TFilterRef.SetaccountId(AIndex : Integer; const AValue : String);
  5842. begin
  5843. If (FaccountId=AValue) then exit;
  5844. FaccountId:=AValue;
  5845. MarkPropertyChanged(AIndex);
  5846. end;
  5847. Procedure TFilterRef.Sethref(AIndex : Integer; const AValue : String);
  5848. begin
  5849. If (Fhref=AValue) then exit;
  5850. Fhref:=AValue;
  5851. MarkPropertyChanged(AIndex);
  5852. end;
  5853. Procedure TFilterRef.Setid(AIndex : Integer; const AValue : String);
  5854. begin
  5855. If (Fid=AValue) then exit;
  5856. Fid:=AValue;
  5857. MarkPropertyChanged(AIndex);
  5858. end;
  5859. Procedure TFilterRef.Setkind(AIndex : Integer; const AValue : String);
  5860. begin
  5861. If (Fkind=AValue) then exit;
  5862. Fkind:=AValue;
  5863. MarkPropertyChanged(AIndex);
  5864. end;
  5865. Procedure TFilterRef.Setname(AIndex : Integer; const AValue : String);
  5866. begin
  5867. If (Fname=AValue) then exit;
  5868. Fname:=AValue;
  5869. MarkPropertyChanged(AIndex);
  5870. end;
  5871. { --------------------------------------------------------------------
  5872. TFilters
  5873. --------------------------------------------------------------------}
  5874. Procedure TFilters.Setitems(AIndex : Integer; const AValue : TFiltersTypeitemsArray);
  5875. begin
  5876. If (Fitems=AValue) then exit;
  5877. Fitems:=AValue;
  5878. MarkPropertyChanged(AIndex);
  5879. end;
  5880. Procedure TFilters.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  5881. begin
  5882. If (FitemsPerPage=AValue) then exit;
  5883. FitemsPerPage:=AValue;
  5884. MarkPropertyChanged(AIndex);
  5885. end;
  5886. Procedure TFilters.Setkind(AIndex : Integer; const AValue : String);
  5887. begin
  5888. If (Fkind=AValue) then exit;
  5889. Fkind:=AValue;
  5890. MarkPropertyChanged(AIndex);
  5891. end;
  5892. Procedure TFilters.SetnextLink(AIndex : Integer; const AValue : String);
  5893. begin
  5894. If (FnextLink=AValue) then exit;
  5895. FnextLink:=AValue;
  5896. MarkPropertyChanged(AIndex);
  5897. end;
  5898. Procedure TFilters.SetpreviousLink(AIndex : Integer; const AValue : String);
  5899. begin
  5900. If (FpreviousLink=AValue) then exit;
  5901. FpreviousLink:=AValue;
  5902. MarkPropertyChanged(AIndex);
  5903. end;
  5904. Procedure TFilters.SetstartIndex(AIndex : Integer; const AValue : integer);
  5905. begin
  5906. If (FstartIndex=AValue) then exit;
  5907. FstartIndex:=AValue;
  5908. MarkPropertyChanged(AIndex);
  5909. end;
  5910. Procedure TFilters.SettotalResults(AIndex : Integer; const AValue : integer);
  5911. begin
  5912. If (FtotalResults=AValue) then exit;
  5913. FtotalResults:=AValue;
  5914. MarkPropertyChanged(AIndex);
  5915. end;
  5916. Procedure TFilters.Setusername(AIndex : Integer; const AValue : String);
  5917. begin
  5918. If (Fusername=AValue) then exit;
  5919. Fusername:=AValue;
  5920. MarkPropertyChanged(AIndex);
  5921. end;
  5922. //2.6.4. bug workaround
  5923. {$IFDEF VER2_6}
  5924. Procedure TFilters.SetArrayLength(Const AName : String; ALength : Longint);
  5925. begin
  5926. Case AName of
  5927. 'items' : SetLength(Fitems,ALength);
  5928. else
  5929. Inherited SetArrayLength(AName,ALength);
  5930. end;
  5931. end;
  5932. {$ENDIF VER2_6}
  5933. { --------------------------------------------------------------------
  5934. TGaDataTypecolumnHeadersItem
  5935. --------------------------------------------------------------------}
  5936. Procedure TGaDataTypecolumnHeadersItem.SetcolumnType(AIndex : Integer; const AValue : String);
  5937. begin
  5938. If (FcolumnType=AValue) then exit;
  5939. FcolumnType:=AValue;
  5940. MarkPropertyChanged(AIndex);
  5941. end;
  5942. Procedure TGaDataTypecolumnHeadersItem.SetdataType(AIndex : Integer; const AValue : String);
  5943. begin
  5944. If (FdataType=AValue) then exit;
  5945. FdataType:=AValue;
  5946. MarkPropertyChanged(AIndex);
  5947. end;
  5948. Procedure TGaDataTypecolumnHeadersItem.Setname(AIndex : Integer; const AValue : String);
  5949. begin
  5950. If (Fname=AValue) then exit;
  5951. Fname:=AValue;
  5952. MarkPropertyChanged(AIndex);
  5953. end;
  5954. { --------------------------------------------------------------------
  5955. TGaDataTypedataTableTypecolsItem
  5956. --------------------------------------------------------------------}
  5957. Procedure TGaDataTypedataTableTypecolsItem.Setid(AIndex : Integer; const AValue : String);
  5958. begin
  5959. If (Fid=AValue) then exit;
  5960. Fid:=AValue;
  5961. MarkPropertyChanged(AIndex);
  5962. end;
  5963. Procedure TGaDataTypedataTableTypecolsItem.Set_label(AIndex : Integer; const AValue : String);
  5964. begin
  5965. If (F_label=AValue) then exit;
  5966. F_label:=AValue;
  5967. MarkPropertyChanged(AIndex);
  5968. end;
  5969. Procedure TGaDataTypedataTableTypecolsItem.Set_type(AIndex : Integer; const AValue : String);
  5970. begin
  5971. If (F_type=AValue) then exit;
  5972. F_type:=AValue;
  5973. MarkPropertyChanged(AIndex);
  5974. end;
  5975. Class Function TGaDataTypedataTableTypecolsItem.ExportPropertyName(Const AName : String) :String;
  5976. begin
  5977. Case AName of
  5978. '_label' : Result:='label';
  5979. '_type' : Result:='type';
  5980. else
  5981. Result:=Inherited ExportPropertyName(AName);
  5982. end;
  5983. end;
  5984. { --------------------------------------------------------------------
  5985. TGaDataTypedataTableTyperowsItemTypecItem
  5986. --------------------------------------------------------------------}
  5987. Procedure TGaDataTypedataTableTyperowsItemTypecItem.Setv(AIndex : Integer; const AValue : String);
  5988. begin
  5989. If (Fv=AValue) then exit;
  5990. Fv:=AValue;
  5991. MarkPropertyChanged(AIndex);
  5992. end;
  5993. { --------------------------------------------------------------------
  5994. TGaDataTypedataTableTyperowsItem
  5995. --------------------------------------------------------------------}
  5996. Procedure TGaDataTypedataTableTyperowsItem.Setc(AIndex : Integer; const AValue : TGaDataTypedataTableTyperowsItemTypecArray);
  5997. begin
  5998. If (Fc=AValue) then exit;
  5999. Fc:=AValue;
  6000. MarkPropertyChanged(AIndex);
  6001. end;
  6002. //2.6.4. bug workaround
  6003. {$IFDEF VER2_6}
  6004. Procedure TGaDataTypedataTableTyperowsItem.SetArrayLength(Const AName : String; ALength : Longint);
  6005. begin
  6006. Case AName of
  6007. 'c' : SetLength(Fc,ALength);
  6008. else
  6009. Inherited SetArrayLength(AName,ALength);
  6010. end;
  6011. end;
  6012. {$ENDIF VER2_6}
  6013. { --------------------------------------------------------------------
  6014. TGaDataTypedataTable
  6015. --------------------------------------------------------------------}
  6016. Procedure TGaDataTypedataTable.Setcols(AIndex : Integer; const AValue : TGaDataTypedataTableTypecolsArray);
  6017. begin
  6018. If (Fcols=AValue) then exit;
  6019. Fcols:=AValue;
  6020. MarkPropertyChanged(AIndex);
  6021. end;
  6022. Procedure TGaDataTypedataTable.Setrows(AIndex : Integer; const AValue : TGaDataTypedataTableTyperowsArray);
  6023. begin
  6024. If (Frows=AValue) then exit;
  6025. Frows:=AValue;
  6026. MarkPropertyChanged(AIndex);
  6027. end;
  6028. //2.6.4. bug workaround
  6029. {$IFDEF VER2_6}
  6030. Procedure TGaDataTypedataTable.SetArrayLength(Const AName : String; ALength : Longint);
  6031. begin
  6032. Case AName of
  6033. 'cols' : SetLength(Fcols,ALength);
  6034. 'rows' : SetLength(Frows,ALength);
  6035. else
  6036. Inherited SetArrayLength(AName,ALength);
  6037. end;
  6038. end;
  6039. {$ENDIF VER2_6}
  6040. { --------------------------------------------------------------------
  6041. TGaDataTypeprofileInfo
  6042. --------------------------------------------------------------------}
  6043. Procedure TGaDataTypeprofileInfo.SetaccountId(AIndex : Integer; const AValue : String);
  6044. begin
  6045. If (FaccountId=AValue) then exit;
  6046. FaccountId:=AValue;
  6047. MarkPropertyChanged(AIndex);
  6048. end;
  6049. Procedure TGaDataTypeprofileInfo.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  6050. begin
  6051. If (FinternalWebPropertyId=AValue) then exit;
  6052. FinternalWebPropertyId:=AValue;
  6053. MarkPropertyChanged(AIndex);
  6054. end;
  6055. Procedure TGaDataTypeprofileInfo.SetprofileId(AIndex : Integer; const AValue : String);
  6056. begin
  6057. If (FprofileId=AValue) then exit;
  6058. FprofileId:=AValue;
  6059. MarkPropertyChanged(AIndex);
  6060. end;
  6061. Procedure TGaDataTypeprofileInfo.SetprofileName(AIndex : Integer; const AValue : String);
  6062. begin
  6063. If (FprofileName=AValue) then exit;
  6064. FprofileName:=AValue;
  6065. MarkPropertyChanged(AIndex);
  6066. end;
  6067. Procedure TGaDataTypeprofileInfo.SettableId(AIndex : Integer; const AValue : String);
  6068. begin
  6069. If (FtableId=AValue) then exit;
  6070. FtableId:=AValue;
  6071. MarkPropertyChanged(AIndex);
  6072. end;
  6073. Procedure TGaDataTypeprofileInfo.SetwebPropertyId(AIndex : Integer; const AValue : String);
  6074. begin
  6075. If (FwebPropertyId=AValue) then exit;
  6076. FwebPropertyId:=AValue;
  6077. MarkPropertyChanged(AIndex);
  6078. end;
  6079. { --------------------------------------------------------------------
  6080. TGaDataTypequery
  6081. --------------------------------------------------------------------}
  6082. Procedure TGaDataTypequery.Setdimensions(AIndex : Integer; const AValue : String);
  6083. begin
  6084. If (Fdimensions=AValue) then exit;
  6085. Fdimensions:=AValue;
  6086. MarkPropertyChanged(AIndex);
  6087. end;
  6088. Procedure TGaDataTypequery.Setenddate(AIndex : Integer; const AValue : String);
  6089. begin
  6090. If (Fenddate=AValue) then exit;
  6091. Fenddate:=AValue;
  6092. MarkPropertyChanged(AIndex);
  6093. end;
  6094. Procedure TGaDataTypequery.Setfilters(AIndex : Integer; const AValue : String);
  6095. begin
  6096. If (Ffilters=AValue) then exit;
  6097. Ffilters:=AValue;
  6098. MarkPropertyChanged(AIndex);
  6099. end;
  6100. Procedure TGaDataTypequery.Setids(AIndex : Integer; const AValue : String);
  6101. begin
  6102. If (Fids=AValue) then exit;
  6103. Fids:=AValue;
  6104. MarkPropertyChanged(AIndex);
  6105. end;
  6106. Procedure TGaDataTypequery.Setmaxresults(AIndex : Integer; const AValue : integer);
  6107. begin
  6108. If (Fmaxresults=AValue) then exit;
  6109. Fmaxresults:=AValue;
  6110. MarkPropertyChanged(AIndex);
  6111. end;
  6112. Procedure TGaDataTypequery.Setmetrics(AIndex : Integer; const AValue : TStringArray);
  6113. begin
  6114. If (Fmetrics=AValue) then exit;
  6115. Fmetrics:=AValue;
  6116. MarkPropertyChanged(AIndex);
  6117. end;
  6118. Procedure TGaDataTypequery.SetsamplingLevel(AIndex : Integer; const AValue : String);
  6119. begin
  6120. If (FsamplingLevel=AValue) then exit;
  6121. FsamplingLevel:=AValue;
  6122. MarkPropertyChanged(AIndex);
  6123. end;
  6124. Procedure TGaDataTypequery.Setsegment(AIndex : Integer; const AValue : String);
  6125. begin
  6126. If (Fsegment=AValue) then exit;
  6127. Fsegment:=AValue;
  6128. MarkPropertyChanged(AIndex);
  6129. end;
  6130. Procedure TGaDataTypequery.Setsort(AIndex : Integer; const AValue : TStringArray);
  6131. begin
  6132. If (Fsort=AValue) then exit;
  6133. Fsort:=AValue;
  6134. MarkPropertyChanged(AIndex);
  6135. end;
  6136. Procedure TGaDataTypequery.Setstartdate(AIndex : Integer; const AValue : String);
  6137. begin
  6138. If (Fstartdate=AValue) then exit;
  6139. Fstartdate:=AValue;
  6140. MarkPropertyChanged(AIndex);
  6141. end;
  6142. Procedure TGaDataTypequery.Setstartindex(AIndex : Integer; const AValue : integer);
  6143. begin
  6144. If (Fstartindex=AValue) then exit;
  6145. Fstartindex:=AValue;
  6146. MarkPropertyChanged(AIndex);
  6147. end;
  6148. Class Function TGaDataTypequery.ExportPropertyName(Const AName : String) :String;
  6149. begin
  6150. Case AName of
  6151. 'enddate' : Result:='end-date';
  6152. 'maxresults' : Result:='max-results';
  6153. 'startdate' : Result:='start-date';
  6154. 'startindex' : Result:='start-index';
  6155. else
  6156. Result:=Inherited ExportPropertyName(AName);
  6157. end;
  6158. end;
  6159. //2.6.4. bug workaround
  6160. {$IFDEF VER2_6}
  6161. Procedure TGaDataTypequery.SetArrayLength(Const AName : String; ALength : Longint);
  6162. begin
  6163. Case AName of
  6164. 'metrics' : SetLength(Fmetrics,ALength);
  6165. 'sort' : SetLength(Fsort,ALength);
  6166. else
  6167. Inherited SetArrayLength(AName,ALength);
  6168. end;
  6169. end;
  6170. {$ENDIF VER2_6}
  6171. { --------------------------------------------------------------------
  6172. TGaDataTypetotalsForAllResults
  6173. --------------------------------------------------------------------}
  6174. Class Function TGaDataTypetotalsForAllResults.AllowAdditionalProperties : Boolean;
  6175. begin
  6176. Result:=True;
  6177. end;
  6178. { --------------------------------------------------------------------
  6179. TGaData
  6180. --------------------------------------------------------------------}
  6181. Procedure TGaData.SetcolumnHeaders(AIndex : Integer; const AValue : TGaDataTypecolumnHeadersArray);
  6182. begin
  6183. If (FcolumnHeaders=AValue) then exit;
  6184. FcolumnHeaders:=AValue;
  6185. MarkPropertyChanged(AIndex);
  6186. end;
  6187. Procedure TGaData.SetcontainsSampledData(AIndex : Integer; const AValue : boolean);
  6188. begin
  6189. If (FcontainsSampledData=AValue) then exit;
  6190. FcontainsSampledData:=AValue;
  6191. MarkPropertyChanged(AIndex);
  6192. end;
  6193. Procedure TGaData.SetdataTable(AIndex : Integer; const AValue : TGaDataTypedataTable);
  6194. begin
  6195. If (FdataTable=AValue) then exit;
  6196. FdataTable:=AValue;
  6197. MarkPropertyChanged(AIndex);
  6198. end;
  6199. Procedure TGaData.Setid(AIndex : Integer; const AValue : String);
  6200. begin
  6201. If (Fid=AValue) then exit;
  6202. Fid:=AValue;
  6203. MarkPropertyChanged(AIndex);
  6204. end;
  6205. Procedure TGaData.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  6206. begin
  6207. If (FitemsPerPage=AValue) then exit;
  6208. FitemsPerPage:=AValue;
  6209. MarkPropertyChanged(AIndex);
  6210. end;
  6211. Procedure TGaData.Setkind(AIndex : Integer; const AValue : String);
  6212. begin
  6213. If (Fkind=AValue) then exit;
  6214. Fkind:=AValue;
  6215. MarkPropertyChanged(AIndex);
  6216. end;
  6217. Procedure TGaData.SetnextLink(AIndex : Integer; const AValue : String);
  6218. begin
  6219. If (FnextLink=AValue) then exit;
  6220. FnextLink:=AValue;
  6221. MarkPropertyChanged(AIndex);
  6222. end;
  6223. Procedure TGaData.SetpreviousLink(AIndex : Integer; const AValue : String);
  6224. begin
  6225. If (FpreviousLink=AValue) then exit;
  6226. FpreviousLink:=AValue;
  6227. MarkPropertyChanged(AIndex);
  6228. end;
  6229. Procedure TGaData.SetprofileInfo(AIndex : Integer; const AValue : TGaDataTypeprofileInfo);
  6230. begin
  6231. If (FprofileInfo=AValue) then exit;
  6232. FprofileInfo:=AValue;
  6233. MarkPropertyChanged(AIndex);
  6234. end;
  6235. Procedure TGaData.Setquery(AIndex : Integer; const AValue : TGaDataTypequery);
  6236. begin
  6237. If (Fquery=AValue) then exit;
  6238. Fquery:=AValue;
  6239. MarkPropertyChanged(AIndex);
  6240. end;
  6241. Procedure TGaData.Setrows(AIndex : Integer; const AValue : TGaDataTyperowsArray);
  6242. begin
  6243. If (Frows=AValue) then exit;
  6244. Frows:=AValue;
  6245. MarkPropertyChanged(AIndex);
  6246. end;
  6247. Procedure TGaData.SetsampleSize(AIndex : Integer; const AValue : String);
  6248. begin
  6249. If (FsampleSize=AValue) then exit;
  6250. FsampleSize:=AValue;
  6251. MarkPropertyChanged(AIndex);
  6252. end;
  6253. Procedure TGaData.SetsampleSpace(AIndex : Integer; const AValue : String);
  6254. begin
  6255. If (FsampleSpace=AValue) then exit;
  6256. FsampleSpace:=AValue;
  6257. MarkPropertyChanged(AIndex);
  6258. end;
  6259. Procedure TGaData.SetselfLink(AIndex : Integer; const AValue : String);
  6260. begin
  6261. If (FselfLink=AValue) then exit;
  6262. FselfLink:=AValue;
  6263. MarkPropertyChanged(AIndex);
  6264. end;
  6265. Procedure TGaData.SettotalResults(AIndex : Integer; const AValue : integer);
  6266. begin
  6267. If (FtotalResults=AValue) then exit;
  6268. FtotalResults:=AValue;
  6269. MarkPropertyChanged(AIndex);
  6270. end;
  6271. Procedure TGaData.SettotalsForAllResults(AIndex : Integer; const AValue : TGaDataTypetotalsForAllResults);
  6272. begin
  6273. If (FtotalsForAllResults=AValue) then exit;
  6274. FtotalsForAllResults:=AValue;
  6275. MarkPropertyChanged(AIndex);
  6276. end;
  6277. //2.6.4. bug workaround
  6278. {$IFDEF VER2_6}
  6279. Procedure TGaData.SetArrayLength(Const AName : String; ALength : Longint);
  6280. begin
  6281. Case AName of
  6282. 'columnheaders' : SetLength(FcolumnHeaders,ALength);
  6283. 'rows' : SetLength(Frows,ALength);
  6284. else
  6285. Inherited SetArrayLength(AName,ALength);
  6286. end;
  6287. end;
  6288. {$ENDIF VER2_6}
  6289. { --------------------------------------------------------------------
  6290. TGoalTypeeventDetailsTypeeventConditionsItem
  6291. --------------------------------------------------------------------}
  6292. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.SetcomparisonType(AIndex : Integer; const AValue : String);
  6293. begin
  6294. If (FcomparisonType=AValue) then exit;
  6295. FcomparisonType:=AValue;
  6296. MarkPropertyChanged(AIndex);
  6297. end;
  6298. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.SetcomparisonValue(AIndex : Integer; const AValue : String);
  6299. begin
  6300. If (FcomparisonValue=AValue) then exit;
  6301. FcomparisonValue:=AValue;
  6302. MarkPropertyChanged(AIndex);
  6303. end;
  6304. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.Setexpression(AIndex : Integer; const AValue : String);
  6305. begin
  6306. If (Fexpression=AValue) then exit;
  6307. Fexpression:=AValue;
  6308. MarkPropertyChanged(AIndex);
  6309. end;
  6310. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.SetmatchType(AIndex : Integer; const AValue : String);
  6311. begin
  6312. If (FmatchType=AValue) then exit;
  6313. FmatchType:=AValue;
  6314. MarkPropertyChanged(AIndex);
  6315. end;
  6316. Procedure TGoalTypeeventDetailsTypeeventConditionsItem.Set_type(AIndex : Integer; const AValue : String);
  6317. begin
  6318. If (F_type=AValue) then exit;
  6319. F_type:=AValue;
  6320. MarkPropertyChanged(AIndex);
  6321. end;
  6322. Class Function TGoalTypeeventDetailsTypeeventConditionsItem.ExportPropertyName(Const AName : String) :String;
  6323. begin
  6324. Case AName of
  6325. '_type' : Result:='type';
  6326. else
  6327. Result:=Inherited ExportPropertyName(AName);
  6328. end;
  6329. end;
  6330. { --------------------------------------------------------------------
  6331. TGoalTypeeventDetails
  6332. --------------------------------------------------------------------}
  6333. Procedure TGoalTypeeventDetails.SeteventConditions(AIndex : Integer; const AValue : TGoalTypeeventDetailsTypeeventConditionsArray);
  6334. begin
  6335. If (FeventConditions=AValue) then exit;
  6336. FeventConditions:=AValue;
  6337. MarkPropertyChanged(AIndex);
  6338. end;
  6339. Procedure TGoalTypeeventDetails.SetuseEventValue(AIndex : Integer; const AValue : boolean);
  6340. begin
  6341. If (FuseEventValue=AValue) then exit;
  6342. FuseEventValue:=AValue;
  6343. MarkPropertyChanged(AIndex);
  6344. end;
  6345. //2.6.4. bug workaround
  6346. {$IFDEF VER2_6}
  6347. Procedure TGoalTypeeventDetails.SetArrayLength(Const AName : String; ALength : Longint);
  6348. begin
  6349. Case AName of
  6350. 'eventconditions' : SetLength(FeventConditions,ALength);
  6351. else
  6352. Inherited SetArrayLength(AName,ALength);
  6353. end;
  6354. end;
  6355. {$ENDIF VER2_6}
  6356. { --------------------------------------------------------------------
  6357. TGoalTypeparentLink
  6358. --------------------------------------------------------------------}
  6359. Procedure TGoalTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  6360. begin
  6361. If (Fhref=AValue) then exit;
  6362. Fhref:=AValue;
  6363. MarkPropertyChanged(AIndex);
  6364. end;
  6365. Procedure TGoalTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  6366. begin
  6367. If (F_type=AValue) then exit;
  6368. F_type:=AValue;
  6369. MarkPropertyChanged(AIndex);
  6370. end;
  6371. Class Function TGoalTypeparentLink.ExportPropertyName(Const AName : String) :String;
  6372. begin
  6373. Case AName of
  6374. '_type' : Result:='type';
  6375. else
  6376. Result:=Inherited ExportPropertyName(AName);
  6377. end;
  6378. end;
  6379. { --------------------------------------------------------------------
  6380. TGoalTypeurlDestinationDetailsTypestepsItem
  6381. --------------------------------------------------------------------}
  6382. Procedure TGoalTypeurlDestinationDetailsTypestepsItem.Setname(AIndex : Integer; const AValue : String);
  6383. begin
  6384. If (Fname=AValue) then exit;
  6385. Fname:=AValue;
  6386. MarkPropertyChanged(AIndex);
  6387. end;
  6388. Procedure TGoalTypeurlDestinationDetailsTypestepsItem.Setnumber(AIndex : Integer; const AValue : integer);
  6389. begin
  6390. If (Fnumber=AValue) then exit;
  6391. Fnumber:=AValue;
  6392. MarkPropertyChanged(AIndex);
  6393. end;
  6394. Procedure TGoalTypeurlDestinationDetailsTypestepsItem.Seturl(AIndex : Integer; const AValue : String);
  6395. begin
  6396. If (Furl=AValue) then exit;
  6397. Furl:=AValue;
  6398. MarkPropertyChanged(AIndex);
  6399. end;
  6400. { --------------------------------------------------------------------
  6401. TGoalTypeurlDestinationDetails
  6402. --------------------------------------------------------------------}
  6403. Procedure TGoalTypeurlDestinationDetails.SetcaseSensitive(AIndex : Integer; const AValue : boolean);
  6404. begin
  6405. If (FcaseSensitive=AValue) then exit;
  6406. FcaseSensitive:=AValue;
  6407. MarkPropertyChanged(AIndex);
  6408. end;
  6409. Procedure TGoalTypeurlDestinationDetails.SetfirstStepRequired(AIndex : Integer; const AValue : boolean);
  6410. begin
  6411. If (FfirstStepRequired=AValue) then exit;
  6412. FfirstStepRequired:=AValue;
  6413. MarkPropertyChanged(AIndex);
  6414. end;
  6415. Procedure TGoalTypeurlDestinationDetails.SetmatchType(AIndex : Integer; const AValue : String);
  6416. begin
  6417. If (FmatchType=AValue) then exit;
  6418. FmatchType:=AValue;
  6419. MarkPropertyChanged(AIndex);
  6420. end;
  6421. Procedure TGoalTypeurlDestinationDetails.Setsteps(AIndex : Integer; const AValue : TGoalTypeurlDestinationDetailsTypestepsArray);
  6422. begin
  6423. If (Fsteps=AValue) then exit;
  6424. Fsteps:=AValue;
  6425. MarkPropertyChanged(AIndex);
  6426. end;
  6427. Procedure TGoalTypeurlDestinationDetails.Seturl(AIndex : Integer; const AValue : String);
  6428. begin
  6429. If (Furl=AValue) then exit;
  6430. Furl:=AValue;
  6431. MarkPropertyChanged(AIndex);
  6432. end;
  6433. //2.6.4. bug workaround
  6434. {$IFDEF VER2_6}
  6435. Procedure TGoalTypeurlDestinationDetails.SetArrayLength(Const AName : String; ALength : Longint);
  6436. begin
  6437. Case AName of
  6438. 'steps' : SetLength(Fsteps,ALength);
  6439. else
  6440. Inherited SetArrayLength(AName,ALength);
  6441. end;
  6442. end;
  6443. {$ENDIF VER2_6}
  6444. { --------------------------------------------------------------------
  6445. TGoalTypevisitNumPagesDetails
  6446. --------------------------------------------------------------------}
  6447. Procedure TGoalTypevisitNumPagesDetails.SetcomparisonType(AIndex : Integer; const AValue : String);
  6448. begin
  6449. If (FcomparisonType=AValue) then exit;
  6450. FcomparisonType:=AValue;
  6451. MarkPropertyChanged(AIndex);
  6452. end;
  6453. Procedure TGoalTypevisitNumPagesDetails.SetcomparisonValue(AIndex : Integer; const AValue : String);
  6454. begin
  6455. If (FcomparisonValue=AValue) then exit;
  6456. FcomparisonValue:=AValue;
  6457. MarkPropertyChanged(AIndex);
  6458. end;
  6459. { --------------------------------------------------------------------
  6460. TGoalTypevisitTimeOnSiteDetails
  6461. --------------------------------------------------------------------}
  6462. Procedure TGoalTypevisitTimeOnSiteDetails.SetcomparisonType(AIndex : Integer; const AValue : String);
  6463. begin
  6464. If (FcomparisonType=AValue) then exit;
  6465. FcomparisonType:=AValue;
  6466. MarkPropertyChanged(AIndex);
  6467. end;
  6468. Procedure TGoalTypevisitTimeOnSiteDetails.SetcomparisonValue(AIndex : Integer; const AValue : String);
  6469. begin
  6470. If (FcomparisonValue=AValue) then exit;
  6471. FcomparisonValue:=AValue;
  6472. MarkPropertyChanged(AIndex);
  6473. end;
  6474. { --------------------------------------------------------------------
  6475. TGoal
  6476. --------------------------------------------------------------------}
  6477. Procedure TGoal.SetaccountId(AIndex : Integer; const AValue : String);
  6478. begin
  6479. If (FaccountId=AValue) then exit;
  6480. FaccountId:=AValue;
  6481. MarkPropertyChanged(AIndex);
  6482. end;
  6483. Procedure TGoal.Setactive(AIndex : Integer; const AValue : boolean);
  6484. begin
  6485. If (Factive=AValue) then exit;
  6486. Factive:=AValue;
  6487. MarkPropertyChanged(AIndex);
  6488. end;
  6489. Procedure TGoal.Setcreated(AIndex : Integer; const AValue : TDatetime);
  6490. begin
  6491. If (Fcreated=AValue) then exit;
  6492. Fcreated:=AValue;
  6493. MarkPropertyChanged(AIndex);
  6494. end;
  6495. Procedure TGoal.SeteventDetails(AIndex : Integer; const AValue : TGoalTypeeventDetails);
  6496. begin
  6497. If (FeventDetails=AValue) then exit;
  6498. FeventDetails:=AValue;
  6499. MarkPropertyChanged(AIndex);
  6500. end;
  6501. Procedure TGoal.Setid(AIndex : Integer; const AValue : String);
  6502. begin
  6503. If (Fid=AValue) then exit;
  6504. Fid:=AValue;
  6505. MarkPropertyChanged(AIndex);
  6506. end;
  6507. Procedure TGoal.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  6508. begin
  6509. If (FinternalWebPropertyId=AValue) then exit;
  6510. FinternalWebPropertyId:=AValue;
  6511. MarkPropertyChanged(AIndex);
  6512. end;
  6513. Procedure TGoal.Setkind(AIndex : Integer; const AValue : String);
  6514. begin
  6515. If (Fkind=AValue) then exit;
  6516. Fkind:=AValue;
  6517. MarkPropertyChanged(AIndex);
  6518. end;
  6519. Procedure TGoal.Setname(AIndex : Integer; const AValue : String);
  6520. begin
  6521. If (Fname=AValue) then exit;
  6522. Fname:=AValue;
  6523. MarkPropertyChanged(AIndex);
  6524. end;
  6525. Procedure TGoal.SetparentLink(AIndex : Integer; const AValue : TGoalTypeparentLink);
  6526. begin
  6527. If (FparentLink=AValue) then exit;
  6528. FparentLink:=AValue;
  6529. MarkPropertyChanged(AIndex);
  6530. end;
  6531. Procedure TGoal.SetprofileId(AIndex : Integer; const AValue : String);
  6532. begin
  6533. If (FprofileId=AValue) then exit;
  6534. FprofileId:=AValue;
  6535. MarkPropertyChanged(AIndex);
  6536. end;
  6537. Procedure TGoal.SetselfLink(AIndex : Integer; const AValue : String);
  6538. begin
  6539. If (FselfLink=AValue) then exit;
  6540. FselfLink:=AValue;
  6541. MarkPropertyChanged(AIndex);
  6542. end;
  6543. Procedure TGoal.Set_type(AIndex : Integer; const AValue : String);
  6544. begin
  6545. If (F_type=AValue) then exit;
  6546. F_type:=AValue;
  6547. MarkPropertyChanged(AIndex);
  6548. end;
  6549. Procedure TGoal.Setupdated(AIndex : Integer; const AValue : TDatetime);
  6550. begin
  6551. If (Fupdated=AValue) then exit;
  6552. Fupdated:=AValue;
  6553. MarkPropertyChanged(AIndex);
  6554. end;
  6555. Procedure TGoal.SeturlDestinationDetails(AIndex : Integer; const AValue : TGoalTypeurlDestinationDetails);
  6556. begin
  6557. If (FurlDestinationDetails=AValue) then exit;
  6558. FurlDestinationDetails:=AValue;
  6559. MarkPropertyChanged(AIndex);
  6560. end;
  6561. Procedure TGoal.Setvalue(AIndex : Integer; const AValue : integer);
  6562. begin
  6563. If (Fvalue=AValue) then exit;
  6564. Fvalue:=AValue;
  6565. MarkPropertyChanged(AIndex);
  6566. end;
  6567. Procedure TGoal.SetvisitNumPagesDetails(AIndex : Integer; const AValue : TGoalTypevisitNumPagesDetails);
  6568. begin
  6569. If (FvisitNumPagesDetails=AValue) then exit;
  6570. FvisitNumPagesDetails:=AValue;
  6571. MarkPropertyChanged(AIndex);
  6572. end;
  6573. Procedure TGoal.SetvisitTimeOnSiteDetails(AIndex : Integer; const AValue : TGoalTypevisitTimeOnSiteDetails);
  6574. begin
  6575. If (FvisitTimeOnSiteDetails=AValue) then exit;
  6576. FvisitTimeOnSiteDetails:=AValue;
  6577. MarkPropertyChanged(AIndex);
  6578. end;
  6579. Procedure TGoal.SetwebPropertyId(AIndex : Integer; const AValue : String);
  6580. begin
  6581. If (FwebPropertyId=AValue) then exit;
  6582. FwebPropertyId:=AValue;
  6583. MarkPropertyChanged(AIndex);
  6584. end;
  6585. Class Function TGoal.ExportPropertyName(Const AName : String) :String;
  6586. begin
  6587. Case AName of
  6588. '_type' : Result:='type';
  6589. else
  6590. Result:=Inherited ExportPropertyName(AName);
  6591. end;
  6592. end;
  6593. { --------------------------------------------------------------------
  6594. TGoals
  6595. --------------------------------------------------------------------}
  6596. Procedure TGoals.Setitems(AIndex : Integer; const AValue : TGoalsTypeitemsArray);
  6597. begin
  6598. If (Fitems=AValue) then exit;
  6599. Fitems:=AValue;
  6600. MarkPropertyChanged(AIndex);
  6601. end;
  6602. Procedure TGoals.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  6603. begin
  6604. If (FitemsPerPage=AValue) then exit;
  6605. FitemsPerPage:=AValue;
  6606. MarkPropertyChanged(AIndex);
  6607. end;
  6608. Procedure TGoals.Setkind(AIndex : Integer; const AValue : String);
  6609. begin
  6610. If (Fkind=AValue) then exit;
  6611. Fkind:=AValue;
  6612. MarkPropertyChanged(AIndex);
  6613. end;
  6614. Procedure TGoals.SetnextLink(AIndex : Integer; const AValue : String);
  6615. begin
  6616. If (FnextLink=AValue) then exit;
  6617. FnextLink:=AValue;
  6618. MarkPropertyChanged(AIndex);
  6619. end;
  6620. Procedure TGoals.SetpreviousLink(AIndex : Integer; const AValue : String);
  6621. begin
  6622. If (FpreviousLink=AValue) then exit;
  6623. FpreviousLink:=AValue;
  6624. MarkPropertyChanged(AIndex);
  6625. end;
  6626. Procedure TGoals.SetstartIndex(AIndex : Integer; const AValue : integer);
  6627. begin
  6628. If (FstartIndex=AValue) then exit;
  6629. FstartIndex:=AValue;
  6630. MarkPropertyChanged(AIndex);
  6631. end;
  6632. Procedure TGoals.SettotalResults(AIndex : Integer; const AValue : integer);
  6633. begin
  6634. If (FtotalResults=AValue) then exit;
  6635. FtotalResults:=AValue;
  6636. MarkPropertyChanged(AIndex);
  6637. end;
  6638. Procedure TGoals.Setusername(AIndex : Integer; const AValue : String);
  6639. begin
  6640. If (Fusername=AValue) then exit;
  6641. Fusername:=AValue;
  6642. MarkPropertyChanged(AIndex);
  6643. end;
  6644. //2.6.4. bug workaround
  6645. {$IFDEF VER2_6}
  6646. Procedure TGoals.SetArrayLength(Const AName : String; ALength : Longint);
  6647. begin
  6648. Case AName of
  6649. 'items' : SetLength(Fitems,ALength);
  6650. else
  6651. Inherited SetArrayLength(AName,ALength);
  6652. end;
  6653. end;
  6654. {$ENDIF VER2_6}
  6655. { --------------------------------------------------------------------
  6656. TMcfDataTypecolumnHeadersItem
  6657. --------------------------------------------------------------------}
  6658. Procedure TMcfDataTypecolumnHeadersItem.SetcolumnType(AIndex : Integer; const AValue : String);
  6659. begin
  6660. If (FcolumnType=AValue) then exit;
  6661. FcolumnType:=AValue;
  6662. MarkPropertyChanged(AIndex);
  6663. end;
  6664. Procedure TMcfDataTypecolumnHeadersItem.SetdataType(AIndex : Integer; const AValue : String);
  6665. begin
  6666. If (FdataType=AValue) then exit;
  6667. FdataType:=AValue;
  6668. MarkPropertyChanged(AIndex);
  6669. end;
  6670. Procedure TMcfDataTypecolumnHeadersItem.Setname(AIndex : Integer; const AValue : String);
  6671. begin
  6672. If (Fname=AValue) then exit;
  6673. Fname:=AValue;
  6674. MarkPropertyChanged(AIndex);
  6675. end;
  6676. { --------------------------------------------------------------------
  6677. TMcfDataTypeprofileInfo
  6678. --------------------------------------------------------------------}
  6679. Procedure TMcfDataTypeprofileInfo.SetaccountId(AIndex : Integer; const AValue : String);
  6680. begin
  6681. If (FaccountId=AValue) then exit;
  6682. FaccountId:=AValue;
  6683. MarkPropertyChanged(AIndex);
  6684. end;
  6685. Procedure TMcfDataTypeprofileInfo.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  6686. begin
  6687. If (FinternalWebPropertyId=AValue) then exit;
  6688. FinternalWebPropertyId:=AValue;
  6689. MarkPropertyChanged(AIndex);
  6690. end;
  6691. Procedure TMcfDataTypeprofileInfo.SetprofileId(AIndex : Integer; const AValue : String);
  6692. begin
  6693. If (FprofileId=AValue) then exit;
  6694. FprofileId:=AValue;
  6695. MarkPropertyChanged(AIndex);
  6696. end;
  6697. Procedure TMcfDataTypeprofileInfo.SetprofileName(AIndex : Integer; const AValue : String);
  6698. begin
  6699. If (FprofileName=AValue) then exit;
  6700. FprofileName:=AValue;
  6701. MarkPropertyChanged(AIndex);
  6702. end;
  6703. Procedure TMcfDataTypeprofileInfo.SettableId(AIndex : Integer; const AValue : String);
  6704. begin
  6705. If (FtableId=AValue) then exit;
  6706. FtableId:=AValue;
  6707. MarkPropertyChanged(AIndex);
  6708. end;
  6709. Procedure TMcfDataTypeprofileInfo.SetwebPropertyId(AIndex : Integer; const AValue : String);
  6710. begin
  6711. If (FwebPropertyId=AValue) then exit;
  6712. FwebPropertyId:=AValue;
  6713. MarkPropertyChanged(AIndex);
  6714. end;
  6715. { --------------------------------------------------------------------
  6716. TMcfDataTypequery
  6717. --------------------------------------------------------------------}
  6718. Procedure TMcfDataTypequery.Setdimensions(AIndex : Integer; const AValue : String);
  6719. begin
  6720. If (Fdimensions=AValue) then exit;
  6721. Fdimensions:=AValue;
  6722. MarkPropertyChanged(AIndex);
  6723. end;
  6724. Procedure TMcfDataTypequery.Setenddate(AIndex : Integer; const AValue : String);
  6725. begin
  6726. If (Fenddate=AValue) then exit;
  6727. Fenddate:=AValue;
  6728. MarkPropertyChanged(AIndex);
  6729. end;
  6730. Procedure TMcfDataTypequery.Setfilters(AIndex : Integer; const AValue : String);
  6731. begin
  6732. If (Ffilters=AValue) then exit;
  6733. Ffilters:=AValue;
  6734. MarkPropertyChanged(AIndex);
  6735. end;
  6736. Procedure TMcfDataTypequery.Setids(AIndex : Integer; const AValue : String);
  6737. begin
  6738. If (Fids=AValue) then exit;
  6739. Fids:=AValue;
  6740. MarkPropertyChanged(AIndex);
  6741. end;
  6742. Procedure TMcfDataTypequery.Setmaxresults(AIndex : Integer; const AValue : integer);
  6743. begin
  6744. If (Fmaxresults=AValue) then exit;
  6745. Fmaxresults:=AValue;
  6746. MarkPropertyChanged(AIndex);
  6747. end;
  6748. Procedure TMcfDataTypequery.Setmetrics(AIndex : Integer; const AValue : TStringArray);
  6749. begin
  6750. If (Fmetrics=AValue) then exit;
  6751. Fmetrics:=AValue;
  6752. MarkPropertyChanged(AIndex);
  6753. end;
  6754. Procedure TMcfDataTypequery.SetsamplingLevel(AIndex : Integer; const AValue : String);
  6755. begin
  6756. If (FsamplingLevel=AValue) then exit;
  6757. FsamplingLevel:=AValue;
  6758. MarkPropertyChanged(AIndex);
  6759. end;
  6760. Procedure TMcfDataTypequery.Setsegment(AIndex : Integer; const AValue : String);
  6761. begin
  6762. If (Fsegment=AValue) then exit;
  6763. Fsegment:=AValue;
  6764. MarkPropertyChanged(AIndex);
  6765. end;
  6766. Procedure TMcfDataTypequery.Setsort(AIndex : Integer; const AValue : TStringArray);
  6767. begin
  6768. If (Fsort=AValue) then exit;
  6769. Fsort:=AValue;
  6770. MarkPropertyChanged(AIndex);
  6771. end;
  6772. Procedure TMcfDataTypequery.Setstartdate(AIndex : Integer; const AValue : String);
  6773. begin
  6774. If (Fstartdate=AValue) then exit;
  6775. Fstartdate:=AValue;
  6776. MarkPropertyChanged(AIndex);
  6777. end;
  6778. Procedure TMcfDataTypequery.Setstartindex(AIndex : Integer; const AValue : integer);
  6779. begin
  6780. If (Fstartindex=AValue) then exit;
  6781. Fstartindex:=AValue;
  6782. MarkPropertyChanged(AIndex);
  6783. end;
  6784. Class Function TMcfDataTypequery.ExportPropertyName(Const AName : String) :String;
  6785. begin
  6786. Case AName of
  6787. 'enddate' : Result:='end-date';
  6788. 'maxresults' : Result:='max-results';
  6789. 'startdate' : Result:='start-date';
  6790. 'startindex' : Result:='start-index';
  6791. else
  6792. Result:=Inherited ExportPropertyName(AName);
  6793. end;
  6794. end;
  6795. //2.6.4. bug workaround
  6796. {$IFDEF VER2_6}
  6797. Procedure TMcfDataTypequery.SetArrayLength(Const AName : String; ALength : Longint);
  6798. begin
  6799. Case AName of
  6800. 'metrics' : SetLength(Fmetrics,ALength);
  6801. 'sort' : SetLength(Fsort,ALength);
  6802. else
  6803. Inherited SetArrayLength(AName,ALength);
  6804. end;
  6805. end;
  6806. {$ENDIF VER2_6}
  6807. { --------------------------------------------------------------------
  6808. TMcfDataTyperowsItemItemTypeconversionPathValueItem
  6809. --------------------------------------------------------------------}
  6810. Procedure TMcfDataTyperowsItemItemTypeconversionPathValueItem.SetinteractionType(AIndex : Integer; const AValue : String);
  6811. begin
  6812. If (FinteractionType=AValue) then exit;
  6813. FinteractionType:=AValue;
  6814. MarkPropertyChanged(AIndex);
  6815. end;
  6816. Procedure TMcfDataTyperowsItemItemTypeconversionPathValueItem.SetnodeValue(AIndex : Integer; const AValue : String);
  6817. begin
  6818. If (FnodeValue=AValue) then exit;
  6819. FnodeValue:=AValue;
  6820. MarkPropertyChanged(AIndex);
  6821. end;
  6822. { --------------------------------------------------------------------
  6823. TMcfDataTyperowsItemItem
  6824. --------------------------------------------------------------------}
  6825. Procedure TMcfDataTyperowsItemItem.SetconversionPathValue(AIndex : Integer; const AValue : TMcfDataTyperowsItemItemTypeconversionPathValueArray);
  6826. begin
  6827. If (FconversionPathValue=AValue) then exit;
  6828. FconversionPathValue:=AValue;
  6829. MarkPropertyChanged(AIndex);
  6830. end;
  6831. Procedure TMcfDataTyperowsItemItem.SetprimitiveValue(AIndex : Integer; const AValue : String);
  6832. begin
  6833. If (FprimitiveValue=AValue) then exit;
  6834. FprimitiveValue:=AValue;
  6835. MarkPropertyChanged(AIndex);
  6836. end;
  6837. //2.6.4. bug workaround
  6838. {$IFDEF VER2_6}
  6839. Procedure TMcfDataTyperowsItemItem.SetArrayLength(Const AName : String; ALength : Longint);
  6840. begin
  6841. Case AName of
  6842. 'conversionpathvalue' : SetLength(FconversionPathValue,ALength);
  6843. else
  6844. Inherited SetArrayLength(AName,ALength);
  6845. end;
  6846. end;
  6847. {$ENDIF VER2_6}
  6848. { --------------------------------------------------------------------
  6849. TMcfDataTypetotalsForAllResults
  6850. --------------------------------------------------------------------}
  6851. Class Function TMcfDataTypetotalsForAllResults.AllowAdditionalProperties : Boolean;
  6852. begin
  6853. Result:=True;
  6854. end;
  6855. { --------------------------------------------------------------------
  6856. TMcfData
  6857. --------------------------------------------------------------------}
  6858. Procedure TMcfData.SetcolumnHeaders(AIndex : Integer; const AValue : TMcfDataTypecolumnHeadersArray);
  6859. begin
  6860. If (FcolumnHeaders=AValue) then exit;
  6861. FcolumnHeaders:=AValue;
  6862. MarkPropertyChanged(AIndex);
  6863. end;
  6864. Procedure TMcfData.SetcontainsSampledData(AIndex : Integer; const AValue : boolean);
  6865. begin
  6866. If (FcontainsSampledData=AValue) then exit;
  6867. FcontainsSampledData:=AValue;
  6868. MarkPropertyChanged(AIndex);
  6869. end;
  6870. Procedure TMcfData.Setid(AIndex : Integer; const AValue : String);
  6871. begin
  6872. If (Fid=AValue) then exit;
  6873. Fid:=AValue;
  6874. MarkPropertyChanged(AIndex);
  6875. end;
  6876. Procedure TMcfData.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  6877. begin
  6878. If (FitemsPerPage=AValue) then exit;
  6879. FitemsPerPage:=AValue;
  6880. MarkPropertyChanged(AIndex);
  6881. end;
  6882. Procedure TMcfData.Setkind(AIndex : Integer; const AValue : String);
  6883. begin
  6884. If (Fkind=AValue) then exit;
  6885. Fkind:=AValue;
  6886. MarkPropertyChanged(AIndex);
  6887. end;
  6888. Procedure TMcfData.SetnextLink(AIndex : Integer; const AValue : String);
  6889. begin
  6890. If (FnextLink=AValue) then exit;
  6891. FnextLink:=AValue;
  6892. MarkPropertyChanged(AIndex);
  6893. end;
  6894. Procedure TMcfData.SetpreviousLink(AIndex : Integer; const AValue : String);
  6895. begin
  6896. If (FpreviousLink=AValue) then exit;
  6897. FpreviousLink:=AValue;
  6898. MarkPropertyChanged(AIndex);
  6899. end;
  6900. Procedure TMcfData.SetprofileInfo(AIndex : Integer; const AValue : TMcfDataTypeprofileInfo);
  6901. begin
  6902. If (FprofileInfo=AValue) then exit;
  6903. FprofileInfo:=AValue;
  6904. MarkPropertyChanged(AIndex);
  6905. end;
  6906. Procedure TMcfData.Setquery(AIndex : Integer; const AValue : TMcfDataTypequery);
  6907. begin
  6908. If (Fquery=AValue) then exit;
  6909. Fquery:=AValue;
  6910. MarkPropertyChanged(AIndex);
  6911. end;
  6912. Procedure TMcfData.Setrows(AIndex : Integer; const AValue : TMcfDataTyperowsArray);
  6913. begin
  6914. If (Frows=AValue) then exit;
  6915. Frows:=AValue;
  6916. MarkPropertyChanged(AIndex);
  6917. end;
  6918. Procedure TMcfData.SetsampleSize(AIndex : Integer; const AValue : String);
  6919. begin
  6920. If (FsampleSize=AValue) then exit;
  6921. FsampleSize:=AValue;
  6922. MarkPropertyChanged(AIndex);
  6923. end;
  6924. Procedure TMcfData.SetsampleSpace(AIndex : Integer; const AValue : String);
  6925. begin
  6926. If (FsampleSpace=AValue) then exit;
  6927. FsampleSpace:=AValue;
  6928. MarkPropertyChanged(AIndex);
  6929. end;
  6930. Procedure TMcfData.SetselfLink(AIndex : Integer; const AValue : String);
  6931. begin
  6932. If (FselfLink=AValue) then exit;
  6933. FselfLink:=AValue;
  6934. MarkPropertyChanged(AIndex);
  6935. end;
  6936. Procedure TMcfData.SettotalResults(AIndex : Integer; const AValue : integer);
  6937. begin
  6938. If (FtotalResults=AValue) then exit;
  6939. FtotalResults:=AValue;
  6940. MarkPropertyChanged(AIndex);
  6941. end;
  6942. Procedure TMcfData.SettotalsForAllResults(AIndex : Integer; const AValue : TMcfDataTypetotalsForAllResults);
  6943. begin
  6944. If (FtotalsForAllResults=AValue) then exit;
  6945. FtotalsForAllResults:=AValue;
  6946. MarkPropertyChanged(AIndex);
  6947. end;
  6948. //2.6.4. bug workaround
  6949. {$IFDEF VER2_6}
  6950. Procedure TMcfData.SetArrayLength(Const AName : String; ALength : Longint);
  6951. begin
  6952. Case AName of
  6953. 'columnheaders' : SetLength(FcolumnHeaders,ALength);
  6954. 'rows' : SetLength(Frows,ALength);
  6955. else
  6956. Inherited SetArrayLength(AName,ALength);
  6957. end;
  6958. end;
  6959. {$ENDIF VER2_6}
  6960. { --------------------------------------------------------------------
  6961. TProfileTypechildLink
  6962. --------------------------------------------------------------------}
  6963. Procedure TProfileTypechildLink.Sethref(AIndex : Integer; const AValue : String);
  6964. begin
  6965. If (Fhref=AValue) then exit;
  6966. Fhref:=AValue;
  6967. MarkPropertyChanged(AIndex);
  6968. end;
  6969. Procedure TProfileTypechildLink.Set_type(AIndex : Integer; const AValue : String);
  6970. begin
  6971. If (F_type=AValue) then exit;
  6972. F_type:=AValue;
  6973. MarkPropertyChanged(AIndex);
  6974. end;
  6975. Class Function TProfileTypechildLink.ExportPropertyName(Const AName : String) :String;
  6976. begin
  6977. Case AName of
  6978. '_type' : Result:='type';
  6979. else
  6980. Result:=Inherited ExportPropertyName(AName);
  6981. end;
  6982. end;
  6983. { --------------------------------------------------------------------
  6984. TProfileTypeparentLink
  6985. --------------------------------------------------------------------}
  6986. Procedure TProfileTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  6987. begin
  6988. If (Fhref=AValue) then exit;
  6989. Fhref:=AValue;
  6990. MarkPropertyChanged(AIndex);
  6991. end;
  6992. Procedure TProfileTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  6993. begin
  6994. If (F_type=AValue) then exit;
  6995. F_type:=AValue;
  6996. MarkPropertyChanged(AIndex);
  6997. end;
  6998. Class Function TProfileTypeparentLink.ExportPropertyName(Const AName : String) :String;
  6999. begin
  7000. Case AName of
  7001. '_type' : Result:='type';
  7002. else
  7003. Result:=Inherited ExportPropertyName(AName);
  7004. end;
  7005. end;
  7006. { --------------------------------------------------------------------
  7007. TProfileTypepermissions
  7008. --------------------------------------------------------------------}
  7009. Procedure TProfileTypepermissions.Seteffective(AIndex : Integer; const AValue : TStringArray);
  7010. begin
  7011. If (Feffective=AValue) then exit;
  7012. Feffective:=AValue;
  7013. MarkPropertyChanged(AIndex);
  7014. end;
  7015. //2.6.4. bug workaround
  7016. {$IFDEF VER2_6}
  7017. Procedure TProfileTypepermissions.SetArrayLength(Const AName : String; ALength : Longint);
  7018. begin
  7019. Case AName of
  7020. 'effective' : SetLength(Feffective,ALength);
  7021. else
  7022. Inherited SetArrayLength(AName,ALength);
  7023. end;
  7024. end;
  7025. {$ENDIF VER2_6}
  7026. { --------------------------------------------------------------------
  7027. TProfile
  7028. --------------------------------------------------------------------}
  7029. Procedure TProfile.SetaccountId(AIndex : Integer; const AValue : String);
  7030. begin
  7031. If (FaccountId=AValue) then exit;
  7032. FaccountId:=AValue;
  7033. MarkPropertyChanged(AIndex);
  7034. end;
  7035. Procedure TProfile.SetbotFilteringEnabled(AIndex : Integer; const AValue : boolean);
  7036. begin
  7037. If (FbotFilteringEnabled=AValue) then exit;
  7038. FbotFilteringEnabled:=AValue;
  7039. MarkPropertyChanged(AIndex);
  7040. end;
  7041. Procedure TProfile.SetchildLink(AIndex : Integer; const AValue : TProfileTypechildLink);
  7042. begin
  7043. If (FchildLink=AValue) then exit;
  7044. FchildLink:=AValue;
  7045. MarkPropertyChanged(AIndex);
  7046. end;
  7047. Procedure TProfile.Setcreated(AIndex : Integer; const AValue : TDatetime);
  7048. begin
  7049. If (Fcreated=AValue) then exit;
  7050. Fcreated:=AValue;
  7051. MarkPropertyChanged(AIndex);
  7052. end;
  7053. Procedure TProfile.Setcurrency(AIndex : Integer; const AValue : String);
  7054. begin
  7055. If (Fcurrency=AValue) then exit;
  7056. Fcurrency:=AValue;
  7057. MarkPropertyChanged(AIndex);
  7058. end;
  7059. Procedure TProfile.SetdefaultPage(AIndex : Integer; const AValue : String);
  7060. begin
  7061. If (FdefaultPage=AValue) then exit;
  7062. FdefaultPage:=AValue;
  7063. MarkPropertyChanged(AIndex);
  7064. end;
  7065. Procedure TProfile.SeteCommerceTracking(AIndex : Integer; const AValue : boolean);
  7066. begin
  7067. If (FeCommerceTracking=AValue) then exit;
  7068. FeCommerceTracking:=AValue;
  7069. MarkPropertyChanged(AIndex);
  7070. end;
  7071. Procedure TProfile.SetenhancedECommerceTracking(AIndex : Integer; const AValue : boolean);
  7072. begin
  7073. If (FenhancedECommerceTracking=AValue) then exit;
  7074. FenhancedECommerceTracking:=AValue;
  7075. MarkPropertyChanged(AIndex);
  7076. end;
  7077. Procedure TProfile.SetexcludeQueryParameters(AIndex : Integer; const AValue : String);
  7078. begin
  7079. If (FexcludeQueryParameters=AValue) then exit;
  7080. FexcludeQueryParameters:=AValue;
  7081. MarkPropertyChanged(AIndex);
  7082. end;
  7083. Procedure TProfile.Setid(AIndex : Integer; const AValue : String);
  7084. begin
  7085. If (Fid=AValue) then exit;
  7086. Fid:=AValue;
  7087. MarkPropertyChanged(AIndex);
  7088. end;
  7089. Procedure TProfile.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  7090. begin
  7091. If (FinternalWebPropertyId=AValue) then exit;
  7092. FinternalWebPropertyId:=AValue;
  7093. MarkPropertyChanged(AIndex);
  7094. end;
  7095. Procedure TProfile.Setkind(AIndex : Integer; const AValue : String);
  7096. begin
  7097. If (Fkind=AValue) then exit;
  7098. Fkind:=AValue;
  7099. MarkPropertyChanged(AIndex);
  7100. end;
  7101. Procedure TProfile.Setname(AIndex : Integer; const AValue : String);
  7102. begin
  7103. If (Fname=AValue) then exit;
  7104. Fname:=AValue;
  7105. MarkPropertyChanged(AIndex);
  7106. end;
  7107. Procedure TProfile.SetparentLink(AIndex : Integer; const AValue : TProfileTypeparentLink);
  7108. begin
  7109. If (FparentLink=AValue) then exit;
  7110. FparentLink:=AValue;
  7111. MarkPropertyChanged(AIndex);
  7112. end;
  7113. Procedure TProfile.Setpermissions(AIndex : Integer; const AValue : TProfileTypepermissions);
  7114. begin
  7115. If (Fpermissions=AValue) then exit;
  7116. Fpermissions:=AValue;
  7117. MarkPropertyChanged(AIndex);
  7118. end;
  7119. Procedure TProfile.SetselfLink(AIndex : Integer; const AValue : String);
  7120. begin
  7121. If (FselfLink=AValue) then exit;
  7122. FselfLink:=AValue;
  7123. MarkPropertyChanged(AIndex);
  7124. end;
  7125. Procedure TProfile.SetsiteSearchCategoryParameters(AIndex : Integer; const AValue : String);
  7126. begin
  7127. If (FsiteSearchCategoryParameters=AValue) then exit;
  7128. FsiteSearchCategoryParameters:=AValue;
  7129. MarkPropertyChanged(AIndex);
  7130. end;
  7131. Procedure TProfile.SetsiteSearchQueryParameters(AIndex : Integer; const AValue : String);
  7132. begin
  7133. If (FsiteSearchQueryParameters=AValue) then exit;
  7134. FsiteSearchQueryParameters:=AValue;
  7135. MarkPropertyChanged(AIndex);
  7136. end;
  7137. Procedure TProfile.Setstarred(AIndex : Integer; const AValue : boolean);
  7138. begin
  7139. If (Fstarred=AValue) then exit;
  7140. Fstarred:=AValue;
  7141. MarkPropertyChanged(AIndex);
  7142. end;
  7143. Procedure TProfile.SetstripSiteSearchCategoryParameters(AIndex : Integer; const AValue : boolean);
  7144. begin
  7145. If (FstripSiteSearchCategoryParameters=AValue) then exit;
  7146. FstripSiteSearchCategoryParameters:=AValue;
  7147. MarkPropertyChanged(AIndex);
  7148. end;
  7149. Procedure TProfile.SetstripSiteSearchQueryParameters(AIndex : Integer; const AValue : boolean);
  7150. begin
  7151. If (FstripSiteSearchQueryParameters=AValue) then exit;
  7152. FstripSiteSearchQueryParameters:=AValue;
  7153. MarkPropertyChanged(AIndex);
  7154. end;
  7155. Procedure TProfile.Settimezone(AIndex : Integer; const AValue : String);
  7156. begin
  7157. If (Ftimezone=AValue) then exit;
  7158. Ftimezone:=AValue;
  7159. MarkPropertyChanged(AIndex);
  7160. end;
  7161. Procedure TProfile.Set_type(AIndex : Integer; const AValue : String);
  7162. begin
  7163. If (F_type=AValue) then exit;
  7164. F_type:=AValue;
  7165. MarkPropertyChanged(AIndex);
  7166. end;
  7167. Procedure TProfile.Setupdated(AIndex : Integer; const AValue : TDatetime);
  7168. begin
  7169. If (Fupdated=AValue) then exit;
  7170. Fupdated:=AValue;
  7171. MarkPropertyChanged(AIndex);
  7172. end;
  7173. Procedure TProfile.SetwebPropertyId(AIndex : Integer; const AValue : String);
  7174. begin
  7175. If (FwebPropertyId=AValue) then exit;
  7176. FwebPropertyId:=AValue;
  7177. MarkPropertyChanged(AIndex);
  7178. end;
  7179. Procedure TProfile.SetwebsiteUrl(AIndex : Integer; const AValue : String);
  7180. begin
  7181. If (FwebsiteUrl=AValue) then exit;
  7182. FwebsiteUrl:=AValue;
  7183. MarkPropertyChanged(AIndex);
  7184. end;
  7185. Class Function TProfile.ExportPropertyName(Const AName : String) :String;
  7186. begin
  7187. Case AName of
  7188. '_type' : Result:='type';
  7189. else
  7190. Result:=Inherited ExportPropertyName(AName);
  7191. end;
  7192. end;
  7193. { --------------------------------------------------------------------
  7194. TProfileFilterLink
  7195. --------------------------------------------------------------------}
  7196. Procedure TProfileFilterLink.SetfilterRef(AIndex : Integer; const AValue : TFilterRef);
  7197. begin
  7198. If (FfilterRef=AValue) then exit;
  7199. FfilterRef:=AValue;
  7200. MarkPropertyChanged(AIndex);
  7201. end;
  7202. Procedure TProfileFilterLink.Setid(AIndex : Integer; const AValue : String);
  7203. begin
  7204. If (Fid=AValue) then exit;
  7205. Fid:=AValue;
  7206. MarkPropertyChanged(AIndex);
  7207. end;
  7208. Procedure TProfileFilterLink.Setkind(AIndex : Integer; const AValue : String);
  7209. begin
  7210. If (Fkind=AValue) then exit;
  7211. Fkind:=AValue;
  7212. MarkPropertyChanged(AIndex);
  7213. end;
  7214. Procedure TProfileFilterLink.SetprofileRef(AIndex : Integer; const AValue : TProfileRef);
  7215. begin
  7216. If (FprofileRef=AValue) then exit;
  7217. FprofileRef:=AValue;
  7218. MarkPropertyChanged(AIndex);
  7219. end;
  7220. Procedure TProfileFilterLink.Setrank(AIndex : Integer; const AValue : integer);
  7221. begin
  7222. If (Frank=AValue) then exit;
  7223. Frank:=AValue;
  7224. MarkPropertyChanged(AIndex);
  7225. end;
  7226. Procedure TProfileFilterLink.SetselfLink(AIndex : Integer; const AValue : String);
  7227. begin
  7228. If (FselfLink=AValue) then exit;
  7229. FselfLink:=AValue;
  7230. MarkPropertyChanged(AIndex);
  7231. end;
  7232. { --------------------------------------------------------------------
  7233. TProfileFilterLinks
  7234. --------------------------------------------------------------------}
  7235. Procedure TProfileFilterLinks.Setitems(AIndex : Integer; const AValue : TProfileFilterLinksTypeitemsArray);
  7236. begin
  7237. If (Fitems=AValue) then exit;
  7238. Fitems:=AValue;
  7239. MarkPropertyChanged(AIndex);
  7240. end;
  7241. Procedure TProfileFilterLinks.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  7242. begin
  7243. If (FitemsPerPage=AValue) then exit;
  7244. FitemsPerPage:=AValue;
  7245. MarkPropertyChanged(AIndex);
  7246. end;
  7247. Procedure TProfileFilterLinks.Setkind(AIndex : Integer; const AValue : String);
  7248. begin
  7249. If (Fkind=AValue) then exit;
  7250. Fkind:=AValue;
  7251. MarkPropertyChanged(AIndex);
  7252. end;
  7253. Procedure TProfileFilterLinks.SetnextLink(AIndex : Integer; const AValue : String);
  7254. begin
  7255. If (FnextLink=AValue) then exit;
  7256. FnextLink:=AValue;
  7257. MarkPropertyChanged(AIndex);
  7258. end;
  7259. Procedure TProfileFilterLinks.SetpreviousLink(AIndex : Integer; const AValue : String);
  7260. begin
  7261. If (FpreviousLink=AValue) then exit;
  7262. FpreviousLink:=AValue;
  7263. MarkPropertyChanged(AIndex);
  7264. end;
  7265. Procedure TProfileFilterLinks.SetstartIndex(AIndex : Integer; const AValue : integer);
  7266. begin
  7267. If (FstartIndex=AValue) then exit;
  7268. FstartIndex:=AValue;
  7269. MarkPropertyChanged(AIndex);
  7270. end;
  7271. Procedure TProfileFilterLinks.SettotalResults(AIndex : Integer; const AValue : integer);
  7272. begin
  7273. If (FtotalResults=AValue) then exit;
  7274. FtotalResults:=AValue;
  7275. MarkPropertyChanged(AIndex);
  7276. end;
  7277. Procedure TProfileFilterLinks.Setusername(AIndex : Integer; const AValue : String);
  7278. begin
  7279. If (Fusername=AValue) then exit;
  7280. Fusername:=AValue;
  7281. MarkPropertyChanged(AIndex);
  7282. end;
  7283. //2.6.4. bug workaround
  7284. {$IFDEF VER2_6}
  7285. Procedure TProfileFilterLinks.SetArrayLength(Const AName : String; ALength : Longint);
  7286. begin
  7287. Case AName of
  7288. 'items' : SetLength(Fitems,ALength);
  7289. else
  7290. Inherited SetArrayLength(AName,ALength);
  7291. end;
  7292. end;
  7293. {$ENDIF VER2_6}
  7294. { --------------------------------------------------------------------
  7295. TProfileRef
  7296. --------------------------------------------------------------------}
  7297. Procedure TProfileRef.SetaccountId(AIndex : Integer; const AValue : String);
  7298. begin
  7299. If (FaccountId=AValue) then exit;
  7300. FaccountId:=AValue;
  7301. MarkPropertyChanged(AIndex);
  7302. end;
  7303. Procedure TProfileRef.Sethref(AIndex : Integer; const AValue : String);
  7304. begin
  7305. If (Fhref=AValue) then exit;
  7306. Fhref:=AValue;
  7307. MarkPropertyChanged(AIndex);
  7308. end;
  7309. Procedure TProfileRef.Setid(AIndex : Integer; const AValue : String);
  7310. begin
  7311. If (Fid=AValue) then exit;
  7312. Fid:=AValue;
  7313. MarkPropertyChanged(AIndex);
  7314. end;
  7315. Procedure TProfileRef.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  7316. begin
  7317. If (FinternalWebPropertyId=AValue) then exit;
  7318. FinternalWebPropertyId:=AValue;
  7319. MarkPropertyChanged(AIndex);
  7320. end;
  7321. Procedure TProfileRef.Setkind(AIndex : Integer; const AValue : String);
  7322. begin
  7323. If (Fkind=AValue) then exit;
  7324. Fkind:=AValue;
  7325. MarkPropertyChanged(AIndex);
  7326. end;
  7327. Procedure TProfileRef.Setname(AIndex : Integer; const AValue : String);
  7328. begin
  7329. If (Fname=AValue) then exit;
  7330. Fname:=AValue;
  7331. MarkPropertyChanged(AIndex);
  7332. end;
  7333. Procedure TProfileRef.SetwebPropertyId(AIndex : Integer; const AValue : String);
  7334. begin
  7335. If (FwebPropertyId=AValue) then exit;
  7336. FwebPropertyId:=AValue;
  7337. MarkPropertyChanged(AIndex);
  7338. end;
  7339. { --------------------------------------------------------------------
  7340. TProfileSummary
  7341. --------------------------------------------------------------------}
  7342. Procedure TProfileSummary.Setid(AIndex : Integer; const AValue : String);
  7343. begin
  7344. If (Fid=AValue) then exit;
  7345. Fid:=AValue;
  7346. MarkPropertyChanged(AIndex);
  7347. end;
  7348. Procedure TProfileSummary.Setkind(AIndex : Integer; const AValue : String);
  7349. begin
  7350. If (Fkind=AValue) then exit;
  7351. Fkind:=AValue;
  7352. MarkPropertyChanged(AIndex);
  7353. end;
  7354. Procedure TProfileSummary.Setname(AIndex : Integer; const AValue : String);
  7355. begin
  7356. If (Fname=AValue) then exit;
  7357. Fname:=AValue;
  7358. MarkPropertyChanged(AIndex);
  7359. end;
  7360. Procedure TProfileSummary.Setstarred(AIndex : Integer; const AValue : boolean);
  7361. begin
  7362. If (Fstarred=AValue) then exit;
  7363. Fstarred:=AValue;
  7364. MarkPropertyChanged(AIndex);
  7365. end;
  7366. Procedure TProfileSummary.Set_type(AIndex : Integer; const AValue : String);
  7367. begin
  7368. If (F_type=AValue) then exit;
  7369. F_type:=AValue;
  7370. MarkPropertyChanged(AIndex);
  7371. end;
  7372. Class Function TProfileSummary.ExportPropertyName(Const AName : String) :String;
  7373. begin
  7374. Case AName of
  7375. '_type' : Result:='type';
  7376. else
  7377. Result:=Inherited ExportPropertyName(AName);
  7378. end;
  7379. end;
  7380. { --------------------------------------------------------------------
  7381. TProfiles
  7382. --------------------------------------------------------------------}
  7383. Procedure TProfiles.Setitems(AIndex : Integer; const AValue : TProfilesTypeitemsArray);
  7384. begin
  7385. If (Fitems=AValue) then exit;
  7386. Fitems:=AValue;
  7387. MarkPropertyChanged(AIndex);
  7388. end;
  7389. Procedure TProfiles.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  7390. begin
  7391. If (FitemsPerPage=AValue) then exit;
  7392. FitemsPerPage:=AValue;
  7393. MarkPropertyChanged(AIndex);
  7394. end;
  7395. Procedure TProfiles.Setkind(AIndex : Integer; const AValue : String);
  7396. begin
  7397. If (Fkind=AValue) then exit;
  7398. Fkind:=AValue;
  7399. MarkPropertyChanged(AIndex);
  7400. end;
  7401. Procedure TProfiles.SetnextLink(AIndex : Integer; const AValue : String);
  7402. begin
  7403. If (FnextLink=AValue) then exit;
  7404. FnextLink:=AValue;
  7405. MarkPropertyChanged(AIndex);
  7406. end;
  7407. Procedure TProfiles.SetpreviousLink(AIndex : Integer; const AValue : String);
  7408. begin
  7409. If (FpreviousLink=AValue) then exit;
  7410. FpreviousLink:=AValue;
  7411. MarkPropertyChanged(AIndex);
  7412. end;
  7413. Procedure TProfiles.SetstartIndex(AIndex : Integer; const AValue : integer);
  7414. begin
  7415. If (FstartIndex=AValue) then exit;
  7416. FstartIndex:=AValue;
  7417. MarkPropertyChanged(AIndex);
  7418. end;
  7419. Procedure TProfiles.SettotalResults(AIndex : Integer; const AValue : integer);
  7420. begin
  7421. If (FtotalResults=AValue) then exit;
  7422. FtotalResults:=AValue;
  7423. MarkPropertyChanged(AIndex);
  7424. end;
  7425. Procedure TProfiles.Setusername(AIndex : Integer; const AValue : String);
  7426. begin
  7427. If (Fusername=AValue) then exit;
  7428. Fusername:=AValue;
  7429. MarkPropertyChanged(AIndex);
  7430. end;
  7431. //2.6.4. bug workaround
  7432. {$IFDEF VER2_6}
  7433. Procedure TProfiles.SetArrayLength(Const AName : String; ALength : Longint);
  7434. begin
  7435. Case AName of
  7436. 'items' : SetLength(Fitems,ALength);
  7437. else
  7438. Inherited SetArrayLength(AName,ALength);
  7439. end;
  7440. end;
  7441. {$ENDIF VER2_6}
  7442. { --------------------------------------------------------------------
  7443. TRealtimeDataTypecolumnHeadersItem
  7444. --------------------------------------------------------------------}
  7445. Procedure TRealtimeDataTypecolumnHeadersItem.SetcolumnType(AIndex : Integer; const AValue : String);
  7446. begin
  7447. If (FcolumnType=AValue) then exit;
  7448. FcolumnType:=AValue;
  7449. MarkPropertyChanged(AIndex);
  7450. end;
  7451. Procedure TRealtimeDataTypecolumnHeadersItem.SetdataType(AIndex : Integer; const AValue : String);
  7452. begin
  7453. If (FdataType=AValue) then exit;
  7454. FdataType:=AValue;
  7455. MarkPropertyChanged(AIndex);
  7456. end;
  7457. Procedure TRealtimeDataTypecolumnHeadersItem.Setname(AIndex : Integer; const AValue : String);
  7458. begin
  7459. If (Fname=AValue) then exit;
  7460. Fname:=AValue;
  7461. MarkPropertyChanged(AIndex);
  7462. end;
  7463. { --------------------------------------------------------------------
  7464. TRealtimeDataTypeprofileInfo
  7465. --------------------------------------------------------------------}
  7466. Procedure TRealtimeDataTypeprofileInfo.SetaccountId(AIndex : Integer; const AValue : String);
  7467. begin
  7468. If (FaccountId=AValue) then exit;
  7469. FaccountId:=AValue;
  7470. MarkPropertyChanged(AIndex);
  7471. end;
  7472. Procedure TRealtimeDataTypeprofileInfo.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  7473. begin
  7474. If (FinternalWebPropertyId=AValue) then exit;
  7475. FinternalWebPropertyId:=AValue;
  7476. MarkPropertyChanged(AIndex);
  7477. end;
  7478. Procedure TRealtimeDataTypeprofileInfo.SetprofileId(AIndex : Integer; const AValue : String);
  7479. begin
  7480. If (FprofileId=AValue) then exit;
  7481. FprofileId:=AValue;
  7482. MarkPropertyChanged(AIndex);
  7483. end;
  7484. Procedure TRealtimeDataTypeprofileInfo.SetprofileName(AIndex : Integer; const AValue : String);
  7485. begin
  7486. If (FprofileName=AValue) then exit;
  7487. FprofileName:=AValue;
  7488. MarkPropertyChanged(AIndex);
  7489. end;
  7490. Procedure TRealtimeDataTypeprofileInfo.SettableId(AIndex : Integer; const AValue : String);
  7491. begin
  7492. If (FtableId=AValue) then exit;
  7493. FtableId:=AValue;
  7494. MarkPropertyChanged(AIndex);
  7495. end;
  7496. Procedure TRealtimeDataTypeprofileInfo.SetwebPropertyId(AIndex : Integer; const AValue : String);
  7497. begin
  7498. If (FwebPropertyId=AValue) then exit;
  7499. FwebPropertyId:=AValue;
  7500. MarkPropertyChanged(AIndex);
  7501. end;
  7502. { --------------------------------------------------------------------
  7503. TRealtimeDataTypequery
  7504. --------------------------------------------------------------------}
  7505. Procedure TRealtimeDataTypequery.Setdimensions(AIndex : Integer; const AValue : String);
  7506. begin
  7507. If (Fdimensions=AValue) then exit;
  7508. Fdimensions:=AValue;
  7509. MarkPropertyChanged(AIndex);
  7510. end;
  7511. Procedure TRealtimeDataTypequery.Setfilters(AIndex : Integer; const AValue : String);
  7512. begin
  7513. If (Ffilters=AValue) then exit;
  7514. Ffilters:=AValue;
  7515. MarkPropertyChanged(AIndex);
  7516. end;
  7517. Procedure TRealtimeDataTypequery.Setids(AIndex : Integer; const AValue : String);
  7518. begin
  7519. If (Fids=AValue) then exit;
  7520. Fids:=AValue;
  7521. MarkPropertyChanged(AIndex);
  7522. end;
  7523. Procedure TRealtimeDataTypequery.Setmaxresults(AIndex : Integer; const AValue : integer);
  7524. begin
  7525. If (Fmaxresults=AValue) then exit;
  7526. Fmaxresults:=AValue;
  7527. MarkPropertyChanged(AIndex);
  7528. end;
  7529. Procedure TRealtimeDataTypequery.Setmetrics(AIndex : Integer; const AValue : TStringArray);
  7530. begin
  7531. If (Fmetrics=AValue) then exit;
  7532. Fmetrics:=AValue;
  7533. MarkPropertyChanged(AIndex);
  7534. end;
  7535. Procedure TRealtimeDataTypequery.Setsort(AIndex : Integer; const AValue : TStringArray);
  7536. begin
  7537. If (Fsort=AValue) then exit;
  7538. Fsort:=AValue;
  7539. MarkPropertyChanged(AIndex);
  7540. end;
  7541. Class Function TRealtimeDataTypequery.ExportPropertyName(Const AName : String) :String;
  7542. begin
  7543. Case AName of
  7544. 'maxresults' : Result:='max-results';
  7545. else
  7546. Result:=Inherited ExportPropertyName(AName);
  7547. end;
  7548. end;
  7549. //2.6.4. bug workaround
  7550. {$IFDEF VER2_6}
  7551. Procedure TRealtimeDataTypequery.SetArrayLength(Const AName : String; ALength : Longint);
  7552. begin
  7553. Case AName of
  7554. 'metrics' : SetLength(Fmetrics,ALength);
  7555. 'sort' : SetLength(Fsort,ALength);
  7556. else
  7557. Inherited SetArrayLength(AName,ALength);
  7558. end;
  7559. end;
  7560. {$ENDIF VER2_6}
  7561. { --------------------------------------------------------------------
  7562. TRealtimeDataTypetotalsForAllResults
  7563. --------------------------------------------------------------------}
  7564. Class Function TRealtimeDataTypetotalsForAllResults.AllowAdditionalProperties : Boolean;
  7565. begin
  7566. Result:=True;
  7567. end;
  7568. { --------------------------------------------------------------------
  7569. TRealtimeData
  7570. --------------------------------------------------------------------}
  7571. Procedure TRealtimeData.SetcolumnHeaders(AIndex : Integer; const AValue : TRealtimeDataTypecolumnHeadersArray);
  7572. begin
  7573. If (FcolumnHeaders=AValue) then exit;
  7574. FcolumnHeaders:=AValue;
  7575. MarkPropertyChanged(AIndex);
  7576. end;
  7577. Procedure TRealtimeData.Setid(AIndex : Integer; const AValue : String);
  7578. begin
  7579. If (Fid=AValue) then exit;
  7580. Fid:=AValue;
  7581. MarkPropertyChanged(AIndex);
  7582. end;
  7583. Procedure TRealtimeData.Setkind(AIndex : Integer; const AValue : String);
  7584. begin
  7585. If (Fkind=AValue) then exit;
  7586. Fkind:=AValue;
  7587. MarkPropertyChanged(AIndex);
  7588. end;
  7589. Procedure TRealtimeData.SetprofileInfo(AIndex : Integer; const AValue : TRealtimeDataTypeprofileInfo);
  7590. begin
  7591. If (FprofileInfo=AValue) then exit;
  7592. FprofileInfo:=AValue;
  7593. MarkPropertyChanged(AIndex);
  7594. end;
  7595. Procedure TRealtimeData.Setquery(AIndex : Integer; const AValue : TRealtimeDataTypequery);
  7596. begin
  7597. If (Fquery=AValue) then exit;
  7598. Fquery:=AValue;
  7599. MarkPropertyChanged(AIndex);
  7600. end;
  7601. Procedure TRealtimeData.Setrows(AIndex : Integer; const AValue : TRealtimeDataTyperowsArray);
  7602. begin
  7603. If (Frows=AValue) then exit;
  7604. Frows:=AValue;
  7605. MarkPropertyChanged(AIndex);
  7606. end;
  7607. Procedure TRealtimeData.SetselfLink(AIndex : Integer; const AValue : String);
  7608. begin
  7609. If (FselfLink=AValue) then exit;
  7610. FselfLink:=AValue;
  7611. MarkPropertyChanged(AIndex);
  7612. end;
  7613. Procedure TRealtimeData.SettotalResults(AIndex : Integer; const AValue : integer);
  7614. begin
  7615. If (FtotalResults=AValue) then exit;
  7616. FtotalResults:=AValue;
  7617. MarkPropertyChanged(AIndex);
  7618. end;
  7619. Procedure TRealtimeData.SettotalsForAllResults(AIndex : Integer; const AValue : TRealtimeDataTypetotalsForAllResults);
  7620. begin
  7621. If (FtotalsForAllResults=AValue) then exit;
  7622. FtotalsForAllResults:=AValue;
  7623. MarkPropertyChanged(AIndex);
  7624. end;
  7625. //2.6.4. bug workaround
  7626. {$IFDEF VER2_6}
  7627. Procedure TRealtimeData.SetArrayLength(Const AName : String; ALength : Longint);
  7628. begin
  7629. Case AName of
  7630. 'columnheaders' : SetLength(FcolumnHeaders,ALength);
  7631. 'rows' : SetLength(Frows,ALength);
  7632. else
  7633. Inherited SetArrayLength(AName,ALength);
  7634. end;
  7635. end;
  7636. {$ENDIF VER2_6}
  7637. { --------------------------------------------------------------------
  7638. TSegment
  7639. --------------------------------------------------------------------}
  7640. Procedure TSegment.Setcreated(AIndex : Integer; const AValue : TDatetime);
  7641. begin
  7642. If (Fcreated=AValue) then exit;
  7643. Fcreated:=AValue;
  7644. MarkPropertyChanged(AIndex);
  7645. end;
  7646. Procedure TSegment.Setdefinition(AIndex : Integer; const AValue : String);
  7647. begin
  7648. If (Fdefinition=AValue) then exit;
  7649. Fdefinition:=AValue;
  7650. MarkPropertyChanged(AIndex);
  7651. end;
  7652. Procedure TSegment.Setid(AIndex : Integer; const AValue : String);
  7653. begin
  7654. If (Fid=AValue) then exit;
  7655. Fid:=AValue;
  7656. MarkPropertyChanged(AIndex);
  7657. end;
  7658. Procedure TSegment.Setkind(AIndex : Integer; const AValue : String);
  7659. begin
  7660. If (Fkind=AValue) then exit;
  7661. Fkind:=AValue;
  7662. MarkPropertyChanged(AIndex);
  7663. end;
  7664. Procedure TSegment.Setname(AIndex : Integer; const AValue : String);
  7665. begin
  7666. If (Fname=AValue) then exit;
  7667. Fname:=AValue;
  7668. MarkPropertyChanged(AIndex);
  7669. end;
  7670. Procedure TSegment.SetsegmentId(AIndex : Integer; const AValue : String);
  7671. begin
  7672. If (FsegmentId=AValue) then exit;
  7673. FsegmentId:=AValue;
  7674. MarkPropertyChanged(AIndex);
  7675. end;
  7676. Procedure TSegment.SetselfLink(AIndex : Integer; const AValue : String);
  7677. begin
  7678. If (FselfLink=AValue) then exit;
  7679. FselfLink:=AValue;
  7680. MarkPropertyChanged(AIndex);
  7681. end;
  7682. Procedure TSegment.Set_type(AIndex : Integer; const AValue : String);
  7683. begin
  7684. If (F_type=AValue) then exit;
  7685. F_type:=AValue;
  7686. MarkPropertyChanged(AIndex);
  7687. end;
  7688. Procedure TSegment.Setupdated(AIndex : Integer; const AValue : TDatetime);
  7689. begin
  7690. If (Fupdated=AValue) then exit;
  7691. Fupdated:=AValue;
  7692. MarkPropertyChanged(AIndex);
  7693. end;
  7694. Class Function TSegment.ExportPropertyName(Const AName : String) :String;
  7695. begin
  7696. Case AName of
  7697. '_type' : Result:='type';
  7698. else
  7699. Result:=Inherited ExportPropertyName(AName);
  7700. end;
  7701. end;
  7702. { --------------------------------------------------------------------
  7703. TSegments
  7704. --------------------------------------------------------------------}
  7705. Procedure TSegments.Setitems(AIndex : Integer; const AValue : TSegmentsTypeitemsArray);
  7706. begin
  7707. If (Fitems=AValue) then exit;
  7708. Fitems:=AValue;
  7709. MarkPropertyChanged(AIndex);
  7710. end;
  7711. Procedure TSegments.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  7712. begin
  7713. If (FitemsPerPage=AValue) then exit;
  7714. FitemsPerPage:=AValue;
  7715. MarkPropertyChanged(AIndex);
  7716. end;
  7717. Procedure TSegments.Setkind(AIndex : Integer; const AValue : String);
  7718. begin
  7719. If (Fkind=AValue) then exit;
  7720. Fkind:=AValue;
  7721. MarkPropertyChanged(AIndex);
  7722. end;
  7723. Procedure TSegments.SetnextLink(AIndex : Integer; const AValue : String);
  7724. begin
  7725. If (FnextLink=AValue) then exit;
  7726. FnextLink:=AValue;
  7727. MarkPropertyChanged(AIndex);
  7728. end;
  7729. Procedure TSegments.SetpreviousLink(AIndex : Integer; const AValue : String);
  7730. begin
  7731. If (FpreviousLink=AValue) then exit;
  7732. FpreviousLink:=AValue;
  7733. MarkPropertyChanged(AIndex);
  7734. end;
  7735. Procedure TSegments.SetstartIndex(AIndex : Integer; const AValue : integer);
  7736. begin
  7737. If (FstartIndex=AValue) then exit;
  7738. FstartIndex:=AValue;
  7739. MarkPropertyChanged(AIndex);
  7740. end;
  7741. Procedure TSegments.SettotalResults(AIndex : Integer; const AValue : integer);
  7742. begin
  7743. If (FtotalResults=AValue) then exit;
  7744. FtotalResults:=AValue;
  7745. MarkPropertyChanged(AIndex);
  7746. end;
  7747. Procedure TSegments.Setusername(AIndex : Integer; const AValue : String);
  7748. begin
  7749. If (Fusername=AValue) then exit;
  7750. Fusername:=AValue;
  7751. MarkPropertyChanged(AIndex);
  7752. end;
  7753. //2.6.4. bug workaround
  7754. {$IFDEF VER2_6}
  7755. Procedure TSegments.SetArrayLength(Const AName : String; ALength : Longint);
  7756. begin
  7757. Case AName of
  7758. 'items' : SetLength(Fitems,ALength);
  7759. else
  7760. Inherited SetArrayLength(AName,ALength);
  7761. end;
  7762. end;
  7763. {$ENDIF VER2_6}
  7764. { --------------------------------------------------------------------
  7765. TUnsampledReportTypecloudStorageDownloadDetails
  7766. --------------------------------------------------------------------}
  7767. Procedure TUnsampledReportTypecloudStorageDownloadDetails.SetbucketId(AIndex : Integer; const AValue : String);
  7768. begin
  7769. If (FbucketId=AValue) then exit;
  7770. FbucketId:=AValue;
  7771. MarkPropertyChanged(AIndex);
  7772. end;
  7773. Procedure TUnsampledReportTypecloudStorageDownloadDetails.SetobjectId(AIndex : Integer; const AValue : String);
  7774. begin
  7775. If (FobjectId=AValue) then exit;
  7776. FobjectId:=AValue;
  7777. MarkPropertyChanged(AIndex);
  7778. end;
  7779. { --------------------------------------------------------------------
  7780. TUnsampledReportTypedriveDownloadDetails
  7781. --------------------------------------------------------------------}
  7782. Procedure TUnsampledReportTypedriveDownloadDetails.SetdocumentId(AIndex : Integer; const AValue : String);
  7783. begin
  7784. If (FdocumentId=AValue) then exit;
  7785. FdocumentId:=AValue;
  7786. MarkPropertyChanged(AIndex);
  7787. end;
  7788. { --------------------------------------------------------------------
  7789. TUnsampledReport
  7790. --------------------------------------------------------------------}
  7791. Procedure TUnsampledReport.SetaccountId(AIndex : Integer; const AValue : String);
  7792. begin
  7793. If (FaccountId=AValue) then exit;
  7794. FaccountId:=AValue;
  7795. MarkPropertyChanged(AIndex);
  7796. end;
  7797. Procedure TUnsampledReport.SetcloudStorageDownloadDetails(AIndex : Integer; const AValue : TUnsampledReportTypecloudStorageDownloadDetails);
  7798. begin
  7799. If (FcloudStorageDownloadDetails=AValue) then exit;
  7800. FcloudStorageDownloadDetails:=AValue;
  7801. MarkPropertyChanged(AIndex);
  7802. end;
  7803. Procedure TUnsampledReport.Setcreated(AIndex : Integer; const AValue : TDatetime);
  7804. begin
  7805. If (Fcreated=AValue) then exit;
  7806. Fcreated:=AValue;
  7807. MarkPropertyChanged(AIndex);
  7808. end;
  7809. Procedure TUnsampledReport.Setdimensions(AIndex : Integer; const AValue : String);
  7810. begin
  7811. If (Fdimensions=AValue) then exit;
  7812. Fdimensions:=AValue;
  7813. MarkPropertyChanged(AIndex);
  7814. end;
  7815. Procedure TUnsampledReport.SetdownloadType(AIndex : Integer; const AValue : String);
  7816. begin
  7817. If (FdownloadType=AValue) then exit;
  7818. FdownloadType:=AValue;
  7819. MarkPropertyChanged(AIndex);
  7820. end;
  7821. Procedure TUnsampledReport.SetdriveDownloadDetails(AIndex : Integer; const AValue : TUnsampledReportTypedriveDownloadDetails);
  7822. begin
  7823. If (FdriveDownloadDetails=AValue) then exit;
  7824. FdriveDownloadDetails:=AValue;
  7825. MarkPropertyChanged(AIndex);
  7826. end;
  7827. Procedure TUnsampledReport.Setenddate(AIndex : Integer; const AValue : String);
  7828. begin
  7829. If (Fenddate=AValue) then exit;
  7830. Fenddate:=AValue;
  7831. MarkPropertyChanged(AIndex);
  7832. end;
  7833. Procedure TUnsampledReport.Setfilters(AIndex : Integer; const AValue : String);
  7834. begin
  7835. If (Ffilters=AValue) then exit;
  7836. Ffilters:=AValue;
  7837. MarkPropertyChanged(AIndex);
  7838. end;
  7839. Procedure TUnsampledReport.Setid(AIndex : Integer; const AValue : String);
  7840. begin
  7841. If (Fid=AValue) then exit;
  7842. Fid:=AValue;
  7843. MarkPropertyChanged(AIndex);
  7844. end;
  7845. Procedure TUnsampledReport.Setkind(AIndex : Integer; const AValue : String);
  7846. begin
  7847. If (Fkind=AValue) then exit;
  7848. Fkind:=AValue;
  7849. MarkPropertyChanged(AIndex);
  7850. end;
  7851. Procedure TUnsampledReport.Setmetrics(AIndex : Integer; const AValue : String);
  7852. begin
  7853. If (Fmetrics=AValue) then exit;
  7854. Fmetrics:=AValue;
  7855. MarkPropertyChanged(AIndex);
  7856. end;
  7857. Procedure TUnsampledReport.SetprofileId(AIndex : Integer; const AValue : String);
  7858. begin
  7859. If (FprofileId=AValue) then exit;
  7860. FprofileId:=AValue;
  7861. MarkPropertyChanged(AIndex);
  7862. end;
  7863. Procedure TUnsampledReport.Setsegment(AIndex : Integer; const AValue : String);
  7864. begin
  7865. If (Fsegment=AValue) then exit;
  7866. Fsegment:=AValue;
  7867. MarkPropertyChanged(AIndex);
  7868. end;
  7869. Procedure TUnsampledReport.SetselfLink(AIndex : Integer; const AValue : String);
  7870. begin
  7871. If (FselfLink=AValue) then exit;
  7872. FselfLink:=AValue;
  7873. MarkPropertyChanged(AIndex);
  7874. end;
  7875. Procedure TUnsampledReport.Setstartdate(AIndex : Integer; const AValue : String);
  7876. begin
  7877. If (Fstartdate=AValue) then exit;
  7878. Fstartdate:=AValue;
  7879. MarkPropertyChanged(AIndex);
  7880. end;
  7881. Procedure TUnsampledReport.Setstatus(AIndex : Integer; const AValue : String);
  7882. begin
  7883. If (Fstatus=AValue) then exit;
  7884. Fstatus:=AValue;
  7885. MarkPropertyChanged(AIndex);
  7886. end;
  7887. Procedure TUnsampledReport.Settitle(AIndex : Integer; const AValue : String);
  7888. begin
  7889. If (Ftitle=AValue) then exit;
  7890. Ftitle:=AValue;
  7891. MarkPropertyChanged(AIndex);
  7892. end;
  7893. Procedure TUnsampledReport.Setupdated(AIndex : Integer; const AValue : TDatetime);
  7894. begin
  7895. If (Fupdated=AValue) then exit;
  7896. Fupdated:=AValue;
  7897. MarkPropertyChanged(AIndex);
  7898. end;
  7899. Procedure TUnsampledReport.SetwebPropertyId(AIndex : Integer; const AValue : String);
  7900. begin
  7901. If (FwebPropertyId=AValue) then exit;
  7902. FwebPropertyId:=AValue;
  7903. MarkPropertyChanged(AIndex);
  7904. end;
  7905. Class Function TUnsampledReport.ExportPropertyName(Const AName : String) :String;
  7906. begin
  7907. Case AName of
  7908. 'enddate' : Result:='end-date';
  7909. 'startdate' : Result:='start-date';
  7910. else
  7911. Result:=Inherited ExportPropertyName(AName);
  7912. end;
  7913. end;
  7914. { --------------------------------------------------------------------
  7915. TUnsampledReports
  7916. --------------------------------------------------------------------}
  7917. Procedure TUnsampledReports.Setitems(AIndex : Integer; const AValue : TUnsampledReportsTypeitemsArray);
  7918. begin
  7919. If (Fitems=AValue) then exit;
  7920. Fitems:=AValue;
  7921. MarkPropertyChanged(AIndex);
  7922. end;
  7923. Procedure TUnsampledReports.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  7924. begin
  7925. If (FitemsPerPage=AValue) then exit;
  7926. FitemsPerPage:=AValue;
  7927. MarkPropertyChanged(AIndex);
  7928. end;
  7929. Procedure TUnsampledReports.Setkind(AIndex : Integer; const AValue : String);
  7930. begin
  7931. If (Fkind=AValue) then exit;
  7932. Fkind:=AValue;
  7933. MarkPropertyChanged(AIndex);
  7934. end;
  7935. Procedure TUnsampledReports.SetnextLink(AIndex : Integer; const AValue : String);
  7936. begin
  7937. If (FnextLink=AValue) then exit;
  7938. FnextLink:=AValue;
  7939. MarkPropertyChanged(AIndex);
  7940. end;
  7941. Procedure TUnsampledReports.SetpreviousLink(AIndex : Integer; const AValue : String);
  7942. begin
  7943. If (FpreviousLink=AValue) then exit;
  7944. FpreviousLink:=AValue;
  7945. MarkPropertyChanged(AIndex);
  7946. end;
  7947. Procedure TUnsampledReports.SetstartIndex(AIndex : Integer; const AValue : integer);
  7948. begin
  7949. If (FstartIndex=AValue) then exit;
  7950. FstartIndex:=AValue;
  7951. MarkPropertyChanged(AIndex);
  7952. end;
  7953. Procedure TUnsampledReports.SettotalResults(AIndex : Integer; const AValue : integer);
  7954. begin
  7955. If (FtotalResults=AValue) then exit;
  7956. FtotalResults:=AValue;
  7957. MarkPropertyChanged(AIndex);
  7958. end;
  7959. Procedure TUnsampledReports.Setusername(AIndex : Integer; const AValue : String);
  7960. begin
  7961. If (Fusername=AValue) then exit;
  7962. Fusername:=AValue;
  7963. MarkPropertyChanged(AIndex);
  7964. end;
  7965. //2.6.4. bug workaround
  7966. {$IFDEF VER2_6}
  7967. Procedure TUnsampledReports.SetArrayLength(Const AName : String; ALength : Longint);
  7968. begin
  7969. Case AName of
  7970. 'items' : SetLength(Fitems,ALength);
  7971. else
  7972. Inherited SetArrayLength(AName,ALength);
  7973. end;
  7974. end;
  7975. {$ENDIF VER2_6}
  7976. { --------------------------------------------------------------------
  7977. TUpload
  7978. --------------------------------------------------------------------}
  7979. Procedure TUpload.SetaccountId(AIndex : Integer; const AValue : String);
  7980. begin
  7981. If (FaccountId=AValue) then exit;
  7982. FaccountId:=AValue;
  7983. MarkPropertyChanged(AIndex);
  7984. end;
  7985. Procedure TUpload.SetcustomDataSourceId(AIndex : Integer; const AValue : String);
  7986. begin
  7987. If (FcustomDataSourceId=AValue) then exit;
  7988. FcustomDataSourceId:=AValue;
  7989. MarkPropertyChanged(AIndex);
  7990. end;
  7991. Procedure TUpload.Seterrors(AIndex : Integer; const AValue : TStringArray);
  7992. begin
  7993. If (Ferrors=AValue) then exit;
  7994. Ferrors:=AValue;
  7995. MarkPropertyChanged(AIndex);
  7996. end;
  7997. Procedure TUpload.Setid(AIndex : Integer; const AValue : String);
  7998. begin
  7999. If (Fid=AValue) then exit;
  8000. Fid:=AValue;
  8001. MarkPropertyChanged(AIndex);
  8002. end;
  8003. Procedure TUpload.Setkind(AIndex : Integer; const AValue : String);
  8004. begin
  8005. If (Fkind=AValue) then exit;
  8006. Fkind:=AValue;
  8007. MarkPropertyChanged(AIndex);
  8008. end;
  8009. Procedure TUpload.Setstatus(AIndex : Integer; const AValue : String);
  8010. begin
  8011. If (Fstatus=AValue) then exit;
  8012. Fstatus:=AValue;
  8013. MarkPropertyChanged(AIndex);
  8014. end;
  8015. //2.6.4. bug workaround
  8016. {$IFDEF VER2_6}
  8017. Procedure TUpload.SetArrayLength(Const AName : String; ALength : Longint);
  8018. begin
  8019. Case AName of
  8020. 'errors' : SetLength(Ferrors,ALength);
  8021. else
  8022. Inherited SetArrayLength(AName,ALength);
  8023. end;
  8024. end;
  8025. {$ENDIF VER2_6}
  8026. { --------------------------------------------------------------------
  8027. TUploads
  8028. --------------------------------------------------------------------}
  8029. Procedure TUploads.Setitems(AIndex : Integer; const AValue : TUploadsTypeitemsArray);
  8030. begin
  8031. If (Fitems=AValue) then exit;
  8032. Fitems:=AValue;
  8033. MarkPropertyChanged(AIndex);
  8034. end;
  8035. Procedure TUploads.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  8036. begin
  8037. If (FitemsPerPage=AValue) then exit;
  8038. FitemsPerPage:=AValue;
  8039. MarkPropertyChanged(AIndex);
  8040. end;
  8041. Procedure TUploads.Setkind(AIndex : Integer; const AValue : String);
  8042. begin
  8043. If (Fkind=AValue) then exit;
  8044. Fkind:=AValue;
  8045. MarkPropertyChanged(AIndex);
  8046. end;
  8047. Procedure TUploads.SetnextLink(AIndex : Integer; const AValue : String);
  8048. begin
  8049. If (FnextLink=AValue) then exit;
  8050. FnextLink:=AValue;
  8051. MarkPropertyChanged(AIndex);
  8052. end;
  8053. Procedure TUploads.SetpreviousLink(AIndex : Integer; const AValue : String);
  8054. begin
  8055. If (FpreviousLink=AValue) then exit;
  8056. FpreviousLink:=AValue;
  8057. MarkPropertyChanged(AIndex);
  8058. end;
  8059. Procedure TUploads.SetstartIndex(AIndex : Integer; const AValue : integer);
  8060. begin
  8061. If (FstartIndex=AValue) then exit;
  8062. FstartIndex:=AValue;
  8063. MarkPropertyChanged(AIndex);
  8064. end;
  8065. Procedure TUploads.SettotalResults(AIndex : Integer; const AValue : integer);
  8066. begin
  8067. If (FtotalResults=AValue) then exit;
  8068. FtotalResults:=AValue;
  8069. MarkPropertyChanged(AIndex);
  8070. end;
  8071. //2.6.4. bug workaround
  8072. {$IFDEF VER2_6}
  8073. Procedure TUploads.SetArrayLength(Const AName : String; ALength : Longint);
  8074. begin
  8075. Case AName of
  8076. 'items' : SetLength(Fitems,ALength);
  8077. else
  8078. Inherited SetArrayLength(AName,ALength);
  8079. end;
  8080. end;
  8081. {$ENDIF VER2_6}
  8082. { --------------------------------------------------------------------
  8083. TUserRef
  8084. --------------------------------------------------------------------}
  8085. Procedure TUserRef.Setemail(AIndex : Integer; const AValue : String);
  8086. begin
  8087. If (Femail=AValue) then exit;
  8088. Femail:=AValue;
  8089. MarkPropertyChanged(AIndex);
  8090. end;
  8091. Procedure TUserRef.Setid(AIndex : Integer; const AValue : String);
  8092. begin
  8093. If (Fid=AValue) then exit;
  8094. Fid:=AValue;
  8095. MarkPropertyChanged(AIndex);
  8096. end;
  8097. Procedure TUserRef.Setkind(AIndex : Integer; const AValue : String);
  8098. begin
  8099. If (Fkind=AValue) then exit;
  8100. Fkind:=AValue;
  8101. MarkPropertyChanged(AIndex);
  8102. end;
  8103. { --------------------------------------------------------------------
  8104. TWebPropertyRef
  8105. --------------------------------------------------------------------}
  8106. Procedure TWebPropertyRef.SetaccountId(AIndex : Integer; const AValue : String);
  8107. begin
  8108. If (FaccountId=AValue) then exit;
  8109. FaccountId:=AValue;
  8110. MarkPropertyChanged(AIndex);
  8111. end;
  8112. Procedure TWebPropertyRef.Sethref(AIndex : Integer; const AValue : String);
  8113. begin
  8114. If (Fhref=AValue) then exit;
  8115. Fhref:=AValue;
  8116. MarkPropertyChanged(AIndex);
  8117. end;
  8118. Procedure TWebPropertyRef.Setid(AIndex : Integer; const AValue : String);
  8119. begin
  8120. If (Fid=AValue) then exit;
  8121. Fid:=AValue;
  8122. MarkPropertyChanged(AIndex);
  8123. end;
  8124. Procedure TWebPropertyRef.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  8125. begin
  8126. If (FinternalWebPropertyId=AValue) then exit;
  8127. FinternalWebPropertyId:=AValue;
  8128. MarkPropertyChanged(AIndex);
  8129. end;
  8130. Procedure TWebPropertyRef.Setkind(AIndex : Integer; const AValue : String);
  8131. begin
  8132. If (Fkind=AValue) then exit;
  8133. Fkind:=AValue;
  8134. MarkPropertyChanged(AIndex);
  8135. end;
  8136. Procedure TWebPropertyRef.Setname(AIndex : Integer; const AValue : String);
  8137. begin
  8138. If (Fname=AValue) then exit;
  8139. Fname:=AValue;
  8140. MarkPropertyChanged(AIndex);
  8141. end;
  8142. { --------------------------------------------------------------------
  8143. TWebPropertySummary
  8144. --------------------------------------------------------------------}
  8145. Procedure TWebPropertySummary.Setid(AIndex : Integer; const AValue : String);
  8146. begin
  8147. If (Fid=AValue) then exit;
  8148. Fid:=AValue;
  8149. MarkPropertyChanged(AIndex);
  8150. end;
  8151. Procedure TWebPropertySummary.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  8152. begin
  8153. If (FinternalWebPropertyId=AValue) then exit;
  8154. FinternalWebPropertyId:=AValue;
  8155. MarkPropertyChanged(AIndex);
  8156. end;
  8157. Procedure TWebPropertySummary.Setkind(AIndex : Integer; const AValue : String);
  8158. begin
  8159. If (Fkind=AValue) then exit;
  8160. Fkind:=AValue;
  8161. MarkPropertyChanged(AIndex);
  8162. end;
  8163. Procedure TWebPropertySummary.Setlevel(AIndex : Integer; const AValue : String);
  8164. begin
  8165. If (Flevel=AValue) then exit;
  8166. Flevel:=AValue;
  8167. MarkPropertyChanged(AIndex);
  8168. end;
  8169. Procedure TWebPropertySummary.Setname(AIndex : Integer; const AValue : String);
  8170. begin
  8171. If (Fname=AValue) then exit;
  8172. Fname:=AValue;
  8173. MarkPropertyChanged(AIndex);
  8174. end;
  8175. Procedure TWebPropertySummary.Setprofiles(AIndex : Integer; const AValue : TWebPropertySummaryTypeprofilesArray);
  8176. begin
  8177. If (Fprofiles=AValue) then exit;
  8178. Fprofiles:=AValue;
  8179. MarkPropertyChanged(AIndex);
  8180. end;
  8181. Procedure TWebPropertySummary.Setstarred(AIndex : Integer; const AValue : boolean);
  8182. begin
  8183. If (Fstarred=AValue) then exit;
  8184. Fstarred:=AValue;
  8185. MarkPropertyChanged(AIndex);
  8186. end;
  8187. Procedure TWebPropertySummary.SetwebsiteUrl(AIndex : Integer; const AValue : String);
  8188. begin
  8189. If (FwebsiteUrl=AValue) then exit;
  8190. FwebsiteUrl:=AValue;
  8191. MarkPropertyChanged(AIndex);
  8192. end;
  8193. //2.6.4. bug workaround
  8194. {$IFDEF VER2_6}
  8195. Procedure TWebPropertySummary.SetArrayLength(Const AName : String; ALength : Longint);
  8196. begin
  8197. Case AName of
  8198. 'profiles' : SetLength(Fprofiles,ALength);
  8199. else
  8200. Inherited SetArrayLength(AName,ALength);
  8201. end;
  8202. end;
  8203. {$ENDIF VER2_6}
  8204. { --------------------------------------------------------------------
  8205. TWebproperties
  8206. --------------------------------------------------------------------}
  8207. Procedure TWebproperties.Setitems(AIndex : Integer; const AValue : TWebpropertiesTypeitemsArray);
  8208. begin
  8209. If (Fitems=AValue) then exit;
  8210. Fitems:=AValue;
  8211. MarkPropertyChanged(AIndex);
  8212. end;
  8213. Procedure TWebproperties.SetitemsPerPage(AIndex : Integer; const AValue : integer);
  8214. begin
  8215. If (FitemsPerPage=AValue) then exit;
  8216. FitemsPerPage:=AValue;
  8217. MarkPropertyChanged(AIndex);
  8218. end;
  8219. Procedure TWebproperties.Setkind(AIndex : Integer; const AValue : String);
  8220. begin
  8221. If (Fkind=AValue) then exit;
  8222. Fkind:=AValue;
  8223. MarkPropertyChanged(AIndex);
  8224. end;
  8225. Procedure TWebproperties.SetnextLink(AIndex : Integer; const AValue : String);
  8226. begin
  8227. If (FnextLink=AValue) then exit;
  8228. FnextLink:=AValue;
  8229. MarkPropertyChanged(AIndex);
  8230. end;
  8231. Procedure TWebproperties.SetpreviousLink(AIndex : Integer; const AValue : String);
  8232. begin
  8233. If (FpreviousLink=AValue) then exit;
  8234. FpreviousLink:=AValue;
  8235. MarkPropertyChanged(AIndex);
  8236. end;
  8237. Procedure TWebproperties.SetstartIndex(AIndex : Integer; const AValue : integer);
  8238. begin
  8239. If (FstartIndex=AValue) then exit;
  8240. FstartIndex:=AValue;
  8241. MarkPropertyChanged(AIndex);
  8242. end;
  8243. Procedure TWebproperties.SettotalResults(AIndex : Integer; const AValue : integer);
  8244. begin
  8245. If (FtotalResults=AValue) then exit;
  8246. FtotalResults:=AValue;
  8247. MarkPropertyChanged(AIndex);
  8248. end;
  8249. Procedure TWebproperties.Setusername(AIndex : Integer; const AValue : String);
  8250. begin
  8251. If (Fusername=AValue) then exit;
  8252. Fusername:=AValue;
  8253. MarkPropertyChanged(AIndex);
  8254. end;
  8255. //2.6.4. bug workaround
  8256. {$IFDEF VER2_6}
  8257. Procedure TWebproperties.SetArrayLength(Const AName : String; ALength : Longint);
  8258. begin
  8259. Case AName of
  8260. 'items' : SetLength(Fitems,ALength);
  8261. else
  8262. Inherited SetArrayLength(AName,ALength);
  8263. end;
  8264. end;
  8265. {$ENDIF VER2_6}
  8266. { --------------------------------------------------------------------
  8267. TWebpropertyTypechildLink
  8268. --------------------------------------------------------------------}
  8269. Procedure TWebpropertyTypechildLink.Sethref(AIndex : Integer; const AValue : String);
  8270. begin
  8271. If (Fhref=AValue) then exit;
  8272. Fhref:=AValue;
  8273. MarkPropertyChanged(AIndex);
  8274. end;
  8275. Procedure TWebpropertyTypechildLink.Set_type(AIndex : Integer; const AValue : String);
  8276. begin
  8277. If (F_type=AValue) then exit;
  8278. F_type:=AValue;
  8279. MarkPropertyChanged(AIndex);
  8280. end;
  8281. Class Function TWebpropertyTypechildLink.ExportPropertyName(Const AName : String) :String;
  8282. begin
  8283. Case AName of
  8284. '_type' : Result:='type';
  8285. else
  8286. Result:=Inherited ExportPropertyName(AName);
  8287. end;
  8288. end;
  8289. { --------------------------------------------------------------------
  8290. TWebpropertyTypeparentLink
  8291. --------------------------------------------------------------------}
  8292. Procedure TWebpropertyTypeparentLink.Sethref(AIndex : Integer; const AValue : String);
  8293. begin
  8294. If (Fhref=AValue) then exit;
  8295. Fhref:=AValue;
  8296. MarkPropertyChanged(AIndex);
  8297. end;
  8298. Procedure TWebpropertyTypeparentLink.Set_type(AIndex : Integer; const AValue : String);
  8299. begin
  8300. If (F_type=AValue) then exit;
  8301. F_type:=AValue;
  8302. MarkPropertyChanged(AIndex);
  8303. end;
  8304. Class Function TWebpropertyTypeparentLink.ExportPropertyName(Const AName : String) :String;
  8305. begin
  8306. Case AName of
  8307. '_type' : Result:='type';
  8308. else
  8309. Result:=Inherited ExportPropertyName(AName);
  8310. end;
  8311. end;
  8312. { --------------------------------------------------------------------
  8313. TWebpropertyTypepermissions
  8314. --------------------------------------------------------------------}
  8315. Procedure TWebpropertyTypepermissions.Seteffective(AIndex : Integer; const AValue : TStringArray);
  8316. begin
  8317. If (Feffective=AValue) then exit;
  8318. Feffective:=AValue;
  8319. MarkPropertyChanged(AIndex);
  8320. end;
  8321. //2.6.4. bug workaround
  8322. {$IFDEF VER2_6}
  8323. Procedure TWebpropertyTypepermissions.SetArrayLength(Const AName : String; ALength : Longint);
  8324. begin
  8325. Case AName of
  8326. 'effective' : SetLength(Feffective,ALength);
  8327. else
  8328. Inherited SetArrayLength(AName,ALength);
  8329. end;
  8330. end;
  8331. {$ENDIF VER2_6}
  8332. { --------------------------------------------------------------------
  8333. TWebproperty
  8334. --------------------------------------------------------------------}
  8335. Procedure TWebproperty.SetaccountId(AIndex : Integer; const AValue : String);
  8336. begin
  8337. If (FaccountId=AValue) then exit;
  8338. FaccountId:=AValue;
  8339. MarkPropertyChanged(AIndex);
  8340. end;
  8341. Procedure TWebproperty.SetchildLink(AIndex : Integer; const AValue : TWebpropertyTypechildLink);
  8342. begin
  8343. If (FchildLink=AValue) then exit;
  8344. FchildLink:=AValue;
  8345. MarkPropertyChanged(AIndex);
  8346. end;
  8347. Procedure TWebproperty.Setcreated(AIndex : Integer; const AValue : TDatetime);
  8348. begin
  8349. If (Fcreated=AValue) then exit;
  8350. Fcreated:=AValue;
  8351. MarkPropertyChanged(AIndex);
  8352. end;
  8353. Procedure TWebproperty.SetdefaultProfileId(AIndex : Integer; const AValue : String);
  8354. begin
  8355. If (FdefaultProfileId=AValue) then exit;
  8356. FdefaultProfileId:=AValue;
  8357. MarkPropertyChanged(AIndex);
  8358. end;
  8359. Procedure TWebproperty.Setid(AIndex : Integer; const AValue : String);
  8360. begin
  8361. If (Fid=AValue) then exit;
  8362. Fid:=AValue;
  8363. MarkPropertyChanged(AIndex);
  8364. end;
  8365. Procedure TWebproperty.SetindustryVertical(AIndex : Integer; const AValue : String);
  8366. begin
  8367. If (FindustryVertical=AValue) then exit;
  8368. FindustryVertical:=AValue;
  8369. MarkPropertyChanged(AIndex);
  8370. end;
  8371. Procedure TWebproperty.SetinternalWebPropertyId(AIndex : Integer; const AValue : String);
  8372. begin
  8373. If (FinternalWebPropertyId=AValue) then exit;
  8374. FinternalWebPropertyId:=AValue;
  8375. MarkPropertyChanged(AIndex);
  8376. end;
  8377. Procedure TWebproperty.Setkind(AIndex : Integer; const AValue : String);
  8378. begin
  8379. If (Fkind=AValue) then exit;
  8380. Fkind:=AValue;
  8381. MarkPropertyChanged(AIndex);
  8382. end;
  8383. Procedure TWebproperty.Setlevel(AIndex : Integer; const AValue : String);
  8384. begin
  8385. If (Flevel=AValue) then exit;
  8386. Flevel:=AValue;
  8387. MarkPropertyChanged(AIndex);
  8388. end;
  8389. Procedure TWebproperty.Setname(AIndex : Integer; const AValue : String);
  8390. begin
  8391. If (Fname=AValue) then exit;
  8392. Fname:=AValue;
  8393. MarkPropertyChanged(AIndex);
  8394. end;
  8395. Procedure TWebproperty.SetparentLink(AIndex : Integer; const AValue : TWebpropertyTypeparentLink);
  8396. begin
  8397. If (FparentLink=AValue) then exit;
  8398. FparentLink:=AValue;
  8399. MarkPropertyChanged(AIndex);
  8400. end;
  8401. Procedure TWebproperty.Setpermissions(AIndex : Integer; const AValue : TWebpropertyTypepermissions);
  8402. begin
  8403. If (Fpermissions=AValue) then exit;
  8404. Fpermissions:=AValue;
  8405. MarkPropertyChanged(AIndex);
  8406. end;
  8407. Procedure TWebproperty.SetprofileCount(AIndex : Integer; const AValue : integer);
  8408. begin
  8409. If (FprofileCount=AValue) then exit;
  8410. FprofileCount:=AValue;
  8411. MarkPropertyChanged(AIndex);
  8412. end;
  8413. Procedure TWebproperty.SetselfLink(AIndex : Integer; const AValue : String);
  8414. begin
  8415. If (FselfLink=AValue) then exit;
  8416. FselfLink:=AValue;
  8417. MarkPropertyChanged(AIndex);
  8418. end;
  8419. Procedure TWebproperty.Setstarred(AIndex : Integer; const AValue : boolean);
  8420. begin
  8421. If (Fstarred=AValue) then exit;
  8422. Fstarred:=AValue;
  8423. MarkPropertyChanged(AIndex);
  8424. end;
  8425. Procedure TWebproperty.Setupdated(AIndex : Integer; const AValue : TDatetime);
  8426. begin
  8427. If (Fupdated=AValue) then exit;
  8428. Fupdated:=AValue;
  8429. MarkPropertyChanged(AIndex);
  8430. end;
  8431. Procedure TWebproperty.SetwebsiteUrl(AIndex : Integer; const AValue : String);
  8432. begin
  8433. If (FwebsiteUrl=AValue) then exit;
  8434. FwebsiteUrl:=AValue;
  8435. MarkPropertyChanged(AIndex);
  8436. end;
  8437. { --------------------------------------------------------------------
  8438. TDataGaResource
  8439. --------------------------------------------------------------------}
  8440. Class Function TDataGaResource.ResourceName : String;
  8441. begin
  8442. Result:='ga';
  8443. end;
  8444. Class Function TDataGaResource.DefaultAPI : TGoogleAPIClass;
  8445. begin
  8446. Result:=TanalyticsAPI;
  8447. end;
  8448. Function TDataGaResource.Get(AQuery : string = '') : TGaData;
  8449. Const
  8450. _HTTPMethod = 'GET';
  8451. _Path = 'data/ga';
  8452. _Methodid = 'analytics.data.ga.get';
  8453. begin
  8454. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TGaData) as TGaData;
  8455. end;
  8456. Function TDataGaResource.Get(AQuery : TDataGagetOptions) : TGaData;
  8457. Var
  8458. _Q : String;
  8459. begin
  8460. _Q:='';
  8461. AddToQuery(_Q,'dimensions',AQuery.dimensions);
  8462. AddToQuery(_Q,'end-date',AQuery.enddate);
  8463. AddToQuery(_Q,'filters',AQuery.filters);
  8464. AddToQuery(_Q,'ids',AQuery.ids);
  8465. AddToQuery(_Q,'include-empty-rows',AQuery.includeemptyrows);
  8466. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8467. AddToQuery(_Q,'metrics',AQuery.metrics);
  8468. AddToQuery(_Q,'output',AQuery.output);
  8469. AddToQuery(_Q,'samplingLevel',AQuery.samplingLevel);
  8470. AddToQuery(_Q,'segment',AQuery.segment);
  8471. AddToQuery(_Q,'sort',AQuery.sort);
  8472. AddToQuery(_Q,'start-date',AQuery.startdate);
  8473. AddToQuery(_Q,'start-index',AQuery.startindex);
  8474. Result:=Get(_Q);
  8475. end;
  8476. { --------------------------------------------------------------------
  8477. TDataMcfResource
  8478. --------------------------------------------------------------------}
  8479. Class Function TDataMcfResource.ResourceName : String;
  8480. begin
  8481. Result:='mcf';
  8482. end;
  8483. Class Function TDataMcfResource.DefaultAPI : TGoogleAPIClass;
  8484. begin
  8485. Result:=TanalyticsAPI;
  8486. end;
  8487. Function TDataMcfResource.Get(AQuery : string = '') : TMcfData;
  8488. Const
  8489. _HTTPMethod = 'GET';
  8490. _Path = 'data/mcf';
  8491. _Methodid = 'analytics.data.mcf.get';
  8492. begin
  8493. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TMcfData) as TMcfData;
  8494. end;
  8495. Function TDataMcfResource.Get(AQuery : TDataMcfgetOptions) : TMcfData;
  8496. Var
  8497. _Q : String;
  8498. begin
  8499. _Q:='';
  8500. AddToQuery(_Q,'dimensions',AQuery.dimensions);
  8501. AddToQuery(_Q,'end-date',AQuery.enddate);
  8502. AddToQuery(_Q,'filters',AQuery.filters);
  8503. AddToQuery(_Q,'ids',AQuery.ids);
  8504. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8505. AddToQuery(_Q,'metrics',AQuery.metrics);
  8506. AddToQuery(_Q,'samplingLevel',AQuery.samplingLevel);
  8507. AddToQuery(_Q,'sort',AQuery.sort);
  8508. AddToQuery(_Q,'start-date',AQuery.startdate);
  8509. AddToQuery(_Q,'start-index',AQuery.startindex);
  8510. Result:=Get(_Q);
  8511. end;
  8512. { --------------------------------------------------------------------
  8513. TDataRealtimeResource
  8514. --------------------------------------------------------------------}
  8515. Class Function TDataRealtimeResource.ResourceName : String;
  8516. begin
  8517. Result:='realtime';
  8518. end;
  8519. Class Function TDataRealtimeResource.DefaultAPI : TGoogleAPIClass;
  8520. begin
  8521. Result:=TanalyticsAPI;
  8522. end;
  8523. Function TDataRealtimeResource.Get(AQuery : string = '') : TRealtimeData;
  8524. Const
  8525. _HTTPMethod = 'GET';
  8526. _Path = 'data/realtime';
  8527. _Methodid = 'analytics.data.realtime.get';
  8528. begin
  8529. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TRealtimeData) as TRealtimeData;
  8530. end;
  8531. Function TDataRealtimeResource.Get(AQuery : TDataRealtimegetOptions) : TRealtimeData;
  8532. Var
  8533. _Q : String;
  8534. begin
  8535. _Q:='';
  8536. AddToQuery(_Q,'dimensions',AQuery.dimensions);
  8537. AddToQuery(_Q,'filters',AQuery.filters);
  8538. AddToQuery(_Q,'ids',AQuery.ids);
  8539. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8540. AddToQuery(_Q,'metrics',AQuery.metrics);
  8541. AddToQuery(_Q,'sort',AQuery.sort);
  8542. Result:=Get(_Q);
  8543. end;
  8544. { --------------------------------------------------------------------
  8545. TDataResource
  8546. --------------------------------------------------------------------}
  8547. Class Function TDataResource.ResourceName : String;
  8548. begin
  8549. Result:='data';
  8550. end;
  8551. Class Function TDataResource.DefaultAPI : TGoogleAPIClass;
  8552. begin
  8553. Result:=TanalyticsAPI;
  8554. end;
  8555. Function TDataResource.GetGaInstance : TDataGaResource;
  8556. begin
  8557. if (FGaInstance=Nil) then
  8558. FGaInstance:=CreateGaResource;
  8559. Result:=FGaInstance;
  8560. end;
  8561. Function TDataResource.CreateGaResource : TDataGaResource;
  8562. begin
  8563. Result:=CreateGaResource(Self);
  8564. end;
  8565. Function TDataResource.CreateGaResource(AOwner : TComponent) : TDataGaResource;
  8566. begin
  8567. Result:=TDataGaResource.Create(AOwner);
  8568. Result.API:=Self.API;
  8569. end;
  8570. Function TDataResource.GetMcfInstance : TDataMcfResource;
  8571. begin
  8572. if (FMcfInstance=Nil) then
  8573. FMcfInstance:=CreateMcfResource;
  8574. Result:=FMcfInstance;
  8575. end;
  8576. Function TDataResource.CreateMcfResource : TDataMcfResource;
  8577. begin
  8578. Result:=CreateMcfResource(Self);
  8579. end;
  8580. Function TDataResource.CreateMcfResource(AOwner : TComponent) : TDataMcfResource;
  8581. begin
  8582. Result:=TDataMcfResource.Create(AOwner);
  8583. Result.API:=Self.API;
  8584. end;
  8585. Function TDataResource.GetRealtimeInstance : TDataRealtimeResource;
  8586. begin
  8587. if (FRealtimeInstance=Nil) then
  8588. FRealtimeInstance:=CreateRealtimeResource;
  8589. Result:=FRealtimeInstance;
  8590. end;
  8591. Function TDataResource.CreateRealtimeResource : TDataRealtimeResource;
  8592. begin
  8593. Result:=CreateRealtimeResource(Self);
  8594. end;
  8595. Function TDataResource.CreateRealtimeResource(AOwner : TComponent) : TDataRealtimeResource;
  8596. begin
  8597. Result:=TDataRealtimeResource.Create(AOwner);
  8598. Result.API:=Self.API;
  8599. end;
  8600. { --------------------------------------------------------------------
  8601. TManagementAccountSummariesResource
  8602. --------------------------------------------------------------------}
  8603. Class Function TManagementAccountSummariesResource.ResourceName : String;
  8604. begin
  8605. Result:='accountSummaries';
  8606. end;
  8607. Class Function TManagementAccountSummariesResource.DefaultAPI : TGoogleAPIClass;
  8608. begin
  8609. Result:=TanalyticsAPI;
  8610. end;
  8611. Function TManagementAccountSummariesResource.List(AQuery : string = '') : TAccountSummaries;
  8612. Const
  8613. _HTTPMethod = 'GET';
  8614. _Path = 'management/accountSummaries';
  8615. _Methodid = 'analytics.management.accountSummaries.list';
  8616. begin
  8617. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TAccountSummaries) as TAccountSummaries;
  8618. end;
  8619. Function TManagementAccountSummariesResource.List(AQuery : TManagementAccountSummarieslistOptions) : TAccountSummaries;
  8620. Var
  8621. _Q : String;
  8622. begin
  8623. _Q:='';
  8624. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8625. AddToQuery(_Q,'start-index',AQuery.startindex);
  8626. Result:=List(_Q);
  8627. end;
  8628. { --------------------------------------------------------------------
  8629. TManagementAccountUserLinksResource
  8630. --------------------------------------------------------------------}
  8631. Class Function TManagementAccountUserLinksResource.ResourceName : String;
  8632. begin
  8633. Result:='accountUserLinks';
  8634. end;
  8635. Class Function TManagementAccountUserLinksResource.DefaultAPI : TGoogleAPIClass;
  8636. begin
  8637. Result:=TanalyticsAPI;
  8638. end;
  8639. Procedure TManagementAccountUserLinksResource.Delete(accountId: string; linkId: string);
  8640. Const
  8641. _HTTPMethod = 'DELETE';
  8642. _Path = 'management/accounts/{accountId}/entityUserLinks/{linkId}';
  8643. _Methodid = 'analytics.management.accountUserLinks.delete';
  8644. Var
  8645. _P : String;
  8646. begin
  8647. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId]);
  8648. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  8649. end;
  8650. Function TManagementAccountUserLinksResource.Insert(accountId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  8651. Const
  8652. _HTTPMethod = 'POST';
  8653. _Path = 'management/accounts/{accountId}/entityUserLinks';
  8654. _Methodid = 'analytics.management.accountUserLinks.insert';
  8655. Var
  8656. _P : String;
  8657. begin
  8658. _P:=SubstitutePath(_Path,['accountId',accountId]);
  8659. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  8660. end;
  8661. Function TManagementAccountUserLinksResource.List(accountId: string; AQuery : string = '') : TEntityUserLinks;
  8662. Const
  8663. _HTTPMethod = 'GET';
  8664. _Path = 'management/accounts/{accountId}/entityUserLinks';
  8665. _Methodid = 'analytics.management.accountUserLinks.list';
  8666. Var
  8667. _P : String;
  8668. begin
  8669. _P:=SubstitutePath(_Path,['accountId',accountId]);
  8670. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEntityUserLinks) as TEntityUserLinks;
  8671. end;
  8672. Function TManagementAccountUserLinksResource.List(accountId: string; AQuery : TManagementAccountUserLinkslistOptions) : TEntityUserLinks;
  8673. Var
  8674. _Q : String;
  8675. begin
  8676. _Q:='';
  8677. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8678. AddToQuery(_Q,'start-index',AQuery.startindex);
  8679. Result:=List(accountId,_Q);
  8680. end;
  8681. Function TManagementAccountUserLinksResource.Update(accountId: string; linkId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  8682. Const
  8683. _HTTPMethod = 'PUT';
  8684. _Path = 'management/accounts/{accountId}/entityUserLinks/{linkId}';
  8685. _Methodid = 'analytics.management.accountUserLinks.update';
  8686. Var
  8687. _P : String;
  8688. begin
  8689. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId]);
  8690. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  8691. end;
  8692. { --------------------------------------------------------------------
  8693. TManagementAccountsResource
  8694. --------------------------------------------------------------------}
  8695. Class Function TManagementAccountsResource.ResourceName : String;
  8696. begin
  8697. Result:='accounts';
  8698. end;
  8699. Class Function TManagementAccountsResource.DefaultAPI : TGoogleAPIClass;
  8700. begin
  8701. Result:=TanalyticsAPI;
  8702. end;
  8703. Function TManagementAccountsResource.List(AQuery : string = '') : TAccounts;
  8704. Const
  8705. _HTTPMethod = 'GET';
  8706. _Path = 'management/accounts';
  8707. _Methodid = 'analytics.management.accounts.list';
  8708. begin
  8709. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TAccounts) as TAccounts;
  8710. end;
  8711. Function TManagementAccountsResource.List(AQuery : TManagementAccountslistOptions) : TAccounts;
  8712. Var
  8713. _Q : String;
  8714. begin
  8715. _Q:='';
  8716. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8717. AddToQuery(_Q,'start-index',AQuery.startindex);
  8718. Result:=List(_Q);
  8719. end;
  8720. { --------------------------------------------------------------------
  8721. TManagementCustomDataSourcesResource
  8722. --------------------------------------------------------------------}
  8723. Class Function TManagementCustomDataSourcesResource.ResourceName : String;
  8724. begin
  8725. Result:='customDataSources';
  8726. end;
  8727. Class Function TManagementCustomDataSourcesResource.DefaultAPI : TGoogleAPIClass;
  8728. begin
  8729. Result:=TanalyticsAPI;
  8730. end;
  8731. Function TManagementCustomDataSourcesResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomDataSources;
  8732. Const
  8733. _HTTPMethod = 'GET';
  8734. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources';
  8735. _Methodid = 'analytics.management.customDataSources.list';
  8736. Var
  8737. _P : String;
  8738. begin
  8739. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8740. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCustomDataSources) as TCustomDataSources;
  8741. end;
  8742. Function TManagementCustomDataSourcesResource.List(accountId: string; webPropertyId: string; AQuery : TManagementCustomDataSourceslistOptions) : TCustomDataSources;
  8743. Var
  8744. _Q : String;
  8745. begin
  8746. _Q:='';
  8747. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8748. AddToQuery(_Q,'start-index',AQuery.startindex);
  8749. Result:=List(accountId,webPropertyId,_Q);
  8750. end;
  8751. { --------------------------------------------------------------------
  8752. TManagementCustomDimensionsResource
  8753. --------------------------------------------------------------------}
  8754. Class Function TManagementCustomDimensionsResource.ResourceName : String;
  8755. begin
  8756. Result:='customDimensions';
  8757. end;
  8758. Class Function TManagementCustomDimensionsResource.DefaultAPI : TGoogleAPIClass;
  8759. begin
  8760. Result:=TanalyticsAPI;
  8761. end;
  8762. Function TManagementCustomDimensionsResource.Get(accountId: string; customDimensionId: string; webPropertyId: string) : TCustomDimension;
  8763. Const
  8764. _HTTPMethod = 'GET';
  8765. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}';
  8766. _Methodid = 'analytics.management.customDimensions.get';
  8767. Var
  8768. _P : String;
  8769. begin
  8770. _P:=SubstitutePath(_Path,['accountId',accountId,'customDimensionId',customDimensionId,'webPropertyId',webPropertyId]);
  8771. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TCustomDimension) as TCustomDimension;
  8772. end;
  8773. Function TManagementCustomDimensionsResource.Insert(accountId: string; webPropertyId: string; aCustomDimension : TCustomDimension) : TCustomDimension;
  8774. Const
  8775. _HTTPMethod = 'POST';
  8776. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions';
  8777. _Methodid = 'analytics.management.customDimensions.insert';
  8778. Var
  8779. _P : String;
  8780. begin
  8781. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8782. Result:=ServiceCall(_HTTPMethod,_P,'',aCustomDimension,TCustomDimension) as TCustomDimension;
  8783. end;
  8784. Function TManagementCustomDimensionsResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomDimensions;
  8785. Const
  8786. _HTTPMethod = 'GET';
  8787. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions';
  8788. _Methodid = 'analytics.management.customDimensions.list';
  8789. Var
  8790. _P : String;
  8791. begin
  8792. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8793. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCustomDimensions) as TCustomDimensions;
  8794. end;
  8795. Function TManagementCustomDimensionsResource.List(accountId: string; webPropertyId: string; AQuery : TManagementCustomDimensionslistOptions) : TCustomDimensions;
  8796. Var
  8797. _Q : String;
  8798. begin
  8799. _Q:='';
  8800. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8801. AddToQuery(_Q,'start-index',AQuery.startindex);
  8802. Result:=List(accountId,webPropertyId,_Q);
  8803. end;
  8804. Function TManagementCustomDimensionsResource.Patch(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : string = '') : TCustomDimension;
  8805. Const
  8806. _HTTPMethod = 'PATCH';
  8807. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}';
  8808. _Methodid = 'analytics.management.customDimensions.patch';
  8809. Var
  8810. _P : String;
  8811. begin
  8812. _P:=SubstitutePath(_Path,['accountId',accountId,'customDimensionId',customDimensionId,'webPropertyId',webPropertyId]);
  8813. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCustomDimension,TCustomDimension) as TCustomDimension;
  8814. end;
  8815. Function TManagementCustomDimensionsResource.Patch(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : TManagementCustomDimensionspatchOptions) : TCustomDimension;
  8816. Var
  8817. _Q : String;
  8818. begin
  8819. _Q:='';
  8820. AddToQuery(_Q,'ignoreCustomDataSourceLinks',AQuery.ignoreCustomDataSourceLinks);
  8821. Result:=Patch(accountId,customDimensionId,webPropertyId,aCustomDimension,_Q);
  8822. end;
  8823. Function TManagementCustomDimensionsResource.Update(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : string = '') : TCustomDimension;
  8824. Const
  8825. _HTTPMethod = 'PUT';
  8826. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}';
  8827. _Methodid = 'analytics.management.customDimensions.update';
  8828. Var
  8829. _P : String;
  8830. begin
  8831. _P:=SubstitutePath(_Path,['accountId',accountId,'customDimensionId',customDimensionId,'webPropertyId',webPropertyId]);
  8832. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCustomDimension,TCustomDimension) as TCustomDimension;
  8833. end;
  8834. Function TManagementCustomDimensionsResource.Update(accountId: string; customDimensionId: string; webPropertyId: string; aCustomDimension : TCustomDimension; AQuery : TManagementCustomDimensionsupdateOptions) : TCustomDimension;
  8835. Var
  8836. _Q : String;
  8837. begin
  8838. _Q:='';
  8839. AddToQuery(_Q,'ignoreCustomDataSourceLinks',AQuery.ignoreCustomDataSourceLinks);
  8840. Result:=Update(accountId,customDimensionId,webPropertyId,aCustomDimension,_Q);
  8841. end;
  8842. { --------------------------------------------------------------------
  8843. TManagementCustomMetricsResource
  8844. --------------------------------------------------------------------}
  8845. Class Function TManagementCustomMetricsResource.ResourceName : String;
  8846. begin
  8847. Result:='customMetrics';
  8848. end;
  8849. Class Function TManagementCustomMetricsResource.DefaultAPI : TGoogleAPIClass;
  8850. begin
  8851. Result:=TanalyticsAPI;
  8852. end;
  8853. Function TManagementCustomMetricsResource.Get(accountId: string; customMetricId: string; webPropertyId: string) : TCustomMetric;
  8854. Const
  8855. _HTTPMethod = 'GET';
  8856. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}';
  8857. _Methodid = 'analytics.management.customMetrics.get';
  8858. Var
  8859. _P : String;
  8860. begin
  8861. _P:=SubstitutePath(_Path,['accountId',accountId,'customMetricId',customMetricId,'webPropertyId',webPropertyId]);
  8862. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TCustomMetric) as TCustomMetric;
  8863. end;
  8864. Function TManagementCustomMetricsResource.Insert(accountId: string; webPropertyId: string; aCustomMetric : TCustomMetric) : TCustomMetric;
  8865. Const
  8866. _HTTPMethod = 'POST';
  8867. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics';
  8868. _Methodid = 'analytics.management.customMetrics.insert';
  8869. Var
  8870. _P : String;
  8871. begin
  8872. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8873. Result:=ServiceCall(_HTTPMethod,_P,'',aCustomMetric,TCustomMetric) as TCustomMetric;
  8874. end;
  8875. Function TManagementCustomMetricsResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TCustomMetrics;
  8876. Const
  8877. _HTTPMethod = 'GET';
  8878. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics';
  8879. _Methodid = 'analytics.management.customMetrics.list';
  8880. Var
  8881. _P : String;
  8882. begin
  8883. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  8884. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCustomMetrics) as TCustomMetrics;
  8885. end;
  8886. Function TManagementCustomMetricsResource.List(accountId: string; webPropertyId: string; AQuery : TManagementCustomMetricslistOptions) : TCustomMetrics;
  8887. Var
  8888. _Q : String;
  8889. begin
  8890. _Q:='';
  8891. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8892. AddToQuery(_Q,'start-index',AQuery.startindex);
  8893. Result:=List(accountId,webPropertyId,_Q);
  8894. end;
  8895. Function TManagementCustomMetricsResource.Patch(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : string = '') : TCustomMetric;
  8896. Const
  8897. _HTTPMethod = 'PATCH';
  8898. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}';
  8899. _Methodid = 'analytics.management.customMetrics.patch';
  8900. Var
  8901. _P : String;
  8902. begin
  8903. _P:=SubstitutePath(_Path,['accountId',accountId,'customMetricId',customMetricId,'webPropertyId',webPropertyId]);
  8904. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCustomMetric,TCustomMetric) as TCustomMetric;
  8905. end;
  8906. Function TManagementCustomMetricsResource.Patch(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : TManagementCustomMetricspatchOptions) : TCustomMetric;
  8907. Var
  8908. _Q : String;
  8909. begin
  8910. _Q:='';
  8911. AddToQuery(_Q,'ignoreCustomDataSourceLinks',AQuery.ignoreCustomDataSourceLinks);
  8912. Result:=Patch(accountId,customMetricId,webPropertyId,aCustomMetric,_Q);
  8913. end;
  8914. Function TManagementCustomMetricsResource.Update(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : string = '') : TCustomMetric;
  8915. Const
  8916. _HTTPMethod = 'PUT';
  8917. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}';
  8918. _Methodid = 'analytics.management.customMetrics.update';
  8919. Var
  8920. _P : String;
  8921. begin
  8922. _P:=SubstitutePath(_Path,['accountId',accountId,'customMetricId',customMetricId,'webPropertyId',webPropertyId]);
  8923. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCustomMetric,TCustomMetric) as TCustomMetric;
  8924. end;
  8925. Function TManagementCustomMetricsResource.Update(accountId: string; customMetricId: string; webPropertyId: string; aCustomMetric : TCustomMetric; AQuery : TManagementCustomMetricsupdateOptions) : TCustomMetric;
  8926. Var
  8927. _Q : String;
  8928. begin
  8929. _Q:='';
  8930. AddToQuery(_Q,'ignoreCustomDataSourceLinks',AQuery.ignoreCustomDataSourceLinks);
  8931. Result:=Update(accountId,customMetricId,webPropertyId,aCustomMetric,_Q);
  8932. end;
  8933. { --------------------------------------------------------------------
  8934. TManagementExperimentsResource
  8935. --------------------------------------------------------------------}
  8936. Class Function TManagementExperimentsResource.ResourceName : String;
  8937. begin
  8938. Result:='experiments';
  8939. end;
  8940. Class Function TManagementExperimentsResource.DefaultAPI : TGoogleAPIClass;
  8941. begin
  8942. Result:=TanalyticsAPI;
  8943. end;
  8944. Procedure TManagementExperimentsResource.Delete(accountId: string; experimentId: string; profileId: string; webPropertyId: string);
  8945. Const
  8946. _HTTPMethod = 'DELETE';
  8947. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}';
  8948. _Methodid = 'analytics.management.experiments.delete';
  8949. Var
  8950. _P : String;
  8951. begin
  8952. _P:=SubstitutePath(_Path,['accountId',accountId,'experimentId',experimentId,'profileId',profileId,'webPropertyId',webPropertyId]);
  8953. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  8954. end;
  8955. Function TManagementExperimentsResource.Get(accountId: string; experimentId: string; profileId: string; webPropertyId: string) : TExperiment;
  8956. Const
  8957. _HTTPMethod = 'GET';
  8958. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}';
  8959. _Methodid = 'analytics.management.experiments.get';
  8960. Var
  8961. _P : String;
  8962. begin
  8963. _P:=SubstitutePath(_Path,['accountId',accountId,'experimentId',experimentId,'profileId',profileId,'webPropertyId',webPropertyId]);
  8964. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TExperiment) as TExperiment;
  8965. end;
  8966. Function TManagementExperimentsResource.Insert(accountId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  8967. Const
  8968. _HTTPMethod = 'POST';
  8969. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments';
  8970. _Methodid = 'analytics.management.experiments.insert';
  8971. Var
  8972. _P : String;
  8973. begin
  8974. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  8975. Result:=ServiceCall(_HTTPMethod,_P,'',aExperiment,TExperiment) as TExperiment;
  8976. end;
  8977. Function TManagementExperimentsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TExperiments;
  8978. Const
  8979. _HTTPMethod = 'GET';
  8980. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments';
  8981. _Methodid = 'analytics.management.experiments.list';
  8982. Var
  8983. _P : String;
  8984. begin
  8985. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  8986. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TExperiments) as TExperiments;
  8987. end;
  8988. Function TManagementExperimentsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementExperimentslistOptions) : TExperiments;
  8989. Var
  8990. _Q : String;
  8991. begin
  8992. _Q:='';
  8993. AddToQuery(_Q,'max-results',AQuery.maxresults);
  8994. AddToQuery(_Q,'start-index',AQuery.startindex);
  8995. Result:=List(accountId,profileId,webPropertyId,_Q);
  8996. end;
  8997. Function TManagementExperimentsResource.Patch(accountId: string; experimentId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  8998. Const
  8999. _HTTPMethod = 'PATCH';
  9000. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}';
  9001. _Methodid = 'analytics.management.experiments.patch';
  9002. Var
  9003. _P : String;
  9004. begin
  9005. _P:=SubstitutePath(_Path,['accountId',accountId,'experimentId',experimentId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9006. Result:=ServiceCall(_HTTPMethod,_P,'',aExperiment,TExperiment) as TExperiment;
  9007. end;
  9008. Function TManagementExperimentsResource.Update(accountId: string; experimentId: string; profileId: string; webPropertyId: string; aExperiment : TExperiment) : TExperiment;
  9009. Const
  9010. _HTTPMethod = 'PUT';
  9011. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}';
  9012. _Methodid = 'analytics.management.experiments.update';
  9013. Var
  9014. _P : String;
  9015. begin
  9016. _P:=SubstitutePath(_Path,['accountId',accountId,'experimentId',experimentId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9017. Result:=ServiceCall(_HTTPMethod,_P,'',aExperiment,TExperiment) as TExperiment;
  9018. end;
  9019. { --------------------------------------------------------------------
  9020. TManagementFiltersResource
  9021. --------------------------------------------------------------------}
  9022. Class Function TManagementFiltersResource.ResourceName : String;
  9023. begin
  9024. Result:='filters';
  9025. end;
  9026. Class Function TManagementFiltersResource.DefaultAPI : TGoogleAPIClass;
  9027. begin
  9028. Result:=TanalyticsAPI;
  9029. end;
  9030. Function TManagementFiltersResource.Delete(accountId: string; filterId: string) : TFilter;
  9031. Const
  9032. _HTTPMethod = 'DELETE';
  9033. _Path = 'management/accounts/{accountId}/filters/{filterId}';
  9034. _Methodid = 'analytics.management.filters.delete';
  9035. Var
  9036. _P : String;
  9037. begin
  9038. _P:=SubstitutePath(_Path,['accountId',accountId,'filterId',filterId]);
  9039. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TFilter) as TFilter;
  9040. end;
  9041. Function TManagementFiltersResource.Get(accountId: string; filterId: string) : TFilter;
  9042. Const
  9043. _HTTPMethod = 'GET';
  9044. _Path = 'management/accounts/{accountId}/filters/{filterId}';
  9045. _Methodid = 'analytics.management.filters.get';
  9046. Var
  9047. _P : String;
  9048. begin
  9049. _P:=SubstitutePath(_Path,['accountId',accountId,'filterId',filterId]);
  9050. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TFilter) as TFilter;
  9051. end;
  9052. Function TManagementFiltersResource.Insert(accountId: string; aFilter : TFilter) : TFilter;
  9053. Const
  9054. _HTTPMethod = 'POST';
  9055. _Path = 'management/accounts/{accountId}/filters';
  9056. _Methodid = 'analytics.management.filters.insert';
  9057. Var
  9058. _P : String;
  9059. begin
  9060. _P:=SubstitutePath(_Path,['accountId',accountId]);
  9061. Result:=ServiceCall(_HTTPMethod,_P,'',aFilter,TFilter) as TFilter;
  9062. end;
  9063. Function TManagementFiltersResource.List(accountId: string; AQuery : string = '') : TFilters;
  9064. Const
  9065. _HTTPMethod = 'GET';
  9066. _Path = 'management/accounts/{accountId}/filters';
  9067. _Methodid = 'analytics.management.filters.list';
  9068. Var
  9069. _P : String;
  9070. begin
  9071. _P:=SubstitutePath(_Path,['accountId',accountId]);
  9072. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TFilters) as TFilters;
  9073. end;
  9074. Function TManagementFiltersResource.List(accountId: string; AQuery : TManagementFilterslistOptions) : TFilters;
  9075. Var
  9076. _Q : String;
  9077. begin
  9078. _Q:='';
  9079. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9080. AddToQuery(_Q,'start-index',AQuery.startindex);
  9081. Result:=List(accountId,_Q);
  9082. end;
  9083. Function TManagementFiltersResource.Patch(accountId: string; filterId: string; aFilter : TFilter) : TFilter;
  9084. Const
  9085. _HTTPMethod = 'PATCH';
  9086. _Path = 'management/accounts/{accountId}/filters/{filterId}';
  9087. _Methodid = 'analytics.management.filters.patch';
  9088. Var
  9089. _P : String;
  9090. begin
  9091. _P:=SubstitutePath(_Path,['accountId',accountId,'filterId',filterId]);
  9092. Result:=ServiceCall(_HTTPMethod,_P,'',aFilter,TFilter) as TFilter;
  9093. end;
  9094. Function TManagementFiltersResource.Update(accountId: string; filterId: string; aFilter : TFilter) : TFilter;
  9095. Const
  9096. _HTTPMethod = 'PUT';
  9097. _Path = 'management/accounts/{accountId}/filters/{filterId}';
  9098. _Methodid = 'analytics.management.filters.update';
  9099. Var
  9100. _P : String;
  9101. begin
  9102. _P:=SubstitutePath(_Path,['accountId',accountId,'filterId',filterId]);
  9103. Result:=ServiceCall(_HTTPMethod,_P,'',aFilter,TFilter) as TFilter;
  9104. end;
  9105. { --------------------------------------------------------------------
  9106. TManagementGoalsResource
  9107. --------------------------------------------------------------------}
  9108. Class Function TManagementGoalsResource.ResourceName : String;
  9109. begin
  9110. Result:='goals';
  9111. end;
  9112. Class Function TManagementGoalsResource.DefaultAPI : TGoogleAPIClass;
  9113. begin
  9114. Result:=TanalyticsAPI;
  9115. end;
  9116. Function TManagementGoalsResource.Get(accountId: string; goalId: string; profileId: string; webPropertyId: string) : TGoal;
  9117. Const
  9118. _HTTPMethod = 'GET';
  9119. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}';
  9120. _Methodid = 'analytics.management.goals.get';
  9121. Var
  9122. _P : String;
  9123. begin
  9124. _P:=SubstitutePath(_Path,['accountId',accountId,'goalId',goalId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9125. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TGoal) as TGoal;
  9126. end;
  9127. Function TManagementGoalsResource.Insert(accountId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  9128. Const
  9129. _HTTPMethod = 'POST';
  9130. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals';
  9131. _Methodid = 'analytics.management.goals.insert';
  9132. Var
  9133. _P : String;
  9134. begin
  9135. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9136. Result:=ServiceCall(_HTTPMethod,_P,'',aGoal,TGoal) as TGoal;
  9137. end;
  9138. Function TManagementGoalsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TGoals;
  9139. Const
  9140. _HTTPMethod = 'GET';
  9141. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals';
  9142. _Methodid = 'analytics.management.goals.list';
  9143. Var
  9144. _P : String;
  9145. begin
  9146. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9147. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TGoals) as TGoals;
  9148. end;
  9149. Function TManagementGoalsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementGoalslistOptions) : TGoals;
  9150. Var
  9151. _Q : String;
  9152. begin
  9153. _Q:='';
  9154. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9155. AddToQuery(_Q,'start-index',AQuery.startindex);
  9156. Result:=List(accountId,profileId,webPropertyId,_Q);
  9157. end;
  9158. Function TManagementGoalsResource.Patch(accountId: string; goalId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  9159. Const
  9160. _HTTPMethod = 'PATCH';
  9161. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}';
  9162. _Methodid = 'analytics.management.goals.patch';
  9163. Var
  9164. _P : String;
  9165. begin
  9166. _P:=SubstitutePath(_Path,['accountId',accountId,'goalId',goalId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9167. Result:=ServiceCall(_HTTPMethod,_P,'',aGoal,TGoal) as TGoal;
  9168. end;
  9169. Function TManagementGoalsResource.Update(accountId: string; goalId: string; profileId: string; webPropertyId: string; aGoal : TGoal) : TGoal;
  9170. Const
  9171. _HTTPMethod = 'PUT';
  9172. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}';
  9173. _Methodid = 'analytics.management.goals.update';
  9174. Var
  9175. _P : String;
  9176. begin
  9177. _P:=SubstitutePath(_Path,['accountId',accountId,'goalId',goalId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9178. Result:=ServiceCall(_HTTPMethod,_P,'',aGoal,TGoal) as TGoal;
  9179. end;
  9180. { --------------------------------------------------------------------
  9181. TManagementProfileFilterLinksResource
  9182. --------------------------------------------------------------------}
  9183. Class Function TManagementProfileFilterLinksResource.ResourceName : String;
  9184. begin
  9185. Result:='profileFilterLinks';
  9186. end;
  9187. Class Function TManagementProfileFilterLinksResource.DefaultAPI : TGoogleAPIClass;
  9188. begin
  9189. Result:=TanalyticsAPI;
  9190. end;
  9191. Procedure TManagementProfileFilterLinksResource.Delete(accountId: string; linkId: string; profileId: string; webPropertyId: string);
  9192. Const
  9193. _HTTPMethod = 'DELETE';
  9194. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}';
  9195. _Methodid = 'analytics.management.profileFilterLinks.delete';
  9196. Var
  9197. _P : String;
  9198. begin
  9199. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9200. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9201. end;
  9202. Function TManagementProfileFilterLinksResource.Get(accountId: string; linkId: string; profileId: string; webPropertyId: string) : TProfileFilterLink;
  9203. Const
  9204. _HTTPMethod = 'GET';
  9205. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}';
  9206. _Methodid = 'analytics.management.profileFilterLinks.get';
  9207. Var
  9208. _P : String;
  9209. begin
  9210. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9211. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProfileFilterLink) as TProfileFilterLink;
  9212. end;
  9213. Function TManagementProfileFilterLinksResource.Insert(accountId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  9214. Const
  9215. _HTTPMethod = 'POST';
  9216. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks';
  9217. _Methodid = 'analytics.management.profileFilterLinks.insert';
  9218. Var
  9219. _P : String;
  9220. begin
  9221. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9222. Result:=ServiceCall(_HTTPMethod,_P,'',aProfileFilterLink,TProfileFilterLink) as TProfileFilterLink;
  9223. end;
  9224. Function TManagementProfileFilterLinksResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TProfileFilterLinks;
  9225. Const
  9226. _HTTPMethod = 'GET';
  9227. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks';
  9228. _Methodid = 'analytics.management.profileFilterLinks.list';
  9229. Var
  9230. _P : String;
  9231. begin
  9232. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9233. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TProfileFilterLinks) as TProfileFilterLinks;
  9234. end;
  9235. Function TManagementProfileFilterLinksResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementProfileFilterLinkslistOptions) : TProfileFilterLinks;
  9236. Var
  9237. _Q : String;
  9238. begin
  9239. _Q:='';
  9240. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9241. AddToQuery(_Q,'start-index',AQuery.startindex);
  9242. Result:=List(accountId,profileId,webPropertyId,_Q);
  9243. end;
  9244. Function TManagementProfileFilterLinksResource.Patch(accountId: string; linkId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  9245. Const
  9246. _HTTPMethod = 'PATCH';
  9247. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}';
  9248. _Methodid = 'analytics.management.profileFilterLinks.patch';
  9249. Var
  9250. _P : String;
  9251. begin
  9252. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9253. Result:=ServiceCall(_HTTPMethod,_P,'',aProfileFilterLink,TProfileFilterLink) as TProfileFilterLink;
  9254. end;
  9255. Function TManagementProfileFilterLinksResource.Update(accountId: string; linkId: string; profileId: string; webPropertyId: string; aProfileFilterLink : TProfileFilterLink) : TProfileFilterLink;
  9256. Const
  9257. _HTTPMethod = 'PUT';
  9258. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}';
  9259. _Methodid = 'analytics.management.profileFilterLinks.update';
  9260. Var
  9261. _P : String;
  9262. begin
  9263. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9264. Result:=ServiceCall(_HTTPMethod,_P,'',aProfileFilterLink,TProfileFilterLink) as TProfileFilterLink;
  9265. end;
  9266. { --------------------------------------------------------------------
  9267. TManagementProfileUserLinksResource
  9268. --------------------------------------------------------------------}
  9269. Class Function TManagementProfileUserLinksResource.ResourceName : String;
  9270. begin
  9271. Result:='profileUserLinks';
  9272. end;
  9273. Class Function TManagementProfileUserLinksResource.DefaultAPI : TGoogleAPIClass;
  9274. begin
  9275. Result:=TanalyticsAPI;
  9276. end;
  9277. Procedure TManagementProfileUserLinksResource.Delete(accountId: string; linkId: string; profileId: string; webPropertyId: string);
  9278. Const
  9279. _HTTPMethod = 'DELETE';
  9280. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}';
  9281. _Methodid = 'analytics.management.profileUserLinks.delete';
  9282. Var
  9283. _P : String;
  9284. begin
  9285. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9286. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9287. end;
  9288. Function TManagementProfileUserLinksResource.Insert(accountId: string; profileId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  9289. Const
  9290. _HTTPMethod = 'POST';
  9291. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks';
  9292. _Methodid = 'analytics.management.profileUserLinks.insert';
  9293. Var
  9294. _P : String;
  9295. begin
  9296. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9297. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  9298. end;
  9299. Function TManagementProfileUserLinksResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TEntityUserLinks;
  9300. Const
  9301. _HTTPMethod = 'GET';
  9302. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks';
  9303. _Methodid = 'analytics.management.profileUserLinks.list';
  9304. Var
  9305. _P : String;
  9306. begin
  9307. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9308. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEntityUserLinks) as TEntityUserLinks;
  9309. end;
  9310. Function TManagementProfileUserLinksResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementProfileUserLinkslistOptions) : TEntityUserLinks;
  9311. Var
  9312. _Q : String;
  9313. begin
  9314. _Q:='';
  9315. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9316. AddToQuery(_Q,'start-index',AQuery.startindex);
  9317. Result:=List(accountId,profileId,webPropertyId,_Q);
  9318. end;
  9319. Function TManagementProfileUserLinksResource.Update(accountId: string; linkId: string; profileId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  9320. Const
  9321. _HTTPMethod = 'PUT';
  9322. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}';
  9323. _Methodid = 'analytics.management.profileUserLinks.update';
  9324. Var
  9325. _P : String;
  9326. begin
  9327. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9328. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  9329. end;
  9330. { --------------------------------------------------------------------
  9331. TManagementProfilesResource
  9332. --------------------------------------------------------------------}
  9333. Class Function TManagementProfilesResource.ResourceName : String;
  9334. begin
  9335. Result:='profiles';
  9336. end;
  9337. Class Function TManagementProfilesResource.DefaultAPI : TGoogleAPIClass;
  9338. begin
  9339. Result:=TanalyticsAPI;
  9340. end;
  9341. Procedure TManagementProfilesResource.Delete(accountId: string; profileId: string; webPropertyId: string);
  9342. Const
  9343. _HTTPMethod = 'DELETE';
  9344. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}';
  9345. _Methodid = 'analytics.management.profiles.delete';
  9346. Var
  9347. _P : String;
  9348. begin
  9349. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9350. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9351. end;
  9352. Function TManagementProfilesResource.Get(accountId: string; profileId: string; webPropertyId: string) : TProfile;
  9353. Const
  9354. _HTTPMethod = 'GET';
  9355. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}';
  9356. _Methodid = 'analytics.management.profiles.get';
  9357. Var
  9358. _P : String;
  9359. begin
  9360. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9361. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TProfile) as TProfile;
  9362. end;
  9363. Function TManagementProfilesResource.Insert(accountId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  9364. Const
  9365. _HTTPMethod = 'POST';
  9366. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles';
  9367. _Methodid = 'analytics.management.profiles.insert';
  9368. Var
  9369. _P : String;
  9370. begin
  9371. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9372. Result:=ServiceCall(_HTTPMethod,_P,'',aProfile,TProfile) as TProfile;
  9373. end;
  9374. Function TManagementProfilesResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TProfiles;
  9375. Const
  9376. _HTTPMethod = 'GET';
  9377. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles';
  9378. _Methodid = 'analytics.management.profiles.list';
  9379. Var
  9380. _P : String;
  9381. begin
  9382. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9383. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TProfiles) as TProfiles;
  9384. end;
  9385. Function TManagementProfilesResource.List(accountId: string; webPropertyId: string; AQuery : TManagementProfileslistOptions) : TProfiles;
  9386. Var
  9387. _Q : String;
  9388. begin
  9389. _Q:='';
  9390. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9391. AddToQuery(_Q,'start-index',AQuery.startindex);
  9392. Result:=List(accountId,webPropertyId,_Q);
  9393. end;
  9394. Function TManagementProfilesResource.Patch(accountId: string; profileId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  9395. Const
  9396. _HTTPMethod = 'PATCH';
  9397. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}';
  9398. _Methodid = 'analytics.management.profiles.patch';
  9399. Var
  9400. _P : String;
  9401. begin
  9402. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9403. Result:=ServiceCall(_HTTPMethod,_P,'',aProfile,TProfile) as TProfile;
  9404. end;
  9405. Function TManagementProfilesResource.Update(accountId: string; profileId: string; webPropertyId: string; aProfile : TProfile) : TProfile;
  9406. Const
  9407. _HTTPMethod = 'PUT';
  9408. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}';
  9409. _Methodid = 'analytics.management.profiles.update';
  9410. Var
  9411. _P : String;
  9412. begin
  9413. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9414. Result:=ServiceCall(_HTTPMethod,_P,'',aProfile,TProfile) as TProfile;
  9415. end;
  9416. { --------------------------------------------------------------------
  9417. TManagementSegmentsResource
  9418. --------------------------------------------------------------------}
  9419. Class Function TManagementSegmentsResource.ResourceName : String;
  9420. begin
  9421. Result:='segments';
  9422. end;
  9423. Class Function TManagementSegmentsResource.DefaultAPI : TGoogleAPIClass;
  9424. begin
  9425. Result:=TanalyticsAPI;
  9426. end;
  9427. Function TManagementSegmentsResource.List(AQuery : string = '') : TSegments;
  9428. Const
  9429. _HTTPMethod = 'GET';
  9430. _Path = 'management/segments';
  9431. _Methodid = 'analytics.management.segments.list';
  9432. begin
  9433. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TSegments) as TSegments;
  9434. end;
  9435. Function TManagementSegmentsResource.List(AQuery : TManagementSegmentslistOptions) : TSegments;
  9436. Var
  9437. _Q : String;
  9438. begin
  9439. _Q:='';
  9440. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9441. AddToQuery(_Q,'start-index',AQuery.startindex);
  9442. Result:=List(_Q);
  9443. end;
  9444. { --------------------------------------------------------------------
  9445. TManagementUnsampledReportsResource
  9446. --------------------------------------------------------------------}
  9447. Class Function TManagementUnsampledReportsResource.ResourceName : String;
  9448. begin
  9449. Result:='unsampledReports';
  9450. end;
  9451. Class Function TManagementUnsampledReportsResource.DefaultAPI : TGoogleAPIClass;
  9452. begin
  9453. Result:=TanalyticsAPI;
  9454. end;
  9455. Procedure TManagementUnsampledReportsResource.Delete(accountId: string; profileId: string; unsampledReportId: string; webPropertyId: string);
  9456. Const
  9457. _HTTPMethod = 'DELETE';
  9458. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}';
  9459. _Methodid = 'analytics.management.unsampledReports.delete';
  9460. Var
  9461. _P : String;
  9462. begin
  9463. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'unsampledReportId',unsampledReportId,'webPropertyId',webPropertyId]);
  9464. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9465. end;
  9466. Function TManagementUnsampledReportsResource.Get(accountId: string; profileId: string; unsampledReportId: string; webPropertyId: string) : TUnsampledReport;
  9467. Const
  9468. _HTTPMethod = 'GET';
  9469. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}';
  9470. _Methodid = 'analytics.management.unsampledReports.get';
  9471. Var
  9472. _P : String;
  9473. begin
  9474. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'unsampledReportId',unsampledReportId,'webPropertyId',webPropertyId]);
  9475. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TUnsampledReport) as TUnsampledReport;
  9476. end;
  9477. Function TManagementUnsampledReportsResource.Insert(accountId: string; profileId: string; webPropertyId: string; aUnsampledReport : TUnsampledReport) : TUnsampledReport;
  9478. Const
  9479. _HTTPMethod = 'POST';
  9480. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports';
  9481. _Methodid = 'analytics.management.unsampledReports.insert';
  9482. Var
  9483. _P : String;
  9484. begin
  9485. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9486. Result:=ServiceCall(_HTTPMethod,_P,'',aUnsampledReport,TUnsampledReport) as TUnsampledReport;
  9487. end;
  9488. Function TManagementUnsampledReportsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : string = '') : TUnsampledReports;
  9489. Const
  9490. _HTTPMethod = 'GET';
  9491. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports';
  9492. _Methodid = 'analytics.management.unsampledReports.list';
  9493. Var
  9494. _P : String;
  9495. begin
  9496. _P:=SubstitutePath(_Path,['accountId',accountId,'profileId',profileId,'webPropertyId',webPropertyId]);
  9497. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TUnsampledReports) as TUnsampledReports;
  9498. end;
  9499. Function TManagementUnsampledReportsResource.List(accountId: string; profileId: string; webPropertyId: string; AQuery : TManagementUnsampledReportslistOptions) : TUnsampledReports;
  9500. Var
  9501. _Q : String;
  9502. begin
  9503. _Q:='';
  9504. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9505. AddToQuery(_Q,'start-index',AQuery.startindex);
  9506. Result:=List(accountId,profileId,webPropertyId,_Q);
  9507. end;
  9508. { --------------------------------------------------------------------
  9509. TManagementUploadsResource
  9510. --------------------------------------------------------------------}
  9511. Class Function TManagementUploadsResource.ResourceName : String;
  9512. begin
  9513. Result:='uploads';
  9514. end;
  9515. Class Function TManagementUploadsResource.DefaultAPI : TGoogleAPIClass;
  9516. begin
  9517. Result:=TanalyticsAPI;
  9518. end;
  9519. Procedure TManagementUploadsResource.DeleteUploadData(accountId: string; customDataSourceId: string; webPropertyId: string; aAnalyticsDataimportDeleteUploadDataRequest : TAnalyticsDataimportDeleteUploadDataRequest);
  9520. Const
  9521. _HTTPMethod = 'POST';
  9522. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData';
  9523. _Methodid = 'analytics.management.uploads.deleteUploadData';
  9524. Var
  9525. _P : String;
  9526. begin
  9527. _P:=SubstitutePath(_Path,['accountId',accountId,'customDataSourceId',customDataSourceId,'webPropertyId',webPropertyId]);
  9528. ServiceCall(_HTTPMethod,_P,'',aAnalyticsDataimportDeleteUploadDataRequest,Nil);
  9529. end;
  9530. Function TManagementUploadsResource.Get(accountId: string; customDataSourceId: string; uploadId: string; webPropertyId: string) : TUpload;
  9531. Const
  9532. _HTTPMethod = 'GET';
  9533. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}';
  9534. _Methodid = 'analytics.management.uploads.get';
  9535. Var
  9536. _P : String;
  9537. begin
  9538. _P:=SubstitutePath(_Path,['accountId',accountId,'customDataSourceId',customDataSourceId,'uploadId',uploadId,'webPropertyId',webPropertyId]);
  9539. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TUpload) as TUpload;
  9540. end;
  9541. Function TManagementUploadsResource.List(accountId: string; customDataSourceId: string; webPropertyId: string; AQuery : string = '') : TUploads;
  9542. Const
  9543. _HTTPMethod = 'GET';
  9544. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads';
  9545. _Methodid = 'analytics.management.uploads.list';
  9546. Var
  9547. _P : String;
  9548. begin
  9549. _P:=SubstitutePath(_Path,['accountId',accountId,'customDataSourceId',customDataSourceId,'webPropertyId',webPropertyId]);
  9550. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TUploads) as TUploads;
  9551. end;
  9552. Function TManagementUploadsResource.List(accountId: string; customDataSourceId: string; webPropertyId: string; AQuery : TManagementUploadslistOptions) : TUploads;
  9553. Var
  9554. _Q : String;
  9555. begin
  9556. _Q:='';
  9557. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9558. AddToQuery(_Q,'start-index',AQuery.startindex);
  9559. Result:=List(accountId,customDataSourceId,webPropertyId,_Q);
  9560. end;
  9561. Function TManagementUploadsResource.UploadData(accountId: string; customDataSourceId: string; webPropertyId: string) : TUpload;
  9562. Const
  9563. _HTTPMethod = 'POST';
  9564. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads';
  9565. _Methodid = 'analytics.management.uploads.uploadData';
  9566. Var
  9567. _P : String;
  9568. begin
  9569. _P:=SubstitutePath(_Path,['accountId',accountId,'customDataSourceId',customDataSourceId,'webPropertyId',webPropertyId]);
  9570. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TUpload) as TUpload;
  9571. end;
  9572. { --------------------------------------------------------------------
  9573. TManagementWebPropertyAdWordsLinksResource
  9574. --------------------------------------------------------------------}
  9575. Class Function TManagementWebPropertyAdWordsLinksResource.ResourceName : String;
  9576. begin
  9577. Result:='webPropertyAdWordsLinks';
  9578. end;
  9579. Class Function TManagementWebPropertyAdWordsLinksResource.DefaultAPI : TGoogleAPIClass;
  9580. begin
  9581. Result:=TanalyticsAPI;
  9582. end;
  9583. Procedure TManagementWebPropertyAdWordsLinksResource.Delete(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string);
  9584. Const
  9585. _HTTPMethod = 'DELETE';
  9586. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}';
  9587. _Methodid = 'analytics.management.webPropertyAdWordsLinks.delete';
  9588. Var
  9589. _P : String;
  9590. begin
  9591. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyAdWordsLinkId',webPropertyAdWordsLinkId,'webPropertyId',webPropertyId]);
  9592. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9593. end;
  9594. Function TManagementWebPropertyAdWordsLinksResource.Get(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string) : TEntityAdWordsLink;
  9595. Const
  9596. _HTTPMethod = 'GET';
  9597. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}';
  9598. _Methodid = 'analytics.management.webPropertyAdWordsLinks.get';
  9599. Var
  9600. _P : String;
  9601. begin
  9602. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyAdWordsLinkId',webPropertyAdWordsLinkId,'webPropertyId',webPropertyId]);
  9603. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEntityAdWordsLink) as TEntityAdWordsLink;
  9604. end;
  9605. Function TManagementWebPropertyAdWordsLinksResource.Insert(accountId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  9606. Const
  9607. _HTTPMethod = 'POST';
  9608. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks';
  9609. _Methodid = 'analytics.management.webPropertyAdWordsLinks.insert';
  9610. Var
  9611. _P : String;
  9612. begin
  9613. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9614. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityAdWordsLink,TEntityAdWordsLink) as TEntityAdWordsLink;
  9615. end;
  9616. Function TManagementWebPropertyAdWordsLinksResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TEntityAdWordsLinks;
  9617. Const
  9618. _HTTPMethod = 'GET';
  9619. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks';
  9620. _Methodid = 'analytics.management.webPropertyAdWordsLinks.list';
  9621. Var
  9622. _P : String;
  9623. begin
  9624. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9625. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEntityAdWordsLinks) as TEntityAdWordsLinks;
  9626. end;
  9627. Function TManagementWebPropertyAdWordsLinksResource.List(accountId: string; webPropertyId: string; AQuery : TManagementWebPropertyAdWordsLinkslistOptions) : TEntityAdWordsLinks;
  9628. Var
  9629. _Q : String;
  9630. begin
  9631. _Q:='';
  9632. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9633. AddToQuery(_Q,'start-index',AQuery.startindex);
  9634. Result:=List(accountId,webPropertyId,_Q);
  9635. end;
  9636. Function TManagementWebPropertyAdWordsLinksResource.Patch(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  9637. Const
  9638. _HTTPMethod = 'PATCH';
  9639. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}';
  9640. _Methodid = 'analytics.management.webPropertyAdWordsLinks.patch';
  9641. Var
  9642. _P : String;
  9643. begin
  9644. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyAdWordsLinkId',webPropertyAdWordsLinkId,'webPropertyId',webPropertyId]);
  9645. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityAdWordsLink,TEntityAdWordsLink) as TEntityAdWordsLink;
  9646. end;
  9647. Function TManagementWebPropertyAdWordsLinksResource.Update(accountId: string; webPropertyAdWordsLinkId: string; webPropertyId: string; aEntityAdWordsLink : TEntityAdWordsLink) : TEntityAdWordsLink;
  9648. Const
  9649. _HTTPMethod = 'PUT';
  9650. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}';
  9651. _Methodid = 'analytics.management.webPropertyAdWordsLinks.update';
  9652. Var
  9653. _P : String;
  9654. begin
  9655. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyAdWordsLinkId',webPropertyAdWordsLinkId,'webPropertyId',webPropertyId]);
  9656. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityAdWordsLink,TEntityAdWordsLink) as TEntityAdWordsLink;
  9657. end;
  9658. { --------------------------------------------------------------------
  9659. TManagementWebpropertiesResource
  9660. --------------------------------------------------------------------}
  9661. Class Function TManagementWebpropertiesResource.ResourceName : String;
  9662. begin
  9663. Result:='webproperties';
  9664. end;
  9665. Class Function TManagementWebpropertiesResource.DefaultAPI : TGoogleAPIClass;
  9666. begin
  9667. Result:=TanalyticsAPI;
  9668. end;
  9669. Function TManagementWebpropertiesResource.Get(accountId: string; webPropertyId: string) : TWebproperty;
  9670. Const
  9671. _HTTPMethod = 'GET';
  9672. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}';
  9673. _Methodid = 'analytics.management.webproperties.get';
  9674. Var
  9675. _P : String;
  9676. begin
  9677. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9678. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TWebproperty) as TWebproperty;
  9679. end;
  9680. Function TManagementWebpropertiesResource.Insert(accountId: string; aWebproperty : TWebproperty) : TWebproperty;
  9681. Const
  9682. _HTTPMethod = 'POST';
  9683. _Path = 'management/accounts/{accountId}/webproperties';
  9684. _Methodid = 'analytics.management.webproperties.insert';
  9685. Var
  9686. _P : String;
  9687. begin
  9688. _P:=SubstitutePath(_Path,['accountId',accountId]);
  9689. Result:=ServiceCall(_HTTPMethod,_P,'',aWebproperty,TWebproperty) as TWebproperty;
  9690. end;
  9691. Function TManagementWebpropertiesResource.List(accountId: string; AQuery : string = '') : TWebproperties;
  9692. Const
  9693. _HTTPMethod = 'GET';
  9694. _Path = 'management/accounts/{accountId}/webproperties';
  9695. _Methodid = 'analytics.management.webproperties.list';
  9696. Var
  9697. _P : String;
  9698. begin
  9699. _P:=SubstitutePath(_Path,['accountId',accountId]);
  9700. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TWebproperties) as TWebproperties;
  9701. end;
  9702. Function TManagementWebpropertiesResource.List(accountId: string; AQuery : TManagementWebpropertieslistOptions) : TWebproperties;
  9703. Var
  9704. _Q : String;
  9705. begin
  9706. _Q:='';
  9707. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9708. AddToQuery(_Q,'start-index',AQuery.startindex);
  9709. Result:=List(accountId,_Q);
  9710. end;
  9711. Function TManagementWebpropertiesResource.Patch(accountId: string; webPropertyId: string; aWebproperty : TWebproperty) : TWebproperty;
  9712. Const
  9713. _HTTPMethod = 'PATCH';
  9714. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}';
  9715. _Methodid = 'analytics.management.webproperties.patch';
  9716. Var
  9717. _P : String;
  9718. begin
  9719. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9720. Result:=ServiceCall(_HTTPMethod,_P,'',aWebproperty,TWebproperty) as TWebproperty;
  9721. end;
  9722. Function TManagementWebpropertiesResource.Update(accountId: string; webPropertyId: string; aWebproperty : TWebproperty) : TWebproperty;
  9723. Const
  9724. _HTTPMethod = 'PUT';
  9725. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}';
  9726. _Methodid = 'analytics.management.webproperties.update';
  9727. Var
  9728. _P : String;
  9729. begin
  9730. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9731. Result:=ServiceCall(_HTTPMethod,_P,'',aWebproperty,TWebproperty) as TWebproperty;
  9732. end;
  9733. { --------------------------------------------------------------------
  9734. TManagementWebpropertyUserLinksResource
  9735. --------------------------------------------------------------------}
  9736. Class Function TManagementWebpropertyUserLinksResource.ResourceName : String;
  9737. begin
  9738. Result:='webpropertyUserLinks';
  9739. end;
  9740. Class Function TManagementWebpropertyUserLinksResource.DefaultAPI : TGoogleAPIClass;
  9741. begin
  9742. Result:=TanalyticsAPI;
  9743. end;
  9744. Procedure TManagementWebpropertyUserLinksResource.Delete(accountId: string; linkId: string; webPropertyId: string);
  9745. Const
  9746. _HTTPMethod = 'DELETE';
  9747. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}';
  9748. _Methodid = 'analytics.management.webpropertyUserLinks.delete';
  9749. Var
  9750. _P : String;
  9751. begin
  9752. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'webPropertyId',webPropertyId]);
  9753. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  9754. end;
  9755. Function TManagementWebpropertyUserLinksResource.Insert(accountId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  9756. Const
  9757. _HTTPMethod = 'POST';
  9758. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks';
  9759. _Methodid = 'analytics.management.webpropertyUserLinks.insert';
  9760. Var
  9761. _P : String;
  9762. begin
  9763. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9764. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  9765. end;
  9766. Function TManagementWebpropertyUserLinksResource.List(accountId: string; webPropertyId: string; AQuery : string = '') : TEntityUserLinks;
  9767. Const
  9768. _HTTPMethod = 'GET';
  9769. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks';
  9770. _Methodid = 'analytics.management.webpropertyUserLinks.list';
  9771. Var
  9772. _P : String;
  9773. begin
  9774. _P:=SubstitutePath(_Path,['accountId',accountId,'webPropertyId',webPropertyId]);
  9775. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TEntityUserLinks) as TEntityUserLinks;
  9776. end;
  9777. Function TManagementWebpropertyUserLinksResource.List(accountId: string; webPropertyId: string; AQuery : TManagementWebpropertyUserLinkslistOptions) : TEntityUserLinks;
  9778. Var
  9779. _Q : String;
  9780. begin
  9781. _Q:='';
  9782. AddToQuery(_Q,'max-results',AQuery.maxresults);
  9783. AddToQuery(_Q,'start-index',AQuery.startindex);
  9784. Result:=List(accountId,webPropertyId,_Q);
  9785. end;
  9786. Function TManagementWebpropertyUserLinksResource.Update(accountId: string; linkId: string; webPropertyId: string; aEntityUserLink : TEntityUserLink) : TEntityUserLink;
  9787. Const
  9788. _HTTPMethod = 'PUT';
  9789. _Path = 'management/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}';
  9790. _Methodid = 'analytics.management.webpropertyUserLinks.update';
  9791. Var
  9792. _P : String;
  9793. begin
  9794. _P:=SubstitutePath(_Path,['accountId',accountId,'linkId',linkId,'webPropertyId',webPropertyId]);
  9795. Result:=ServiceCall(_HTTPMethod,_P,'',aEntityUserLink,TEntityUserLink) as TEntityUserLink;
  9796. end;
  9797. { --------------------------------------------------------------------
  9798. TManagementResource
  9799. --------------------------------------------------------------------}
  9800. Class Function TManagementResource.ResourceName : String;
  9801. begin
  9802. Result:='management';
  9803. end;
  9804. Class Function TManagementResource.DefaultAPI : TGoogleAPIClass;
  9805. begin
  9806. Result:=TanalyticsAPI;
  9807. end;
  9808. Function TManagementResource.GetAccountSummariesInstance : TManagementAccountSummariesResource;
  9809. begin
  9810. if (FAccountSummariesInstance=Nil) then
  9811. FAccountSummariesInstance:=CreateAccountSummariesResource;
  9812. Result:=FAccountSummariesInstance;
  9813. end;
  9814. Function TManagementResource.CreateAccountSummariesResource : TManagementAccountSummariesResource;
  9815. begin
  9816. Result:=CreateAccountSummariesResource(Self);
  9817. end;
  9818. Function TManagementResource.CreateAccountSummariesResource(AOwner : TComponent) : TManagementAccountSummariesResource;
  9819. begin
  9820. Result:=TManagementAccountSummariesResource.Create(AOwner);
  9821. Result.API:=Self.API;
  9822. end;
  9823. Function TManagementResource.GetAccountUserLinksInstance : TManagementAccountUserLinksResource;
  9824. begin
  9825. if (FAccountUserLinksInstance=Nil) then
  9826. FAccountUserLinksInstance:=CreateAccountUserLinksResource;
  9827. Result:=FAccountUserLinksInstance;
  9828. end;
  9829. Function TManagementResource.CreateAccountUserLinksResource : TManagementAccountUserLinksResource;
  9830. begin
  9831. Result:=CreateAccountUserLinksResource(Self);
  9832. end;
  9833. Function TManagementResource.CreateAccountUserLinksResource(AOwner : TComponent) : TManagementAccountUserLinksResource;
  9834. begin
  9835. Result:=TManagementAccountUserLinksResource.Create(AOwner);
  9836. Result.API:=Self.API;
  9837. end;
  9838. Function TManagementResource.GetAccountsInstance : TManagementAccountsResource;
  9839. begin
  9840. if (FAccountsInstance=Nil) then
  9841. FAccountsInstance:=CreateAccountsResource;
  9842. Result:=FAccountsInstance;
  9843. end;
  9844. Function TManagementResource.CreateAccountsResource : TManagementAccountsResource;
  9845. begin
  9846. Result:=CreateAccountsResource(Self);
  9847. end;
  9848. Function TManagementResource.CreateAccountsResource(AOwner : TComponent) : TManagementAccountsResource;
  9849. begin
  9850. Result:=TManagementAccountsResource.Create(AOwner);
  9851. Result.API:=Self.API;
  9852. end;
  9853. Function TManagementResource.GetCustomDataSourcesInstance : TManagementCustomDataSourcesResource;
  9854. begin
  9855. if (FCustomDataSourcesInstance=Nil) then
  9856. FCustomDataSourcesInstance:=CreateCustomDataSourcesResource;
  9857. Result:=FCustomDataSourcesInstance;
  9858. end;
  9859. Function TManagementResource.CreateCustomDataSourcesResource : TManagementCustomDataSourcesResource;
  9860. begin
  9861. Result:=CreateCustomDataSourcesResource(Self);
  9862. end;
  9863. Function TManagementResource.CreateCustomDataSourcesResource(AOwner : TComponent) : TManagementCustomDataSourcesResource;
  9864. begin
  9865. Result:=TManagementCustomDataSourcesResource.Create(AOwner);
  9866. Result.API:=Self.API;
  9867. end;
  9868. Function TManagementResource.GetCustomDimensionsInstance : TManagementCustomDimensionsResource;
  9869. begin
  9870. if (FCustomDimensionsInstance=Nil) then
  9871. FCustomDimensionsInstance:=CreateCustomDimensionsResource;
  9872. Result:=FCustomDimensionsInstance;
  9873. end;
  9874. Function TManagementResource.CreateCustomDimensionsResource : TManagementCustomDimensionsResource;
  9875. begin
  9876. Result:=CreateCustomDimensionsResource(Self);
  9877. end;
  9878. Function TManagementResource.CreateCustomDimensionsResource(AOwner : TComponent) : TManagementCustomDimensionsResource;
  9879. begin
  9880. Result:=TManagementCustomDimensionsResource.Create(AOwner);
  9881. Result.API:=Self.API;
  9882. end;
  9883. Function TManagementResource.GetCustomMetricsInstance : TManagementCustomMetricsResource;
  9884. begin
  9885. if (FCustomMetricsInstance=Nil) then
  9886. FCustomMetricsInstance:=CreateCustomMetricsResource;
  9887. Result:=FCustomMetricsInstance;
  9888. end;
  9889. Function TManagementResource.CreateCustomMetricsResource : TManagementCustomMetricsResource;
  9890. begin
  9891. Result:=CreateCustomMetricsResource(Self);
  9892. end;
  9893. Function TManagementResource.CreateCustomMetricsResource(AOwner : TComponent) : TManagementCustomMetricsResource;
  9894. begin
  9895. Result:=TManagementCustomMetricsResource.Create(AOwner);
  9896. Result.API:=Self.API;
  9897. end;
  9898. Function TManagementResource.GetExperimentsInstance : TManagementExperimentsResource;
  9899. begin
  9900. if (FExperimentsInstance=Nil) then
  9901. FExperimentsInstance:=CreateExperimentsResource;
  9902. Result:=FExperimentsInstance;
  9903. end;
  9904. Function TManagementResource.CreateExperimentsResource : TManagementExperimentsResource;
  9905. begin
  9906. Result:=CreateExperimentsResource(Self);
  9907. end;
  9908. Function TManagementResource.CreateExperimentsResource(AOwner : TComponent) : TManagementExperimentsResource;
  9909. begin
  9910. Result:=TManagementExperimentsResource.Create(AOwner);
  9911. Result.API:=Self.API;
  9912. end;
  9913. Function TManagementResource.GetFiltersInstance : TManagementFiltersResource;
  9914. begin
  9915. if (FFiltersInstance=Nil) then
  9916. FFiltersInstance:=CreateFiltersResource;
  9917. Result:=FFiltersInstance;
  9918. end;
  9919. Function TManagementResource.CreateFiltersResource : TManagementFiltersResource;
  9920. begin
  9921. Result:=CreateFiltersResource(Self);
  9922. end;
  9923. Function TManagementResource.CreateFiltersResource(AOwner : TComponent) : TManagementFiltersResource;
  9924. begin
  9925. Result:=TManagementFiltersResource.Create(AOwner);
  9926. Result.API:=Self.API;
  9927. end;
  9928. Function TManagementResource.GetGoalsInstance : TManagementGoalsResource;
  9929. begin
  9930. if (FGoalsInstance=Nil) then
  9931. FGoalsInstance:=CreateGoalsResource;
  9932. Result:=FGoalsInstance;
  9933. end;
  9934. Function TManagementResource.CreateGoalsResource : TManagementGoalsResource;
  9935. begin
  9936. Result:=CreateGoalsResource(Self);
  9937. end;
  9938. Function TManagementResource.CreateGoalsResource(AOwner : TComponent) : TManagementGoalsResource;
  9939. begin
  9940. Result:=TManagementGoalsResource.Create(AOwner);
  9941. Result.API:=Self.API;
  9942. end;
  9943. Function TManagementResource.GetProfileFilterLinksInstance : TManagementProfileFilterLinksResource;
  9944. begin
  9945. if (FProfileFilterLinksInstance=Nil) then
  9946. FProfileFilterLinksInstance:=CreateProfileFilterLinksResource;
  9947. Result:=FProfileFilterLinksInstance;
  9948. end;
  9949. Function TManagementResource.CreateProfileFilterLinksResource : TManagementProfileFilterLinksResource;
  9950. begin
  9951. Result:=CreateProfileFilterLinksResource(Self);
  9952. end;
  9953. Function TManagementResource.CreateProfileFilterLinksResource(AOwner : TComponent) : TManagementProfileFilterLinksResource;
  9954. begin
  9955. Result:=TManagementProfileFilterLinksResource.Create(AOwner);
  9956. Result.API:=Self.API;
  9957. end;
  9958. Function TManagementResource.GetProfileUserLinksInstance : TManagementProfileUserLinksResource;
  9959. begin
  9960. if (FProfileUserLinksInstance=Nil) then
  9961. FProfileUserLinksInstance:=CreateProfileUserLinksResource;
  9962. Result:=FProfileUserLinksInstance;
  9963. end;
  9964. Function TManagementResource.CreateProfileUserLinksResource : TManagementProfileUserLinksResource;
  9965. begin
  9966. Result:=CreateProfileUserLinksResource(Self);
  9967. end;
  9968. Function TManagementResource.CreateProfileUserLinksResource(AOwner : TComponent) : TManagementProfileUserLinksResource;
  9969. begin
  9970. Result:=TManagementProfileUserLinksResource.Create(AOwner);
  9971. Result.API:=Self.API;
  9972. end;
  9973. Function TManagementResource.GetProfilesInstance : TManagementProfilesResource;
  9974. begin
  9975. if (FProfilesInstance=Nil) then
  9976. FProfilesInstance:=CreateProfilesResource;
  9977. Result:=FProfilesInstance;
  9978. end;
  9979. Function TManagementResource.CreateProfilesResource : TManagementProfilesResource;
  9980. begin
  9981. Result:=CreateProfilesResource(Self);
  9982. end;
  9983. Function TManagementResource.CreateProfilesResource(AOwner : TComponent) : TManagementProfilesResource;
  9984. begin
  9985. Result:=TManagementProfilesResource.Create(AOwner);
  9986. Result.API:=Self.API;
  9987. end;
  9988. Function TManagementResource.GetSegmentsInstance : TManagementSegmentsResource;
  9989. begin
  9990. if (FSegmentsInstance=Nil) then
  9991. FSegmentsInstance:=CreateSegmentsResource;
  9992. Result:=FSegmentsInstance;
  9993. end;
  9994. Function TManagementResource.CreateSegmentsResource : TManagementSegmentsResource;
  9995. begin
  9996. Result:=CreateSegmentsResource(Self);
  9997. end;
  9998. Function TManagementResource.CreateSegmentsResource(AOwner : TComponent) : TManagementSegmentsResource;
  9999. begin
  10000. Result:=TManagementSegmentsResource.Create(AOwner);
  10001. Result.API:=Self.API;
  10002. end;
  10003. Function TManagementResource.GetUnsampledReportsInstance : TManagementUnsampledReportsResource;
  10004. begin
  10005. if (FUnsampledReportsInstance=Nil) then
  10006. FUnsampledReportsInstance:=CreateUnsampledReportsResource;
  10007. Result:=FUnsampledReportsInstance;
  10008. end;
  10009. Function TManagementResource.CreateUnsampledReportsResource : TManagementUnsampledReportsResource;
  10010. begin
  10011. Result:=CreateUnsampledReportsResource(Self);
  10012. end;
  10013. Function TManagementResource.CreateUnsampledReportsResource(AOwner : TComponent) : TManagementUnsampledReportsResource;
  10014. begin
  10015. Result:=TManagementUnsampledReportsResource.Create(AOwner);
  10016. Result.API:=Self.API;
  10017. end;
  10018. Function TManagementResource.GetUploadsInstance : TManagementUploadsResource;
  10019. begin
  10020. if (FUploadsInstance=Nil) then
  10021. FUploadsInstance:=CreateUploadsResource;
  10022. Result:=FUploadsInstance;
  10023. end;
  10024. Function TManagementResource.CreateUploadsResource : TManagementUploadsResource;
  10025. begin
  10026. Result:=CreateUploadsResource(Self);
  10027. end;
  10028. Function TManagementResource.CreateUploadsResource(AOwner : TComponent) : TManagementUploadsResource;
  10029. begin
  10030. Result:=TManagementUploadsResource.Create(AOwner);
  10031. Result.API:=Self.API;
  10032. end;
  10033. Function TManagementResource.GetWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;
  10034. begin
  10035. if (FWebPropertyAdWordsLinksInstance=Nil) then
  10036. FWebPropertyAdWordsLinksInstance:=CreateWebPropertyAdWordsLinksResource;
  10037. Result:=FWebPropertyAdWordsLinksInstance;
  10038. end;
  10039. Function TManagementResource.CreateWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource;
  10040. begin
  10041. Result:=CreateWebPropertyAdWordsLinksResource(Self);
  10042. end;
  10043. Function TManagementResource.CreateWebPropertyAdWordsLinksResource(AOwner : TComponent) : TManagementWebPropertyAdWordsLinksResource;
  10044. begin
  10045. Result:=TManagementWebPropertyAdWordsLinksResource.Create(AOwner);
  10046. Result.API:=Self.API;
  10047. end;
  10048. Function TManagementResource.GetWebpropertiesInstance : TManagementWebpropertiesResource;
  10049. begin
  10050. if (FWebpropertiesInstance=Nil) then
  10051. FWebpropertiesInstance:=CreateWebpropertiesResource;
  10052. Result:=FWebpropertiesInstance;
  10053. end;
  10054. Function TManagementResource.CreateWebpropertiesResource : TManagementWebpropertiesResource;
  10055. begin
  10056. Result:=CreateWebpropertiesResource(Self);
  10057. end;
  10058. Function TManagementResource.CreateWebpropertiesResource(AOwner : TComponent) : TManagementWebpropertiesResource;
  10059. begin
  10060. Result:=TManagementWebpropertiesResource.Create(AOwner);
  10061. Result.API:=Self.API;
  10062. end;
  10063. Function TManagementResource.GetWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;
  10064. begin
  10065. if (FWebpropertyUserLinksInstance=Nil) then
  10066. FWebpropertyUserLinksInstance:=CreateWebpropertyUserLinksResource;
  10067. Result:=FWebpropertyUserLinksInstance;
  10068. end;
  10069. Function TManagementResource.CreateWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource;
  10070. begin
  10071. Result:=CreateWebpropertyUserLinksResource(Self);
  10072. end;
  10073. Function TManagementResource.CreateWebpropertyUserLinksResource(AOwner : TComponent) : TManagementWebpropertyUserLinksResource;
  10074. begin
  10075. Result:=TManagementWebpropertyUserLinksResource.Create(AOwner);
  10076. Result.API:=Self.API;
  10077. end;
  10078. { --------------------------------------------------------------------
  10079. TMetadataColumnsResource
  10080. --------------------------------------------------------------------}
  10081. Class Function TMetadataColumnsResource.ResourceName : String;
  10082. begin
  10083. Result:='columns';
  10084. end;
  10085. Class Function TMetadataColumnsResource.DefaultAPI : TGoogleAPIClass;
  10086. begin
  10087. Result:=TanalyticsAPI;
  10088. end;
  10089. Function TMetadataColumnsResource.List(reportType: string) : TColumns;
  10090. Const
  10091. _HTTPMethod = 'GET';
  10092. _Path = 'metadata/{reportType}/columns';
  10093. _Methodid = 'analytics.metadata.columns.list';
  10094. Var
  10095. _P : String;
  10096. begin
  10097. _P:=SubstitutePath(_Path,['reportType',reportType]);
  10098. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TColumns) as TColumns;
  10099. end;
  10100. { --------------------------------------------------------------------
  10101. TMetadataResource
  10102. --------------------------------------------------------------------}
  10103. Class Function TMetadataResource.ResourceName : String;
  10104. begin
  10105. Result:='metadata';
  10106. end;
  10107. Class Function TMetadataResource.DefaultAPI : TGoogleAPIClass;
  10108. begin
  10109. Result:=TanalyticsAPI;
  10110. end;
  10111. Function TMetadataResource.GetColumnsInstance : TMetadataColumnsResource;
  10112. begin
  10113. if (FColumnsInstance=Nil) then
  10114. FColumnsInstance:=CreateColumnsResource;
  10115. Result:=FColumnsInstance;
  10116. end;
  10117. Function TMetadataResource.CreateColumnsResource : TMetadataColumnsResource;
  10118. begin
  10119. Result:=CreateColumnsResource(Self);
  10120. end;
  10121. Function TMetadataResource.CreateColumnsResource(AOwner : TComponent) : TMetadataColumnsResource;
  10122. begin
  10123. Result:=TMetadataColumnsResource.Create(AOwner);
  10124. Result.API:=Self.API;
  10125. end;
  10126. { --------------------------------------------------------------------
  10127. TProvisioningResource
  10128. --------------------------------------------------------------------}
  10129. Class Function TProvisioningResource.ResourceName : String;
  10130. begin
  10131. Result:='provisioning';
  10132. end;
  10133. Class Function TProvisioningResource.DefaultAPI : TGoogleAPIClass;
  10134. begin
  10135. Result:=TanalyticsAPI;
  10136. end;
  10137. Function TProvisioningResource.CreateAccountTicket(aAccountTicket : TAccountTicket) : TAccountTicket;
  10138. Const
  10139. _HTTPMethod = 'POST';
  10140. _Path = 'provisioning/createAccountTicket';
  10141. _Methodid = 'analytics.provisioning.createAccountTicket';
  10142. begin
  10143. Result:=ServiceCall(_HTTPMethod,_Path,'',aAccountTicket,TAccountTicket) as TAccountTicket;
  10144. end;
  10145. { --------------------------------------------------------------------
  10146. TAnalyticsAPI
  10147. --------------------------------------------------------------------}
  10148. Class Function TAnalyticsAPI.APIName : String;
  10149. begin
  10150. Result:='analytics';
  10151. end;
  10152. Class Function TAnalyticsAPI.APIVersion : String;
  10153. begin
  10154. Result:='v3';
  10155. end;
  10156. Class Function TAnalyticsAPI.APIRevision : String;
  10157. begin
  10158. Result:='20160401';
  10159. end;
  10160. Class Function TAnalyticsAPI.APIID : String;
  10161. begin
  10162. Result:='analytics:v3';
  10163. end;
  10164. Class Function TAnalyticsAPI.APITitle : String;
  10165. begin
  10166. Result:='Google Analytics API';
  10167. end;
  10168. Class Function TAnalyticsAPI.APIDescription : String;
  10169. begin
  10170. Result:='Views and manages your Google Analytics data.';
  10171. end;
  10172. Class Function TAnalyticsAPI.APIOwnerDomain : String;
  10173. begin
  10174. Result:='google.com';
  10175. end;
  10176. Class Function TAnalyticsAPI.APIOwnerName : String;
  10177. begin
  10178. Result:='Google';
  10179. end;
  10180. Class Function TAnalyticsAPI.APIIcon16 : String;
  10181. begin
  10182. Result:='https://www.google.com/images/icons/product/analytics-16.png';
  10183. end;
  10184. Class Function TAnalyticsAPI.APIIcon32 : String;
  10185. begin
  10186. Result:='https://www.google.com/images/icons/product/analytics-32.png';
  10187. end;
  10188. Class Function TAnalyticsAPI.APIdocumentationLink : String;
  10189. begin
  10190. Result:='https://developers.google.com/analytics/';
  10191. end;
  10192. Class Function TAnalyticsAPI.APIrootUrl : string;
  10193. begin
  10194. Result:='https://www.googleapis.com/';
  10195. end;
  10196. Class Function TAnalyticsAPI.APIbasePath : string;
  10197. begin
  10198. Result:='/analytics/v3/';
  10199. end;
  10200. Class Function TAnalyticsAPI.APIbaseURL : String;
  10201. begin
  10202. Result:='https://www.googleapis.com/analytics/v3/';
  10203. end;
  10204. Class Function TAnalyticsAPI.APIProtocol : string;
  10205. begin
  10206. Result:='rest';
  10207. end;
  10208. Class Function TAnalyticsAPI.APIservicePath : string;
  10209. begin
  10210. Result:='analytics/v3/';
  10211. end;
  10212. Class Function TAnalyticsAPI.APIbatchPath : String;
  10213. begin
  10214. Result:='batch';
  10215. end;
  10216. Class Function TAnalyticsAPI.APIAuthScopes : TScopeInfoArray;
  10217. begin
  10218. SetLength(Result,6);
  10219. Result[0].Name:='https://www.googleapis.com/auth/analytics';
  10220. Result[0].Description:='View and manage your Google Analytics data';
  10221. Result[1].Name:='https://www.googleapis.com/auth/analytics.edit';
  10222. Result[1].Description:='Edit Google Analytics management entities';
  10223. Result[2].Name:='https://www.googleapis.com/auth/analytics.manage.users';
  10224. Result[2].Description:='Manage Google Analytics Account users by email address';
  10225. Result[3].Name:='https://www.googleapis.com/auth/analytics.manage.users.readonly';
  10226. Result[3].Description:='View Google Analytics user permissions';
  10227. Result[4].Name:='https://www.googleapis.com/auth/analytics.provision';
  10228. Result[4].Description:='Create a new Google Analytics account along with its default property and view';
  10229. Result[5].Name:='https://www.googleapis.com/auth/analytics.readonly';
  10230. Result[5].Description:='View your Google Analytics data';
  10231. end;
  10232. Class Function TAnalyticsAPI.APINeedsAuth : Boolean;
  10233. begin
  10234. Result:=True;
  10235. end;
  10236. Class Procedure TAnalyticsAPI.RegisterAPIResources;
  10237. begin
  10238. TAccountTypechildLink.RegisterObject;
  10239. TAccountTypepermissions.RegisterObject;
  10240. TAccount.RegisterObject;
  10241. TAccountRef.RegisterObject;
  10242. TAccountSummaries.RegisterObject;
  10243. TAccountSummary.RegisterObject;
  10244. TAccountTicket.RegisterObject;
  10245. TAccounts.RegisterObject;
  10246. TAdWordsAccount.RegisterObject;
  10247. TAnalyticsDataimportDeleteUploadDataRequest.RegisterObject;
  10248. TColumnTypeattributes.RegisterObject;
  10249. TColumn.RegisterObject;
  10250. TColumns.RegisterObject;
  10251. TCustomDataSourceTypechildLink.RegisterObject;
  10252. TCustomDataSourceTypeparentLink.RegisterObject;
  10253. TCustomDataSource.RegisterObject;
  10254. TCustomDataSources.RegisterObject;
  10255. TCustomDimensionTypeparentLink.RegisterObject;
  10256. TCustomDimension.RegisterObject;
  10257. TCustomDimensions.RegisterObject;
  10258. TCustomMetricTypeparentLink.RegisterObject;
  10259. TCustomMetric.RegisterObject;
  10260. TCustomMetrics.RegisterObject;
  10261. TEntityAdWordsLinkTypeentity.RegisterObject;
  10262. TEntityAdWordsLink.RegisterObject;
  10263. TEntityAdWordsLinks.RegisterObject;
  10264. TEntityUserLinkTypeentity.RegisterObject;
  10265. TEntityUserLinkTypepermissions.RegisterObject;
  10266. TEntityUserLink.RegisterObject;
  10267. TEntityUserLinks.RegisterObject;
  10268. TExperimentTypeparentLink.RegisterObject;
  10269. TExperimentTypevariationsItem.RegisterObject;
  10270. TExperiment.RegisterObject;
  10271. TExperiments.RegisterObject;
  10272. TFilterTypeadvancedDetails.RegisterObject;
  10273. TFilterTypelowercaseDetails.RegisterObject;
  10274. TFilterTypeparentLink.RegisterObject;
  10275. TFilterTypesearchAndReplaceDetails.RegisterObject;
  10276. TFilterTypeuppercaseDetails.RegisterObject;
  10277. TFilter.RegisterObject;
  10278. TFilterExpression.RegisterObject;
  10279. TFilterRef.RegisterObject;
  10280. TFilters.RegisterObject;
  10281. TGaDataTypecolumnHeadersItem.RegisterObject;
  10282. TGaDataTypedataTableTypecolsItem.RegisterObject;
  10283. TGaDataTypedataTableTyperowsItemTypecItem.RegisterObject;
  10284. TGaDataTypedataTableTyperowsItem.RegisterObject;
  10285. TGaDataTypedataTable.RegisterObject;
  10286. TGaDataTypeprofileInfo.RegisterObject;
  10287. TGaDataTypequery.RegisterObject;
  10288. TGaDataTypetotalsForAllResults.RegisterObject;
  10289. TGaData.RegisterObject;
  10290. TGoalTypeeventDetailsTypeeventConditionsItem.RegisterObject;
  10291. TGoalTypeeventDetails.RegisterObject;
  10292. TGoalTypeparentLink.RegisterObject;
  10293. TGoalTypeurlDestinationDetailsTypestepsItem.RegisterObject;
  10294. TGoalTypeurlDestinationDetails.RegisterObject;
  10295. TGoalTypevisitNumPagesDetails.RegisterObject;
  10296. TGoalTypevisitTimeOnSiteDetails.RegisterObject;
  10297. TGoal.RegisterObject;
  10298. TGoals.RegisterObject;
  10299. TMcfDataTypecolumnHeadersItem.RegisterObject;
  10300. TMcfDataTypeprofileInfo.RegisterObject;
  10301. TMcfDataTypequery.RegisterObject;
  10302. TMcfDataTyperowsItemItemTypeconversionPathValueItem.RegisterObject;
  10303. TMcfDataTyperowsItemItem.RegisterObject;
  10304. TMcfDataTypetotalsForAllResults.RegisterObject;
  10305. TMcfData.RegisterObject;
  10306. TProfileTypechildLink.RegisterObject;
  10307. TProfileTypeparentLink.RegisterObject;
  10308. TProfileTypepermissions.RegisterObject;
  10309. TProfile.RegisterObject;
  10310. TProfileFilterLink.RegisterObject;
  10311. TProfileFilterLinks.RegisterObject;
  10312. TProfileRef.RegisterObject;
  10313. TProfileSummary.RegisterObject;
  10314. TProfiles.RegisterObject;
  10315. TRealtimeDataTypecolumnHeadersItem.RegisterObject;
  10316. TRealtimeDataTypeprofileInfo.RegisterObject;
  10317. TRealtimeDataTypequery.RegisterObject;
  10318. TRealtimeDataTypetotalsForAllResults.RegisterObject;
  10319. TRealtimeData.RegisterObject;
  10320. TSegment.RegisterObject;
  10321. TSegments.RegisterObject;
  10322. TUnsampledReportTypecloudStorageDownloadDetails.RegisterObject;
  10323. TUnsampledReportTypedriveDownloadDetails.RegisterObject;
  10324. TUnsampledReport.RegisterObject;
  10325. TUnsampledReports.RegisterObject;
  10326. TUpload.RegisterObject;
  10327. TUploads.RegisterObject;
  10328. TUserRef.RegisterObject;
  10329. TWebPropertyRef.RegisterObject;
  10330. TWebPropertySummary.RegisterObject;
  10331. TWebproperties.RegisterObject;
  10332. TWebpropertyTypechildLink.RegisterObject;
  10333. TWebpropertyTypeparentLink.RegisterObject;
  10334. TWebpropertyTypepermissions.RegisterObject;
  10335. TWebproperty.RegisterObject;
  10336. end;
  10337. Function TAnalyticsAPI.GetDataGaInstance : TDataGaResource;
  10338. begin
  10339. if (FDataGaInstance=Nil) then
  10340. FDataGaInstance:=CreateDataGaResource;
  10341. Result:=FDataGaInstance;
  10342. end;
  10343. Function TAnalyticsAPI.CreateDataGaResource : TDataGaResource;
  10344. begin
  10345. Result:=CreateDataGaResource(Self);
  10346. end;
  10347. Function TAnalyticsAPI.CreateDataGaResource(AOwner : TComponent) : TDataGaResource;
  10348. begin
  10349. Result:=TDataGaResource.Create(AOwner);
  10350. Result.API:=Self.API;
  10351. end;
  10352. Function TAnalyticsAPI.GetDataMcfInstance : TDataMcfResource;
  10353. begin
  10354. if (FDataMcfInstance=Nil) then
  10355. FDataMcfInstance:=CreateDataMcfResource;
  10356. Result:=FDataMcfInstance;
  10357. end;
  10358. Function TAnalyticsAPI.CreateDataMcfResource : TDataMcfResource;
  10359. begin
  10360. Result:=CreateDataMcfResource(Self);
  10361. end;
  10362. Function TAnalyticsAPI.CreateDataMcfResource(AOwner : TComponent) : TDataMcfResource;
  10363. begin
  10364. Result:=TDataMcfResource.Create(AOwner);
  10365. Result.API:=Self.API;
  10366. end;
  10367. Function TAnalyticsAPI.GetDataRealtimeInstance : TDataRealtimeResource;
  10368. begin
  10369. if (FDataRealtimeInstance=Nil) then
  10370. FDataRealtimeInstance:=CreateDataRealtimeResource;
  10371. Result:=FDataRealtimeInstance;
  10372. end;
  10373. Function TAnalyticsAPI.CreateDataRealtimeResource : TDataRealtimeResource;
  10374. begin
  10375. Result:=CreateDataRealtimeResource(Self);
  10376. end;
  10377. Function TAnalyticsAPI.CreateDataRealtimeResource(AOwner : TComponent) : TDataRealtimeResource;
  10378. begin
  10379. Result:=TDataRealtimeResource.Create(AOwner);
  10380. Result.API:=Self.API;
  10381. end;
  10382. Function TAnalyticsAPI.GetDataInstance : TDataResource;
  10383. begin
  10384. if (FDataInstance=Nil) then
  10385. FDataInstance:=CreateDataResource;
  10386. Result:=FDataInstance;
  10387. end;
  10388. Function TAnalyticsAPI.CreateDataResource : TDataResource;
  10389. begin
  10390. Result:=CreateDataResource(Self);
  10391. end;
  10392. Function TAnalyticsAPI.CreateDataResource(AOwner : TComponent) : TDataResource;
  10393. begin
  10394. Result:=TDataResource.Create(AOwner);
  10395. Result.API:=Self.API;
  10396. end;
  10397. Function TAnalyticsAPI.GetManagementAccountSummariesInstance : TManagementAccountSummariesResource;
  10398. begin
  10399. if (FManagementAccountSummariesInstance=Nil) then
  10400. FManagementAccountSummariesInstance:=CreateManagementAccountSummariesResource;
  10401. Result:=FManagementAccountSummariesInstance;
  10402. end;
  10403. Function TAnalyticsAPI.CreateManagementAccountSummariesResource : TManagementAccountSummariesResource;
  10404. begin
  10405. Result:=CreateManagementAccountSummariesResource(Self);
  10406. end;
  10407. Function TAnalyticsAPI.CreateManagementAccountSummariesResource(AOwner : TComponent) : TManagementAccountSummariesResource;
  10408. begin
  10409. Result:=TManagementAccountSummariesResource.Create(AOwner);
  10410. Result.API:=Self.API;
  10411. end;
  10412. Function TAnalyticsAPI.GetManagementAccountUserLinksInstance : TManagementAccountUserLinksResource;
  10413. begin
  10414. if (FManagementAccountUserLinksInstance=Nil) then
  10415. FManagementAccountUserLinksInstance:=CreateManagementAccountUserLinksResource;
  10416. Result:=FManagementAccountUserLinksInstance;
  10417. end;
  10418. Function TAnalyticsAPI.CreateManagementAccountUserLinksResource : TManagementAccountUserLinksResource;
  10419. begin
  10420. Result:=CreateManagementAccountUserLinksResource(Self);
  10421. end;
  10422. Function TAnalyticsAPI.CreateManagementAccountUserLinksResource(AOwner : TComponent) : TManagementAccountUserLinksResource;
  10423. begin
  10424. Result:=TManagementAccountUserLinksResource.Create(AOwner);
  10425. Result.API:=Self.API;
  10426. end;
  10427. Function TAnalyticsAPI.GetManagementAccountsInstance : TManagementAccountsResource;
  10428. begin
  10429. if (FManagementAccountsInstance=Nil) then
  10430. FManagementAccountsInstance:=CreateManagementAccountsResource;
  10431. Result:=FManagementAccountsInstance;
  10432. end;
  10433. Function TAnalyticsAPI.CreateManagementAccountsResource : TManagementAccountsResource;
  10434. begin
  10435. Result:=CreateManagementAccountsResource(Self);
  10436. end;
  10437. Function TAnalyticsAPI.CreateManagementAccountsResource(AOwner : TComponent) : TManagementAccountsResource;
  10438. begin
  10439. Result:=TManagementAccountsResource.Create(AOwner);
  10440. Result.API:=Self.API;
  10441. end;
  10442. Function TAnalyticsAPI.GetManagementCustomDataSourcesInstance : TManagementCustomDataSourcesResource;
  10443. begin
  10444. if (FManagementCustomDataSourcesInstance=Nil) then
  10445. FManagementCustomDataSourcesInstance:=CreateManagementCustomDataSourcesResource;
  10446. Result:=FManagementCustomDataSourcesInstance;
  10447. end;
  10448. Function TAnalyticsAPI.CreateManagementCustomDataSourcesResource : TManagementCustomDataSourcesResource;
  10449. begin
  10450. Result:=CreateManagementCustomDataSourcesResource(Self);
  10451. end;
  10452. Function TAnalyticsAPI.CreateManagementCustomDataSourcesResource(AOwner : TComponent) : TManagementCustomDataSourcesResource;
  10453. begin
  10454. Result:=TManagementCustomDataSourcesResource.Create(AOwner);
  10455. Result.API:=Self.API;
  10456. end;
  10457. Function TAnalyticsAPI.GetManagementCustomDimensionsInstance : TManagementCustomDimensionsResource;
  10458. begin
  10459. if (FManagementCustomDimensionsInstance=Nil) then
  10460. FManagementCustomDimensionsInstance:=CreateManagementCustomDimensionsResource;
  10461. Result:=FManagementCustomDimensionsInstance;
  10462. end;
  10463. Function TAnalyticsAPI.CreateManagementCustomDimensionsResource : TManagementCustomDimensionsResource;
  10464. begin
  10465. Result:=CreateManagementCustomDimensionsResource(Self);
  10466. end;
  10467. Function TAnalyticsAPI.CreateManagementCustomDimensionsResource(AOwner : TComponent) : TManagementCustomDimensionsResource;
  10468. begin
  10469. Result:=TManagementCustomDimensionsResource.Create(AOwner);
  10470. Result.API:=Self.API;
  10471. end;
  10472. Function TAnalyticsAPI.GetManagementCustomMetricsInstance : TManagementCustomMetricsResource;
  10473. begin
  10474. if (FManagementCustomMetricsInstance=Nil) then
  10475. FManagementCustomMetricsInstance:=CreateManagementCustomMetricsResource;
  10476. Result:=FManagementCustomMetricsInstance;
  10477. end;
  10478. Function TAnalyticsAPI.CreateManagementCustomMetricsResource : TManagementCustomMetricsResource;
  10479. begin
  10480. Result:=CreateManagementCustomMetricsResource(Self);
  10481. end;
  10482. Function TAnalyticsAPI.CreateManagementCustomMetricsResource(AOwner : TComponent) : TManagementCustomMetricsResource;
  10483. begin
  10484. Result:=TManagementCustomMetricsResource.Create(AOwner);
  10485. Result.API:=Self.API;
  10486. end;
  10487. Function TAnalyticsAPI.GetManagementExperimentsInstance : TManagementExperimentsResource;
  10488. begin
  10489. if (FManagementExperimentsInstance=Nil) then
  10490. FManagementExperimentsInstance:=CreateManagementExperimentsResource;
  10491. Result:=FManagementExperimentsInstance;
  10492. end;
  10493. Function TAnalyticsAPI.CreateManagementExperimentsResource : TManagementExperimentsResource;
  10494. begin
  10495. Result:=CreateManagementExperimentsResource(Self);
  10496. end;
  10497. Function TAnalyticsAPI.CreateManagementExperimentsResource(AOwner : TComponent) : TManagementExperimentsResource;
  10498. begin
  10499. Result:=TManagementExperimentsResource.Create(AOwner);
  10500. Result.API:=Self.API;
  10501. end;
  10502. Function TAnalyticsAPI.GetManagementFiltersInstance : TManagementFiltersResource;
  10503. begin
  10504. if (FManagementFiltersInstance=Nil) then
  10505. FManagementFiltersInstance:=CreateManagementFiltersResource;
  10506. Result:=FManagementFiltersInstance;
  10507. end;
  10508. Function TAnalyticsAPI.CreateManagementFiltersResource : TManagementFiltersResource;
  10509. begin
  10510. Result:=CreateManagementFiltersResource(Self);
  10511. end;
  10512. Function TAnalyticsAPI.CreateManagementFiltersResource(AOwner : TComponent) : TManagementFiltersResource;
  10513. begin
  10514. Result:=TManagementFiltersResource.Create(AOwner);
  10515. Result.API:=Self.API;
  10516. end;
  10517. Function TAnalyticsAPI.GetManagementGoalsInstance : TManagementGoalsResource;
  10518. begin
  10519. if (FManagementGoalsInstance=Nil) then
  10520. FManagementGoalsInstance:=CreateManagementGoalsResource;
  10521. Result:=FManagementGoalsInstance;
  10522. end;
  10523. Function TAnalyticsAPI.CreateManagementGoalsResource : TManagementGoalsResource;
  10524. begin
  10525. Result:=CreateManagementGoalsResource(Self);
  10526. end;
  10527. Function TAnalyticsAPI.CreateManagementGoalsResource(AOwner : TComponent) : TManagementGoalsResource;
  10528. begin
  10529. Result:=TManagementGoalsResource.Create(AOwner);
  10530. Result.API:=Self.API;
  10531. end;
  10532. Function TAnalyticsAPI.GetManagementProfileFilterLinksInstance : TManagementProfileFilterLinksResource;
  10533. begin
  10534. if (FManagementProfileFilterLinksInstance=Nil) then
  10535. FManagementProfileFilterLinksInstance:=CreateManagementProfileFilterLinksResource;
  10536. Result:=FManagementProfileFilterLinksInstance;
  10537. end;
  10538. Function TAnalyticsAPI.CreateManagementProfileFilterLinksResource : TManagementProfileFilterLinksResource;
  10539. begin
  10540. Result:=CreateManagementProfileFilterLinksResource(Self);
  10541. end;
  10542. Function TAnalyticsAPI.CreateManagementProfileFilterLinksResource(AOwner : TComponent) : TManagementProfileFilterLinksResource;
  10543. begin
  10544. Result:=TManagementProfileFilterLinksResource.Create(AOwner);
  10545. Result.API:=Self.API;
  10546. end;
  10547. Function TAnalyticsAPI.GetManagementProfileUserLinksInstance : TManagementProfileUserLinksResource;
  10548. begin
  10549. if (FManagementProfileUserLinksInstance=Nil) then
  10550. FManagementProfileUserLinksInstance:=CreateManagementProfileUserLinksResource;
  10551. Result:=FManagementProfileUserLinksInstance;
  10552. end;
  10553. Function TAnalyticsAPI.CreateManagementProfileUserLinksResource : TManagementProfileUserLinksResource;
  10554. begin
  10555. Result:=CreateManagementProfileUserLinksResource(Self);
  10556. end;
  10557. Function TAnalyticsAPI.CreateManagementProfileUserLinksResource(AOwner : TComponent) : TManagementProfileUserLinksResource;
  10558. begin
  10559. Result:=TManagementProfileUserLinksResource.Create(AOwner);
  10560. Result.API:=Self.API;
  10561. end;
  10562. Function TAnalyticsAPI.GetManagementProfilesInstance : TManagementProfilesResource;
  10563. begin
  10564. if (FManagementProfilesInstance=Nil) then
  10565. FManagementProfilesInstance:=CreateManagementProfilesResource;
  10566. Result:=FManagementProfilesInstance;
  10567. end;
  10568. Function TAnalyticsAPI.CreateManagementProfilesResource : TManagementProfilesResource;
  10569. begin
  10570. Result:=CreateManagementProfilesResource(Self);
  10571. end;
  10572. Function TAnalyticsAPI.CreateManagementProfilesResource(AOwner : TComponent) : TManagementProfilesResource;
  10573. begin
  10574. Result:=TManagementProfilesResource.Create(AOwner);
  10575. Result.API:=Self.API;
  10576. end;
  10577. Function TAnalyticsAPI.GetManagementSegmentsInstance : TManagementSegmentsResource;
  10578. begin
  10579. if (FManagementSegmentsInstance=Nil) then
  10580. FManagementSegmentsInstance:=CreateManagementSegmentsResource;
  10581. Result:=FManagementSegmentsInstance;
  10582. end;
  10583. Function TAnalyticsAPI.CreateManagementSegmentsResource : TManagementSegmentsResource;
  10584. begin
  10585. Result:=CreateManagementSegmentsResource(Self);
  10586. end;
  10587. Function TAnalyticsAPI.CreateManagementSegmentsResource(AOwner : TComponent) : TManagementSegmentsResource;
  10588. begin
  10589. Result:=TManagementSegmentsResource.Create(AOwner);
  10590. Result.API:=Self.API;
  10591. end;
  10592. Function TAnalyticsAPI.GetManagementUnsampledReportsInstance : TManagementUnsampledReportsResource;
  10593. begin
  10594. if (FManagementUnsampledReportsInstance=Nil) then
  10595. FManagementUnsampledReportsInstance:=CreateManagementUnsampledReportsResource;
  10596. Result:=FManagementUnsampledReportsInstance;
  10597. end;
  10598. Function TAnalyticsAPI.CreateManagementUnsampledReportsResource : TManagementUnsampledReportsResource;
  10599. begin
  10600. Result:=CreateManagementUnsampledReportsResource(Self);
  10601. end;
  10602. Function TAnalyticsAPI.CreateManagementUnsampledReportsResource(AOwner : TComponent) : TManagementUnsampledReportsResource;
  10603. begin
  10604. Result:=TManagementUnsampledReportsResource.Create(AOwner);
  10605. Result.API:=Self.API;
  10606. end;
  10607. Function TAnalyticsAPI.GetManagementUploadsInstance : TManagementUploadsResource;
  10608. begin
  10609. if (FManagementUploadsInstance=Nil) then
  10610. FManagementUploadsInstance:=CreateManagementUploadsResource;
  10611. Result:=FManagementUploadsInstance;
  10612. end;
  10613. Function TAnalyticsAPI.CreateManagementUploadsResource : TManagementUploadsResource;
  10614. begin
  10615. Result:=CreateManagementUploadsResource(Self);
  10616. end;
  10617. Function TAnalyticsAPI.CreateManagementUploadsResource(AOwner : TComponent) : TManagementUploadsResource;
  10618. begin
  10619. Result:=TManagementUploadsResource.Create(AOwner);
  10620. Result.API:=Self.API;
  10621. end;
  10622. Function TAnalyticsAPI.GetManagementWebPropertyAdWordsLinksInstance : TManagementWebPropertyAdWordsLinksResource;
  10623. begin
  10624. if (FManagementWebPropertyAdWordsLinksInstance=Nil) then
  10625. FManagementWebPropertyAdWordsLinksInstance:=CreateManagementWebPropertyAdWordsLinksResource;
  10626. Result:=FManagementWebPropertyAdWordsLinksInstance;
  10627. end;
  10628. Function TAnalyticsAPI.CreateManagementWebPropertyAdWordsLinksResource : TManagementWebPropertyAdWordsLinksResource;
  10629. begin
  10630. Result:=CreateManagementWebPropertyAdWordsLinksResource(Self);
  10631. end;
  10632. Function TAnalyticsAPI.CreateManagementWebPropertyAdWordsLinksResource(AOwner : TComponent) : TManagementWebPropertyAdWordsLinksResource;
  10633. begin
  10634. Result:=TManagementWebPropertyAdWordsLinksResource.Create(AOwner);
  10635. Result.API:=Self.API;
  10636. end;
  10637. Function TAnalyticsAPI.GetManagementWebpropertiesInstance : TManagementWebpropertiesResource;
  10638. begin
  10639. if (FManagementWebpropertiesInstance=Nil) then
  10640. FManagementWebpropertiesInstance:=CreateManagementWebpropertiesResource;
  10641. Result:=FManagementWebpropertiesInstance;
  10642. end;
  10643. Function TAnalyticsAPI.CreateManagementWebpropertiesResource : TManagementWebpropertiesResource;
  10644. begin
  10645. Result:=CreateManagementWebpropertiesResource(Self);
  10646. end;
  10647. Function TAnalyticsAPI.CreateManagementWebpropertiesResource(AOwner : TComponent) : TManagementWebpropertiesResource;
  10648. begin
  10649. Result:=TManagementWebpropertiesResource.Create(AOwner);
  10650. Result.API:=Self.API;
  10651. end;
  10652. Function TAnalyticsAPI.GetManagementWebpropertyUserLinksInstance : TManagementWebpropertyUserLinksResource;
  10653. begin
  10654. if (FManagementWebpropertyUserLinksInstance=Nil) then
  10655. FManagementWebpropertyUserLinksInstance:=CreateManagementWebpropertyUserLinksResource;
  10656. Result:=FManagementWebpropertyUserLinksInstance;
  10657. end;
  10658. Function TAnalyticsAPI.CreateManagementWebpropertyUserLinksResource : TManagementWebpropertyUserLinksResource;
  10659. begin
  10660. Result:=CreateManagementWebpropertyUserLinksResource(Self);
  10661. end;
  10662. Function TAnalyticsAPI.CreateManagementWebpropertyUserLinksResource(AOwner : TComponent) : TManagementWebpropertyUserLinksResource;
  10663. begin
  10664. Result:=TManagementWebpropertyUserLinksResource.Create(AOwner);
  10665. Result.API:=Self.API;
  10666. end;
  10667. Function TAnalyticsAPI.GetManagementInstance : TManagementResource;
  10668. begin
  10669. if (FManagementInstance=Nil) then
  10670. FManagementInstance:=CreateManagementResource;
  10671. Result:=FManagementInstance;
  10672. end;
  10673. Function TAnalyticsAPI.CreateManagementResource : TManagementResource;
  10674. begin
  10675. Result:=CreateManagementResource(Self);
  10676. end;
  10677. Function TAnalyticsAPI.CreateManagementResource(AOwner : TComponent) : TManagementResource;
  10678. begin
  10679. Result:=TManagementResource.Create(AOwner);
  10680. Result.API:=Self.API;
  10681. end;
  10682. Function TAnalyticsAPI.GetMetadataColumnsInstance : TMetadataColumnsResource;
  10683. begin
  10684. if (FMetadataColumnsInstance=Nil) then
  10685. FMetadataColumnsInstance:=CreateMetadataColumnsResource;
  10686. Result:=FMetadataColumnsInstance;
  10687. end;
  10688. Function TAnalyticsAPI.CreateMetadataColumnsResource : TMetadataColumnsResource;
  10689. begin
  10690. Result:=CreateMetadataColumnsResource(Self);
  10691. end;
  10692. Function TAnalyticsAPI.CreateMetadataColumnsResource(AOwner : TComponent) : TMetadataColumnsResource;
  10693. begin
  10694. Result:=TMetadataColumnsResource.Create(AOwner);
  10695. Result.API:=Self.API;
  10696. end;
  10697. Function TAnalyticsAPI.GetMetadataInstance : TMetadataResource;
  10698. begin
  10699. if (FMetadataInstance=Nil) then
  10700. FMetadataInstance:=CreateMetadataResource;
  10701. Result:=FMetadataInstance;
  10702. end;
  10703. Function TAnalyticsAPI.CreateMetadataResource : TMetadataResource;
  10704. begin
  10705. Result:=CreateMetadataResource(Self);
  10706. end;
  10707. Function TAnalyticsAPI.CreateMetadataResource(AOwner : TComponent) : TMetadataResource;
  10708. begin
  10709. Result:=TMetadataResource.Create(AOwner);
  10710. Result.API:=Self.API;
  10711. end;
  10712. Function TAnalyticsAPI.GetProvisioningInstance : TProvisioningResource;
  10713. begin
  10714. if (FProvisioningInstance=Nil) then
  10715. FProvisioningInstance:=CreateProvisioningResource;
  10716. Result:=FProvisioningInstance;
  10717. end;
  10718. Function TAnalyticsAPI.CreateProvisioningResource : TProvisioningResource;
  10719. begin
  10720. Result:=CreateProvisioningResource(Self);
  10721. end;
  10722. Function TAnalyticsAPI.CreateProvisioningResource(AOwner : TComponent) : TProvisioningResource;
  10723. begin
  10724. Result:=TProvisioningResource.Create(AOwner);
  10725. Result.API:=Self.API;
  10726. end;
  10727. initialization
  10728. TAnalyticsAPI.RegisterAPI;
  10729. end.