googleplus.pp 154 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666
  1. unit googleplus;
  2. {
  3. **********************************************************************
  4. This file is part of the Free Component Library (FCL)
  5. Copyright (c) 2015 The free pascal team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************
  12. }
  13. //Generated on: 16-5-15 08:53:06
  14. {$MODE objfpc}
  15. {$H+}
  16. interface
  17. uses sysutils, classes, googleservice, restbase, googlebase;
  18. type
  19. //Top-level schema types
  20. TAcl = Class;
  21. TActivity = Class;
  22. TActivityFeed = Class;
  23. TComment = Class;
  24. TCommentFeed = Class;
  25. TItemScope = Class;
  26. TMoment = Class;
  27. TMomentsFeed = Class;
  28. TPeopleFeed = Class;
  29. TPerson = Class;
  30. TPlace = Class;
  31. TPlusAclentryResource = Class;
  32. TAclArray = Array of TAcl;
  33. TActivityArray = Array of TActivity;
  34. TActivityFeedArray = Array of TActivityFeed;
  35. TCommentArray = Array of TComment;
  36. TCommentFeedArray = Array of TCommentFeed;
  37. TItemScopeArray = Array of TItemScope;
  38. TMomentArray = Array of TMoment;
  39. TMomentsFeedArray = Array of TMomentsFeed;
  40. TPeopleFeedArray = Array of TPeopleFeed;
  41. TPersonArray = Array of TPerson;
  42. TPlaceArray = Array of TPlace;
  43. TPlusAclentryResourceArray = Array of TPlusAclentryResource;
  44. //Anonymous types, using auto-generated names
  45. TActivityTypeactorTypeimage = Class;
  46. TActivityTypeactorTypename = Class;
  47. TActivityTypeactor = Class;
  48. TActivityTypeobjectTypeactorTypeimage = Class;
  49. TActivityTypeobjectTypeactor = Class;
  50. TActivityTypeobjectTypeattachmentsItemTypeembed = Class;
  51. TActivityTypeobjectTypeattachmentsItemTypefullImage = Class;
  52. TActivityTypeobjectTypeattachmentsItemTypeimage = Class;
  53. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage = Class;
  54. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem = Class;
  55. TActivityTypeobjectTypeattachmentsItem = Class;
  56. TActivityTypeobjectTypeplusoners = Class;
  57. TActivityTypeobjectTypereplies = Class;
  58. TActivityTypeobjectTyperesharers = Class;
  59. TActivityTypeobject = Class;
  60. TActivityTypeprovider = Class;
  61. TCommentTypeactorTypeimage = Class;
  62. TCommentTypeactor = Class;
  63. TCommentTypeinReplyToItem = Class;
  64. TCommentTypeobject = Class;
  65. TCommentTypeplusoners = Class;
  66. TPersonTypeageRange = Class;
  67. TPersonTypecoverTypecoverInfo = Class;
  68. TPersonTypecoverTypecoverPhoto = Class;
  69. TPersonTypecover = Class;
  70. TPersonTypeemailsItem = Class;
  71. TPersonTypeimage = Class;
  72. TPersonTypename = Class;
  73. TPersonTypeorganizationsItem = Class;
  74. TPersonTypeplacesLivedItem = Class;
  75. TPersonTypeurlsItem = Class;
  76. TPlaceTypeaddress = Class;
  77. TPlaceTypeposition = Class;
  78. TAclTypeitemsArray = Array of TPlusAclentryResource;
  79. TActivityTypeobjectTypeattachmentsItemTypethumbnailsArray = Array of TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem;
  80. TActivityTypeobjectTypeattachmentsArray = Array of TActivityTypeobjectTypeattachmentsItem;
  81. TActivityFeedTypeitemsArray = Array of TActivity;
  82. TCommentTypeinReplyToArray = Array of TCommentTypeinReplyToItem;
  83. TCommentFeedTypeitemsArray = Array of TComment;
  84. TItemScopeTypeassociated_mediaArray = Array of TItemScope;
  85. TItemScopeTypeattendeesArray = Array of TItemScope;
  86. TItemScopeTypeauthorArray = Array of TItemScope;
  87. TItemScopeTypecontributorArray = Array of TItemScope;
  88. TItemScopeTypeperformersArray = Array of TItemScope;
  89. TMomentsFeedTypeitemsArray = Array of TMoment;
  90. TPeopleFeedTypeitemsArray = Array of TPerson;
  91. TPersonTypeemailsArray = Array of TPersonTypeemailsItem;
  92. TPersonTypeorganizationsArray = Array of TPersonTypeorganizationsItem;
  93. TPersonTypeplacesLivedArray = Array of TPersonTypeplacesLivedItem;
  94. TPersonTypeurlsArray = Array of TPersonTypeurlsItem;
  95. { --------------------------------------------------------------------
  96. TAcl
  97. --------------------------------------------------------------------}
  98. TAcl = Class(TGoogleBaseObject)
  99. Private
  100. Fdescription : String;
  101. Fitems : TAclTypeitemsArray;
  102. Fkind : String;
  103. Protected
  104. //Property setters
  105. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  106. Procedure Setitems(AIndex : Integer; AValue : TAclTypeitemsArray); virtual;
  107. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  108. //2.6.4. bug workaround
  109. {$IFDEF VER2_6}
  110. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  111. {$ENDIF VER2_6}
  112. Public
  113. Published
  114. Property description : String Index 0 Read Fdescription Write Setdescription;
  115. Property items : TAclTypeitemsArray Index 8 Read Fitems Write Setitems;
  116. Property kind : String Index 16 Read Fkind Write Setkind;
  117. end;
  118. TAclClass = Class of TAcl;
  119. { --------------------------------------------------------------------
  120. TActivityTypeactorTypeimage
  121. --------------------------------------------------------------------}
  122. TActivityTypeactorTypeimage = Class(TGoogleBaseObject)
  123. Private
  124. Furl : String;
  125. Protected
  126. //Property setters
  127. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  128. Public
  129. Published
  130. Property url : String Index 0 Read Furl Write Seturl;
  131. end;
  132. TActivityTypeactorTypeimageClass = Class of TActivityTypeactorTypeimage;
  133. { --------------------------------------------------------------------
  134. TActivityTypeactorTypename
  135. --------------------------------------------------------------------}
  136. TActivityTypeactorTypename = Class(TGoogleBaseObject)
  137. Private
  138. FfamilyName : String;
  139. FgivenName : String;
  140. Protected
  141. //Property setters
  142. Procedure SetfamilyName(AIndex : Integer; const AValue : String); virtual;
  143. Procedure SetgivenName(AIndex : Integer; const AValue : String); virtual;
  144. Public
  145. Published
  146. Property familyName : String Index 0 Read FfamilyName Write SetfamilyName;
  147. Property givenName : String Index 8 Read FgivenName Write SetgivenName;
  148. end;
  149. TActivityTypeactorTypenameClass = Class of TActivityTypeactorTypename;
  150. { --------------------------------------------------------------------
  151. TActivityTypeactor
  152. --------------------------------------------------------------------}
  153. TActivityTypeactor = Class(TGoogleBaseObject)
  154. Private
  155. FdisplayName : String;
  156. Fid : String;
  157. Fimage : TActivityTypeactorTypeimage;
  158. Fname : TActivityTypeactorTypename;
  159. Furl : String;
  160. Protected
  161. //Property setters
  162. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  163. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  164. Procedure Setimage(AIndex : Integer; AValue : TActivityTypeactorTypeimage); virtual;
  165. Procedure Setname(AIndex : Integer; AValue : TActivityTypeactorTypename); virtual;
  166. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  167. Public
  168. Published
  169. Property displayName : String Index 0 Read FdisplayName Write SetdisplayName;
  170. Property id : String Index 8 Read Fid Write Setid;
  171. Property image : TActivityTypeactorTypeimage Index 16 Read Fimage Write Setimage;
  172. Property name : TActivityTypeactorTypename Index 24 Read Fname Write Setname;
  173. Property url : String Index 32 Read Furl Write Seturl;
  174. end;
  175. TActivityTypeactorClass = Class of TActivityTypeactor;
  176. { --------------------------------------------------------------------
  177. TActivityTypeobjectTypeactorTypeimage
  178. --------------------------------------------------------------------}
  179. TActivityTypeobjectTypeactorTypeimage = Class(TGoogleBaseObject)
  180. Private
  181. Furl : String;
  182. Protected
  183. //Property setters
  184. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  185. Public
  186. Published
  187. Property url : String Index 0 Read Furl Write Seturl;
  188. end;
  189. TActivityTypeobjectTypeactorTypeimageClass = Class of TActivityTypeobjectTypeactorTypeimage;
  190. { --------------------------------------------------------------------
  191. TActivityTypeobjectTypeactor
  192. --------------------------------------------------------------------}
  193. TActivityTypeobjectTypeactor = Class(TGoogleBaseObject)
  194. Private
  195. FdisplayName : String;
  196. Fid : String;
  197. Fimage : TActivityTypeobjectTypeactorTypeimage;
  198. Furl : String;
  199. Protected
  200. //Property setters
  201. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  202. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  203. Procedure Setimage(AIndex : Integer; AValue : TActivityTypeobjectTypeactorTypeimage); virtual;
  204. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  205. Public
  206. Published
  207. Property displayName : String Index 0 Read FdisplayName Write SetdisplayName;
  208. Property id : String Index 8 Read Fid Write Setid;
  209. Property image : TActivityTypeobjectTypeactorTypeimage Index 16 Read Fimage Write Setimage;
  210. Property url : String Index 24 Read Furl Write Seturl;
  211. end;
  212. TActivityTypeobjectTypeactorClass = Class of TActivityTypeobjectTypeactor;
  213. { --------------------------------------------------------------------
  214. TActivityTypeobjectTypeattachmentsItemTypeembed
  215. --------------------------------------------------------------------}
  216. TActivityTypeobjectTypeattachmentsItemTypeembed = Class(TGoogleBaseObject)
  217. Private
  218. F_type : String;
  219. Furl : String;
  220. Protected
  221. Class Function ExportPropertyName(Const AName : String) : string; override;
  222. //Property setters
  223. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  224. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  225. Public
  226. Published
  227. Property _type : String Index 0 Read F_type Write Set_type;
  228. Property url : String Index 8 Read Furl Write Seturl;
  229. end;
  230. TActivityTypeobjectTypeattachmentsItemTypeembedClass = Class of TActivityTypeobjectTypeattachmentsItemTypeembed;
  231. { --------------------------------------------------------------------
  232. TActivityTypeobjectTypeattachmentsItemTypefullImage
  233. --------------------------------------------------------------------}
  234. TActivityTypeobjectTypeattachmentsItemTypefullImage = Class(TGoogleBaseObject)
  235. Private
  236. Fheight : integer;
  237. F_type : String;
  238. Furl : String;
  239. Fwidth : integer;
  240. Protected
  241. Class Function ExportPropertyName(Const AName : String) : string; override;
  242. //Property setters
  243. Procedure Setheight(AIndex : Integer; AValue : integer); virtual;
  244. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  245. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  246. Procedure Setwidth(AIndex : Integer; AValue : integer); virtual;
  247. Public
  248. Published
  249. Property height : integer Index 0 Read Fheight Write Setheight;
  250. Property _type : String Index 8 Read F_type Write Set_type;
  251. Property url : String Index 16 Read Furl Write Seturl;
  252. Property width : integer Index 24 Read Fwidth Write Setwidth;
  253. end;
  254. TActivityTypeobjectTypeattachmentsItemTypefullImageClass = Class of TActivityTypeobjectTypeattachmentsItemTypefullImage;
  255. { --------------------------------------------------------------------
  256. TActivityTypeobjectTypeattachmentsItemTypeimage
  257. --------------------------------------------------------------------}
  258. TActivityTypeobjectTypeattachmentsItemTypeimage = Class(TGoogleBaseObject)
  259. Private
  260. Fheight : integer;
  261. F_type : String;
  262. Furl : String;
  263. Fwidth : integer;
  264. Protected
  265. Class Function ExportPropertyName(Const AName : String) : string; override;
  266. //Property setters
  267. Procedure Setheight(AIndex : Integer; AValue : integer); virtual;
  268. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  269. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  270. Procedure Setwidth(AIndex : Integer; AValue : integer); virtual;
  271. Public
  272. Published
  273. Property height : integer Index 0 Read Fheight Write Setheight;
  274. Property _type : String Index 8 Read F_type Write Set_type;
  275. Property url : String Index 16 Read Furl Write Seturl;
  276. Property width : integer Index 24 Read Fwidth Write Setwidth;
  277. end;
  278. TActivityTypeobjectTypeattachmentsItemTypeimageClass = Class of TActivityTypeobjectTypeattachmentsItemTypeimage;
  279. { --------------------------------------------------------------------
  280. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage
  281. --------------------------------------------------------------------}
  282. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage = Class(TGoogleBaseObject)
  283. Private
  284. Fheight : integer;
  285. F_type : String;
  286. Furl : String;
  287. Fwidth : integer;
  288. Protected
  289. Class Function ExportPropertyName(Const AName : String) : string; override;
  290. //Property setters
  291. Procedure Setheight(AIndex : Integer; AValue : integer); virtual;
  292. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  293. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  294. Procedure Setwidth(AIndex : Integer; AValue : integer); virtual;
  295. Public
  296. Published
  297. Property height : integer Index 0 Read Fheight Write Setheight;
  298. Property _type : String Index 8 Read F_type Write Set_type;
  299. Property url : String Index 16 Read Furl Write Seturl;
  300. Property width : integer Index 24 Read Fwidth Write Setwidth;
  301. end;
  302. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimageClass = Class of TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage;
  303. { --------------------------------------------------------------------
  304. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem
  305. --------------------------------------------------------------------}
  306. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem = Class(TGoogleBaseObject)
  307. Private
  308. Fdescription : String;
  309. Fimage : TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage;
  310. Furl : String;
  311. Protected
  312. //Property setters
  313. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  314. Procedure Setimage(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage); virtual;
  315. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  316. Public
  317. Published
  318. Property description : String Index 0 Read Fdescription Write Setdescription;
  319. Property image : TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage Index 8 Read Fimage Write Setimage;
  320. Property url : String Index 16 Read Furl Write Seturl;
  321. end;
  322. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemClass = Class of TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem;
  323. { --------------------------------------------------------------------
  324. TActivityTypeobjectTypeattachmentsItem
  325. --------------------------------------------------------------------}
  326. TActivityTypeobjectTypeattachmentsItem = Class(TGoogleBaseObject)
  327. Private
  328. Fcontent : String;
  329. FdisplayName : String;
  330. Fembed : TActivityTypeobjectTypeattachmentsItemTypeembed;
  331. FfullImage : TActivityTypeobjectTypeattachmentsItemTypefullImage;
  332. Fid : String;
  333. Fimage : TActivityTypeobjectTypeattachmentsItemTypeimage;
  334. FobjectType : String;
  335. Fthumbnails : TActivityTypeobjectTypeattachmentsItemTypethumbnailsArray;
  336. Furl : String;
  337. Protected
  338. //Property setters
  339. Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
  340. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  341. Procedure Setembed(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypeembed); virtual;
  342. Procedure SetfullImage(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypefullImage); virtual;
  343. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  344. Procedure Setimage(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypeimage); virtual;
  345. Procedure SetobjectType(AIndex : Integer; const AValue : String); virtual;
  346. Procedure Setthumbnails(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypethumbnailsArray); virtual;
  347. Procedure Seturl(AIndex : Integer; const AValue : String); 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 content : String Index 0 Read Fcontent Write Setcontent;
  355. Property displayName : String Index 8 Read FdisplayName Write SetdisplayName;
  356. Property embed : TActivityTypeobjectTypeattachmentsItemTypeembed Index 16 Read Fembed Write Setembed;
  357. Property fullImage : TActivityTypeobjectTypeattachmentsItemTypefullImage Index 24 Read FfullImage Write SetfullImage;
  358. Property id : String Index 32 Read Fid Write Setid;
  359. Property image : TActivityTypeobjectTypeattachmentsItemTypeimage Index 40 Read Fimage Write Setimage;
  360. Property objectType : String Index 48 Read FobjectType Write SetobjectType;
  361. Property thumbnails : TActivityTypeobjectTypeattachmentsItemTypethumbnailsArray Index 56 Read Fthumbnails Write Setthumbnails;
  362. Property url : String Index 64 Read Furl Write Seturl;
  363. end;
  364. TActivityTypeobjectTypeattachmentsItemClass = Class of TActivityTypeobjectTypeattachmentsItem;
  365. { --------------------------------------------------------------------
  366. TActivityTypeobjectTypeplusoners
  367. --------------------------------------------------------------------}
  368. TActivityTypeobjectTypeplusoners = Class(TGoogleBaseObject)
  369. Private
  370. FselfLink : String;
  371. FtotalItems : integer;
  372. Protected
  373. //Property setters
  374. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  375. Procedure SettotalItems(AIndex : Integer; AValue : integer); virtual;
  376. Public
  377. Published
  378. Property selfLink : String Index 0 Read FselfLink Write SetselfLink;
  379. Property totalItems : integer Index 8 Read FtotalItems Write SettotalItems;
  380. end;
  381. TActivityTypeobjectTypeplusonersClass = Class of TActivityTypeobjectTypeplusoners;
  382. { --------------------------------------------------------------------
  383. TActivityTypeobjectTypereplies
  384. --------------------------------------------------------------------}
  385. TActivityTypeobjectTypereplies = Class(TGoogleBaseObject)
  386. Private
  387. FselfLink : String;
  388. FtotalItems : integer;
  389. Protected
  390. //Property setters
  391. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  392. Procedure SettotalItems(AIndex : Integer; AValue : integer); virtual;
  393. Public
  394. Published
  395. Property selfLink : String Index 0 Read FselfLink Write SetselfLink;
  396. Property totalItems : integer Index 8 Read FtotalItems Write SettotalItems;
  397. end;
  398. TActivityTypeobjectTyperepliesClass = Class of TActivityTypeobjectTypereplies;
  399. { --------------------------------------------------------------------
  400. TActivityTypeobjectTyperesharers
  401. --------------------------------------------------------------------}
  402. TActivityTypeobjectTyperesharers = Class(TGoogleBaseObject)
  403. Private
  404. FselfLink : String;
  405. FtotalItems : integer;
  406. Protected
  407. //Property setters
  408. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  409. Procedure SettotalItems(AIndex : Integer; AValue : integer); virtual;
  410. Public
  411. Published
  412. Property selfLink : String Index 0 Read FselfLink Write SetselfLink;
  413. Property totalItems : integer Index 8 Read FtotalItems Write SettotalItems;
  414. end;
  415. TActivityTypeobjectTyperesharersClass = Class of TActivityTypeobjectTyperesharers;
  416. { --------------------------------------------------------------------
  417. TActivityTypeobject
  418. --------------------------------------------------------------------}
  419. TActivityTypeobject = Class(TGoogleBaseObject)
  420. Private
  421. Factor : TActivityTypeobjectTypeactor;
  422. Fattachments : TActivityTypeobjectTypeattachmentsArray;
  423. Fcontent : String;
  424. Fid : String;
  425. FobjectType : String;
  426. ForiginalContent : String;
  427. Fplusoners : TActivityTypeobjectTypeplusoners;
  428. Freplies : TActivityTypeobjectTypereplies;
  429. Fresharers : TActivityTypeobjectTyperesharers;
  430. Furl : String;
  431. Protected
  432. //Property setters
  433. Procedure Setactor(AIndex : Integer; AValue : TActivityTypeobjectTypeactor); virtual;
  434. Procedure Setattachments(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsArray); virtual;
  435. Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
  436. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  437. Procedure SetobjectType(AIndex : Integer; const AValue : String); virtual;
  438. Procedure SetoriginalContent(AIndex : Integer; const AValue : String); virtual;
  439. Procedure Setplusoners(AIndex : Integer; AValue : TActivityTypeobjectTypeplusoners); virtual;
  440. Procedure Setreplies(AIndex : Integer; AValue : TActivityTypeobjectTypereplies); virtual;
  441. Procedure Setresharers(AIndex : Integer; AValue : TActivityTypeobjectTyperesharers); virtual;
  442. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  443. //2.6.4. bug workaround
  444. {$IFDEF VER2_6}
  445. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  446. {$ENDIF VER2_6}
  447. Public
  448. Published
  449. Property actor : TActivityTypeobjectTypeactor Index 0 Read Factor Write Setactor;
  450. Property attachments : TActivityTypeobjectTypeattachmentsArray Index 8 Read Fattachments Write Setattachments;
  451. Property content : String Index 16 Read Fcontent Write Setcontent;
  452. Property id : String Index 24 Read Fid Write Setid;
  453. Property objectType : String Index 32 Read FobjectType Write SetobjectType;
  454. Property originalContent : String Index 40 Read ForiginalContent Write SetoriginalContent;
  455. Property plusoners : TActivityTypeobjectTypeplusoners Index 48 Read Fplusoners Write Setplusoners;
  456. Property replies : TActivityTypeobjectTypereplies Index 56 Read Freplies Write Setreplies;
  457. Property resharers : TActivityTypeobjectTyperesharers Index 64 Read Fresharers Write Setresharers;
  458. Property url : String Index 72 Read Furl Write Seturl;
  459. end;
  460. TActivityTypeobjectClass = Class of TActivityTypeobject;
  461. { --------------------------------------------------------------------
  462. TActivityTypeprovider
  463. --------------------------------------------------------------------}
  464. TActivityTypeprovider = Class(TGoogleBaseObject)
  465. Private
  466. Ftitle : String;
  467. Protected
  468. //Property setters
  469. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  470. Public
  471. Published
  472. Property title : String Index 0 Read Ftitle Write Settitle;
  473. end;
  474. TActivityTypeproviderClass = Class of TActivityTypeprovider;
  475. { --------------------------------------------------------------------
  476. TActivity
  477. --------------------------------------------------------------------}
  478. TActivity = Class(TGoogleBaseObject)
  479. Private
  480. Faccess : TAcl;
  481. Factor : TActivityTypeactor;
  482. Faddress : String;
  483. Fannotation : String;
  484. FcrosspostSource : String;
  485. Fetag : String;
  486. Fgeocode : String;
  487. Fid : String;
  488. Fkind : String;
  489. Flocation : TPlace;
  490. F_object : TActivityTypeobject;
  491. FplaceId : String;
  492. FplaceName : String;
  493. Fprovider : TActivityTypeprovider;
  494. F_published : TDatetime;
  495. Fradius : String;
  496. Ftitle : String;
  497. Fupdated : TDatetime;
  498. Furl : String;
  499. Fverb : String;
  500. Protected
  501. Class Function ExportPropertyName(Const AName : String) : string; override;
  502. //Property setters
  503. Procedure Setaccess(AIndex : Integer; AValue : TAcl); virtual;
  504. Procedure Setactor(AIndex : Integer; AValue : TActivityTypeactor); virtual;
  505. Procedure Setaddress(AIndex : Integer; const AValue : String); virtual;
  506. Procedure Setannotation(AIndex : Integer; const AValue : String); virtual;
  507. Procedure SetcrosspostSource(AIndex : Integer; const AValue : String); virtual;
  508. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  509. Procedure Setgeocode(AIndex : Integer; const AValue : String); virtual;
  510. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  511. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  512. Procedure Setlocation(AIndex : Integer; AValue : TPlace); virtual;
  513. Procedure Set_object(AIndex : Integer; AValue : TActivityTypeobject); virtual;
  514. Procedure SetplaceId(AIndex : Integer; const AValue : String); virtual;
  515. Procedure SetplaceName(AIndex : Integer; const AValue : String); virtual;
  516. Procedure Setprovider(AIndex : Integer; AValue : TActivityTypeprovider); virtual;
  517. Procedure Set_published(AIndex : Integer; AValue : TDatetime); virtual;
  518. Procedure Setradius(AIndex : Integer; const AValue : String); virtual;
  519. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  520. Procedure Setupdated(AIndex : Integer; AValue : TDatetime); virtual;
  521. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  522. Procedure Setverb(AIndex : Integer; const AValue : String); virtual;
  523. Public
  524. Published
  525. Property access : TAcl Index 0 Read Faccess Write Setaccess;
  526. Property actor : TActivityTypeactor Index 8 Read Factor Write Setactor;
  527. Property address : String Index 16 Read Faddress Write Setaddress;
  528. Property annotation : String Index 24 Read Fannotation Write Setannotation;
  529. Property crosspostSource : String Index 32 Read FcrosspostSource Write SetcrosspostSource;
  530. Property etag : String Index 40 Read Fetag Write Setetag;
  531. Property geocode : String Index 48 Read Fgeocode Write Setgeocode;
  532. Property id : String Index 56 Read Fid Write Setid;
  533. Property kind : String Index 64 Read Fkind Write Setkind;
  534. Property location : TPlace Index 72 Read Flocation Write Setlocation;
  535. Property _object : TActivityTypeobject Index 80 Read F_object Write Set_object;
  536. Property placeId : String Index 88 Read FplaceId Write SetplaceId;
  537. Property placeName : String Index 96 Read FplaceName Write SetplaceName;
  538. Property provider : TActivityTypeprovider Index 104 Read Fprovider Write Setprovider;
  539. Property _published : TDatetime Index 112 Read F_published Write Set_published;
  540. Property radius : String Index 120 Read Fradius Write Setradius;
  541. Property title : String Index 128 Read Ftitle Write Settitle;
  542. Property updated : TDatetime Index 136 Read Fupdated Write Setupdated;
  543. Property url : String Index 144 Read Furl Write Seturl;
  544. Property verb : String Index 152 Read Fverb Write Setverb;
  545. end;
  546. TActivityClass = Class of TActivity;
  547. { --------------------------------------------------------------------
  548. TActivityFeed
  549. --------------------------------------------------------------------}
  550. TActivityFeed = Class(TGoogleBaseObject)
  551. Private
  552. Fetag : String;
  553. Fid : String;
  554. Fitems : TActivityFeedTypeitemsArray;
  555. Fkind : String;
  556. FnextLink : String;
  557. FnextPageToken : String;
  558. FselfLink : String;
  559. Ftitle : String;
  560. Fupdated : TDatetime;
  561. Protected
  562. //Property setters
  563. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  564. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  565. Procedure Setitems(AIndex : Integer; AValue : TActivityFeedTypeitemsArray); virtual;
  566. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  567. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  568. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  569. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  570. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  571. Procedure Setupdated(AIndex : Integer; AValue : TDatetime); virtual;
  572. //2.6.4. bug workaround
  573. {$IFDEF VER2_6}
  574. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  575. {$ENDIF VER2_6}
  576. Public
  577. Published
  578. Property etag : String Index 0 Read Fetag Write Setetag;
  579. Property id : String Index 8 Read Fid Write Setid;
  580. Property items : TActivityFeedTypeitemsArray Index 16 Read Fitems Write Setitems;
  581. Property kind : String Index 24 Read Fkind Write Setkind;
  582. Property nextLink : String Index 32 Read FnextLink Write SetnextLink;
  583. Property nextPageToken : String Index 40 Read FnextPageToken Write SetnextPageToken;
  584. Property selfLink : String Index 48 Read FselfLink Write SetselfLink;
  585. Property title : String Index 56 Read Ftitle Write Settitle;
  586. Property updated : TDatetime Index 64 Read Fupdated Write Setupdated;
  587. end;
  588. TActivityFeedClass = Class of TActivityFeed;
  589. { --------------------------------------------------------------------
  590. TCommentTypeactorTypeimage
  591. --------------------------------------------------------------------}
  592. TCommentTypeactorTypeimage = Class(TGoogleBaseObject)
  593. Private
  594. Furl : String;
  595. Protected
  596. //Property setters
  597. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  598. Public
  599. Published
  600. Property url : String Index 0 Read Furl Write Seturl;
  601. end;
  602. TCommentTypeactorTypeimageClass = Class of TCommentTypeactorTypeimage;
  603. { --------------------------------------------------------------------
  604. TCommentTypeactor
  605. --------------------------------------------------------------------}
  606. TCommentTypeactor = Class(TGoogleBaseObject)
  607. Private
  608. FdisplayName : String;
  609. Fid : String;
  610. Fimage : TCommentTypeactorTypeimage;
  611. Furl : String;
  612. Protected
  613. //Property setters
  614. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  615. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  616. Procedure Setimage(AIndex : Integer; AValue : TCommentTypeactorTypeimage); virtual;
  617. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  618. Public
  619. Published
  620. Property displayName : String Index 0 Read FdisplayName Write SetdisplayName;
  621. Property id : String Index 8 Read Fid Write Setid;
  622. Property image : TCommentTypeactorTypeimage Index 16 Read Fimage Write Setimage;
  623. Property url : String Index 24 Read Furl Write Seturl;
  624. end;
  625. TCommentTypeactorClass = Class of TCommentTypeactor;
  626. { --------------------------------------------------------------------
  627. TCommentTypeinReplyToItem
  628. --------------------------------------------------------------------}
  629. TCommentTypeinReplyToItem = Class(TGoogleBaseObject)
  630. Private
  631. Fid : String;
  632. Furl : String;
  633. Protected
  634. //Property setters
  635. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  636. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  637. Public
  638. Published
  639. Property id : String Index 0 Read Fid Write Setid;
  640. Property url : String Index 8 Read Furl Write Seturl;
  641. end;
  642. TCommentTypeinReplyToItemClass = Class of TCommentTypeinReplyToItem;
  643. { --------------------------------------------------------------------
  644. TCommentTypeobject
  645. --------------------------------------------------------------------}
  646. TCommentTypeobject = Class(TGoogleBaseObject)
  647. Private
  648. Fcontent : String;
  649. FobjectType : String;
  650. ForiginalContent : String;
  651. Protected
  652. //Property setters
  653. Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
  654. Procedure SetobjectType(AIndex : Integer; const AValue : String); virtual;
  655. Procedure SetoriginalContent(AIndex : Integer; const AValue : String); virtual;
  656. Public
  657. Published
  658. Property content : String Index 0 Read Fcontent Write Setcontent;
  659. Property objectType : String Index 8 Read FobjectType Write SetobjectType;
  660. Property originalContent : String Index 16 Read ForiginalContent Write SetoriginalContent;
  661. end;
  662. TCommentTypeobjectClass = Class of TCommentTypeobject;
  663. { --------------------------------------------------------------------
  664. TCommentTypeplusoners
  665. --------------------------------------------------------------------}
  666. TCommentTypeplusoners = Class(TGoogleBaseObject)
  667. Private
  668. FtotalItems : integer;
  669. Protected
  670. //Property setters
  671. Procedure SettotalItems(AIndex : Integer; AValue : integer); virtual;
  672. Public
  673. Published
  674. Property totalItems : integer Index 0 Read FtotalItems Write SettotalItems;
  675. end;
  676. TCommentTypeplusonersClass = Class of TCommentTypeplusoners;
  677. { --------------------------------------------------------------------
  678. TComment
  679. --------------------------------------------------------------------}
  680. TComment = Class(TGoogleBaseObject)
  681. Private
  682. Factor : TCommentTypeactor;
  683. Fetag : String;
  684. Fid : String;
  685. FinReplyTo : TCommentTypeinReplyToArray;
  686. Fkind : String;
  687. F_object : TCommentTypeobject;
  688. Fplusoners : TCommentTypeplusoners;
  689. F_published : TDatetime;
  690. FselfLink : String;
  691. Fupdated : TDatetime;
  692. Fverb : String;
  693. Protected
  694. Class Function ExportPropertyName(Const AName : String) : string; override;
  695. //Property setters
  696. Procedure Setactor(AIndex : Integer; AValue : TCommentTypeactor); virtual;
  697. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  698. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  699. Procedure SetinReplyTo(AIndex : Integer; AValue : TCommentTypeinReplyToArray); virtual;
  700. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  701. Procedure Set_object(AIndex : Integer; AValue : TCommentTypeobject); virtual;
  702. Procedure Setplusoners(AIndex : Integer; AValue : TCommentTypeplusoners); virtual;
  703. Procedure Set_published(AIndex : Integer; AValue : TDatetime); virtual;
  704. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  705. Procedure Setupdated(AIndex : Integer; AValue : TDatetime); virtual;
  706. Procedure Setverb(AIndex : Integer; const AValue : String); virtual;
  707. //2.6.4. bug workaround
  708. {$IFDEF VER2_6}
  709. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  710. {$ENDIF VER2_6}
  711. Public
  712. Published
  713. Property actor : TCommentTypeactor Index 0 Read Factor Write Setactor;
  714. Property etag : String Index 8 Read Fetag Write Setetag;
  715. Property id : String Index 16 Read Fid Write Setid;
  716. Property inReplyTo : TCommentTypeinReplyToArray Index 24 Read FinReplyTo Write SetinReplyTo;
  717. Property kind : String Index 32 Read Fkind Write Setkind;
  718. Property _object : TCommentTypeobject Index 40 Read F_object Write Set_object;
  719. Property plusoners : TCommentTypeplusoners Index 48 Read Fplusoners Write Setplusoners;
  720. Property _published : TDatetime Index 56 Read F_published Write Set_published;
  721. Property selfLink : String Index 64 Read FselfLink Write SetselfLink;
  722. Property updated : TDatetime Index 72 Read Fupdated Write Setupdated;
  723. Property verb : String Index 80 Read Fverb Write Setverb;
  724. end;
  725. TCommentClass = Class of TComment;
  726. { --------------------------------------------------------------------
  727. TCommentFeed
  728. --------------------------------------------------------------------}
  729. TCommentFeed = Class(TGoogleBaseObject)
  730. Private
  731. Fetag : String;
  732. Fid : String;
  733. Fitems : TCommentFeedTypeitemsArray;
  734. Fkind : String;
  735. FnextLink : String;
  736. FnextPageToken : String;
  737. Ftitle : String;
  738. Fupdated : TDatetime;
  739. Protected
  740. //Property setters
  741. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  742. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  743. Procedure Setitems(AIndex : Integer; AValue : TCommentFeedTypeitemsArray); virtual;
  744. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  745. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  746. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  747. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  748. Procedure Setupdated(AIndex : Integer; AValue : TDatetime); virtual;
  749. //2.6.4. bug workaround
  750. {$IFDEF VER2_6}
  751. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  752. {$ENDIF VER2_6}
  753. Public
  754. Published
  755. Property etag : String Index 0 Read Fetag Write Setetag;
  756. Property id : String Index 8 Read Fid Write Setid;
  757. Property items : TCommentFeedTypeitemsArray Index 16 Read Fitems Write Setitems;
  758. Property kind : String Index 24 Read Fkind Write Setkind;
  759. Property nextLink : String Index 32 Read FnextLink Write SetnextLink;
  760. Property nextPageToken : String Index 40 Read FnextPageToken Write SetnextPageToken;
  761. Property title : String Index 48 Read Ftitle Write Settitle;
  762. Property updated : TDatetime Index 56 Read Fupdated Write Setupdated;
  763. end;
  764. TCommentFeedClass = Class of TCommentFeed;
  765. { --------------------------------------------------------------------
  766. TItemScope
  767. --------------------------------------------------------------------}
  768. TItemScope = Class(TGoogleBaseObject)
  769. Private
  770. Fabout : TItemScope;
  771. FadditionalName : TStringArray;
  772. Faddress : TItemScope;
  773. FaddressCountry : String;
  774. FaddressLocality : String;
  775. FaddressRegion : String;
  776. Fassociated_media : TItemScopeTypeassociated_mediaArray;
  777. FattendeeCount : integer;
  778. Fattendees : TItemScopeTypeattendeesArray;
  779. Faudio : TItemScope;
  780. Fauthor : TItemScopeTypeauthorArray;
  781. FbestRating : String;
  782. FbirthDate : String;
  783. FbyArtist : TItemScope;
  784. Fcaption : String;
  785. FcontentSize : String;
  786. FcontentUrl : String;
  787. Fcontributor : TItemScopeTypecontributorArray;
  788. FdateCreated : String;
  789. FdateModified : String;
  790. FdatePublished : String;
  791. Fdescription : String;
  792. Fduration : String;
  793. FembedUrl : String;
  794. FendDate : String;
  795. FfamilyName : String;
  796. Fgender : String;
  797. Fgeo : TItemScope;
  798. FgivenName : String;
  799. Fheight : String;
  800. Fid : String;
  801. Fimage : String;
  802. FinAlbum : TItemScope;
  803. Fkind : String;
  804. Flatitude : double;
  805. Flocation : TItemScope;
  806. Flongitude : double;
  807. Fname : String;
  808. FpartOfTVSeries : TItemScope;
  809. Fperformers : TItemScopeTypeperformersArray;
  810. FplayerType : String;
  811. FpostOfficeBoxNumber : String;
  812. FpostalCode : String;
  813. FratingValue : String;
  814. FreviewRating : TItemScope;
  815. FstartDate : String;
  816. FstreetAddress : String;
  817. Ftext : String;
  818. Fthumbnail : TItemScope;
  819. FthumbnailUrl : String;
  820. FtickerSymbol : String;
  821. F_type : String;
  822. Furl : String;
  823. Fwidth : String;
  824. FworstRating : String;
  825. Protected
  826. Class Function ExportPropertyName(Const AName : String) : string; override;
  827. //Property setters
  828. Procedure Setabout(AIndex : Integer; AValue : TItemScope); virtual;
  829. Procedure SetadditionalName(AIndex : Integer; AValue : TStringArray); virtual;
  830. Procedure Setaddress(AIndex : Integer; AValue : TItemScope); virtual;
  831. Procedure SetaddressCountry(AIndex : Integer; const AValue : String); virtual;
  832. Procedure SetaddressLocality(AIndex : Integer; const AValue : String); virtual;
  833. Procedure SetaddressRegion(AIndex : Integer; const AValue : String); virtual;
  834. Procedure Setassociated_media(AIndex : Integer; AValue : TItemScopeTypeassociated_mediaArray); virtual;
  835. Procedure SetattendeeCount(AIndex : Integer; AValue : integer); virtual;
  836. Procedure Setattendees(AIndex : Integer; AValue : TItemScopeTypeattendeesArray); virtual;
  837. Procedure Setaudio(AIndex : Integer; AValue : TItemScope); virtual;
  838. Procedure Setauthor(AIndex : Integer; AValue : TItemScopeTypeauthorArray); virtual;
  839. Procedure SetbestRating(AIndex : Integer; const AValue : String); virtual;
  840. Procedure SetbirthDate(AIndex : Integer; const AValue : String); virtual;
  841. Procedure SetbyArtist(AIndex : Integer; AValue : TItemScope); virtual;
  842. Procedure Setcaption(AIndex : Integer; const AValue : String); virtual;
  843. Procedure SetcontentSize(AIndex : Integer; const AValue : String); virtual;
  844. Procedure SetcontentUrl(AIndex : Integer; const AValue : String); virtual;
  845. Procedure Setcontributor(AIndex : Integer; AValue : TItemScopeTypecontributorArray); virtual;
  846. Procedure SetdateCreated(AIndex : Integer; const AValue : String); virtual;
  847. Procedure SetdateModified(AIndex : Integer; const AValue : String); virtual;
  848. Procedure SetdatePublished(AIndex : Integer; const AValue : String); virtual;
  849. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  850. Procedure Setduration(AIndex : Integer; const AValue : String); virtual;
  851. Procedure SetembedUrl(AIndex : Integer; const AValue : String); virtual;
  852. Procedure SetendDate(AIndex : Integer; const AValue : String); virtual;
  853. Procedure SetfamilyName(AIndex : Integer; const AValue : String); virtual;
  854. Procedure Setgender(AIndex : Integer; const AValue : String); virtual;
  855. Procedure Setgeo(AIndex : Integer; AValue : TItemScope); virtual;
  856. Procedure SetgivenName(AIndex : Integer; const AValue : String); virtual;
  857. Procedure Setheight(AIndex : Integer; const AValue : String); virtual;
  858. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  859. Procedure Setimage(AIndex : Integer; const AValue : String); virtual;
  860. Procedure SetinAlbum(AIndex : Integer; AValue : TItemScope); virtual;
  861. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  862. Procedure Setlatitude(AIndex : Integer; AValue : double); virtual;
  863. Procedure Setlocation(AIndex : Integer; AValue : TItemScope); virtual;
  864. Procedure Setlongitude(AIndex : Integer; AValue : double); virtual;
  865. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  866. Procedure SetpartOfTVSeries(AIndex : Integer; AValue : TItemScope); virtual;
  867. Procedure Setperformers(AIndex : Integer; AValue : TItemScopeTypeperformersArray); virtual;
  868. Procedure SetplayerType(AIndex : Integer; const AValue : String); virtual;
  869. Procedure SetpostOfficeBoxNumber(AIndex : Integer; const AValue : String); virtual;
  870. Procedure SetpostalCode(AIndex : Integer; const AValue : String); virtual;
  871. Procedure SetratingValue(AIndex : Integer; const AValue : String); virtual;
  872. Procedure SetreviewRating(AIndex : Integer; AValue : TItemScope); virtual;
  873. Procedure SetstartDate(AIndex : Integer; const AValue : String); virtual;
  874. Procedure SetstreetAddress(AIndex : Integer; const AValue : String); virtual;
  875. Procedure Settext(AIndex : Integer; const AValue : String); virtual;
  876. Procedure Setthumbnail(AIndex : Integer; AValue : TItemScope); virtual;
  877. Procedure SetthumbnailUrl(AIndex : Integer; const AValue : String); virtual;
  878. Procedure SettickerSymbol(AIndex : Integer; const AValue : String); virtual;
  879. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  880. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  881. Procedure Setwidth(AIndex : Integer; const AValue : String); virtual;
  882. Procedure SetworstRating(AIndex : Integer; const AValue : String); virtual;
  883. //2.6.4. bug workaround
  884. {$IFDEF VER2_6}
  885. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  886. {$ENDIF VER2_6}
  887. Public
  888. Published
  889. Property about : TItemScope Index 0 Read Fabout Write Setabout;
  890. Property additionalName : TStringArray Index 8 Read FadditionalName Write SetadditionalName;
  891. Property address : TItemScope Index 16 Read Faddress Write Setaddress;
  892. Property addressCountry : String Index 24 Read FaddressCountry Write SetaddressCountry;
  893. Property addressLocality : String Index 32 Read FaddressLocality Write SetaddressLocality;
  894. Property addressRegion : String Index 40 Read FaddressRegion Write SetaddressRegion;
  895. Property associated_media : TItemScopeTypeassociated_mediaArray Index 48 Read Fassociated_media Write Setassociated_media;
  896. Property attendeeCount : integer Index 56 Read FattendeeCount Write SetattendeeCount;
  897. Property attendees : TItemScopeTypeattendeesArray Index 64 Read Fattendees Write Setattendees;
  898. Property audio : TItemScope Index 72 Read Faudio Write Setaudio;
  899. Property author : TItemScopeTypeauthorArray Index 80 Read Fauthor Write Setauthor;
  900. Property bestRating : String Index 88 Read FbestRating Write SetbestRating;
  901. Property birthDate : String Index 96 Read FbirthDate Write SetbirthDate;
  902. Property byArtist : TItemScope Index 104 Read FbyArtist Write SetbyArtist;
  903. Property caption : String Index 112 Read Fcaption Write Setcaption;
  904. Property contentSize : String Index 120 Read FcontentSize Write SetcontentSize;
  905. Property contentUrl : String Index 128 Read FcontentUrl Write SetcontentUrl;
  906. Property contributor : TItemScopeTypecontributorArray Index 136 Read Fcontributor Write Setcontributor;
  907. Property dateCreated : String Index 144 Read FdateCreated Write SetdateCreated;
  908. Property dateModified : String Index 152 Read FdateModified Write SetdateModified;
  909. Property datePublished : String Index 160 Read FdatePublished Write SetdatePublished;
  910. Property description : String Index 168 Read Fdescription Write Setdescription;
  911. Property duration : String Index 176 Read Fduration Write Setduration;
  912. Property embedUrl : String Index 184 Read FembedUrl Write SetembedUrl;
  913. Property endDate : String Index 192 Read FendDate Write SetendDate;
  914. Property familyName : String Index 200 Read FfamilyName Write SetfamilyName;
  915. Property gender : String Index 208 Read Fgender Write Setgender;
  916. Property geo : TItemScope Index 216 Read Fgeo Write Setgeo;
  917. Property givenName : String Index 224 Read FgivenName Write SetgivenName;
  918. Property height : String Index 232 Read Fheight Write Setheight;
  919. Property id : String Index 240 Read Fid Write Setid;
  920. Property image : String Index 248 Read Fimage Write Setimage;
  921. Property inAlbum : TItemScope Index 256 Read FinAlbum Write SetinAlbum;
  922. Property kind : String Index 264 Read Fkind Write Setkind;
  923. Property latitude : double Index 272 Read Flatitude Write Setlatitude;
  924. Property location : TItemScope Index 280 Read Flocation Write Setlocation;
  925. Property longitude : double Index 288 Read Flongitude Write Setlongitude;
  926. Property name : String Index 296 Read Fname Write Setname;
  927. Property partOfTVSeries : TItemScope Index 304 Read FpartOfTVSeries Write SetpartOfTVSeries;
  928. Property performers : TItemScopeTypeperformersArray Index 312 Read Fperformers Write Setperformers;
  929. Property playerType : String Index 320 Read FplayerType Write SetplayerType;
  930. Property postOfficeBoxNumber : String Index 328 Read FpostOfficeBoxNumber Write SetpostOfficeBoxNumber;
  931. Property postalCode : String Index 336 Read FpostalCode Write SetpostalCode;
  932. Property ratingValue : String Index 344 Read FratingValue Write SetratingValue;
  933. Property reviewRating : TItemScope Index 352 Read FreviewRating Write SetreviewRating;
  934. Property startDate : String Index 360 Read FstartDate Write SetstartDate;
  935. Property streetAddress : String Index 368 Read FstreetAddress Write SetstreetAddress;
  936. Property text : String Index 376 Read Ftext Write Settext;
  937. Property thumbnail : TItemScope Index 384 Read Fthumbnail Write Setthumbnail;
  938. Property thumbnailUrl : String Index 392 Read FthumbnailUrl Write SetthumbnailUrl;
  939. Property tickerSymbol : String Index 400 Read FtickerSymbol Write SettickerSymbol;
  940. Property _type : String Index 408 Read F_type Write Set_type;
  941. Property url : String Index 416 Read Furl Write Seturl;
  942. Property width : String Index 424 Read Fwidth Write Setwidth;
  943. Property worstRating : String Index 432 Read FworstRating Write SetworstRating;
  944. end;
  945. TItemScopeClass = Class of TItemScope;
  946. { --------------------------------------------------------------------
  947. TMoment
  948. --------------------------------------------------------------------}
  949. TMoment = Class(TGoogleBaseObject)
  950. Private
  951. Fid : String;
  952. Fkind : String;
  953. F_object : TItemScope;
  954. Fresult : TItemScope;
  955. FstartDate : TDatetime;
  956. Ftarget : TItemScope;
  957. F_type : String;
  958. Protected
  959. Class Function ExportPropertyName(Const AName : String) : string; override;
  960. //Property setters
  961. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  962. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  963. Procedure Set_object(AIndex : Integer; AValue : TItemScope); virtual;
  964. Procedure Setresult(AIndex : Integer; AValue : TItemScope); virtual;
  965. Procedure SetstartDate(AIndex : Integer; AValue : TDatetime); virtual;
  966. Procedure Settarget(AIndex : Integer; AValue : TItemScope); virtual;
  967. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  968. Public
  969. Published
  970. Property id : String Index 0 Read Fid Write Setid;
  971. Property kind : String Index 8 Read Fkind Write Setkind;
  972. Property _object : TItemScope Index 16 Read F_object Write Set_object;
  973. Property result : TItemScope Index 24 Read Fresult Write Setresult;
  974. Property startDate : TDatetime Index 32 Read FstartDate Write SetstartDate;
  975. Property target : TItemScope Index 40 Read Ftarget Write Settarget;
  976. Property _type : String Index 48 Read F_type Write Set_type;
  977. end;
  978. TMomentClass = Class of TMoment;
  979. { --------------------------------------------------------------------
  980. TMomentsFeed
  981. --------------------------------------------------------------------}
  982. TMomentsFeed = Class(TGoogleBaseObject)
  983. Private
  984. Fetag : String;
  985. Fitems : TMomentsFeedTypeitemsArray;
  986. Fkind : String;
  987. FnextLink : String;
  988. FnextPageToken : String;
  989. FselfLink : String;
  990. Ftitle : String;
  991. Fupdated : TDatetime;
  992. Protected
  993. //Property setters
  994. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  995. Procedure Setitems(AIndex : Integer; AValue : TMomentsFeedTypeitemsArray); virtual;
  996. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  997. Procedure SetnextLink(AIndex : Integer; const AValue : String); virtual;
  998. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  999. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1000. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1001. Procedure Setupdated(AIndex : Integer; AValue : TDatetime); virtual;
  1002. //2.6.4. bug workaround
  1003. {$IFDEF VER2_6}
  1004. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1005. {$ENDIF VER2_6}
  1006. Public
  1007. Published
  1008. Property etag : String Index 0 Read Fetag Write Setetag;
  1009. Property items : TMomentsFeedTypeitemsArray Index 8 Read Fitems Write Setitems;
  1010. Property kind : String Index 16 Read Fkind Write Setkind;
  1011. Property nextLink : String Index 24 Read FnextLink Write SetnextLink;
  1012. Property nextPageToken : String Index 32 Read FnextPageToken Write SetnextPageToken;
  1013. Property selfLink : String Index 40 Read FselfLink Write SetselfLink;
  1014. Property title : String Index 48 Read Ftitle Write Settitle;
  1015. Property updated : TDatetime Index 56 Read Fupdated Write Setupdated;
  1016. end;
  1017. TMomentsFeedClass = Class of TMomentsFeed;
  1018. { --------------------------------------------------------------------
  1019. TPeopleFeed
  1020. --------------------------------------------------------------------}
  1021. TPeopleFeed = Class(TGoogleBaseObject)
  1022. Private
  1023. Fetag : String;
  1024. Fitems : TPeopleFeedTypeitemsArray;
  1025. Fkind : String;
  1026. FnextPageToken : String;
  1027. FselfLink : String;
  1028. Ftitle : String;
  1029. FtotalItems : integer;
  1030. Protected
  1031. //Property setters
  1032. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1033. Procedure Setitems(AIndex : Integer; AValue : TPeopleFeedTypeitemsArray); virtual;
  1034. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1035. Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
  1036. Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
  1037. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1038. Procedure SettotalItems(AIndex : Integer; AValue : integer); virtual;
  1039. //2.6.4. bug workaround
  1040. {$IFDEF VER2_6}
  1041. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1042. {$ENDIF VER2_6}
  1043. Public
  1044. Published
  1045. Property etag : String Index 0 Read Fetag Write Setetag;
  1046. Property items : TPeopleFeedTypeitemsArray Index 8 Read Fitems Write Setitems;
  1047. Property kind : String Index 16 Read Fkind Write Setkind;
  1048. Property nextPageToken : String Index 24 Read FnextPageToken Write SetnextPageToken;
  1049. Property selfLink : String Index 32 Read FselfLink Write SetselfLink;
  1050. Property title : String Index 40 Read Ftitle Write Settitle;
  1051. Property totalItems : integer Index 48 Read FtotalItems Write SettotalItems;
  1052. end;
  1053. TPeopleFeedClass = Class of TPeopleFeed;
  1054. { --------------------------------------------------------------------
  1055. TPersonTypeageRange
  1056. --------------------------------------------------------------------}
  1057. TPersonTypeageRange = Class(TGoogleBaseObject)
  1058. Private
  1059. Fmax : integer;
  1060. Fmin : integer;
  1061. Protected
  1062. //Property setters
  1063. Procedure Setmax(AIndex : Integer; AValue : integer); virtual;
  1064. Procedure Setmin(AIndex : Integer; AValue : integer); virtual;
  1065. Public
  1066. Published
  1067. Property max : integer Index 0 Read Fmax Write Setmax;
  1068. Property min : integer Index 8 Read Fmin Write Setmin;
  1069. end;
  1070. TPersonTypeageRangeClass = Class of TPersonTypeageRange;
  1071. { --------------------------------------------------------------------
  1072. TPersonTypecoverTypecoverInfo
  1073. --------------------------------------------------------------------}
  1074. TPersonTypecoverTypecoverInfo = Class(TGoogleBaseObject)
  1075. Private
  1076. FleftImageOffset : integer;
  1077. FtopImageOffset : integer;
  1078. Protected
  1079. //Property setters
  1080. Procedure SetleftImageOffset(AIndex : Integer; AValue : integer); virtual;
  1081. Procedure SettopImageOffset(AIndex : Integer; AValue : integer); virtual;
  1082. Public
  1083. Published
  1084. Property leftImageOffset : integer Index 0 Read FleftImageOffset Write SetleftImageOffset;
  1085. Property topImageOffset : integer Index 8 Read FtopImageOffset Write SettopImageOffset;
  1086. end;
  1087. TPersonTypecoverTypecoverInfoClass = Class of TPersonTypecoverTypecoverInfo;
  1088. { --------------------------------------------------------------------
  1089. TPersonTypecoverTypecoverPhoto
  1090. --------------------------------------------------------------------}
  1091. TPersonTypecoverTypecoverPhoto = Class(TGoogleBaseObject)
  1092. Private
  1093. Fheight : integer;
  1094. Furl : String;
  1095. Fwidth : integer;
  1096. Protected
  1097. //Property setters
  1098. Procedure Setheight(AIndex : Integer; AValue : integer); virtual;
  1099. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  1100. Procedure Setwidth(AIndex : Integer; AValue : integer); virtual;
  1101. Public
  1102. Published
  1103. Property height : integer Index 0 Read Fheight Write Setheight;
  1104. Property url : String Index 8 Read Furl Write Seturl;
  1105. Property width : integer Index 16 Read Fwidth Write Setwidth;
  1106. end;
  1107. TPersonTypecoverTypecoverPhotoClass = Class of TPersonTypecoverTypecoverPhoto;
  1108. { --------------------------------------------------------------------
  1109. TPersonTypecover
  1110. --------------------------------------------------------------------}
  1111. TPersonTypecover = Class(TGoogleBaseObject)
  1112. Private
  1113. FcoverInfo : TPersonTypecoverTypecoverInfo;
  1114. FcoverPhoto : TPersonTypecoverTypecoverPhoto;
  1115. Flayout : String;
  1116. Protected
  1117. //Property setters
  1118. Procedure SetcoverInfo(AIndex : Integer; AValue : TPersonTypecoverTypecoverInfo); virtual;
  1119. Procedure SetcoverPhoto(AIndex : Integer; AValue : TPersonTypecoverTypecoverPhoto); virtual;
  1120. Procedure Setlayout(AIndex : Integer; const AValue : String); virtual;
  1121. Public
  1122. Published
  1123. Property coverInfo : TPersonTypecoverTypecoverInfo Index 0 Read FcoverInfo Write SetcoverInfo;
  1124. Property coverPhoto : TPersonTypecoverTypecoverPhoto Index 8 Read FcoverPhoto Write SetcoverPhoto;
  1125. Property layout : String Index 16 Read Flayout Write Setlayout;
  1126. end;
  1127. TPersonTypecoverClass = Class of TPersonTypecover;
  1128. { --------------------------------------------------------------------
  1129. TPersonTypeemailsItem
  1130. --------------------------------------------------------------------}
  1131. TPersonTypeemailsItem = Class(TGoogleBaseObject)
  1132. Private
  1133. F_type : String;
  1134. Fvalue : String;
  1135. Protected
  1136. Class Function ExportPropertyName(Const AName : String) : string; override;
  1137. //Property setters
  1138. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1139. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  1140. Public
  1141. Published
  1142. Property _type : String Index 0 Read F_type Write Set_type;
  1143. Property value : String Index 8 Read Fvalue Write Setvalue;
  1144. end;
  1145. TPersonTypeemailsItemClass = Class of TPersonTypeemailsItem;
  1146. { --------------------------------------------------------------------
  1147. TPersonTypeimage
  1148. --------------------------------------------------------------------}
  1149. TPersonTypeimage = Class(TGoogleBaseObject)
  1150. Private
  1151. FisDefault : boolean;
  1152. Furl : String;
  1153. Protected
  1154. //Property setters
  1155. Procedure SetisDefault(AIndex : Integer; AValue : boolean); virtual;
  1156. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  1157. Public
  1158. Published
  1159. Property isDefault : boolean Index 0 Read FisDefault Write SetisDefault;
  1160. Property url : String Index 8 Read Furl Write Seturl;
  1161. end;
  1162. TPersonTypeimageClass = Class of TPersonTypeimage;
  1163. { --------------------------------------------------------------------
  1164. TPersonTypename
  1165. --------------------------------------------------------------------}
  1166. TPersonTypename = Class(TGoogleBaseObject)
  1167. Private
  1168. FfamilyName : String;
  1169. Fformatted : String;
  1170. FgivenName : String;
  1171. FhonorificPrefix : String;
  1172. FhonorificSuffix : String;
  1173. FmiddleName : String;
  1174. Protected
  1175. //Property setters
  1176. Procedure SetfamilyName(AIndex : Integer; const AValue : String); virtual;
  1177. Procedure Setformatted(AIndex : Integer; const AValue : String); virtual;
  1178. Procedure SetgivenName(AIndex : Integer; const AValue : String); virtual;
  1179. Procedure SethonorificPrefix(AIndex : Integer; const AValue : String); virtual;
  1180. Procedure SethonorificSuffix(AIndex : Integer; const AValue : String); virtual;
  1181. Procedure SetmiddleName(AIndex : Integer; const AValue : String); virtual;
  1182. Public
  1183. Published
  1184. Property familyName : String Index 0 Read FfamilyName Write SetfamilyName;
  1185. Property formatted : String Index 8 Read Fformatted Write Setformatted;
  1186. Property givenName : String Index 16 Read FgivenName Write SetgivenName;
  1187. Property honorificPrefix : String Index 24 Read FhonorificPrefix Write SethonorificPrefix;
  1188. Property honorificSuffix : String Index 32 Read FhonorificSuffix Write SethonorificSuffix;
  1189. Property middleName : String Index 40 Read FmiddleName Write SetmiddleName;
  1190. end;
  1191. TPersonTypenameClass = Class of TPersonTypename;
  1192. { --------------------------------------------------------------------
  1193. TPersonTypeorganizationsItem
  1194. --------------------------------------------------------------------}
  1195. TPersonTypeorganizationsItem = Class(TGoogleBaseObject)
  1196. Private
  1197. Fdepartment : String;
  1198. Fdescription : String;
  1199. FendDate : String;
  1200. Flocation : String;
  1201. Fname : String;
  1202. Fprimary : boolean;
  1203. FstartDate : String;
  1204. Ftitle : String;
  1205. F_type : String;
  1206. Protected
  1207. Class Function ExportPropertyName(Const AName : String) : string; override;
  1208. //Property setters
  1209. Procedure Setdepartment(AIndex : Integer; const AValue : String); virtual;
  1210. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1211. Procedure SetendDate(AIndex : Integer; const AValue : String); virtual;
  1212. Procedure Setlocation(AIndex : Integer; const AValue : String); virtual;
  1213. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1214. Procedure Setprimary(AIndex : Integer; AValue : boolean); virtual;
  1215. Procedure SetstartDate(AIndex : Integer; const AValue : String); virtual;
  1216. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1217. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1218. Public
  1219. Published
  1220. Property department : String Index 0 Read Fdepartment Write Setdepartment;
  1221. Property description : String Index 8 Read Fdescription Write Setdescription;
  1222. Property endDate : String Index 16 Read FendDate Write SetendDate;
  1223. Property location : String Index 24 Read Flocation Write Setlocation;
  1224. Property name : String Index 32 Read Fname Write Setname;
  1225. Property primary : boolean Index 40 Read Fprimary Write Setprimary;
  1226. Property startDate : String Index 48 Read FstartDate Write SetstartDate;
  1227. Property title : String Index 56 Read Ftitle Write Settitle;
  1228. Property _type : String Index 64 Read F_type Write Set_type;
  1229. end;
  1230. TPersonTypeorganizationsItemClass = Class of TPersonTypeorganizationsItem;
  1231. { --------------------------------------------------------------------
  1232. TPersonTypeplacesLivedItem
  1233. --------------------------------------------------------------------}
  1234. TPersonTypeplacesLivedItem = Class(TGoogleBaseObject)
  1235. Private
  1236. Fprimary : boolean;
  1237. Fvalue : String;
  1238. Protected
  1239. //Property setters
  1240. Procedure Setprimary(AIndex : Integer; AValue : boolean); virtual;
  1241. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  1242. Public
  1243. Published
  1244. Property primary : boolean Index 0 Read Fprimary Write Setprimary;
  1245. Property value : String Index 8 Read Fvalue Write Setvalue;
  1246. end;
  1247. TPersonTypeplacesLivedItemClass = Class of TPersonTypeplacesLivedItem;
  1248. { --------------------------------------------------------------------
  1249. TPersonTypeurlsItem
  1250. --------------------------------------------------------------------}
  1251. TPersonTypeurlsItem = Class(TGoogleBaseObject)
  1252. Private
  1253. F_label : String;
  1254. F_type : String;
  1255. Fvalue : String;
  1256. Protected
  1257. Class Function ExportPropertyName(Const AName : String) : string; override;
  1258. //Property setters
  1259. Procedure Set_label(AIndex : Integer; const AValue : String); virtual;
  1260. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1261. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  1262. Public
  1263. Published
  1264. Property _label : String Index 0 Read F_label Write Set_label;
  1265. Property _type : String Index 8 Read F_type Write Set_type;
  1266. Property value : String Index 16 Read Fvalue Write Setvalue;
  1267. end;
  1268. TPersonTypeurlsItemClass = Class of TPersonTypeurlsItem;
  1269. { --------------------------------------------------------------------
  1270. TPerson
  1271. --------------------------------------------------------------------}
  1272. TPerson = Class(TGoogleBaseObject)
  1273. Private
  1274. FaboutMe : String;
  1275. FageRange : TPersonTypeageRange;
  1276. Fbirthday : String;
  1277. FbraggingRights : String;
  1278. FcircledByCount : integer;
  1279. Fcover : TPersonTypecover;
  1280. FcurrentLocation : String;
  1281. FdisplayName : String;
  1282. Fdomain : String;
  1283. Femails : TPersonTypeemailsArray;
  1284. Fetag : String;
  1285. Fgender : String;
  1286. Fid : String;
  1287. Fimage : TPersonTypeimage;
  1288. FisPlusUser : boolean;
  1289. Fkind : String;
  1290. Flanguage : String;
  1291. Fname : TPersonTypename;
  1292. Fnickname : String;
  1293. FobjectType : String;
  1294. Foccupation : String;
  1295. Forganizations : TPersonTypeorganizationsArray;
  1296. FplacesLived : TPersonTypeplacesLivedArray;
  1297. FplusOneCount : integer;
  1298. FrelationshipStatus : String;
  1299. Fskills : String;
  1300. Ftagline : String;
  1301. Furl : String;
  1302. Furls : TPersonTypeurlsArray;
  1303. Fverified : boolean;
  1304. Protected
  1305. //Property setters
  1306. Procedure SetaboutMe(AIndex : Integer; const AValue : String); virtual;
  1307. Procedure SetageRange(AIndex : Integer; AValue : TPersonTypeageRange); virtual;
  1308. Procedure Setbirthday(AIndex : Integer; const AValue : String); virtual;
  1309. Procedure SetbraggingRights(AIndex : Integer; const AValue : String); virtual;
  1310. Procedure SetcircledByCount(AIndex : Integer; AValue : integer); virtual;
  1311. Procedure Setcover(AIndex : Integer; AValue : TPersonTypecover); virtual;
  1312. Procedure SetcurrentLocation(AIndex : Integer; const AValue : String); virtual;
  1313. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  1314. Procedure Setdomain(AIndex : Integer; const AValue : String); virtual;
  1315. Procedure Setemails(AIndex : Integer; AValue : TPersonTypeemailsArray); virtual;
  1316. Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
  1317. Procedure Setgender(AIndex : Integer; const AValue : String); virtual;
  1318. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1319. Procedure Setimage(AIndex : Integer; AValue : TPersonTypeimage); virtual;
  1320. Procedure SetisPlusUser(AIndex : Integer; AValue : boolean); virtual;
  1321. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1322. Procedure Setlanguage(AIndex : Integer; const AValue : String); virtual;
  1323. Procedure Setname(AIndex : Integer; AValue : TPersonTypename); virtual;
  1324. Procedure Setnickname(AIndex : Integer; const AValue : String); virtual;
  1325. Procedure SetobjectType(AIndex : Integer; const AValue : String); virtual;
  1326. Procedure Setoccupation(AIndex : Integer; const AValue : String); virtual;
  1327. Procedure Setorganizations(AIndex : Integer; AValue : TPersonTypeorganizationsArray); virtual;
  1328. Procedure SetplacesLived(AIndex : Integer; AValue : TPersonTypeplacesLivedArray); virtual;
  1329. Procedure SetplusOneCount(AIndex : Integer; AValue : integer); virtual;
  1330. Procedure SetrelationshipStatus(AIndex : Integer; const AValue : String); virtual;
  1331. Procedure Setskills(AIndex : Integer; const AValue : String); virtual;
  1332. Procedure Settagline(AIndex : Integer; const AValue : String); virtual;
  1333. Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
  1334. Procedure Seturls(AIndex : Integer; AValue : TPersonTypeurlsArray); virtual;
  1335. Procedure Setverified(AIndex : Integer; AValue : boolean); virtual;
  1336. //2.6.4. bug workaround
  1337. {$IFDEF VER2_6}
  1338. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1339. {$ENDIF VER2_6}
  1340. Public
  1341. Published
  1342. Property aboutMe : String Index 0 Read FaboutMe Write SetaboutMe;
  1343. Property ageRange : TPersonTypeageRange Index 8 Read FageRange Write SetageRange;
  1344. Property birthday : String Index 16 Read Fbirthday Write Setbirthday;
  1345. Property braggingRights : String Index 24 Read FbraggingRights Write SetbraggingRights;
  1346. Property circledByCount : integer Index 32 Read FcircledByCount Write SetcircledByCount;
  1347. Property cover : TPersonTypecover Index 40 Read Fcover Write Setcover;
  1348. Property currentLocation : String Index 48 Read FcurrentLocation Write SetcurrentLocation;
  1349. Property displayName : String Index 56 Read FdisplayName Write SetdisplayName;
  1350. Property domain : String Index 64 Read Fdomain Write Setdomain;
  1351. Property emails : TPersonTypeemailsArray Index 72 Read Femails Write Setemails;
  1352. Property etag : String Index 80 Read Fetag Write Setetag;
  1353. Property gender : String Index 88 Read Fgender Write Setgender;
  1354. Property id : String Index 96 Read Fid Write Setid;
  1355. Property image : TPersonTypeimage Index 104 Read Fimage Write Setimage;
  1356. Property isPlusUser : boolean Index 112 Read FisPlusUser Write SetisPlusUser;
  1357. Property kind : String Index 120 Read Fkind Write Setkind;
  1358. Property language : String Index 128 Read Flanguage Write Setlanguage;
  1359. Property name : TPersonTypename Index 136 Read Fname Write Setname;
  1360. Property nickname : String Index 144 Read Fnickname Write Setnickname;
  1361. Property objectType : String Index 152 Read FobjectType Write SetobjectType;
  1362. Property occupation : String Index 160 Read Foccupation Write Setoccupation;
  1363. Property organizations : TPersonTypeorganizationsArray Index 168 Read Forganizations Write Setorganizations;
  1364. Property placesLived : TPersonTypeplacesLivedArray Index 176 Read FplacesLived Write SetplacesLived;
  1365. Property plusOneCount : integer Index 184 Read FplusOneCount Write SetplusOneCount;
  1366. Property relationshipStatus : String Index 192 Read FrelationshipStatus Write SetrelationshipStatus;
  1367. Property skills : String Index 200 Read Fskills Write Setskills;
  1368. Property tagline : String Index 208 Read Ftagline Write Settagline;
  1369. Property url : String Index 216 Read Furl Write Seturl;
  1370. Property urls : TPersonTypeurlsArray Index 224 Read Furls Write Seturls;
  1371. Property verified : boolean Index 232 Read Fverified Write Setverified;
  1372. end;
  1373. TPersonClass = Class of TPerson;
  1374. { --------------------------------------------------------------------
  1375. TPlaceTypeaddress
  1376. --------------------------------------------------------------------}
  1377. TPlaceTypeaddress = Class(TGoogleBaseObject)
  1378. Private
  1379. Fformatted : String;
  1380. Protected
  1381. //Property setters
  1382. Procedure Setformatted(AIndex : Integer; const AValue : String); virtual;
  1383. Public
  1384. Published
  1385. Property formatted : String Index 0 Read Fformatted Write Setformatted;
  1386. end;
  1387. TPlaceTypeaddressClass = Class of TPlaceTypeaddress;
  1388. { --------------------------------------------------------------------
  1389. TPlaceTypeposition
  1390. --------------------------------------------------------------------}
  1391. TPlaceTypeposition = Class(TGoogleBaseObject)
  1392. Private
  1393. Flatitude : double;
  1394. Flongitude : double;
  1395. Protected
  1396. //Property setters
  1397. Procedure Setlatitude(AIndex : Integer; AValue : double); virtual;
  1398. Procedure Setlongitude(AIndex : Integer; AValue : double); virtual;
  1399. Public
  1400. Published
  1401. Property latitude : double Index 0 Read Flatitude Write Setlatitude;
  1402. Property longitude : double Index 8 Read Flongitude Write Setlongitude;
  1403. end;
  1404. TPlaceTypepositionClass = Class of TPlaceTypeposition;
  1405. { --------------------------------------------------------------------
  1406. TPlace
  1407. --------------------------------------------------------------------}
  1408. TPlace = Class(TGoogleBaseObject)
  1409. Private
  1410. Faddress : TPlaceTypeaddress;
  1411. FdisplayName : String;
  1412. Fid : String;
  1413. Fkind : String;
  1414. Fposition : TPlaceTypeposition;
  1415. Protected
  1416. //Property setters
  1417. Procedure Setaddress(AIndex : Integer; AValue : TPlaceTypeaddress); virtual;
  1418. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  1419. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1420. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  1421. Procedure Setposition(AIndex : Integer; AValue : TPlaceTypeposition); virtual;
  1422. Public
  1423. Published
  1424. Property address : TPlaceTypeaddress Index 0 Read Faddress Write Setaddress;
  1425. Property displayName : String Index 8 Read FdisplayName Write SetdisplayName;
  1426. Property id : String Index 16 Read Fid Write Setid;
  1427. Property kind : String Index 24 Read Fkind Write Setkind;
  1428. Property position : TPlaceTypeposition Index 32 Read Fposition Write Setposition;
  1429. end;
  1430. TPlaceClass = Class of TPlace;
  1431. { --------------------------------------------------------------------
  1432. TPlusAclentryResource
  1433. --------------------------------------------------------------------}
  1434. TPlusAclentryResource = Class(TGoogleBaseObject)
  1435. Private
  1436. FdisplayName : String;
  1437. Fid : String;
  1438. F_type : String;
  1439. Protected
  1440. Class Function ExportPropertyName(Const AName : String) : string; override;
  1441. //Property setters
  1442. Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
  1443. Procedure Setid(AIndex : Integer; const AValue : String); virtual;
  1444. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1445. Public
  1446. Published
  1447. Property displayName : String Index 0 Read FdisplayName Write SetdisplayName;
  1448. Property id : String Index 8 Read Fid Write Setid;
  1449. Property _type : String Index 16 Read F_type Write Set_type;
  1450. end;
  1451. TPlusAclentryResourceClass = Class of TPlusAclentryResource;
  1452. { --------------------------------------------------------------------
  1453. TActivitiesResource
  1454. --------------------------------------------------------------------}
  1455. //Optional query Options for TActivitiesResource, method List
  1456. TActivitiesListOptions = Record
  1457. maxResults : integer;
  1458. pageToken : String;
  1459. end;
  1460. //Optional query Options for TActivitiesResource, method Search
  1461. TActivitiesSearchOptions = Record
  1462. language : String;
  1463. maxResults : integer;
  1464. orderBy : String;
  1465. pageToken : String;
  1466. query : String;
  1467. end;
  1468. TActivitiesResource = Class(TGoogleResource)
  1469. Public
  1470. Class Function ResourceName : String; override;
  1471. Class Function DefaultAPI : TGoogleAPIClass; override;
  1472. Function Get(activityId: string) : TActivity;
  1473. Function List(collection: string; userId: string; AQuery : string = '') : TActivityFeed;
  1474. Function List(collection: string; userId: string; AQuery : TActivitieslistOptions) : TActivityFeed;
  1475. Function Search(AQuery : string = '') : TActivityFeed;
  1476. Function Search(AQuery : TActivitiessearchOptions) : TActivityFeed;
  1477. end;
  1478. { --------------------------------------------------------------------
  1479. TCommentsResource
  1480. --------------------------------------------------------------------}
  1481. //Optional query Options for TCommentsResource, method List
  1482. TCommentsListOptions = Record
  1483. maxResults : integer;
  1484. pageToken : String;
  1485. sortOrder : String;
  1486. end;
  1487. TCommentsResource = Class(TGoogleResource)
  1488. Public
  1489. Class Function ResourceName : String; override;
  1490. Class Function DefaultAPI : TGoogleAPIClass; override;
  1491. Function Get(commentId: string) : TComment;
  1492. Function List(activityId: string; AQuery : string = '') : TCommentFeed;
  1493. Function List(activityId: string; AQuery : TCommentslistOptions) : TCommentFeed;
  1494. end;
  1495. { --------------------------------------------------------------------
  1496. TMomentsResource
  1497. --------------------------------------------------------------------}
  1498. //Optional query Options for TMomentsResource, method Insert
  1499. TMomentsInsertOptions = Record
  1500. debug : boolean;
  1501. end;
  1502. //Optional query Options for TMomentsResource, method List
  1503. TMomentsListOptions = Record
  1504. maxResults : integer;
  1505. pageToken : String;
  1506. targetUrl : String;
  1507. _type : String;
  1508. end;
  1509. TMomentsResource = Class(TGoogleResource)
  1510. Public
  1511. Class Function ResourceName : String; override;
  1512. Class Function DefaultAPI : TGoogleAPIClass; override;
  1513. Function Insert(collection: string; userId: string; aMoment : TMoment; AQuery : string = '') : TMoment;
  1514. Function Insert(collection: string; userId: string; aMoment : TMoment; AQuery : TMomentsinsertOptions) : TMoment;
  1515. Function List(collection: string; userId: string; AQuery : string = '') : TMomentsFeed;
  1516. Function List(collection: string; userId: string; AQuery : TMomentslistOptions) : TMomentsFeed;
  1517. Procedure Remove(id: string);
  1518. end;
  1519. { --------------------------------------------------------------------
  1520. TPeopleResource
  1521. --------------------------------------------------------------------}
  1522. //Optional query Options for TPeopleResource, method List
  1523. TPeopleListOptions = Record
  1524. maxResults : integer;
  1525. orderBy : String;
  1526. pageToken : String;
  1527. end;
  1528. //Optional query Options for TPeopleResource, method ListByActivity
  1529. TPeopleListByActivityOptions = Record
  1530. maxResults : integer;
  1531. pageToken : String;
  1532. end;
  1533. //Optional query Options for TPeopleResource, method Search
  1534. TPeopleSearchOptions = Record
  1535. language : String;
  1536. maxResults : integer;
  1537. pageToken : String;
  1538. query : String;
  1539. end;
  1540. TPeopleResource = Class(TGoogleResource)
  1541. Public
  1542. Class Function ResourceName : String; override;
  1543. Class Function DefaultAPI : TGoogleAPIClass; override;
  1544. Function Get(userId: string) : TPerson;
  1545. Function List(collection: string; userId: string; AQuery : string = '') : TPeopleFeed;
  1546. Function List(collection: string; userId: string; AQuery : TPeoplelistOptions) : TPeopleFeed;
  1547. Function ListByActivity(activityId: string; collection: string; AQuery : string = '') : TPeopleFeed;
  1548. Function ListByActivity(activityId: string; collection: string; AQuery : TPeoplelistByActivityOptions) : TPeopleFeed;
  1549. Function Search(AQuery : string = '') : TPeopleFeed;
  1550. Function Search(AQuery : TPeoplesearchOptions) : TPeopleFeed;
  1551. end;
  1552. { --------------------------------------------------------------------
  1553. TPlusAPI
  1554. --------------------------------------------------------------------}
  1555. TPlusAPI = Class(TGoogleAPI)
  1556. Private
  1557. FActivitiesInstance : TActivitiesResource;
  1558. FCommentsInstance : TCommentsResource;
  1559. FMomentsInstance : TMomentsResource;
  1560. FPeopleInstance : TPeopleResource;
  1561. Function GetActivitiesInstance : TActivitiesResource;virtual;
  1562. Function GetCommentsInstance : TCommentsResource;virtual;
  1563. Function GetMomentsInstance : TMomentsResource;virtual;
  1564. Function GetPeopleInstance : TPeopleResource;virtual;
  1565. Public
  1566. //Override class functions with API info
  1567. Class Function APIName : String; override;
  1568. Class Function APIVersion : String; override;
  1569. Class Function APIRevision : String; override;
  1570. Class Function APIID : String; override;
  1571. Class Function APITitle : String; override;
  1572. Class Function APIDescription : String; override;
  1573. Class Function APIOwnerDomain : String; override;
  1574. Class Function APIOwnerName : String; override;
  1575. Class Function APIIcon16 : String; override;
  1576. Class Function APIIcon32 : String; override;
  1577. Class Function APIdocumentationLink : String; override;
  1578. Class Function APIrootUrl : string; override;
  1579. Class Function APIbasePath : string;override;
  1580. Class Function APIbaseURL : String;override;
  1581. Class Function APIProtocol : string;override;
  1582. Class Function APIservicePath : string;override;
  1583. Class Function APIbatchPath : String;override;
  1584. Class Function APIAuthScopes : TScopeInfoArray;override;
  1585. Class Function APINeedsAuth : Boolean;override;
  1586. Class Procedure RegisterAPIResources; override;
  1587. //Add create function for resources
  1588. Function CreateActivitiesResource(AOwner : TComponent) : TActivitiesResource;virtual;overload;
  1589. Function CreateActivitiesResource : TActivitiesResource;virtual;overload;
  1590. Function CreateCommentsResource(AOwner : TComponent) : TCommentsResource;virtual;overload;
  1591. Function CreateCommentsResource : TCommentsResource;virtual;overload;
  1592. Function CreateMomentsResource(AOwner : TComponent) : TMomentsResource;virtual;overload;
  1593. Function CreateMomentsResource : TMomentsResource;virtual;overload;
  1594. Function CreatePeopleResource(AOwner : TComponent) : TPeopleResource;virtual;overload;
  1595. Function CreatePeopleResource : TPeopleResource;virtual;overload;
  1596. //Add default on-demand instances for resources
  1597. Property ActivitiesResource : TActivitiesResource Read GetActivitiesInstance;
  1598. Property CommentsResource : TCommentsResource Read GetCommentsInstance;
  1599. Property MomentsResource : TMomentsResource Read GetMomentsInstance;
  1600. Property PeopleResource : TPeopleResource Read GetPeopleInstance;
  1601. end;
  1602. implementation
  1603. { --------------------------------------------------------------------
  1604. TAcl
  1605. --------------------------------------------------------------------}
  1606. Procedure TAcl.Setdescription(AIndex : Integer; const AValue : String);
  1607. begin
  1608. If (Fdescription=AValue) then exit;
  1609. Fdescription:=AValue;
  1610. MarkPropertyChanged(AIndex);
  1611. end;
  1612. Procedure TAcl.Setitems(AIndex : Integer; AValue : TAclTypeitemsArray);
  1613. begin
  1614. If (Fitems=AValue) then exit;
  1615. Fitems:=AValue;
  1616. MarkPropertyChanged(AIndex);
  1617. end;
  1618. Procedure TAcl.Setkind(AIndex : Integer; const AValue : String);
  1619. begin
  1620. If (Fkind=AValue) then exit;
  1621. Fkind:=AValue;
  1622. MarkPropertyChanged(AIndex);
  1623. end;
  1624. //2.6.4. bug workaround
  1625. {$IFDEF VER2_6}
  1626. Procedure TAcl.SetArrayLength(Const AName : String; ALength : Longint);
  1627. begin
  1628. Case AName of
  1629. 'items' : SetLength(Fitems,ALength);
  1630. else
  1631. Inherited SetArrayLength(AName,ALength);
  1632. end;
  1633. end;
  1634. {$ENDIF VER2_6}
  1635. { --------------------------------------------------------------------
  1636. TActivityTypeactorTypeimage
  1637. --------------------------------------------------------------------}
  1638. Procedure TActivityTypeactorTypeimage.Seturl(AIndex : Integer; const AValue : String);
  1639. begin
  1640. If (Furl=AValue) then exit;
  1641. Furl:=AValue;
  1642. MarkPropertyChanged(AIndex);
  1643. end;
  1644. { --------------------------------------------------------------------
  1645. TActivityTypeactorTypename
  1646. --------------------------------------------------------------------}
  1647. Procedure TActivityTypeactorTypename.SetfamilyName(AIndex : Integer; const AValue : String);
  1648. begin
  1649. If (FfamilyName=AValue) then exit;
  1650. FfamilyName:=AValue;
  1651. MarkPropertyChanged(AIndex);
  1652. end;
  1653. Procedure TActivityTypeactorTypename.SetgivenName(AIndex : Integer; const AValue : String);
  1654. begin
  1655. If (FgivenName=AValue) then exit;
  1656. FgivenName:=AValue;
  1657. MarkPropertyChanged(AIndex);
  1658. end;
  1659. { --------------------------------------------------------------------
  1660. TActivityTypeactor
  1661. --------------------------------------------------------------------}
  1662. Procedure TActivityTypeactor.SetdisplayName(AIndex : Integer; const AValue : String);
  1663. begin
  1664. If (FdisplayName=AValue) then exit;
  1665. FdisplayName:=AValue;
  1666. MarkPropertyChanged(AIndex);
  1667. end;
  1668. Procedure TActivityTypeactor.Setid(AIndex : Integer; const AValue : String);
  1669. begin
  1670. If (Fid=AValue) then exit;
  1671. Fid:=AValue;
  1672. MarkPropertyChanged(AIndex);
  1673. end;
  1674. Procedure TActivityTypeactor.Setimage(AIndex : Integer; AValue : TActivityTypeactorTypeimage);
  1675. begin
  1676. If (Fimage=AValue) then exit;
  1677. Fimage:=AValue;
  1678. MarkPropertyChanged(AIndex);
  1679. end;
  1680. Procedure TActivityTypeactor.Setname(AIndex : Integer; AValue : TActivityTypeactorTypename);
  1681. begin
  1682. If (Fname=AValue) then exit;
  1683. Fname:=AValue;
  1684. MarkPropertyChanged(AIndex);
  1685. end;
  1686. Procedure TActivityTypeactor.Seturl(AIndex : Integer; const AValue : String);
  1687. begin
  1688. If (Furl=AValue) then exit;
  1689. Furl:=AValue;
  1690. MarkPropertyChanged(AIndex);
  1691. end;
  1692. { --------------------------------------------------------------------
  1693. TActivityTypeobjectTypeactorTypeimage
  1694. --------------------------------------------------------------------}
  1695. Procedure TActivityTypeobjectTypeactorTypeimage.Seturl(AIndex : Integer; const AValue : String);
  1696. begin
  1697. If (Furl=AValue) then exit;
  1698. Furl:=AValue;
  1699. MarkPropertyChanged(AIndex);
  1700. end;
  1701. { --------------------------------------------------------------------
  1702. TActivityTypeobjectTypeactor
  1703. --------------------------------------------------------------------}
  1704. Procedure TActivityTypeobjectTypeactor.SetdisplayName(AIndex : Integer; const AValue : String);
  1705. begin
  1706. If (FdisplayName=AValue) then exit;
  1707. FdisplayName:=AValue;
  1708. MarkPropertyChanged(AIndex);
  1709. end;
  1710. Procedure TActivityTypeobjectTypeactor.Setid(AIndex : Integer; const AValue : String);
  1711. begin
  1712. If (Fid=AValue) then exit;
  1713. Fid:=AValue;
  1714. MarkPropertyChanged(AIndex);
  1715. end;
  1716. Procedure TActivityTypeobjectTypeactor.Setimage(AIndex : Integer; AValue : TActivityTypeobjectTypeactorTypeimage);
  1717. begin
  1718. If (Fimage=AValue) then exit;
  1719. Fimage:=AValue;
  1720. MarkPropertyChanged(AIndex);
  1721. end;
  1722. Procedure TActivityTypeobjectTypeactor.Seturl(AIndex : Integer; const AValue : String);
  1723. begin
  1724. If (Furl=AValue) then exit;
  1725. Furl:=AValue;
  1726. MarkPropertyChanged(AIndex);
  1727. end;
  1728. { --------------------------------------------------------------------
  1729. TActivityTypeobjectTypeattachmentsItemTypeembed
  1730. --------------------------------------------------------------------}
  1731. Procedure TActivityTypeobjectTypeattachmentsItemTypeembed.Set_type(AIndex : Integer; const AValue : String);
  1732. begin
  1733. If (F_type=AValue) then exit;
  1734. F_type:=AValue;
  1735. MarkPropertyChanged(AIndex);
  1736. end;
  1737. Procedure TActivityTypeobjectTypeattachmentsItemTypeembed.Seturl(AIndex : Integer; const AValue : String);
  1738. begin
  1739. If (Furl=AValue) then exit;
  1740. Furl:=AValue;
  1741. MarkPropertyChanged(AIndex);
  1742. end;
  1743. Class Function TActivityTypeobjectTypeattachmentsItemTypeembed.ExportPropertyName(Const AName : String) :String;
  1744. begin
  1745. Case AName of
  1746. '_type' : Result:='type';
  1747. else
  1748. Result:=Inherited ExportPropertyName(AName);
  1749. end;
  1750. end;
  1751. { --------------------------------------------------------------------
  1752. TActivityTypeobjectTypeattachmentsItemTypefullImage
  1753. --------------------------------------------------------------------}
  1754. Procedure TActivityTypeobjectTypeattachmentsItemTypefullImage.Setheight(AIndex : Integer; AValue : integer);
  1755. begin
  1756. If (Fheight=AValue) then exit;
  1757. Fheight:=AValue;
  1758. MarkPropertyChanged(AIndex);
  1759. end;
  1760. Procedure TActivityTypeobjectTypeattachmentsItemTypefullImage.Set_type(AIndex : Integer; const AValue : String);
  1761. begin
  1762. If (F_type=AValue) then exit;
  1763. F_type:=AValue;
  1764. MarkPropertyChanged(AIndex);
  1765. end;
  1766. Procedure TActivityTypeobjectTypeattachmentsItemTypefullImage.Seturl(AIndex : Integer; const AValue : String);
  1767. begin
  1768. If (Furl=AValue) then exit;
  1769. Furl:=AValue;
  1770. MarkPropertyChanged(AIndex);
  1771. end;
  1772. Procedure TActivityTypeobjectTypeattachmentsItemTypefullImage.Setwidth(AIndex : Integer; AValue : integer);
  1773. begin
  1774. If (Fwidth=AValue) then exit;
  1775. Fwidth:=AValue;
  1776. MarkPropertyChanged(AIndex);
  1777. end;
  1778. Class Function TActivityTypeobjectTypeattachmentsItemTypefullImage.ExportPropertyName(Const AName : String) :String;
  1779. begin
  1780. Case AName of
  1781. '_type' : Result:='type';
  1782. else
  1783. Result:=Inherited ExportPropertyName(AName);
  1784. end;
  1785. end;
  1786. { --------------------------------------------------------------------
  1787. TActivityTypeobjectTypeattachmentsItemTypeimage
  1788. --------------------------------------------------------------------}
  1789. Procedure TActivityTypeobjectTypeattachmentsItemTypeimage.Setheight(AIndex : Integer; AValue : integer);
  1790. begin
  1791. If (Fheight=AValue) then exit;
  1792. Fheight:=AValue;
  1793. MarkPropertyChanged(AIndex);
  1794. end;
  1795. Procedure TActivityTypeobjectTypeattachmentsItemTypeimage.Set_type(AIndex : Integer; const AValue : String);
  1796. begin
  1797. If (F_type=AValue) then exit;
  1798. F_type:=AValue;
  1799. MarkPropertyChanged(AIndex);
  1800. end;
  1801. Procedure TActivityTypeobjectTypeattachmentsItemTypeimage.Seturl(AIndex : Integer; const AValue : String);
  1802. begin
  1803. If (Furl=AValue) then exit;
  1804. Furl:=AValue;
  1805. MarkPropertyChanged(AIndex);
  1806. end;
  1807. Procedure TActivityTypeobjectTypeattachmentsItemTypeimage.Setwidth(AIndex : Integer; AValue : integer);
  1808. begin
  1809. If (Fwidth=AValue) then exit;
  1810. Fwidth:=AValue;
  1811. MarkPropertyChanged(AIndex);
  1812. end;
  1813. Class Function TActivityTypeobjectTypeattachmentsItemTypeimage.ExportPropertyName(Const AName : String) :String;
  1814. begin
  1815. Case AName of
  1816. '_type' : Result:='type';
  1817. else
  1818. Result:=Inherited ExportPropertyName(AName);
  1819. end;
  1820. end;
  1821. { --------------------------------------------------------------------
  1822. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage
  1823. --------------------------------------------------------------------}
  1824. Procedure TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage.Setheight(AIndex : Integer; AValue : integer);
  1825. begin
  1826. If (Fheight=AValue) then exit;
  1827. Fheight:=AValue;
  1828. MarkPropertyChanged(AIndex);
  1829. end;
  1830. Procedure TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage.Set_type(AIndex : Integer; const AValue : String);
  1831. begin
  1832. If (F_type=AValue) then exit;
  1833. F_type:=AValue;
  1834. MarkPropertyChanged(AIndex);
  1835. end;
  1836. Procedure TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage.Seturl(AIndex : Integer; const AValue : String);
  1837. begin
  1838. If (Furl=AValue) then exit;
  1839. Furl:=AValue;
  1840. MarkPropertyChanged(AIndex);
  1841. end;
  1842. Procedure TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage.Setwidth(AIndex : Integer; AValue : integer);
  1843. begin
  1844. If (Fwidth=AValue) then exit;
  1845. Fwidth:=AValue;
  1846. MarkPropertyChanged(AIndex);
  1847. end;
  1848. Class Function TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage.ExportPropertyName(Const AName : String) :String;
  1849. begin
  1850. Case AName of
  1851. '_type' : Result:='type';
  1852. else
  1853. Result:=Inherited ExportPropertyName(AName);
  1854. end;
  1855. end;
  1856. { --------------------------------------------------------------------
  1857. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem
  1858. --------------------------------------------------------------------}
  1859. Procedure TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem.Setdescription(AIndex : Integer; const AValue : String);
  1860. begin
  1861. If (Fdescription=AValue) then exit;
  1862. Fdescription:=AValue;
  1863. MarkPropertyChanged(AIndex);
  1864. end;
  1865. Procedure TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem.Setimage(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage);
  1866. begin
  1867. If (Fimage=AValue) then exit;
  1868. Fimage:=AValue;
  1869. MarkPropertyChanged(AIndex);
  1870. end;
  1871. Procedure TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem.Seturl(AIndex : Integer; const AValue : String);
  1872. begin
  1873. If (Furl=AValue) then exit;
  1874. Furl:=AValue;
  1875. MarkPropertyChanged(AIndex);
  1876. end;
  1877. { --------------------------------------------------------------------
  1878. TActivityTypeobjectTypeattachmentsItem
  1879. --------------------------------------------------------------------}
  1880. Procedure TActivityTypeobjectTypeattachmentsItem.Setcontent(AIndex : Integer; const AValue : String);
  1881. begin
  1882. If (Fcontent=AValue) then exit;
  1883. Fcontent:=AValue;
  1884. MarkPropertyChanged(AIndex);
  1885. end;
  1886. Procedure TActivityTypeobjectTypeattachmentsItem.SetdisplayName(AIndex : Integer; const AValue : String);
  1887. begin
  1888. If (FdisplayName=AValue) then exit;
  1889. FdisplayName:=AValue;
  1890. MarkPropertyChanged(AIndex);
  1891. end;
  1892. Procedure TActivityTypeobjectTypeattachmentsItem.Setembed(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypeembed);
  1893. begin
  1894. If (Fembed=AValue) then exit;
  1895. Fembed:=AValue;
  1896. MarkPropertyChanged(AIndex);
  1897. end;
  1898. Procedure TActivityTypeobjectTypeattachmentsItem.SetfullImage(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypefullImage);
  1899. begin
  1900. If (FfullImage=AValue) then exit;
  1901. FfullImage:=AValue;
  1902. MarkPropertyChanged(AIndex);
  1903. end;
  1904. Procedure TActivityTypeobjectTypeattachmentsItem.Setid(AIndex : Integer; const AValue : String);
  1905. begin
  1906. If (Fid=AValue) then exit;
  1907. Fid:=AValue;
  1908. MarkPropertyChanged(AIndex);
  1909. end;
  1910. Procedure TActivityTypeobjectTypeattachmentsItem.Setimage(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypeimage);
  1911. begin
  1912. If (Fimage=AValue) then exit;
  1913. Fimage:=AValue;
  1914. MarkPropertyChanged(AIndex);
  1915. end;
  1916. Procedure TActivityTypeobjectTypeattachmentsItem.SetobjectType(AIndex : Integer; const AValue : String);
  1917. begin
  1918. If (FobjectType=AValue) then exit;
  1919. FobjectType:=AValue;
  1920. MarkPropertyChanged(AIndex);
  1921. end;
  1922. Procedure TActivityTypeobjectTypeattachmentsItem.Setthumbnails(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsItemTypethumbnailsArray);
  1923. begin
  1924. If (Fthumbnails=AValue) then exit;
  1925. Fthumbnails:=AValue;
  1926. MarkPropertyChanged(AIndex);
  1927. end;
  1928. Procedure TActivityTypeobjectTypeattachmentsItem.Seturl(AIndex : Integer; const AValue : String);
  1929. begin
  1930. If (Furl=AValue) then exit;
  1931. Furl:=AValue;
  1932. MarkPropertyChanged(AIndex);
  1933. end;
  1934. //2.6.4. bug workaround
  1935. {$IFDEF VER2_6}
  1936. Procedure TActivityTypeobjectTypeattachmentsItem.SetArrayLength(Const AName : String; ALength : Longint);
  1937. begin
  1938. Case AName of
  1939. 'thumbnails' : SetLength(Fthumbnails,ALength);
  1940. else
  1941. Inherited SetArrayLength(AName,ALength);
  1942. end;
  1943. end;
  1944. {$ENDIF VER2_6}
  1945. { --------------------------------------------------------------------
  1946. TActivityTypeobjectTypeplusoners
  1947. --------------------------------------------------------------------}
  1948. Procedure TActivityTypeobjectTypeplusoners.SetselfLink(AIndex : Integer; const AValue : String);
  1949. begin
  1950. If (FselfLink=AValue) then exit;
  1951. FselfLink:=AValue;
  1952. MarkPropertyChanged(AIndex);
  1953. end;
  1954. Procedure TActivityTypeobjectTypeplusoners.SettotalItems(AIndex : Integer; AValue : integer);
  1955. begin
  1956. If (FtotalItems=AValue) then exit;
  1957. FtotalItems:=AValue;
  1958. MarkPropertyChanged(AIndex);
  1959. end;
  1960. { --------------------------------------------------------------------
  1961. TActivityTypeobjectTypereplies
  1962. --------------------------------------------------------------------}
  1963. Procedure TActivityTypeobjectTypereplies.SetselfLink(AIndex : Integer; const AValue : String);
  1964. begin
  1965. If (FselfLink=AValue) then exit;
  1966. FselfLink:=AValue;
  1967. MarkPropertyChanged(AIndex);
  1968. end;
  1969. Procedure TActivityTypeobjectTypereplies.SettotalItems(AIndex : Integer; AValue : integer);
  1970. begin
  1971. If (FtotalItems=AValue) then exit;
  1972. FtotalItems:=AValue;
  1973. MarkPropertyChanged(AIndex);
  1974. end;
  1975. { --------------------------------------------------------------------
  1976. TActivityTypeobjectTyperesharers
  1977. --------------------------------------------------------------------}
  1978. Procedure TActivityTypeobjectTyperesharers.SetselfLink(AIndex : Integer; const AValue : String);
  1979. begin
  1980. If (FselfLink=AValue) then exit;
  1981. FselfLink:=AValue;
  1982. MarkPropertyChanged(AIndex);
  1983. end;
  1984. Procedure TActivityTypeobjectTyperesharers.SettotalItems(AIndex : Integer; AValue : integer);
  1985. begin
  1986. If (FtotalItems=AValue) then exit;
  1987. FtotalItems:=AValue;
  1988. MarkPropertyChanged(AIndex);
  1989. end;
  1990. { --------------------------------------------------------------------
  1991. TActivityTypeobject
  1992. --------------------------------------------------------------------}
  1993. Procedure TActivityTypeobject.Setactor(AIndex : Integer; AValue : TActivityTypeobjectTypeactor);
  1994. begin
  1995. If (Factor=AValue) then exit;
  1996. Factor:=AValue;
  1997. MarkPropertyChanged(AIndex);
  1998. end;
  1999. Procedure TActivityTypeobject.Setattachments(AIndex : Integer; AValue : TActivityTypeobjectTypeattachmentsArray);
  2000. begin
  2001. If (Fattachments=AValue) then exit;
  2002. Fattachments:=AValue;
  2003. MarkPropertyChanged(AIndex);
  2004. end;
  2005. Procedure TActivityTypeobject.Setcontent(AIndex : Integer; const AValue : String);
  2006. begin
  2007. If (Fcontent=AValue) then exit;
  2008. Fcontent:=AValue;
  2009. MarkPropertyChanged(AIndex);
  2010. end;
  2011. Procedure TActivityTypeobject.Setid(AIndex : Integer; const AValue : String);
  2012. begin
  2013. If (Fid=AValue) then exit;
  2014. Fid:=AValue;
  2015. MarkPropertyChanged(AIndex);
  2016. end;
  2017. Procedure TActivityTypeobject.SetobjectType(AIndex : Integer; const AValue : String);
  2018. begin
  2019. If (FobjectType=AValue) then exit;
  2020. FobjectType:=AValue;
  2021. MarkPropertyChanged(AIndex);
  2022. end;
  2023. Procedure TActivityTypeobject.SetoriginalContent(AIndex : Integer; const AValue : String);
  2024. begin
  2025. If (ForiginalContent=AValue) then exit;
  2026. ForiginalContent:=AValue;
  2027. MarkPropertyChanged(AIndex);
  2028. end;
  2029. Procedure TActivityTypeobject.Setplusoners(AIndex : Integer; AValue : TActivityTypeobjectTypeplusoners);
  2030. begin
  2031. If (Fplusoners=AValue) then exit;
  2032. Fplusoners:=AValue;
  2033. MarkPropertyChanged(AIndex);
  2034. end;
  2035. Procedure TActivityTypeobject.Setreplies(AIndex : Integer; AValue : TActivityTypeobjectTypereplies);
  2036. begin
  2037. If (Freplies=AValue) then exit;
  2038. Freplies:=AValue;
  2039. MarkPropertyChanged(AIndex);
  2040. end;
  2041. Procedure TActivityTypeobject.Setresharers(AIndex : Integer; AValue : TActivityTypeobjectTyperesharers);
  2042. begin
  2043. If (Fresharers=AValue) then exit;
  2044. Fresharers:=AValue;
  2045. MarkPropertyChanged(AIndex);
  2046. end;
  2047. Procedure TActivityTypeobject.Seturl(AIndex : Integer; const AValue : String);
  2048. begin
  2049. If (Furl=AValue) then exit;
  2050. Furl:=AValue;
  2051. MarkPropertyChanged(AIndex);
  2052. end;
  2053. //2.6.4. bug workaround
  2054. {$IFDEF VER2_6}
  2055. Procedure TActivityTypeobject.SetArrayLength(Const AName : String; ALength : Longint);
  2056. begin
  2057. Case AName of
  2058. 'attachments' : SetLength(Fattachments,ALength);
  2059. else
  2060. Inherited SetArrayLength(AName,ALength);
  2061. end;
  2062. end;
  2063. {$ENDIF VER2_6}
  2064. { --------------------------------------------------------------------
  2065. TActivityTypeprovider
  2066. --------------------------------------------------------------------}
  2067. Procedure TActivityTypeprovider.Settitle(AIndex : Integer; const AValue : String);
  2068. begin
  2069. If (Ftitle=AValue) then exit;
  2070. Ftitle:=AValue;
  2071. MarkPropertyChanged(AIndex);
  2072. end;
  2073. { --------------------------------------------------------------------
  2074. TActivity
  2075. --------------------------------------------------------------------}
  2076. Procedure TActivity.Setaccess(AIndex : Integer; AValue : TAcl);
  2077. begin
  2078. If (Faccess=AValue) then exit;
  2079. Faccess:=AValue;
  2080. MarkPropertyChanged(AIndex);
  2081. end;
  2082. Procedure TActivity.Setactor(AIndex : Integer; AValue : TActivityTypeactor);
  2083. begin
  2084. If (Factor=AValue) then exit;
  2085. Factor:=AValue;
  2086. MarkPropertyChanged(AIndex);
  2087. end;
  2088. Procedure TActivity.Setaddress(AIndex : Integer; const AValue : String);
  2089. begin
  2090. If (Faddress=AValue) then exit;
  2091. Faddress:=AValue;
  2092. MarkPropertyChanged(AIndex);
  2093. end;
  2094. Procedure TActivity.Setannotation(AIndex : Integer; const AValue : String);
  2095. begin
  2096. If (Fannotation=AValue) then exit;
  2097. Fannotation:=AValue;
  2098. MarkPropertyChanged(AIndex);
  2099. end;
  2100. Procedure TActivity.SetcrosspostSource(AIndex : Integer; const AValue : String);
  2101. begin
  2102. If (FcrosspostSource=AValue) then exit;
  2103. FcrosspostSource:=AValue;
  2104. MarkPropertyChanged(AIndex);
  2105. end;
  2106. Procedure TActivity.Setetag(AIndex : Integer; const AValue : String);
  2107. begin
  2108. If (Fetag=AValue) then exit;
  2109. Fetag:=AValue;
  2110. MarkPropertyChanged(AIndex);
  2111. end;
  2112. Procedure TActivity.Setgeocode(AIndex : Integer; const AValue : String);
  2113. begin
  2114. If (Fgeocode=AValue) then exit;
  2115. Fgeocode:=AValue;
  2116. MarkPropertyChanged(AIndex);
  2117. end;
  2118. Procedure TActivity.Setid(AIndex : Integer; const AValue : String);
  2119. begin
  2120. If (Fid=AValue) then exit;
  2121. Fid:=AValue;
  2122. MarkPropertyChanged(AIndex);
  2123. end;
  2124. Procedure TActivity.Setkind(AIndex : Integer; const AValue : String);
  2125. begin
  2126. If (Fkind=AValue) then exit;
  2127. Fkind:=AValue;
  2128. MarkPropertyChanged(AIndex);
  2129. end;
  2130. Procedure TActivity.Setlocation(AIndex : Integer; AValue : TPlace);
  2131. begin
  2132. If (Flocation=AValue) then exit;
  2133. Flocation:=AValue;
  2134. MarkPropertyChanged(AIndex);
  2135. end;
  2136. Procedure TActivity.Set_object(AIndex : Integer; AValue : TActivityTypeobject);
  2137. begin
  2138. If (F_object=AValue) then exit;
  2139. F_object:=AValue;
  2140. MarkPropertyChanged(AIndex);
  2141. end;
  2142. Procedure TActivity.SetplaceId(AIndex : Integer; const AValue : String);
  2143. begin
  2144. If (FplaceId=AValue) then exit;
  2145. FplaceId:=AValue;
  2146. MarkPropertyChanged(AIndex);
  2147. end;
  2148. Procedure TActivity.SetplaceName(AIndex : Integer; const AValue : String);
  2149. begin
  2150. If (FplaceName=AValue) then exit;
  2151. FplaceName:=AValue;
  2152. MarkPropertyChanged(AIndex);
  2153. end;
  2154. Procedure TActivity.Setprovider(AIndex : Integer; AValue : TActivityTypeprovider);
  2155. begin
  2156. If (Fprovider=AValue) then exit;
  2157. Fprovider:=AValue;
  2158. MarkPropertyChanged(AIndex);
  2159. end;
  2160. Procedure TActivity.Set_published(AIndex : Integer; AValue : TDatetime);
  2161. begin
  2162. If (F_published=AValue) then exit;
  2163. F_published:=AValue;
  2164. MarkPropertyChanged(AIndex);
  2165. end;
  2166. Procedure TActivity.Setradius(AIndex : Integer; const AValue : String);
  2167. begin
  2168. If (Fradius=AValue) then exit;
  2169. Fradius:=AValue;
  2170. MarkPropertyChanged(AIndex);
  2171. end;
  2172. Procedure TActivity.Settitle(AIndex : Integer; const AValue : String);
  2173. begin
  2174. If (Ftitle=AValue) then exit;
  2175. Ftitle:=AValue;
  2176. MarkPropertyChanged(AIndex);
  2177. end;
  2178. Procedure TActivity.Setupdated(AIndex : Integer; AValue : TDatetime);
  2179. begin
  2180. If (Fupdated=AValue) then exit;
  2181. Fupdated:=AValue;
  2182. MarkPropertyChanged(AIndex);
  2183. end;
  2184. Procedure TActivity.Seturl(AIndex : Integer; const AValue : String);
  2185. begin
  2186. If (Furl=AValue) then exit;
  2187. Furl:=AValue;
  2188. MarkPropertyChanged(AIndex);
  2189. end;
  2190. Procedure TActivity.Setverb(AIndex : Integer; const AValue : String);
  2191. begin
  2192. If (Fverb=AValue) then exit;
  2193. Fverb:=AValue;
  2194. MarkPropertyChanged(AIndex);
  2195. end;
  2196. Class Function TActivity.ExportPropertyName(Const AName : String) :String;
  2197. begin
  2198. Case AName of
  2199. '_object' : Result:='object';
  2200. '_published' : Result:='published';
  2201. else
  2202. Result:=Inherited ExportPropertyName(AName);
  2203. end;
  2204. end;
  2205. { --------------------------------------------------------------------
  2206. TActivityFeed
  2207. --------------------------------------------------------------------}
  2208. Procedure TActivityFeed.Setetag(AIndex : Integer; const AValue : String);
  2209. begin
  2210. If (Fetag=AValue) then exit;
  2211. Fetag:=AValue;
  2212. MarkPropertyChanged(AIndex);
  2213. end;
  2214. Procedure TActivityFeed.Setid(AIndex : Integer; const AValue : String);
  2215. begin
  2216. If (Fid=AValue) then exit;
  2217. Fid:=AValue;
  2218. MarkPropertyChanged(AIndex);
  2219. end;
  2220. Procedure TActivityFeed.Setitems(AIndex : Integer; AValue : TActivityFeedTypeitemsArray);
  2221. begin
  2222. If (Fitems=AValue) then exit;
  2223. Fitems:=AValue;
  2224. MarkPropertyChanged(AIndex);
  2225. end;
  2226. Procedure TActivityFeed.Setkind(AIndex : Integer; const AValue : String);
  2227. begin
  2228. If (Fkind=AValue) then exit;
  2229. Fkind:=AValue;
  2230. MarkPropertyChanged(AIndex);
  2231. end;
  2232. Procedure TActivityFeed.SetnextLink(AIndex : Integer; const AValue : String);
  2233. begin
  2234. If (FnextLink=AValue) then exit;
  2235. FnextLink:=AValue;
  2236. MarkPropertyChanged(AIndex);
  2237. end;
  2238. Procedure TActivityFeed.SetnextPageToken(AIndex : Integer; const AValue : String);
  2239. begin
  2240. If (FnextPageToken=AValue) then exit;
  2241. FnextPageToken:=AValue;
  2242. MarkPropertyChanged(AIndex);
  2243. end;
  2244. Procedure TActivityFeed.SetselfLink(AIndex : Integer; const AValue : String);
  2245. begin
  2246. If (FselfLink=AValue) then exit;
  2247. FselfLink:=AValue;
  2248. MarkPropertyChanged(AIndex);
  2249. end;
  2250. Procedure TActivityFeed.Settitle(AIndex : Integer; const AValue : String);
  2251. begin
  2252. If (Ftitle=AValue) then exit;
  2253. Ftitle:=AValue;
  2254. MarkPropertyChanged(AIndex);
  2255. end;
  2256. Procedure TActivityFeed.Setupdated(AIndex : Integer; AValue : TDatetime);
  2257. begin
  2258. If (Fupdated=AValue) then exit;
  2259. Fupdated:=AValue;
  2260. MarkPropertyChanged(AIndex);
  2261. end;
  2262. //2.6.4. bug workaround
  2263. {$IFDEF VER2_6}
  2264. Procedure TActivityFeed.SetArrayLength(Const AName : String; ALength : Longint);
  2265. begin
  2266. Case AName of
  2267. 'items' : SetLength(Fitems,ALength);
  2268. else
  2269. Inherited SetArrayLength(AName,ALength);
  2270. end;
  2271. end;
  2272. {$ENDIF VER2_6}
  2273. { --------------------------------------------------------------------
  2274. TCommentTypeactorTypeimage
  2275. --------------------------------------------------------------------}
  2276. Procedure TCommentTypeactorTypeimage.Seturl(AIndex : Integer; const AValue : String);
  2277. begin
  2278. If (Furl=AValue) then exit;
  2279. Furl:=AValue;
  2280. MarkPropertyChanged(AIndex);
  2281. end;
  2282. { --------------------------------------------------------------------
  2283. TCommentTypeactor
  2284. --------------------------------------------------------------------}
  2285. Procedure TCommentTypeactor.SetdisplayName(AIndex : Integer; const AValue : String);
  2286. begin
  2287. If (FdisplayName=AValue) then exit;
  2288. FdisplayName:=AValue;
  2289. MarkPropertyChanged(AIndex);
  2290. end;
  2291. Procedure TCommentTypeactor.Setid(AIndex : Integer; const AValue : String);
  2292. begin
  2293. If (Fid=AValue) then exit;
  2294. Fid:=AValue;
  2295. MarkPropertyChanged(AIndex);
  2296. end;
  2297. Procedure TCommentTypeactor.Setimage(AIndex : Integer; AValue : TCommentTypeactorTypeimage);
  2298. begin
  2299. If (Fimage=AValue) then exit;
  2300. Fimage:=AValue;
  2301. MarkPropertyChanged(AIndex);
  2302. end;
  2303. Procedure TCommentTypeactor.Seturl(AIndex : Integer; const AValue : String);
  2304. begin
  2305. If (Furl=AValue) then exit;
  2306. Furl:=AValue;
  2307. MarkPropertyChanged(AIndex);
  2308. end;
  2309. { --------------------------------------------------------------------
  2310. TCommentTypeinReplyToItem
  2311. --------------------------------------------------------------------}
  2312. Procedure TCommentTypeinReplyToItem.Setid(AIndex : Integer; const AValue : String);
  2313. begin
  2314. If (Fid=AValue) then exit;
  2315. Fid:=AValue;
  2316. MarkPropertyChanged(AIndex);
  2317. end;
  2318. Procedure TCommentTypeinReplyToItem.Seturl(AIndex : Integer; const AValue : String);
  2319. begin
  2320. If (Furl=AValue) then exit;
  2321. Furl:=AValue;
  2322. MarkPropertyChanged(AIndex);
  2323. end;
  2324. { --------------------------------------------------------------------
  2325. TCommentTypeobject
  2326. --------------------------------------------------------------------}
  2327. Procedure TCommentTypeobject.Setcontent(AIndex : Integer; const AValue : String);
  2328. begin
  2329. If (Fcontent=AValue) then exit;
  2330. Fcontent:=AValue;
  2331. MarkPropertyChanged(AIndex);
  2332. end;
  2333. Procedure TCommentTypeobject.SetobjectType(AIndex : Integer; const AValue : String);
  2334. begin
  2335. If (FobjectType=AValue) then exit;
  2336. FobjectType:=AValue;
  2337. MarkPropertyChanged(AIndex);
  2338. end;
  2339. Procedure TCommentTypeobject.SetoriginalContent(AIndex : Integer; const AValue : String);
  2340. begin
  2341. If (ForiginalContent=AValue) then exit;
  2342. ForiginalContent:=AValue;
  2343. MarkPropertyChanged(AIndex);
  2344. end;
  2345. { --------------------------------------------------------------------
  2346. TCommentTypeplusoners
  2347. --------------------------------------------------------------------}
  2348. Procedure TCommentTypeplusoners.SettotalItems(AIndex : Integer; AValue : integer);
  2349. begin
  2350. If (FtotalItems=AValue) then exit;
  2351. FtotalItems:=AValue;
  2352. MarkPropertyChanged(AIndex);
  2353. end;
  2354. { --------------------------------------------------------------------
  2355. TComment
  2356. --------------------------------------------------------------------}
  2357. Procedure TComment.Setactor(AIndex : Integer; AValue : TCommentTypeactor);
  2358. begin
  2359. If (Factor=AValue) then exit;
  2360. Factor:=AValue;
  2361. MarkPropertyChanged(AIndex);
  2362. end;
  2363. Procedure TComment.Setetag(AIndex : Integer; const AValue : String);
  2364. begin
  2365. If (Fetag=AValue) then exit;
  2366. Fetag:=AValue;
  2367. MarkPropertyChanged(AIndex);
  2368. end;
  2369. Procedure TComment.Setid(AIndex : Integer; const AValue : String);
  2370. begin
  2371. If (Fid=AValue) then exit;
  2372. Fid:=AValue;
  2373. MarkPropertyChanged(AIndex);
  2374. end;
  2375. Procedure TComment.SetinReplyTo(AIndex : Integer; AValue : TCommentTypeinReplyToArray);
  2376. begin
  2377. If (FinReplyTo=AValue) then exit;
  2378. FinReplyTo:=AValue;
  2379. MarkPropertyChanged(AIndex);
  2380. end;
  2381. Procedure TComment.Setkind(AIndex : Integer; const AValue : String);
  2382. begin
  2383. If (Fkind=AValue) then exit;
  2384. Fkind:=AValue;
  2385. MarkPropertyChanged(AIndex);
  2386. end;
  2387. Procedure TComment.Set_object(AIndex : Integer; AValue : TCommentTypeobject);
  2388. begin
  2389. If (F_object=AValue) then exit;
  2390. F_object:=AValue;
  2391. MarkPropertyChanged(AIndex);
  2392. end;
  2393. Procedure TComment.Setplusoners(AIndex : Integer; AValue : TCommentTypeplusoners);
  2394. begin
  2395. If (Fplusoners=AValue) then exit;
  2396. Fplusoners:=AValue;
  2397. MarkPropertyChanged(AIndex);
  2398. end;
  2399. Procedure TComment.Set_published(AIndex : Integer; AValue : TDatetime);
  2400. begin
  2401. If (F_published=AValue) then exit;
  2402. F_published:=AValue;
  2403. MarkPropertyChanged(AIndex);
  2404. end;
  2405. Procedure TComment.SetselfLink(AIndex : Integer; const AValue : String);
  2406. begin
  2407. If (FselfLink=AValue) then exit;
  2408. FselfLink:=AValue;
  2409. MarkPropertyChanged(AIndex);
  2410. end;
  2411. Procedure TComment.Setupdated(AIndex : Integer; AValue : TDatetime);
  2412. begin
  2413. If (Fupdated=AValue) then exit;
  2414. Fupdated:=AValue;
  2415. MarkPropertyChanged(AIndex);
  2416. end;
  2417. Procedure TComment.Setverb(AIndex : Integer; const AValue : String);
  2418. begin
  2419. If (Fverb=AValue) then exit;
  2420. Fverb:=AValue;
  2421. MarkPropertyChanged(AIndex);
  2422. end;
  2423. Class Function TComment.ExportPropertyName(Const AName : String) :String;
  2424. begin
  2425. Case AName of
  2426. '_object' : Result:='object';
  2427. '_published' : Result:='published';
  2428. else
  2429. Result:=Inherited ExportPropertyName(AName);
  2430. end;
  2431. end;
  2432. //2.6.4. bug workaround
  2433. {$IFDEF VER2_6}
  2434. Procedure TComment.SetArrayLength(Const AName : String; ALength : Longint);
  2435. begin
  2436. Case AName of
  2437. 'inreplyto' : SetLength(FinReplyTo,ALength);
  2438. else
  2439. Inherited SetArrayLength(AName,ALength);
  2440. end;
  2441. end;
  2442. {$ENDIF VER2_6}
  2443. { --------------------------------------------------------------------
  2444. TCommentFeed
  2445. --------------------------------------------------------------------}
  2446. Procedure TCommentFeed.Setetag(AIndex : Integer; const AValue : String);
  2447. begin
  2448. If (Fetag=AValue) then exit;
  2449. Fetag:=AValue;
  2450. MarkPropertyChanged(AIndex);
  2451. end;
  2452. Procedure TCommentFeed.Setid(AIndex : Integer; const AValue : String);
  2453. begin
  2454. If (Fid=AValue) then exit;
  2455. Fid:=AValue;
  2456. MarkPropertyChanged(AIndex);
  2457. end;
  2458. Procedure TCommentFeed.Setitems(AIndex : Integer; AValue : TCommentFeedTypeitemsArray);
  2459. begin
  2460. If (Fitems=AValue) then exit;
  2461. Fitems:=AValue;
  2462. MarkPropertyChanged(AIndex);
  2463. end;
  2464. Procedure TCommentFeed.Setkind(AIndex : Integer; const AValue : String);
  2465. begin
  2466. If (Fkind=AValue) then exit;
  2467. Fkind:=AValue;
  2468. MarkPropertyChanged(AIndex);
  2469. end;
  2470. Procedure TCommentFeed.SetnextLink(AIndex : Integer; const AValue : String);
  2471. begin
  2472. If (FnextLink=AValue) then exit;
  2473. FnextLink:=AValue;
  2474. MarkPropertyChanged(AIndex);
  2475. end;
  2476. Procedure TCommentFeed.SetnextPageToken(AIndex : Integer; const AValue : String);
  2477. begin
  2478. If (FnextPageToken=AValue) then exit;
  2479. FnextPageToken:=AValue;
  2480. MarkPropertyChanged(AIndex);
  2481. end;
  2482. Procedure TCommentFeed.Settitle(AIndex : Integer; const AValue : String);
  2483. begin
  2484. If (Ftitle=AValue) then exit;
  2485. Ftitle:=AValue;
  2486. MarkPropertyChanged(AIndex);
  2487. end;
  2488. Procedure TCommentFeed.Setupdated(AIndex : Integer; AValue : TDatetime);
  2489. begin
  2490. If (Fupdated=AValue) then exit;
  2491. Fupdated:=AValue;
  2492. MarkPropertyChanged(AIndex);
  2493. end;
  2494. //2.6.4. bug workaround
  2495. {$IFDEF VER2_6}
  2496. Procedure TCommentFeed.SetArrayLength(Const AName : String; ALength : Longint);
  2497. begin
  2498. Case AName of
  2499. 'items' : SetLength(Fitems,ALength);
  2500. else
  2501. Inherited SetArrayLength(AName,ALength);
  2502. end;
  2503. end;
  2504. {$ENDIF VER2_6}
  2505. { --------------------------------------------------------------------
  2506. TItemScope
  2507. --------------------------------------------------------------------}
  2508. Procedure TItemScope.Setabout(AIndex : Integer; AValue : TItemScope);
  2509. begin
  2510. If (Fabout=AValue) then exit;
  2511. Fabout:=AValue;
  2512. MarkPropertyChanged(AIndex);
  2513. end;
  2514. Procedure TItemScope.SetadditionalName(AIndex : Integer; AValue : TStringArray);
  2515. begin
  2516. If (FadditionalName=AValue) then exit;
  2517. FadditionalName:=AValue;
  2518. MarkPropertyChanged(AIndex);
  2519. end;
  2520. Procedure TItemScope.Setaddress(AIndex : Integer; AValue : TItemScope);
  2521. begin
  2522. If (Faddress=AValue) then exit;
  2523. Faddress:=AValue;
  2524. MarkPropertyChanged(AIndex);
  2525. end;
  2526. Procedure TItemScope.SetaddressCountry(AIndex : Integer; const AValue : String);
  2527. begin
  2528. If (FaddressCountry=AValue) then exit;
  2529. FaddressCountry:=AValue;
  2530. MarkPropertyChanged(AIndex);
  2531. end;
  2532. Procedure TItemScope.SetaddressLocality(AIndex : Integer; const AValue : String);
  2533. begin
  2534. If (FaddressLocality=AValue) then exit;
  2535. FaddressLocality:=AValue;
  2536. MarkPropertyChanged(AIndex);
  2537. end;
  2538. Procedure TItemScope.SetaddressRegion(AIndex : Integer; const AValue : String);
  2539. begin
  2540. If (FaddressRegion=AValue) then exit;
  2541. FaddressRegion:=AValue;
  2542. MarkPropertyChanged(AIndex);
  2543. end;
  2544. Procedure TItemScope.Setassociated_media(AIndex : Integer; AValue : TItemScopeTypeassociated_mediaArray);
  2545. begin
  2546. If (Fassociated_media=AValue) then exit;
  2547. Fassociated_media:=AValue;
  2548. MarkPropertyChanged(AIndex);
  2549. end;
  2550. Procedure TItemScope.SetattendeeCount(AIndex : Integer; AValue : integer);
  2551. begin
  2552. If (FattendeeCount=AValue) then exit;
  2553. FattendeeCount:=AValue;
  2554. MarkPropertyChanged(AIndex);
  2555. end;
  2556. Procedure TItemScope.Setattendees(AIndex : Integer; AValue : TItemScopeTypeattendeesArray);
  2557. begin
  2558. If (Fattendees=AValue) then exit;
  2559. Fattendees:=AValue;
  2560. MarkPropertyChanged(AIndex);
  2561. end;
  2562. Procedure TItemScope.Setaudio(AIndex : Integer; AValue : TItemScope);
  2563. begin
  2564. If (Faudio=AValue) then exit;
  2565. Faudio:=AValue;
  2566. MarkPropertyChanged(AIndex);
  2567. end;
  2568. Procedure TItemScope.Setauthor(AIndex : Integer; AValue : TItemScopeTypeauthorArray);
  2569. begin
  2570. If (Fauthor=AValue) then exit;
  2571. Fauthor:=AValue;
  2572. MarkPropertyChanged(AIndex);
  2573. end;
  2574. Procedure TItemScope.SetbestRating(AIndex : Integer; const AValue : String);
  2575. begin
  2576. If (FbestRating=AValue) then exit;
  2577. FbestRating:=AValue;
  2578. MarkPropertyChanged(AIndex);
  2579. end;
  2580. Procedure TItemScope.SetbirthDate(AIndex : Integer; const AValue : String);
  2581. begin
  2582. If (FbirthDate=AValue) then exit;
  2583. FbirthDate:=AValue;
  2584. MarkPropertyChanged(AIndex);
  2585. end;
  2586. Procedure TItemScope.SetbyArtist(AIndex : Integer; AValue : TItemScope);
  2587. begin
  2588. If (FbyArtist=AValue) then exit;
  2589. FbyArtist:=AValue;
  2590. MarkPropertyChanged(AIndex);
  2591. end;
  2592. Procedure TItemScope.Setcaption(AIndex : Integer; const AValue : String);
  2593. begin
  2594. If (Fcaption=AValue) then exit;
  2595. Fcaption:=AValue;
  2596. MarkPropertyChanged(AIndex);
  2597. end;
  2598. Procedure TItemScope.SetcontentSize(AIndex : Integer; const AValue : String);
  2599. begin
  2600. If (FcontentSize=AValue) then exit;
  2601. FcontentSize:=AValue;
  2602. MarkPropertyChanged(AIndex);
  2603. end;
  2604. Procedure TItemScope.SetcontentUrl(AIndex : Integer; const AValue : String);
  2605. begin
  2606. If (FcontentUrl=AValue) then exit;
  2607. FcontentUrl:=AValue;
  2608. MarkPropertyChanged(AIndex);
  2609. end;
  2610. Procedure TItemScope.Setcontributor(AIndex : Integer; AValue : TItemScopeTypecontributorArray);
  2611. begin
  2612. If (Fcontributor=AValue) then exit;
  2613. Fcontributor:=AValue;
  2614. MarkPropertyChanged(AIndex);
  2615. end;
  2616. Procedure TItemScope.SetdateCreated(AIndex : Integer; const AValue : String);
  2617. begin
  2618. If (FdateCreated=AValue) then exit;
  2619. FdateCreated:=AValue;
  2620. MarkPropertyChanged(AIndex);
  2621. end;
  2622. Procedure TItemScope.SetdateModified(AIndex : Integer; const AValue : String);
  2623. begin
  2624. If (FdateModified=AValue) then exit;
  2625. FdateModified:=AValue;
  2626. MarkPropertyChanged(AIndex);
  2627. end;
  2628. Procedure TItemScope.SetdatePublished(AIndex : Integer; const AValue : String);
  2629. begin
  2630. If (FdatePublished=AValue) then exit;
  2631. FdatePublished:=AValue;
  2632. MarkPropertyChanged(AIndex);
  2633. end;
  2634. Procedure TItemScope.Setdescription(AIndex : Integer; const AValue : String);
  2635. begin
  2636. If (Fdescription=AValue) then exit;
  2637. Fdescription:=AValue;
  2638. MarkPropertyChanged(AIndex);
  2639. end;
  2640. Procedure TItemScope.Setduration(AIndex : Integer; const AValue : String);
  2641. begin
  2642. If (Fduration=AValue) then exit;
  2643. Fduration:=AValue;
  2644. MarkPropertyChanged(AIndex);
  2645. end;
  2646. Procedure TItemScope.SetembedUrl(AIndex : Integer; const AValue : String);
  2647. begin
  2648. If (FembedUrl=AValue) then exit;
  2649. FembedUrl:=AValue;
  2650. MarkPropertyChanged(AIndex);
  2651. end;
  2652. Procedure TItemScope.SetendDate(AIndex : Integer; const AValue : String);
  2653. begin
  2654. If (FendDate=AValue) then exit;
  2655. FendDate:=AValue;
  2656. MarkPropertyChanged(AIndex);
  2657. end;
  2658. Procedure TItemScope.SetfamilyName(AIndex : Integer; const AValue : String);
  2659. begin
  2660. If (FfamilyName=AValue) then exit;
  2661. FfamilyName:=AValue;
  2662. MarkPropertyChanged(AIndex);
  2663. end;
  2664. Procedure TItemScope.Setgender(AIndex : Integer; const AValue : String);
  2665. begin
  2666. If (Fgender=AValue) then exit;
  2667. Fgender:=AValue;
  2668. MarkPropertyChanged(AIndex);
  2669. end;
  2670. Procedure TItemScope.Setgeo(AIndex : Integer; AValue : TItemScope);
  2671. begin
  2672. If (Fgeo=AValue) then exit;
  2673. Fgeo:=AValue;
  2674. MarkPropertyChanged(AIndex);
  2675. end;
  2676. Procedure TItemScope.SetgivenName(AIndex : Integer; const AValue : String);
  2677. begin
  2678. If (FgivenName=AValue) then exit;
  2679. FgivenName:=AValue;
  2680. MarkPropertyChanged(AIndex);
  2681. end;
  2682. Procedure TItemScope.Setheight(AIndex : Integer; const AValue : String);
  2683. begin
  2684. If (Fheight=AValue) then exit;
  2685. Fheight:=AValue;
  2686. MarkPropertyChanged(AIndex);
  2687. end;
  2688. Procedure TItemScope.Setid(AIndex : Integer; const AValue : String);
  2689. begin
  2690. If (Fid=AValue) then exit;
  2691. Fid:=AValue;
  2692. MarkPropertyChanged(AIndex);
  2693. end;
  2694. Procedure TItemScope.Setimage(AIndex : Integer; const AValue : String);
  2695. begin
  2696. If (Fimage=AValue) then exit;
  2697. Fimage:=AValue;
  2698. MarkPropertyChanged(AIndex);
  2699. end;
  2700. Procedure TItemScope.SetinAlbum(AIndex : Integer; AValue : TItemScope);
  2701. begin
  2702. If (FinAlbum=AValue) then exit;
  2703. FinAlbum:=AValue;
  2704. MarkPropertyChanged(AIndex);
  2705. end;
  2706. Procedure TItemScope.Setkind(AIndex : Integer; const AValue : String);
  2707. begin
  2708. If (Fkind=AValue) then exit;
  2709. Fkind:=AValue;
  2710. MarkPropertyChanged(AIndex);
  2711. end;
  2712. Procedure TItemScope.Setlatitude(AIndex : Integer; AValue : double);
  2713. begin
  2714. If (Flatitude=AValue) then exit;
  2715. Flatitude:=AValue;
  2716. MarkPropertyChanged(AIndex);
  2717. end;
  2718. Procedure TItemScope.Setlocation(AIndex : Integer; AValue : TItemScope);
  2719. begin
  2720. If (Flocation=AValue) then exit;
  2721. Flocation:=AValue;
  2722. MarkPropertyChanged(AIndex);
  2723. end;
  2724. Procedure TItemScope.Setlongitude(AIndex : Integer; AValue : double);
  2725. begin
  2726. If (Flongitude=AValue) then exit;
  2727. Flongitude:=AValue;
  2728. MarkPropertyChanged(AIndex);
  2729. end;
  2730. Procedure TItemScope.Setname(AIndex : Integer; const AValue : String);
  2731. begin
  2732. If (Fname=AValue) then exit;
  2733. Fname:=AValue;
  2734. MarkPropertyChanged(AIndex);
  2735. end;
  2736. Procedure TItemScope.SetpartOfTVSeries(AIndex : Integer; AValue : TItemScope);
  2737. begin
  2738. If (FpartOfTVSeries=AValue) then exit;
  2739. FpartOfTVSeries:=AValue;
  2740. MarkPropertyChanged(AIndex);
  2741. end;
  2742. Procedure TItemScope.Setperformers(AIndex : Integer; AValue : TItemScopeTypeperformersArray);
  2743. begin
  2744. If (Fperformers=AValue) then exit;
  2745. Fperformers:=AValue;
  2746. MarkPropertyChanged(AIndex);
  2747. end;
  2748. Procedure TItemScope.SetplayerType(AIndex : Integer; const AValue : String);
  2749. begin
  2750. If (FplayerType=AValue) then exit;
  2751. FplayerType:=AValue;
  2752. MarkPropertyChanged(AIndex);
  2753. end;
  2754. Procedure TItemScope.SetpostOfficeBoxNumber(AIndex : Integer; const AValue : String);
  2755. begin
  2756. If (FpostOfficeBoxNumber=AValue) then exit;
  2757. FpostOfficeBoxNumber:=AValue;
  2758. MarkPropertyChanged(AIndex);
  2759. end;
  2760. Procedure TItemScope.SetpostalCode(AIndex : Integer; const AValue : String);
  2761. begin
  2762. If (FpostalCode=AValue) then exit;
  2763. FpostalCode:=AValue;
  2764. MarkPropertyChanged(AIndex);
  2765. end;
  2766. Procedure TItemScope.SetratingValue(AIndex : Integer; const AValue : String);
  2767. begin
  2768. If (FratingValue=AValue) then exit;
  2769. FratingValue:=AValue;
  2770. MarkPropertyChanged(AIndex);
  2771. end;
  2772. Procedure TItemScope.SetreviewRating(AIndex : Integer; AValue : TItemScope);
  2773. begin
  2774. If (FreviewRating=AValue) then exit;
  2775. FreviewRating:=AValue;
  2776. MarkPropertyChanged(AIndex);
  2777. end;
  2778. Procedure TItemScope.SetstartDate(AIndex : Integer; const AValue : String);
  2779. begin
  2780. If (FstartDate=AValue) then exit;
  2781. FstartDate:=AValue;
  2782. MarkPropertyChanged(AIndex);
  2783. end;
  2784. Procedure TItemScope.SetstreetAddress(AIndex : Integer; const AValue : String);
  2785. begin
  2786. If (FstreetAddress=AValue) then exit;
  2787. FstreetAddress:=AValue;
  2788. MarkPropertyChanged(AIndex);
  2789. end;
  2790. Procedure TItemScope.Settext(AIndex : Integer; const AValue : String);
  2791. begin
  2792. If (Ftext=AValue) then exit;
  2793. Ftext:=AValue;
  2794. MarkPropertyChanged(AIndex);
  2795. end;
  2796. Procedure TItemScope.Setthumbnail(AIndex : Integer; AValue : TItemScope);
  2797. begin
  2798. If (Fthumbnail=AValue) then exit;
  2799. Fthumbnail:=AValue;
  2800. MarkPropertyChanged(AIndex);
  2801. end;
  2802. Procedure TItemScope.SetthumbnailUrl(AIndex : Integer; const AValue : String);
  2803. begin
  2804. If (FthumbnailUrl=AValue) then exit;
  2805. FthumbnailUrl:=AValue;
  2806. MarkPropertyChanged(AIndex);
  2807. end;
  2808. Procedure TItemScope.SettickerSymbol(AIndex : Integer; const AValue : String);
  2809. begin
  2810. If (FtickerSymbol=AValue) then exit;
  2811. FtickerSymbol:=AValue;
  2812. MarkPropertyChanged(AIndex);
  2813. end;
  2814. Procedure TItemScope.Set_type(AIndex : Integer; const AValue : String);
  2815. begin
  2816. If (F_type=AValue) then exit;
  2817. F_type:=AValue;
  2818. MarkPropertyChanged(AIndex);
  2819. end;
  2820. Procedure TItemScope.Seturl(AIndex : Integer; const AValue : String);
  2821. begin
  2822. If (Furl=AValue) then exit;
  2823. Furl:=AValue;
  2824. MarkPropertyChanged(AIndex);
  2825. end;
  2826. Procedure TItemScope.Setwidth(AIndex : Integer; const AValue : String);
  2827. begin
  2828. If (Fwidth=AValue) then exit;
  2829. Fwidth:=AValue;
  2830. MarkPropertyChanged(AIndex);
  2831. end;
  2832. Procedure TItemScope.SetworstRating(AIndex : Integer; const AValue : String);
  2833. begin
  2834. If (FworstRating=AValue) then exit;
  2835. FworstRating:=AValue;
  2836. MarkPropertyChanged(AIndex);
  2837. end;
  2838. Class Function TItemScope.ExportPropertyName(Const AName : String) :String;
  2839. begin
  2840. Case AName of
  2841. '_type' : Result:='type';
  2842. else
  2843. Result:=Inherited ExportPropertyName(AName);
  2844. end;
  2845. end;
  2846. //2.6.4. bug workaround
  2847. {$IFDEF VER2_6}
  2848. Procedure TItemScope.SetArrayLength(Const AName : String; ALength : Longint);
  2849. begin
  2850. Case AName of
  2851. 'additionalname' : SetLength(FadditionalName,ALength);
  2852. 'associated_media' : SetLength(Fassociated_media,ALength);
  2853. 'attendees' : SetLength(Fattendees,ALength);
  2854. 'author' : SetLength(Fauthor,ALength);
  2855. 'contributor' : SetLength(Fcontributor,ALength);
  2856. 'performers' : SetLength(Fperformers,ALength);
  2857. else
  2858. Inherited SetArrayLength(AName,ALength);
  2859. end;
  2860. end;
  2861. {$ENDIF VER2_6}
  2862. { --------------------------------------------------------------------
  2863. TMoment
  2864. --------------------------------------------------------------------}
  2865. Procedure TMoment.Setid(AIndex : Integer; const AValue : String);
  2866. begin
  2867. If (Fid=AValue) then exit;
  2868. Fid:=AValue;
  2869. MarkPropertyChanged(AIndex);
  2870. end;
  2871. Procedure TMoment.Setkind(AIndex : Integer; const AValue : String);
  2872. begin
  2873. If (Fkind=AValue) then exit;
  2874. Fkind:=AValue;
  2875. MarkPropertyChanged(AIndex);
  2876. end;
  2877. Procedure TMoment.Set_object(AIndex : Integer; AValue : TItemScope);
  2878. begin
  2879. If (F_object=AValue) then exit;
  2880. F_object:=AValue;
  2881. MarkPropertyChanged(AIndex);
  2882. end;
  2883. Procedure TMoment.Setresult(AIndex : Integer; AValue : TItemScope);
  2884. begin
  2885. If (Fresult=AValue) then exit;
  2886. Fresult:=AValue;
  2887. MarkPropertyChanged(AIndex);
  2888. end;
  2889. Procedure TMoment.SetstartDate(AIndex : Integer; AValue : TDatetime);
  2890. begin
  2891. If (FstartDate=AValue) then exit;
  2892. FstartDate:=AValue;
  2893. MarkPropertyChanged(AIndex);
  2894. end;
  2895. Procedure TMoment.Settarget(AIndex : Integer; AValue : TItemScope);
  2896. begin
  2897. If (Ftarget=AValue) then exit;
  2898. Ftarget:=AValue;
  2899. MarkPropertyChanged(AIndex);
  2900. end;
  2901. Procedure TMoment.Set_type(AIndex : Integer; const AValue : String);
  2902. begin
  2903. If (F_type=AValue) then exit;
  2904. F_type:=AValue;
  2905. MarkPropertyChanged(AIndex);
  2906. end;
  2907. Class Function TMoment.ExportPropertyName(Const AName : String) :String;
  2908. begin
  2909. Case AName of
  2910. '_object' : Result:='object';
  2911. '_type' : Result:='type';
  2912. else
  2913. Result:=Inherited ExportPropertyName(AName);
  2914. end;
  2915. end;
  2916. { --------------------------------------------------------------------
  2917. TMomentsFeed
  2918. --------------------------------------------------------------------}
  2919. Procedure TMomentsFeed.Setetag(AIndex : Integer; const AValue : String);
  2920. begin
  2921. If (Fetag=AValue) then exit;
  2922. Fetag:=AValue;
  2923. MarkPropertyChanged(AIndex);
  2924. end;
  2925. Procedure TMomentsFeed.Setitems(AIndex : Integer; AValue : TMomentsFeedTypeitemsArray);
  2926. begin
  2927. If (Fitems=AValue) then exit;
  2928. Fitems:=AValue;
  2929. MarkPropertyChanged(AIndex);
  2930. end;
  2931. Procedure TMomentsFeed.Setkind(AIndex : Integer; const AValue : String);
  2932. begin
  2933. If (Fkind=AValue) then exit;
  2934. Fkind:=AValue;
  2935. MarkPropertyChanged(AIndex);
  2936. end;
  2937. Procedure TMomentsFeed.SetnextLink(AIndex : Integer; const AValue : String);
  2938. begin
  2939. If (FnextLink=AValue) then exit;
  2940. FnextLink:=AValue;
  2941. MarkPropertyChanged(AIndex);
  2942. end;
  2943. Procedure TMomentsFeed.SetnextPageToken(AIndex : Integer; const AValue : String);
  2944. begin
  2945. If (FnextPageToken=AValue) then exit;
  2946. FnextPageToken:=AValue;
  2947. MarkPropertyChanged(AIndex);
  2948. end;
  2949. Procedure TMomentsFeed.SetselfLink(AIndex : Integer; const AValue : String);
  2950. begin
  2951. If (FselfLink=AValue) then exit;
  2952. FselfLink:=AValue;
  2953. MarkPropertyChanged(AIndex);
  2954. end;
  2955. Procedure TMomentsFeed.Settitle(AIndex : Integer; const AValue : String);
  2956. begin
  2957. If (Ftitle=AValue) then exit;
  2958. Ftitle:=AValue;
  2959. MarkPropertyChanged(AIndex);
  2960. end;
  2961. Procedure TMomentsFeed.Setupdated(AIndex : Integer; AValue : TDatetime);
  2962. begin
  2963. If (Fupdated=AValue) then exit;
  2964. Fupdated:=AValue;
  2965. MarkPropertyChanged(AIndex);
  2966. end;
  2967. //2.6.4. bug workaround
  2968. {$IFDEF VER2_6}
  2969. Procedure TMomentsFeed.SetArrayLength(Const AName : String; ALength : Longint);
  2970. begin
  2971. Case AName of
  2972. 'items' : SetLength(Fitems,ALength);
  2973. else
  2974. Inherited SetArrayLength(AName,ALength);
  2975. end;
  2976. end;
  2977. {$ENDIF VER2_6}
  2978. { --------------------------------------------------------------------
  2979. TPeopleFeed
  2980. --------------------------------------------------------------------}
  2981. Procedure TPeopleFeed.Setetag(AIndex : Integer; const AValue : String);
  2982. begin
  2983. If (Fetag=AValue) then exit;
  2984. Fetag:=AValue;
  2985. MarkPropertyChanged(AIndex);
  2986. end;
  2987. Procedure TPeopleFeed.Setitems(AIndex : Integer; AValue : TPeopleFeedTypeitemsArray);
  2988. begin
  2989. If (Fitems=AValue) then exit;
  2990. Fitems:=AValue;
  2991. MarkPropertyChanged(AIndex);
  2992. end;
  2993. Procedure TPeopleFeed.Setkind(AIndex : Integer; const AValue : String);
  2994. begin
  2995. If (Fkind=AValue) then exit;
  2996. Fkind:=AValue;
  2997. MarkPropertyChanged(AIndex);
  2998. end;
  2999. Procedure TPeopleFeed.SetnextPageToken(AIndex : Integer; const AValue : String);
  3000. begin
  3001. If (FnextPageToken=AValue) then exit;
  3002. FnextPageToken:=AValue;
  3003. MarkPropertyChanged(AIndex);
  3004. end;
  3005. Procedure TPeopleFeed.SetselfLink(AIndex : Integer; const AValue : String);
  3006. begin
  3007. If (FselfLink=AValue) then exit;
  3008. FselfLink:=AValue;
  3009. MarkPropertyChanged(AIndex);
  3010. end;
  3011. Procedure TPeopleFeed.Settitle(AIndex : Integer; const AValue : String);
  3012. begin
  3013. If (Ftitle=AValue) then exit;
  3014. Ftitle:=AValue;
  3015. MarkPropertyChanged(AIndex);
  3016. end;
  3017. Procedure TPeopleFeed.SettotalItems(AIndex : Integer; AValue : integer);
  3018. begin
  3019. If (FtotalItems=AValue) then exit;
  3020. FtotalItems:=AValue;
  3021. MarkPropertyChanged(AIndex);
  3022. end;
  3023. //2.6.4. bug workaround
  3024. {$IFDEF VER2_6}
  3025. Procedure TPeopleFeed.SetArrayLength(Const AName : String; ALength : Longint);
  3026. begin
  3027. Case AName of
  3028. 'items' : SetLength(Fitems,ALength);
  3029. else
  3030. Inherited SetArrayLength(AName,ALength);
  3031. end;
  3032. end;
  3033. {$ENDIF VER2_6}
  3034. { --------------------------------------------------------------------
  3035. TPersonTypeageRange
  3036. --------------------------------------------------------------------}
  3037. Procedure TPersonTypeageRange.Setmax(AIndex : Integer; AValue : integer);
  3038. begin
  3039. If (Fmax=AValue) then exit;
  3040. Fmax:=AValue;
  3041. MarkPropertyChanged(AIndex);
  3042. end;
  3043. Procedure TPersonTypeageRange.Setmin(AIndex : Integer; AValue : integer);
  3044. begin
  3045. If (Fmin=AValue) then exit;
  3046. Fmin:=AValue;
  3047. MarkPropertyChanged(AIndex);
  3048. end;
  3049. { --------------------------------------------------------------------
  3050. TPersonTypecoverTypecoverInfo
  3051. --------------------------------------------------------------------}
  3052. Procedure TPersonTypecoverTypecoverInfo.SetleftImageOffset(AIndex : Integer; AValue : integer);
  3053. begin
  3054. If (FleftImageOffset=AValue) then exit;
  3055. FleftImageOffset:=AValue;
  3056. MarkPropertyChanged(AIndex);
  3057. end;
  3058. Procedure TPersonTypecoverTypecoverInfo.SettopImageOffset(AIndex : Integer; AValue : integer);
  3059. begin
  3060. If (FtopImageOffset=AValue) then exit;
  3061. FtopImageOffset:=AValue;
  3062. MarkPropertyChanged(AIndex);
  3063. end;
  3064. { --------------------------------------------------------------------
  3065. TPersonTypecoverTypecoverPhoto
  3066. --------------------------------------------------------------------}
  3067. Procedure TPersonTypecoverTypecoverPhoto.Setheight(AIndex : Integer; AValue : integer);
  3068. begin
  3069. If (Fheight=AValue) then exit;
  3070. Fheight:=AValue;
  3071. MarkPropertyChanged(AIndex);
  3072. end;
  3073. Procedure TPersonTypecoverTypecoverPhoto.Seturl(AIndex : Integer; const AValue : String);
  3074. begin
  3075. If (Furl=AValue) then exit;
  3076. Furl:=AValue;
  3077. MarkPropertyChanged(AIndex);
  3078. end;
  3079. Procedure TPersonTypecoverTypecoverPhoto.Setwidth(AIndex : Integer; AValue : integer);
  3080. begin
  3081. If (Fwidth=AValue) then exit;
  3082. Fwidth:=AValue;
  3083. MarkPropertyChanged(AIndex);
  3084. end;
  3085. { --------------------------------------------------------------------
  3086. TPersonTypecover
  3087. --------------------------------------------------------------------}
  3088. Procedure TPersonTypecover.SetcoverInfo(AIndex : Integer; AValue : TPersonTypecoverTypecoverInfo);
  3089. begin
  3090. If (FcoverInfo=AValue) then exit;
  3091. FcoverInfo:=AValue;
  3092. MarkPropertyChanged(AIndex);
  3093. end;
  3094. Procedure TPersonTypecover.SetcoverPhoto(AIndex : Integer; AValue : TPersonTypecoverTypecoverPhoto);
  3095. begin
  3096. If (FcoverPhoto=AValue) then exit;
  3097. FcoverPhoto:=AValue;
  3098. MarkPropertyChanged(AIndex);
  3099. end;
  3100. Procedure TPersonTypecover.Setlayout(AIndex : Integer; const AValue : String);
  3101. begin
  3102. If (Flayout=AValue) then exit;
  3103. Flayout:=AValue;
  3104. MarkPropertyChanged(AIndex);
  3105. end;
  3106. { --------------------------------------------------------------------
  3107. TPersonTypeemailsItem
  3108. --------------------------------------------------------------------}
  3109. Procedure TPersonTypeemailsItem.Set_type(AIndex : Integer; const AValue : String);
  3110. begin
  3111. If (F_type=AValue) then exit;
  3112. F_type:=AValue;
  3113. MarkPropertyChanged(AIndex);
  3114. end;
  3115. Procedure TPersonTypeemailsItem.Setvalue(AIndex : Integer; const AValue : String);
  3116. begin
  3117. If (Fvalue=AValue) then exit;
  3118. Fvalue:=AValue;
  3119. MarkPropertyChanged(AIndex);
  3120. end;
  3121. Class Function TPersonTypeemailsItem.ExportPropertyName(Const AName : String) :String;
  3122. begin
  3123. Case AName of
  3124. '_type' : Result:='type';
  3125. else
  3126. Result:=Inherited ExportPropertyName(AName);
  3127. end;
  3128. end;
  3129. { --------------------------------------------------------------------
  3130. TPersonTypeimage
  3131. --------------------------------------------------------------------}
  3132. Procedure TPersonTypeimage.SetisDefault(AIndex : Integer; AValue : boolean);
  3133. begin
  3134. If (FisDefault=AValue) then exit;
  3135. FisDefault:=AValue;
  3136. MarkPropertyChanged(AIndex);
  3137. end;
  3138. Procedure TPersonTypeimage.Seturl(AIndex : Integer; const AValue : String);
  3139. begin
  3140. If (Furl=AValue) then exit;
  3141. Furl:=AValue;
  3142. MarkPropertyChanged(AIndex);
  3143. end;
  3144. { --------------------------------------------------------------------
  3145. TPersonTypename
  3146. --------------------------------------------------------------------}
  3147. Procedure TPersonTypename.SetfamilyName(AIndex : Integer; const AValue : String);
  3148. begin
  3149. If (FfamilyName=AValue) then exit;
  3150. FfamilyName:=AValue;
  3151. MarkPropertyChanged(AIndex);
  3152. end;
  3153. Procedure TPersonTypename.Setformatted(AIndex : Integer; const AValue : String);
  3154. begin
  3155. If (Fformatted=AValue) then exit;
  3156. Fformatted:=AValue;
  3157. MarkPropertyChanged(AIndex);
  3158. end;
  3159. Procedure TPersonTypename.SetgivenName(AIndex : Integer; const AValue : String);
  3160. begin
  3161. If (FgivenName=AValue) then exit;
  3162. FgivenName:=AValue;
  3163. MarkPropertyChanged(AIndex);
  3164. end;
  3165. Procedure TPersonTypename.SethonorificPrefix(AIndex : Integer; const AValue : String);
  3166. begin
  3167. If (FhonorificPrefix=AValue) then exit;
  3168. FhonorificPrefix:=AValue;
  3169. MarkPropertyChanged(AIndex);
  3170. end;
  3171. Procedure TPersonTypename.SethonorificSuffix(AIndex : Integer; const AValue : String);
  3172. begin
  3173. If (FhonorificSuffix=AValue) then exit;
  3174. FhonorificSuffix:=AValue;
  3175. MarkPropertyChanged(AIndex);
  3176. end;
  3177. Procedure TPersonTypename.SetmiddleName(AIndex : Integer; const AValue : String);
  3178. begin
  3179. If (FmiddleName=AValue) then exit;
  3180. FmiddleName:=AValue;
  3181. MarkPropertyChanged(AIndex);
  3182. end;
  3183. { --------------------------------------------------------------------
  3184. TPersonTypeorganizationsItem
  3185. --------------------------------------------------------------------}
  3186. Procedure TPersonTypeorganizationsItem.Setdepartment(AIndex : Integer; const AValue : String);
  3187. begin
  3188. If (Fdepartment=AValue) then exit;
  3189. Fdepartment:=AValue;
  3190. MarkPropertyChanged(AIndex);
  3191. end;
  3192. Procedure TPersonTypeorganizationsItem.Setdescription(AIndex : Integer; const AValue : String);
  3193. begin
  3194. If (Fdescription=AValue) then exit;
  3195. Fdescription:=AValue;
  3196. MarkPropertyChanged(AIndex);
  3197. end;
  3198. Procedure TPersonTypeorganizationsItem.SetendDate(AIndex : Integer; const AValue : String);
  3199. begin
  3200. If (FendDate=AValue) then exit;
  3201. FendDate:=AValue;
  3202. MarkPropertyChanged(AIndex);
  3203. end;
  3204. Procedure TPersonTypeorganizationsItem.Setlocation(AIndex : Integer; const AValue : String);
  3205. begin
  3206. If (Flocation=AValue) then exit;
  3207. Flocation:=AValue;
  3208. MarkPropertyChanged(AIndex);
  3209. end;
  3210. Procedure TPersonTypeorganizationsItem.Setname(AIndex : Integer; const AValue : String);
  3211. begin
  3212. If (Fname=AValue) then exit;
  3213. Fname:=AValue;
  3214. MarkPropertyChanged(AIndex);
  3215. end;
  3216. Procedure TPersonTypeorganizationsItem.Setprimary(AIndex : Integer; AValue : boolean);
  3217. begin
  3218. If (Fprimary=AValue) then exit;
  3219. Fprimary:=AValue;
  3220. MarkPropertyChanged(AIndex);
  3221. end;
  3222. Procedure TPersonTypeorganizationsItem.SetstartDate(AIndex : Integer; const AValue : String);
  3223. begin
  3224. If (FstartDate=AValue) then exit;
  3225. FstartDate:=AValue;
  3226. MarkPropertyChanged(AIndex);
  3227. end;
  3228. Procedure TPersonTypeorganizationsItem.Settitle(AIndex : Integer; const AValue : String);
  3229. begin
  3230. If (Ftitle=AValue) then exit;
  3231. Ftitle:=AValue;
  3232. MarkPropertyChanged(AIndex);
  3233. end;
  3234. Procedure TPersonTypeorganizationsItem.Set_type(AIndex : Integer; const AValue : String);
  3235. begin
  3236. If (F_type=AValue) then exit;
  3237. F_type:=AValue;
  3238. MarkPropertyChanged(AIndex);
  3239. end;
  3240. Class Function TPersonTypeorganizationsItem.ExportPropertyName(Const AName : String) :String;
  3241. begin
  3242. Case AName of
  3243. '_type' : Result:='type';
  3244. else
  3245. Result:=Inherited ExportPropertyName(AName);
  3246. end;
  3247. end;
  3248. { --------------------------------------------------------------------
  3249. TPersonTypeplacesLivedItem
  3250. --------------------------------------------------------------------}
  3251. Procedure TPersonTypeplacesLivedItem.Setprimary(AIndex : Integer; AValue : boolean);
  3252. begin
  3253. If (Fprimary=AValue) then exit;
  3254. Fprimary:=AValue;
  3255. MarkPropertyChanged(AIndex);
  3256. end;
  3257. Procedure TPersonTypeplacesLivedItem.Setvalue(AIndex : Integer; const AValue : String);
  3258. begin
  3259. If (Fvalue=AValue) then exit;
  3260. Fvalue:=AValue;
  3261. MarkPropertyChanged(AIndex);
  3262. end;
  3263. { --------------------------------------------------------------------
  3264. TPersonTypeurlsItem
  3265. --------------------------------------------------------------------}
  3266. Procedure TPersonTypeurlsItem.Set_label(AIndex : Integer; const AValue : String);
  3267. begin
  3268. If (F_label=AValue) then exit;
  3269. F_label:=AValue;
  3270. MarkPropertyChanged(AIndex);
  3271. end;
  3272. Procedure TPersonTypeurlsItem.Set_type(AIndex : Integer; const AValue : String);
  3273. begin
  3274. If (F_type=AValue) then exit;
  3275. F_type:=AValue;
  3276. MarkPropertyChanged(AIndex);
  3277. end;
  3278. Procedure TPersonTypeurlsItem.Setvalue(AIndex : Integer; const AValue : String);
  3279. begin
  3280. If (Fvalue=AValue) then exit;
  3281. Fvalue:=AValue;
  3282. MarkPropertyChanged(AIndex);
  3283. end;
  3284. Class Function TPersonTypeurlsItem.ExportPropertyName(Const AName : String) :String;
  3285. begin
  3286. Case AName of
  3287. '_label' : Result:='label';
  3288. '_type' : Result:='type';
  3289. else
  3290. Result:=Inherited ExportPropertyName(AName);
  3291. end;
  3292. end;
  3293. { --------------------------------------------------------------------
  3294. TPerson
  3295. --------------------------------------------------------------------}
  3296. Procedure TPerson.SetaboutMe(AIndex : Integer; const AValue : String);
  3297. begin
  3298. If (FaboutMe=AValue) then exit;
  3299. FaboutMe:=AValue;
  3300. MarkPropertyChanged(AIndex);
  3301. end;
  3302. Procedure TPerson.SetageRange(AIndex : Integer; AValue : TPersonTypeageRange);
  3303. begin
  3304. If (FageRange=AValue) then exit;
  3305. FageRange:=AValue;
  3306. MarkPropertyChanged(AIndex);
  3307. end;
  3308. Procedure TPerson.Setbirthday(AIndex : Integer; const AValue : String);
  3309. begin
  3310. If (Fbirthday=AValue) then exit;
  3311. Fbirthday:=AValue;
  3312. MarkPropertyChanged(AIndex);
  3313. end;
  3314. Procedure TPerson.SetbraggingRights(AIndex : Integer; const AValue : String);
  3315. begin
  3316. If (FbraggingRights=AValue) then exit;
  3317. FbraggingRights:=AValue;
  3318. MarkPropertyChanged(AIndex);
  3319. end;
  3320. Procedure TPerson.SetcircledByCount(AIndex : Integer; AValue : integer);
  3321. begin
  3322. If (FcircledByCount=AValue) then exit;
  3323. FcircledByCount:=AValue;
  3324. MarkPropertyChanged(AIndex);
  3325. end;
  3326. Procedure TPerson.Setcover(AIndex : Integer; AValue : TPersonTypecover);
  3327. begin
  3328. If (Fcover=AValue) then exit;
  3329. Fcover:=AValue;
  3330. MarkPropertyChanged(AIndex);
  3331. end;
  3332. Procedure TPerson.SetcurrentLocation(AIndex : Integer; const AValue : String);
  3333. begin
  3334. If (FcurrentLocation=AValue) then exit;
  3335. FcurrentLocation:=AValue;
  3336. MarkPropertyChanged(AIndex);
  3337. end;
  3338. Procedure TPerson.SetdisplayName(AIndex : Integer; const AValue : String);
  3339. begin
  3340. If (FdisplayName=AValue) then exit;
  3341. FdisplayName:=AValue;
  3342. MarkPropertyChanged(AIndex);
  3343. end;
  3344. Procedure TPerson.Setdomain(AIndex : Integer; const AValue : String);
  3345. begin
  3346. If (Fdomain=AValue) then exit;
  3347. Fdomain:=AValue;
  3348. MarkPropertyChanged(AIndex);
  3349. end;
  3350. Procedure TPerson.Setemails(AIndex : Integer; AValue : TPersonTypeemailsArray);
  3351. begin
  3352. If (Femails=AValue) then exit;
  3353. Femails:=AValue;
  3354. MarkPropertyChanged(AIndex);
  3355. end;
  3356. Procedure TPerson.Setetag(AIndex : Integer; const AValue : String);
  3357. begin
  3358. If (Fetag=AValue) then exit;
  3359. Fetag:=AValue;
  3360. MarkPropertyChanged(AIndex);
  3361. end;
  3362. Procedure TPerson.Setgender(AIndex : Integer; const AValue : String);
  3363. begin
  3364. If (Fgender=AValue) then exit;
  3365. Fgender:=AValue;
  3366. MarkPropertyChanged(AIndex);
  3367. end;
  3368. Procedure TPerson.Setid(AIndex : Integer; const AValue : String);
  3369. begin
  3370. If (Fid=AValue) then exit;
  3371. Fid:=AValue;
  3372. MarkPropertyChanged(AIndex);
  3373. end;
  3374. Procedure TPerson.Setimage(AIndex : Integer; AValue : TPersonTypeimage);
  3375. begin
  3376. If (Fimage=AValue) then exit;
  3377. Fimage:=AValue;
  3378. MarkPropertyChanged(AIndex);
  3379. end;
  3380. Procedure TPerson.SetisPlusUser(AIndex : Integer; AValue : boolean);
  3381. begin
  3382. If (FisPlusUser=AValue) then exit;
  3383. FisPlusUser:=AValue;
  3384. MarkPropertyChanged(AIndex);
  3385. end;
  3386. Procedure TPerson.Setkind(AIndex : Integer; const AValue : String);
  3387. begin
  3388. If (Fkind=AValue) then exit;
  3389. Fkind:=AValue;
  3390. MarkPropertyChanged(AIndex);
  3391. end;
  3392. Procedure TPerson.Setlanguage(AIndex : Integer; const AValue : String);
  3393. begin
  3394. If (Flanguage=AValue) then exit;
  3395. Flanguage:=AValue;
  3396. MarkPropertyChanged(AIndex);
  3397. end;
  3398. Procedure TPerson.Setname(AIndex : Integer; AValue : TPersonTypename);
  3399. begin
  3400. If (Fname=AValue) then exit;
  3401. Fname:=AValue;
  3402. MarkPropertyChanged(AIndex);
  3403. end;
  3404. Procedure TPerson.Setnickname(AIndex : Integer; const AValue : String);
  3405. begin
  3406. If (Fnickname=AValue) then exit;
  3407. Fnickname:=AValue;
  3408. MarkPropertyChanged(AIndex);
  3409. end;
  3410. Procedure TPerson.SetobjectType(AIndex : Integer; const AValue : String);
  3411. begin
  3412. If (FobjectType=AValue) then exit;
  3413. FobjectType:=AValue;
  3414. MarkPropertyChanged(AIndex);
  3415. end;
  3416. Procedure TPerson.Setoccupation(AIndex : Integer; const AValue : String);
  3417. begin
  3418. If (Foccupation=AValue) then exit;
  3419. Foccupation:=AValue;
  3420. MarkPropertyChanged(AIndex);
  3421. end;
  3422. Procedure TPerson.Setorganizations(AIndex : Integer; AValue : TPersonTypeorganizationsArray);
  3423. begin
  3424. If (Forganizations=AValue) then exit;
  3425. Forganizations:=AValue;
  3426. MarkPropertyChanged(AIndex);
  3427. end;
  3428. Procedure TPerson.SetplacesLived(AIndex : Integer; AValue : TPersonTypeplacesLivedArray);
  3429. begin
  3430. If (FplacesLived=AValue) then exit;
  3431. FplacesLived:=AValue;
  3432. MarkPropertyChanged(AIndex);
  3433. end;
  3434. Procedure TPerson.SetplusOneCount(AIndex : Integer; AValue : integer);
  3435. begin
  3436. If (FplusOneCount=AValue) then exit;
  3437. FplusOneCount:=AValue;
  3438. MarkPropertyChanged(AIndex);
  3439. end;
  3440. Procedure TPerson.SetrelationshipStatus(AIndex : Integer; const AValue : String);
  3441. begin
  3442. If (FrelationshipStatus=AValue) then exit;
  3443. FrelationshipStatus:=AValue;
  3444. MarkPropertyChanged(AIndex);
  3445. end;
  3446. Procedure TPerson.Setskills(AIndex : Integer; const AValue : String);
  3447. begin
  3448. If (Fskills=AValue) then exit;
  3449. Fskills:=AValue;
  3450. MarkPropertyChanged(AIndex);
  3451. end;
  3452. Procedure TPerson.Settagline(AIndex : Integer; const AValue : String);
  3453. begin
  3454. If (Ftagline=AValue) then exit;
  3455. Ftagline:=AValue;
  3456. MarkPropertyChanged(AIndex);
  3457. end;
  3458. Procedure TPerson.Seturl(AIndex : Integer; const AValue : String);
  3459. begin
  3460. If (Furl=AValue) then exit;
  3461. Furl:=AValue;
  3462. MarkPropertyChanged(AIndex);
  3463. end;
  3464. Procedure TPerson.Seturls(AIndex : Integer; AValue : TPersonTypeurlsArray);
  3465. begin
  3466. If (Furls=AValue) then exit;
  3467. Furls:=AValue;
  3468. MarkPropertyChanged(AIndex);
  3469. end;
  3470. Procedure TPerson.Setverified(AIndex : Integer; AValue : boolean);
  3471. begin
  3472. If (Fverified=AValue) then exit;
  3473. Fverified:=AValue;
  3474. MarkPropertyChanged(AIndex);
  3475. end;
  3476. //2.6.4. bug workaround
  3477. {$IFDEF VER2_6}
  3478. Procedure TPerson.SetArrayLength(Const AName : String; ALength : Longint);
  3479. begin
  3480. Case AName of
  3481. 'emails' : SetLength(Femails,ALength);
  3482. 'organizations' : SetLength(Forganizations,ALength);
  3483. 'placeslived' : SetLength(FplacesLived,ALength);
  3484. 'urls' : SetLength(Furls,ALength);
  3485. else
  3486. Inherited SetArrayLength(AName,ALength);
  3487. end;
  3488. end;
  3489. {$ENDIF VER2_6}
  3490. { --------------------------------------------------------------------
  3491. TPlaceTypeaddress
  3492. --------------------------------------------------------------------}
  3493. Procedure TPlaceTypeaddress.Setformatted(AIndex : Integer; const AValue : String);
  3494. begin
  3495. If (Fformatted=AValue) then exit;
  3496. Fformatted:=AValue;
  3497. MarkPropertyChanged(AIndex);
  3498. end;
  3499. { --------------------------------------------------------------------
  3500. TPlaceTypeposition
  3501. --------------------------------------------------------------------}
  3502. Procedure TPlaceTypeposition.Setlatitude(AIndex : Integer; AValue : double);
  3503. begin
  3504. If (Flatitude=AValue) then exit;
  3505. Flatitude:=AValue;
  3506. MarkPropertyChanged(AIndex);
  3507. end;
  3508. Procedure TPlaceTypeposition.Setlongitude(AIndex : Integer; AValue : double);
  3509. begin
  3510. If (Flongitude=AValue) then exit;
  3511. Flongitude:=AValue;
  3512. MarkPropertyChanged(AIndex);
  3513. end;
  3514. { --------------------------------------------------------------------
  3515. TPlace
  3516. --------------------------------------------------------------------}
  3517. Procedure TPlace.Setaddress(AIndex : Integer; AValue : TPlaceTypeaddress);
  3518. begin
  3519. If (Faddress=AValue) then exit;
  3520. Faddress:=AValue;
  3521. MarkPropertyChanged(AIndex);
  3522. end;
  3523. Procedure TPlace.SetdisplayName(AIndex : Integer; const AValue : String);
  3524. begin
  3525. If (FdisplayName=AValue) then exit;
  3526. FdisplayName:=AValue;
  3527. MarkPropertyChanged(AIndex);
  3528. end;
  3529. Procedure TPlace.Setid(AIndex : Integer; const AValue : String);
  3530. begin
  3531. If (Fid=AValue) then exit;
  3532. Fid:=AValue;
  3533. MarkPropertyChanged(AIndex);
  3534. end;
  3535. Procedure TPlace.Setkind(AIndex : Integer; const AValue : String);
  3536. begin
  3537. If (Fkind=AValue) then exit;
  3538. Fkind:=AValue;
  3539. MarkPropertyChanged(AIndex);
  3540. end;
  3541. Procedure TPlace.Setposition(AIndex : Integer; AValue : TPlaceTypeposition);
  3542. begin
  3543. If (Fposition=AValue) then exit;
  3544. Fposition:=AValue;
  3545. MarkPropertyChanged(AIndex);
  3546. end;
  3547. { --------------------------------------------------------------------
  3548. TPlusAclentryResource
  3549. --------------------------------------------------------------------}
  3550. Procedure TPlusAclentryResource.SetdisplayName(AIndex : Integer; const AValue : String);
  3551. begin
  3552. If (FdisplayName=AValue) then exit;
  3553. FdisplayName:=AValue;
  3554. MarkPropertyChanged(AIndex);
  3555. end;
  3556. Procedure TPlusAclentryResource.Setid(AIndex : Integer; const AValue : String);
  3557. begin
  3558. If (Fid=AValue) then exit;
  3559. Fid:=AValue;
  3560. MarkPropertyChanged(AIndex);
  3561. end;
  3562. Procedure TPlusAclentryResource.Set_type(AIndex : Integer; const AValue : String);
  3563. begin
  3564. If (F_type=AValue) then exit;
  3565. F_type:=AValue;
  3566. MarkPropertyChanged(AIndex);
  3567. end;
  3568. Class Function TPlusAclentryResource.ExportPropertyName(Const AName : String) :String;
  3569. begin
  3570. Case AName of
  3571. '_type' : Result:='type';
  3572. else
  3573. Result:=Inherited ExportPropertyName(AName);
  3574. end;
  3575. end;
  3576. { --------------------------------------------------------------------
  3577. TActivitiesResource
  3578. --------------------------------------------------------------------}
  3579. Class Function TActivitiesResource.ResourceName : String;
  3580. begin
  3581. Result:='activities';
  3582. end;
  3583. Class Function TActivitiesResource.DefaultAPI : TGoogleAPIClass;
  3584. begin
  3585. Result:=TplusAPI;
  3586. end;
  3587. Function TActivitiesResource.Get(activityId: string) : TActivity;
  3588. Const
  3589. _HTTPMethod = 'GET';
  3590. _Path = 'activities/{activityId}';
  3591. _Methodid = 'plus.activities.get';
  3592. Var
  3593. _P : String;
  3594. begin
  3595. _P:=SubstitutePath(_Path,['activityId',activityId]);
  3596. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TActivity) as TActivity;
  3597. end;
  3598. Function TActivitiesResource.List(collection: string; userId: string; AQuery : string = '') : TActivityFeed;
  3599. Const
  3600. _HTTPMethod = 'GET';
  3601. _Path = 'people/{userId}/activities/{collection}';
  3602. _Methodid = 'plus.activities.list';
  3603. Var
  3604. _P : String;
  3605. begin
  3606. _P:=SubstitutePath(_Path,['collection',collection,'userId',userId]);
  3607. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TActivityFeed) as TActivityFeed;
  3608. end;
  3609. Function TActivitiesResource.List(collection: string; userId: string; AQuery : TActivitieslistOptions) : TActivityFeed;
  3610. Var
  3611. _Q : String;
  3612. begin
  3613. _Q:='';
  3614. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3615. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  3616. Result:=List(collection,userId,_Q);
  3617. end;
  3618. Function TActivitiesResource.Search(AQuery : string = '') : TActivityFeed;
  3619. Const
  3620. _HTTPMethod = 'GET';
  3621. _Path = 'activities';
  3622. _Methodid = 'plus.activities.search';
  3623. begin
  3624. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TActivityFeed) as TActivityFeed;
  3625. end;
  3626. Function TActivitiesResource.Search(AQuery : TActivitiessearchOptions) : TActivityFeed;
  3627. Var
  3628. _Q : String;
  3629. begin
  3630. _Q:='';
  3631. AddToQuery(_Q,'language',AQuery.language);
  3632. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3633. AddToQuery(_Q,'orderBy',AQuery.orderBy);
  3634. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  3635. AddToQuery(_Q,'query',AQuery.query);
  3636. Result:=Search(_Q);
  3637. end;
  3638. { --------------------------------------------------------------------
  3639. TCommentsResource
  3640. --------------------------------------------------------------------}
  3641. Class Function TCommentsResource.ResourceName : String;
  3642. begin
  3643. Result:='comments';
  3644. end;
  3645. Class Function TCommentsResource.DefaultAPI : TGoogleAPIClass;
  3646. begin
  3647. Result:=TplusAPI;
  3648. end;
  3649. Function TCommentsResource.Get(commentId: string) : TComment;
  3650. Const
  3651. _HTTPMethod = 'GET';
  3652. _Path = 'comments/{commentId}';
  3653. _Methodid = 'plus.comments.get';
  3654. Var
  3655. _P : String;
  3656. begin
  3657. _P:=SubstitutePath(_Path,['commentId',commentId]);
  3658. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TComment) as TComment;
  3659. end;
  3660. Function TCommentsResource.List(activityId: string; AQuery : string = '') : TCommentFeed;
  3661. Const
  3662. _HTTPMethod = 'GET';
  3663. _Path = 'activities/{activityId}/comments';
  3664. _Methodid = 'plus.comments.list';
  3665. Var
  3666. _P : String;
  3667. begin
  3668. _P:=SubstitutePath(_Path,['activityId',activityId]);
  3669. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCommentFeed) as TCommentFeed;
  3670. end;
  3671. Function TCommentsResource.List(activityId: string; AQuery : TCommentslistOptions) : TCommentFeed;
  3672. Var
  3673. _Q : String;
  3674. begin
  3675. _Q:='';
  3676. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3677. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  3678. AddToQuery(_Q,'sortOrder',AQuery.sortOrder);
  3679. Result:=List(activityId,_Q);
  3680. end;
  3681. { --------------------------------------------------------------------
  3682. TMomentsResource
  3683. --------------------------------------------------------------------}
  3684. Class Function TMomentsResource.ResourceName : String;
  3685. begin
  3686. Result:='moments';
  3687. end;
  3688. Class Function TMomentsResource.DefaultAPI : TGoogleAPIClass;
  3689. begin
  3690. Result:=TplusAPI;
  3691. end;
  3692. Function TMomentsResource.Insert(collection: string; userId: string; aMoment : TMoment; AQuery : string = '') : TMoment;
  3693. Const
  3694. _HTTPMethod = 'POST';
  3695. _Path = 'people/{userId}/moments/{collection}';
  3696. _Methodid = 'plus.moments.insert';
  3697. Var
  3698. _P : String;
  3699. begin
  3700. _P:=SubstitutePath(_Path,['collection',collection,'userId',userId]);
  3701. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aMoment,TMoment) as TMoment;
  3702. end;
  3703. Function TMomentsResource.Insert(collection: string; userId: string; aMoment : TMoment; AQuery : TMomentsinsertOptions) : TMoment;
  3704. Var
  3705. _Q : String;
  3706. begin
  3707. _Q:='';
  3708. AddToQuery(_Q,'debug',AQuery.debug);
  3709. Result:=Insert(collection,userId,aMoment,_Q);
  3710. end;
  3711. Function TMomentsResource.List(collection: string; userId: string; AQuery : string = '') : TMomentsFeed;
  3712. Const
  3713. _HTTPMethod = 'GET';
  3714. _Path = 'people/{userId}/moments/{collection}';
  3715. _Methodid = 'plus.moments.list';
  3716. Var
  3717. _P : String;
  3718. begin
  3719. _P:=SubstitutePath(_Path,['collection',collection,'userId',userId]);
  3720. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TMomentsFeed) as TMomentsFeed;
  3721. end;
  3722. Function TMomentsResource.List(collection: string; userId: string; AQuery : TMomentslistOptions) : TMomentsFeed;
  3723. Var
  3724. _Q : String;
  3725. begin
  3726. _Q:='';
  3727. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3728. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  3729. AddToQuery(_Q,'targetUrl',AQuery.targetUrl);
  3730. AddToQuery(_Q,'type',AQuery._type);
  3731. Result:=List(collection,userId,_Q);
  3732. end;
  3733. Procedure TMomentsResource.Remove(id: string);
  3734. Const
  3735. _HTTPMethod = 'DELETE';
  3736. _Path = 'moments/{id}';
  3737. _Methodid = 'plus.moments.remove';
  3738. Var
  3739. _P : String;
  3740. begin
  3741. _P:=SubstitutePath(_Path,['id',id]);
  3742. ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
  3743. end;
  3744. { --------------------------------------------------------------------
  3745. TPeopleResource
  3746. --------------------------------------------------------------------}
  3747. Class Function TPeopleResource.ResourceName : String;
  3748. begin
  3749. Result:='people';
  3750. end;
  3751. Class Function TPeopleResource.DefaultAPI : TGoogleAPIClass;
  3752. begin
  3753. Result:=TplusAPI;
  3754. end;
  3755. Function TPeopleResource.Get(userId: string) : TPerson;
  3756. Const
  3757. _HTTPMethod = 'GET';
  3758. _Path = 'people/{userId}';
  3759. _Methodid = 'plus.people.get';
  3760. Var
  3761. _P : String;
  3762. begin
  3763. _P:=SubstitutePath(_Path,['userId',userId]);
  3764. Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TPerson) as TPerson;
  3765. end;
  3766. Function TPeopleResource.List(collection: string; userId: string; AQuery : string = '') : TPeopleFeed;
  3767. Const
  3768. _HTTPMethod = 'GET';
  3769. _Path = 'people/{userId}/people/{collection}';
  3770. _Methodid = 'plus.people.list';
  3771. Var
  3772. _P : String;
  3773. begin
  3774. _P:=SubstitutePath(_Path,['collection',collection,'userId',userId]);
  3775. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPeopleFeed) as TPeopleFeed;
  3776. end;
  3777. Function TPeopleResource.List(collection: string; userId: string; AQuery : TPeoplelistOptions) : TPeopleFeed;
  3778. Var
  3779. _Q : String;
  3780. begin
  3781. _Q:='';
  3782. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3783. AddToQuery(_Q,'orderBy',AQuery.orderBy);
  3784. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  3785. Result:=List(collection,userId,_Q);
  3786. end;
  3787. Function TPeopleResource.ListByActivity(activityId: string; collection: string; AQuery : string = '') : TPeopleFeed;
  3788. Const
  3789. _HTTPMethod = 'GET';
  3790. _Path = 'activities/{activityId}/people/{collection}';
  3791. _Methodid = 'plus.people.listByActivity';
  3792. Var
  3793. _P : String;
  3794. begin
  3795. _P:=SubstitutePath(_Path,['activityId',activityId,'collection',collection]);
  3796. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPeopleFeed) as TPeopleFeed;
  3797. end;
  3798. Function TPeopleResource.ListByActivity(activityId: string; collection: string; AQuery : TPeoplelistByActivityOptions) : TPeopleFeed;
  3799. Var
  3800. _Q : String;
  3801. begin
  3802. _Q:='';
  3803. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3804. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  3805. Result:=ListByActivity(activityId,collection,_Q);
  3806. end;
  3807. Function TPeopleResource.Search(AQuery : string = '') : TPeopleFeed;
  3808. Const
  3809. _HTTPMethod = 'GET';
  3810. _Path = 'people';
  3811. _Methodid = 'plus.people.search';
  3812. begin
  3813. Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TPeopleFeed) as TPeopleFeed;
  3814. end;
  3815. Function TPeopleResource.Search(AQuery : TPeoplesearchOptions) : TPeopleFeed;
  3816. Var
  3817. _Q : String;
  3818. begin
  3819. _Q:='';
  3820. AddToQuery(_Q,'language',AQuery.language);
  3821. AddToQuery(_Q,'maxResults',AQuery.maxResults);
  3822. AddToQuery(_Q,'pageToken',AQuery.pageToken);
  3823. AddToQuery(_Q,'query',AQuery.query);
  3824. Result:=Search(_Q);
  3825. end;
  3826. { --------------------------------------------------------------------
  3827. TPlusAPI
  3828. --------------------------------------------------------------------}
  3829. Class Function TPlusAPI.APIName : String;
  3830. begin
  3831. Result:='plus';
  3832. end;
  3833. Class Function TPlusAPI.APIVersion : String;
  3834. begin
  3835. Result:='v1';
  3836. end;
  3837. Class Function TPlusAPI.APIRevision : String;
  3838. begin
  3839. Result:='20150302';
  3840. end;
  3841. Class Function TPlusAPI.APIID : String;
  3842. begin
  3843. Result:='plus:v1';
  3844. end;
  3845. Class Function TPlusAPI.APITitle : String;
  3846. begin
  3847. Result:='Google+ API';
  3848. end;
  3849. Class Function TPlusAPI.APIDescription : String;
  3850. begin
  3851. Result:='The Google+ API enables developers to build on top of the Google+ platform.';
  3852. end;
  3853. Class Function TPlusAPI.APIOwnerDomain : String;
  3854. begin
  3855. Result:='google.com';
  3856. end;
  3857. Class Function TPlusAPI.APIOwnerName : String;
  3858. begin
  3859. Result:='Google';
  3860. end;
  3861. Class Function TPlusAPI.APIIcon16 : String;
  3862. begin
  3863. Result:='http://www.google.com/images/icons/product/gplus-16.png';
  3864. end;
  3865. Class Function TPlusAPI.APIIcon32 : String;
  3866. begin
  3867. Result:='http://www.google.com/images/icons/product/gplus-32.png';
  3868. end;
  3869. Class Function TPlusAPI.APIdocumentationLink : String;
  3870. begin
  3871. Result:='https://developers.google.com/+/api/';
  3872. end;
  3873. Class Function TPlusAPI.APIrootUrl : string;
  3874. begin
  3875. Result:='https://www.googleapis.com:443/';
  3876. end;
  3877. Class Function TPlusAPI.APIbasePath : string;
  3878. begin
  3879. Result:='/plus/v1/';
  3880. end;
  3881. Class Function TPlusAPI.APIbaseURL : String;
  3882. begin
  3883. Result:='https://www.googleapis.com:443/plus/v1/';
  3884. end;
  3885. Class Function TPlusAPI.APIProtocol : string;
  3886. begin
  3887. Result:='rest';
  3888. end;
  3889. Class Function TPlusAPI.APIservicePath : string;
  3890. begin
  3891. Result:='plus/v1/';
  3892. end;
  3893. Class Function TPlusAPI.APIbatchPath : String;
  3894. begin
  3895. Result:='batch';
  3896. end;
  3897. Class Function TPlusAPI.APIAuthScopes : TScopeInfoArray;
  3898. begin
  3899. SetLength(Result,4);
  3900. Result[0].Name:='https://www.googleapis.com/auth/plus.login';
  3901. Result[0].Description:='Know your basic profile info and list of people in your circles.';
  3902. Result[1].Name:='https://www.googleapis.com/auth/plus.me';
  3903. Result[1].Description:='Know who you are on Google';
  3904. Result[2].Name:='https://www.googleapis.com/auth/userinfo.email';
  3905. Result[2].Description:='View your email address';
  3906. Result[3].Name:='https://www.googleapis.com/auth/userinfo.profile';
  3907. Result[3].Description:='View your basic profile info';
  3908. end;
  3909. Class Function TPlusAPI.APINeedsAuth : Boolean;
  3910. begin
  3911. Result:=True;
  3912. end;
  3913. Class Procedure TPlusAPI.RegisterAPIResources;
  3914. begin
  3915. TAcl.RegisterObject;
  3916. TActivityTypeactorTypeimage.RegisterObject;
  3917. TActivityTypeactorTypename.RegisterObject;
  3918. TActivityTypeactor.RegisterObject;
  3919. TActivityTypeobjectTypeactorTypeimage.RegisterObject;
  3920. TActivityTypeobjectTypeactor.RegisterObject;
  3921. TActivityTypeobjectTypeattachmentsItemTypeembed.RegisterObject;
  3922. TActivityTypeobjectTypeattachmentsItemTypefullImage.RegisterObject;
  3923. TActivityTypeobjectTypeattachmentsItemTypeimage.RegisterObject;
  3924. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItemTypeimage.RegisterObject;
  3925. TActivityTypeobjectTypeattachmentsItemTypethumbnailsItem.RegisterObject;
  3926. TActivityTypeobjectTypeattachmentsItem.RegisterObject;
  3927. TActivityTypeobjectTypeplusoners.RegisterObject;
  3928. TActivityTypeobjectTypereplies.RegisterObject;
  3929. TActivityTypeobjectTyperesharers.RegisterObject;
  3930. TActivityTypeobject.RegisterObject;
  3931. TActivityTypeprovider.RegisterObject;
  3932. TActivity.RegisterObject;
  3933. TActivityFeed.RegisterObject;
  3934. TCommentTypeactorTypeimage.RegisterObject;
  3935. TCommentTypeactor.RegisterObject;
  3936. TCommentTypeinReplyToItem.RegisterObject;
  3937. TCommentTypeobject.RegisterObject;
  3938. TCommentTypeplusoners.RegisterObject;
  3939. TComment.RegisterObject;
  3940. TCommentFeed.RegisterObject;
  3941. TItemScope.RegisterObject;
  3942. TMoment.RegisterObject;
  3943. TMomentsFeed.RegisterObject;
  3944. TPeopleFeed.RegisterObject;
  3945. TPersonTypeageRange.RegisterObject;
  3946. TPersonTypecoverTypecoverInfo.RegisterObject;
  3947. TPersonTypecoverTypecoverPhoto.RegisterObject;
  3948. TPersonTypecover.RegisterObject;
  3949. TPersonTypeemailsItem.RegisterObject;
  3950. TPersonTypeimage.RegisterObject;
  3951. TPersonTypename.RegisterObject;
  3952. TPersonTypeorganizationsItem.RegisterObject;
  3953. TPersonTypeplacesLivedItem.RegisterObject;
  3954. TPersonTypeurlsItem.RegisterObject;
  3955. TPerson.RegisterObject;
  3956. TPlaceTypeaddress.RegisterObject;
  3957. TPlaceTypeposition.RegisterObject;
  3958. TPlace.RegisterObject;
  3959. TPlusAclentryResource.RegisterObject;
  3960. end;
  3961. Function TPlusAPI.GetActivitiesInstance : TActivitiesResource;
  3962. begin
  3963. if (FActivitiesInstance=Nil) then
  3964. FActivitiesInstance:=CreateActivitiesResource;
  3965. Result:=FActivitiesInstance;
  3966. end;
  3967. Function TPlusAPI.CreateActivitiesResource : TActivitiesResource;
  3968. begin
  3969. Result:=CreateActivitiesResource(Self);
  3970. end;
  3971. Function TPlusAPI.CreateActivitiesResource(AOwner : TComponent) : TActivitiesResource;
  3972. begin
  3973. Result:=TActivitiesResource.Create(AOwner);
  3974. Result.API:=Self.API;
  3975. end;
  3976. Function TPlusAPI.GetCommentsInstance : TCommentsResource;
  3977. begin
  3978. if (FCommentsInstance=Nil) then
  3979. FCommentsInstance:=CreateCommentsResource;
  3980. Result:=FCommentsInstance;
  3981. end;
  3982. Function TPlusAPI.CreateCommentsResource : TCommentsResource;
  3983. begin
  3984. Result:=CreateCommentsResource(Self);
  3985. end;
  3986. Function TPlusAPI.CreateCommentsResource(AOwner : TComponent) : TCommentsResource;
  3987. begin
  3988. Result:=TCommentsResource.Create(AOwner);
  3989. Result.API:=Self.API;
  3990. end;
  3991. Function TPlusAPI.GetMomentsInstance : TMomentsResource;
  3992. begin
  3993. if (FMomentsInstance=Nil) then
  3994. FMomentsInstance:=CreateMomentsResource;
  3995. Result:=FMomentsInstance;
  3996. end;
  3997. Function TPlusAPI.CreateMomentsResource : TMomentsResource;
  3998. begin
  3999. Result:=CreateMomentsResource(Self);
  4000. end;
  4001. Function TPlusAPI.CreateMomentsResource(AOwner : TComponent) : TMomentsResource;
  4002. begin
  4003. Result:=TMomentsResource.Create(AOwner);
  4004. Result.API:=Self.API;
  4005. end;
  4006. Function TPlusAPI.GetPeopleInstance : TPeopleResource;
  4007. begin
  4008. if (FPeopleInstance=Nil) then
  4009. FPeopleInstance:=CreatePeopleResource;
  4010. Result:=FPeopleInstance;
  4011. end;
  4012. Function TPlusAPI.CreatePeopleResource : TPeopleResource;
  4013. begin
  4014. Result:=CreatePeopleResource(Self);
  4015. end;
  4016. Function TPlusAPI.CreatePeopleResource(AOwner : TComponent) : TPeopleResource;
  4017. begin
  4018. Result:=TPeopleResource.Create(AOwner);
  4019. Result.API:=Self.API;
  4020. end;
  4021. initialization
  4022. TPlusAPI.RegisterAPI;
  4023. end.