12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631 |
- unit googleblogger;
- {$MODE objfpc}
- {$H+}
- interface
- uses sysutils, classes, googleservice, restbase, googlebase;
- type
-
- //Top-level schema types
- TBlog = Class;
- TBlogList = Class;
- TBlogPerUserInfo = Class;
- TBlogUserInfo = Class;
- TComment = Class;
- TCommentList = Class;
- TPage = Class;
- TPageList = Class;
- TPageviews = Class;
- TPost = Class;
- TPostList = Class;
- TPostPerUserInfo = Class;
- TPostUserInfo = Class;
- TPostUserInfosList = Class;
- TUser = Class;
- TBlogArray = Array of TBlog;
- TBlogListArray = Array of TBlogList;
- TBlogPerUserInfoArray = Array of TBlogPerUserInfo;
- TBlogUserInfoArray = Array of TBlogUserInfo;
- TCommentArray = Array of TComment;
- TCommentListArray = Array of TCommentList;
- TPageArray = Array of TPage;
- TPageListArray = Array of TPageList;
- TPageviewsArray = Array of TPageviews;
- TPostArray = Array of TPost;
- TPostListArray = Array of TPostList;
- TPostPerUserInfoArray = Array of TPostPerUserInfo;
- TPostUserInfoArray = Array of TPostUserInfo;
- TPostUserInfosListArray = Array of TPostUserInfosList;
- TUserArray = Array of TUser;
- //Anonymous types, using auto-generated names
- TBlogTypelocale = Class;
- TBlogTypepages = Class;
- TBlogTypeposts = Class;
- TCommentTypeauthorTypeimage = Class;
- TCommentTypeauthor = Class;
- TCommentTypeblog = Class;
- TCommentTypeinReplyTo = Class;
- TCommentTypepost = Class;
- TPageTypeauthorTypeimage = Class;
- TPageTypeauthor = Class;
- TPageTypeblog = Class;
- TPageviewsTypecountsItem = Class;
- TPostTypeauthorTypeimage = Class;
- TPostTypeauthor = Class;
- TPostTypeblog = Class;
- TPostTypeimagesItem = Class;
- TPostTypelocation = Class;
- TPostTypereplies = Class;
- TUserTypeblogs = Class;
- TUserTypelocale = Class;
- TBlogTypepostsTypeitemsArray = Array of TPost;
- TBlogListTypeblogUserInfosArray = Array of TBlogUserInfo;
- TBlogListTypeitemsArray = Array of TBlog;
- TCommentListTypeitemsArray = Array of TComment;
- TPageListTypeitemsArray = Array of TPage;
- TPageviewsTypecountsArray = Array of TPageviewsTypecountsItem;
- TPostTypeimagesArray = Array of TPostTypeimagesItem;
- TPostTyperepliesTypeitemsArray = Array of TComment;
- TPostListTypeitemsArray = Array of TPost;
- TPostUserInfosListTypeitemsArray = Array of TPostUserInfo;
-
- { --------------------------------------------------------------------
- TBlogTypelocale
- --------------------------------------------------------------------}
-
- TBlogTypelocale = Class(TGoogleBaseObject)
- Private
- Fcountry : String;
- Flanguage : String;
- Fvariant : String;
- Protected
- //Property setters
- Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlanguage(AIndex : Integer; const AValue : String); virtual;
- Procedure Setvariant(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property country : String Index 0 Read Fcountry Write Setcountry;
- Property language : String Index 8 Read Flanguage Write Setlanguage;
- Property variant : String Index 16 Read Fvariant Write Setvariant;
- end;
- TBlogTypelocaleClass = Class of TBlogTypelocale;
-
- { --------------------------------------------------------------------
- TBlogTypepages
- --------------------------------------------------------------------}
-
- TBlogTypepages = Class(TGoogleBaseObject)
- Private
- FselfLink : String;
- FtotalItems : integer;
- Protected
- //Property setters
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure SettotalItems(AIndex : Integer; const AValue : integer); virtual;
- Public
- Published
- Property selfLink : String Index 0 Read FselfLink Write SetselfLink;
- Property totalItems : integer Index 8 Read FtotalItems Write SettotalItems;
- end;
- TBlogTypepagesClass = Class of TBlogTypepages;
-
- { --------------------------------------------------------------------
- TBlogTypeposts
- --------------------------------------------------------------------}
-
- TBlogTypeposts = Class(TGoogleBaseObject)
- Private
- Fitems : TBlogTypepostsTypeitemsArray;
- FselfLink : String;
- FtotalItems : integer;
- Protected
- //Property setters
- Procedure Setitems(AIndex : Integer; const AValue : TBlogTypepostsTypeitemsArray); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure SettotalItems(AIndex : Integer; const AValue : integer); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property items : TBlogTypepostsTypeitemsArray Index 0 Read Fitems Write Setitems;
- Property selfLink : String Index 8 Read FselfLink Write SetselfLink;
- Property totalItems : integer Index 16 Read FtotalItems Write SettotalItems;
- end;
- TBlogTypepostsClass = Class of TBlogTypeposts;
-
- { --------------------------------------------------------------------
- TBlog
- --------------------------------------------------------------------}
-
- TBlog = Class(TGoogleBaseObject)
- Private
- FcustomMetaData : String;
- Fdescription : String;
- Fid : String;
- Fkind : String;
- Flocale : TBlogTypelocale;
- Fname : String;
- Fpages : TBlogTypepages;
- Fposts : TBlogTypeposts;
- F_published : TDatetime;
- FselfLink : String;
- Fstatus : String;
- Fupdated : TDatetime;
- Furl : String;
- Protected
- Class Function ExportPropertyName(Const AName : String) : string; override;
- //Property setters
- Procedure SetcustomMetaData(AIndex : Integer; const AValue : String); virtual;
- Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlocale(AIndex : Integer; const AValue : TBlogTypelocale); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure Setpages(AIndex : Integer; const AValue : TBlogTypepages); virtual;
- Procedure Setposts(AIndex : Integer; const AValue : TBlogTypeposts); virtual;
- Procedure Set_published(AIndex : Integer; const AValue : TDatetime); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
- Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property customMetaData : String Index 0 Read FcustomMetaData Write SetcustomMetaData;
- Property description : String Index 8 Read Fdescription Write Setdescription;
- Property id : String Index 16 Read Fid Write Setid;
- Property kind : String Index 24 Read Fkind Write Setkind;
- Property locale : TBlogTypelocale Index 32 Read Flocale Write Setlocale;
- Property name : String Index 40 Read Fname Write Setname;
- Property pages : TBlogTypepages Index 48 Read Fpages Write Setpages;
- Property posts : TBlogTypeposts Index 56 Read Fposts Write Setposts;
- Property _published : TDatetime Index 64 Read F_published Write Set_published;
- Property selfLink : String Index 72 Read FselfLink Write SetselfLink;
- Property status : String Index 80 Read Fstatus Write Setstatus;
- Property updated : TDatetime Index 88 Read Fupdated Write Setupdated;
- Property url : String Index 96 Read Furl Write Seturl;
- end;
- TBlogClass = Class of TBlog;
-
- { --------------------------------------------------------------------
- TBlogList
- --------------------------------------------------------------------}
-
- TBlogList = Class(TGoogleBaseObject)
- Private
- FblogUserInfos : TBlogListTypeblogUserInfosArray;
- Fitems : TBlogListTypeitemsArray;
- Fkind : String;
- Protected
- //Property setters
- Procedure SetblogUserInfos(AIndex : Integer; const AValue : TBlogListTypeblogUserInfosArray); virtual;
- Procedure Setitems(AIndex : Integer; const AValue : TBlogListTypeitemsArray); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property blogUserInfos : TBlogListTypeblogUserInfosArray Index 0 Read FblogUserInfos Write SetblogUserInfos;
- Property items : TBlogListTypeitemsArray Index 8 Read Fitems Write Setitems;
- Property kind : String Index 16 Read Fkind Write Setkind;
- end;
- TBlogListClass = Class of TBlogList;
-
- { --------------------------------------------------------------------
- TBlogPerUserInfo
- --------------------------------------------------------------------}
-
- TBlogPerUserInfo = Class(TGoogleBaseObject)
- Private
- FblogId : String;
- FhasAdminAccess : boolean;
- Fkind : String;
- FphotosAlbumKey : String;
- Frole : String;
- FuserId : String;
- Protected
- //Property setters
- Procedure SetblogId(AIndex : Integer; const AValue : String); virtual;
- Procedure SethasAdminAccess(AIndex : Integer; const AValue : boolean); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure SetphotosAlbumKey(AIndex : Integer; const AValue : String); virtual;
- Procedure Setrole(AIndex : Integer; const AValue : String); virtual;
- Procedure SetuserId(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property blogId : String Index 0 Read FblogId Write SetblogId;
- Property hasAdminAccess : boolean Index 8 Read FhasAdminAccess Write SethasAdminAccess;
- Property kind : String Index 16 Read Fkind Write Setkind;
- Property photosAlbumKey : String Index 24 Read FphotosAlbumKey Write SetphotosAlbumKey;
- Property role : String Index 32 Read Frole Write Setrole;
- Property userId : String Index 40 Read FuserId Write SetuserId;
- end;
- TBlogPerUserInfoClass = Class of TBlogPerUserInfo;
-
- { --------------------------------------------------------------------
- TBlogUserInfo
- --------------------------------------------------------------------}
-
- TBlogUserInfo = Class(TGoogleBaseObject)
- Private
- Fblog : TBlog;
- Fblog_user_info : TBlogPerUserInfo;
- Fkind : String;
- Protected
- //Property setters
- Procedure Setblog(AIndex : Integer; const AValue : TBlog); virtual;
- Procedure Setblog_user_info(AIndex : Integer; const AValue : TBlogPerUserInfo); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property blog : TBlog Index 0 Read Fblog Write Setblog;
- Property blog_user_info : TBlogPerUserInfo Index 8 Read Fblog_user_info Write Setblog_user_info;
- Property kind : String Index 16 Read Fkind Write Setkind;
- end;
- TBlogUserInfoClass = Class of TBlogUserInfo;
-
- { --------------------------------------------------------------------
- TCommentTypeauthorTypeimage
- --------------------------------------------------------------------}
-
- TCommentTypeauthorTypeimage = Class(TGoogleBaseObject)
- Private
- Furl : String;
- Protected
- //Property setters
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property url : String Index 0 Read Furl Write Seturl;
- end;
- TCommentTypeauthorTypeimageClass = Class of TCommentTypeauthorTypeimage;
-
- { --------------------------------------------------------------------
- TCommentTypeauthor
- --------------------------------------------------------------------}
-
- TCommentTypeauthor = Class(TGoogleBaseObject)
- Private
- FdisplayName : String;
- Fid : String;
- Fimage : TCommentTypeauthorTypeimage;
- Furl : String;
- Protected
- //Property setters
- Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setimage(AIndex : Integer; const AValue : TCommentTypeauthorTypeimage); virtual;
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property displayName : String Index 0 Read FdisplayName Write SetdisplayName;
- Property id : String Index 8 Read Fid Write Setid;
- Property image : TCommentTypeauthorTypeimage Index 16 Read Fimage Write Setimage;
- Property url : String Index 24 Read Furl Write Seturl;
- end;
- TCommentTypeauthorClass = Class of TCommentTypeauthor;
-
- { --------------------------------------------------------------------
- TCommentTypeblog
- --------------------------------------------------------------------}
-
- TCommentTypeblog = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- end;
- TCommentTypeblogClass = Class of TCommentTypeblog;
-
- { --------------------------------------------------------------------
- TCommentTypeinReplyTo
- --------------------------------------------------------------------}
-
- TCommentTypeinReplyTo = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- end;
- TCommentTypeinReplyToClass = Class of TCommentTypeinReplyTo;
-
- { --------------------------------------------------------------------
- TCommentTypepost
- --------------------------------------------------------------------}
-
- TCommentTypepost = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- end;
- TCommentTypepostClass = Class of TCommentTypepost;
-
- { --------------------------------------------------------------------
- TComment
- --------------------------------------------------------------------}
-
- TComment = Class(TGoogleBaseObject)
- Private
- Fauthor : TCommentTypeauthor;
- Fblog : TCommentTypeblog;
- Fcontent : String;
- Fid : String;
- FinReplyTo : TCommentTypeinReplyTo;
- Fkind : String;
- Fpost : TCommentTypepost;
- F_published : TDatetime;
- FselfLink : String;
- Fstatus : String;
- Fupdated : TDatetime;
- Protected
- Class Function ExportPropertyName(Const AName : String) : string; override;
- //Property setters
- Procedure Setauthor(AIndex : Integer; const AValue : TCommentTypeauthor); virtual;
- Procedure Setblog(AIndex : Integer; const AValue : TCommentTypeblog); virtual;
- Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure SetinReplyTo(AIndex : Integer; const AValue : TCommentTypeinReplyTo); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setpost(AIndex : Integer; const AValue : TCommentTypepost); virtual;
- Procedure Set_published(AIndex : Integer; const AValue : TDatetime); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
- Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
- Public
- Published
- Property author : TCommentTypeauthor Index 0 Read Fauthor Write Setauthor;
- Property blog : TCommentTypeblog Index 8 Read Fblog Write Setblog;
- Property content : String Index 16 Read Fcontent Write Setcontent;
- Property id : String Index 24 Read Fid Write Setid;
- Property inReplyTo : TCommentTypeinReplyTo Index 32 Read FinReplyTo Write SetinReplyTo;
- Property kind : String Index 40 Read Fkind Write Setkind;
- Property post : TCommentTypepost Index 48 Read Fpost Write Setpost;
- Property _published : TDatetime Index 56 Read F_published Write Set_published;
- Property selfLink : String Index 64 Read FselfLink Write SetselfLink;
- Property status : String Index 72 Read Fstatus Write Setstatus;
- Property updated : TDatetime Index 80 Read Fupdated Write Setupdated;
- end;
- TCommentClass = Class of TComment;
-
- { --------------------------------------------------------------------
- TCommentList
- --------------------------------------------------------------------}
-
- TCommentList = Class(TGoogleBaseObject)
- Private
- Fetag : String;
- Fitems : TCommentListTypeitemsArray;
- Fkind : String;
- FnextPageToken : String;
- FprevPageToken : String;
- Protected
- //Property setters
- Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
- Procedure Setitems(AIndex : Integer; const AValue : TCommentListTypeitemsArray); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
- Procedure SetprevPageToken(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property etag : String Index 0 Read Fetag Write Setetag;
- Property items : TCommentListTypeitemsArray Index 8 Read Fitems Write Setitems;
- Property kind : String Index 16 Read Fkind Write Setkind;
- Property nextPageToken : String Index 24 Read FnextPageToken Write SetnextPageToken;
- Property prevPageToken : String Index 32 Read FprevPageToken Write SetprevPageToken;
- end;
- TCommentListClass = Class of TCommentList;
-
- { --------------------------------------------------------------------
- TPageTypeauthorTypeimage
- --------------------------------------------------------------------}
-
- TPageTypeauthorTypeimage = Class(TGoogleBaseObject)
- Private
- Furl : String;
- Protected
- //Property setters
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property url : String Index 0 Read Furl Write Seturl;
- end;
- TPageTypeauthorTypeimageClass = Class of TPageTypeauthorTypeimage;
-
- { --------------------------------------------------------------------
- TPageTypeauthor
- --------------------------------------------------------------------}
-
- TPageTypeauthor = Class(TGoogleBaseObject)
- Private
- FdisplayName : String;
- Fid : String;
- Fimage : TPageTypeauthorTypeimage;
- Furl : String;
- Protected
- //Property setters
- Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setimage(AIndex : Integer; const AValue : TPageTypeauthorTypeimage); virtual;
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property displayName : String Index 0 Read FdisplayName Write SetdisplayName;
- Property id : String Index 8 Read Fid Write Setid;
- Property image : TPageTypeauthorTypeimage Index 16 Read Fimage Write Setimage;
- Property url : String Index 24 Read Furl Write Seturl;
- end;
- TPageTypeauthorClass = Class of TPageTypeauthor;
-
- { --------------------------------------------------------------------
- TPageTypeblog
- --------------------------------------------------------------------}
-
- TPageTypeblog = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- end;
- TPageTypeblogClass = Class of TPageTypeblog;
-
- { --------------------------------------------------------------------
- TPage
- --------------------------------------------------------------------}
-
- TPage = Class(TGoogleBaseObject)
- Private
- Fauthor : TPageTypeauthor;
- Fblog : TPageTypeblog;
- Fcontent : String;
- Fetag : String;
- Fid : String;
- Fkind : String;
- F_published : TDatetime;
- FselfLink : String;
- Fstatus : String;
- Ftitle : String;
- Fupdated : TDatetime;
- Furl : String;
- Protected
- Class Function ExportPropertyName(Const AName : String) : string; override;
- //Property setters
- Procedure Setauthor(AIndex : Integer; const AValue : TPageTypeauthor); virtual;
- Procedure Setblog(AIndex : Integer; const AValue : TPageTypeblog); virtual;
- Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
- Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Set_published(AIndex : Integer; const AValue : TDatetime); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
- Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
- Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property author : TPageTypeauthor Index 0 Read Fauthor Write Setauthor;
- Property blog : TPageTypeblog Index 8 Read Fblog Write Setblog;
- Property content : String Index 16 Read Fcontent Write Setcontent;
- Property etag : String Index 24 Read Fetag Write Setetag;
- Property id : String Index 32 Read Fid Write Setid;
- Property kind : String Index 40 Read Fkind Write Setkind;
- Property _published : TDatetime Index 48 Read F_published Write Set_published;
- Property selfLink : String Index 56 Read FselfLink Write SetselfLink;
- Property status : String Index 64 Read Fstatus Write Setstatus;
- Property title : String Index 72 Read Ftitle Write Settitle;
- Property updated : TDatetime Index 80 Read Fupdated Write Setupdated;
- Property url : String Index 88 Read Furl Write Seturl;
- end;
- TPageClass = Class of TPage;
-
- { --------------------------------------------------------------------
- TPageList
- --------------------------------------------------------------------}
-
- TPageList = Class(TGoogleBaseObject)
- Private
- Fetag : String;
- Fitems : TPageListTypeitemsArray;
- Fkind : String;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
- Procedure Setitems(AIndex : Integer; const AValue : TPageListTypeitemsArray); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property etag : String Index 0 Read Fetag Write Setetag;
- Property items : TPageListTypeitemsArray Index 8 Read Fitems Write Setitems;
- Property kind : String Index 16 Read Fkind Write Setkind;
- Property nextPageToken : String Index 24 Read FnextPageToken Write SetnextPageToken;
- end;
- TPageListClass = Class of TPageList;
-
- { --------------------------------------------------------------------
- TPageviewsTypecountsItem
- --------------------------------------------------------------------}
-
- TPageviewsTypecountsItem = Class(TGoogleBaseObject)
- Private
- Fcount : String;
- FtimeRange : String;
- Protected
- //Property setters
- Procedure Setcount(AIndex : Integer; const AValue : String); virtual;
- Procedure SettimeRange(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property count : String Index 0 Read Fcount Write Setcount;
- Property timeRange : String Index 8 Read FtimeRange Write SettimeRange;
- end;
- TPageviewsTypecountsItemClass = Class of TPageviewsTypecountsItem;
-
- { --------------------------------------------------------------------
- TPageviews
- --------------------------------------------------------------------}
-
- TPageviews = Class(TGoogleBaseObject)
- Private
- FblogId : String;
- Fcounts : TPageviewsTypecountsArray;
- Fkind : String;
- Protected
- //Property setters
- Procedure SetblogId(AIndex : Integer; const AValue : String); virtual;
- Procedure Setcounts(AIndex : Integer; const AValue : TPageviewsTypecountsArray); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property blogId : String Index 0 Read FblogId Write SetblogId;
- Property counts : TPageviewsTypecountsArray Index 8 Read Fcounts Write Setcounts;
- Property kind : String Index 16 Read Fkind Write Setkind;
- end;
- TPageviewsClass = Class of TPageviews;
-
- { --------------------------------------------------------------------
- TPostTypeauthorTypeimage
- --------------------------------------------------------------------}
-
- TPostTypeauthorTypeimage = Class(TGoogleBaseObject)
- Private
- Furl : String;
- Protected
- //Property setters
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property url : String Index 0 Read Furl Write Seturl;
- end;
- TPostTypeauthorTypeimageClass = Class of TPostTypeauthorTypeimage;
-
- { --------------------------------------------------------------------
- TPostTypeauthor
- --------------------------------------------------------------------}
-
- TPostTypeauthor = Class(TGoogleBaseObject)
- Private
- FdisplayName : String;
- Fid : String;
- Fimage : TPostTypeauthorTypeimage;
- Furl : String;
- Protected
- //Property setters
- Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setimage(AIndex : Integer; const AValue : TPostTypeauthorTypeimage); virtual;
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property displayName : String Index 0 Read FdisplayName Write SetdisplayName;
- Property id : String Index 8 Read Fid Write Setid;
- Property image : TPostTypeauthorTypeimage Index 16 Read Fimage Write Setimage;
- Property url : String Index 24 Read Furl Write Seturl;
- end;
- TPostTypeauthorClass = Class of TPostTypeauthor;
-
- { --------------------------------------------------------------------
- TPostTypeblog
- --------------------------------------------------------------------}
-
- TPostTypeblog = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- end;
- TPostTypeblogClass = Class of TPostTypeblog;
-
- { --------------------------------------------------------------------
- TPostTypeimagesItem
- --------------------------------------------------------------------}
-
- TPostTypeimagesItem = Class(TGoogleBaseObject)
- Private
- Furl : String;
- Protected
- //Property setters
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property url : String Index 0 Read Furl Write Seturl;
- end;
- TPostTypeimagesItemClass = Class of TPostTypeimagesItem;
-
- { --------------------------------------------------------------------
- TPostTypelocation
- --------------------------------------------------------------------}
-
- TPostTypelocation = Class(TGoogleBaseObject)
- Private
- Flat : double;
- Flng : double;
- Fname : String;
- Fspan : String;
- Protected
- //Property setters
- Procedure Setlat(AIndex : Integer; const AValue : double); virtual;
- Procedure Setlng(AIndex : Integer; const AValue : double); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure Setspan(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property lat : double Index 0 Read Flat Write Setlat;
- Property lng : double Index 8 Read Flng Write Setlng;
- Property name : String Index 16 Read Fname Write Setname;
- Property span : String Index 24 Read Fspan Write Setspan;
- end;
- TPostTypelocationClass = Class of TPostTypelocation;
-
- { --------------------------------------------------------------------
- TPostTypereplies
- --------------------------------------------------------------------}
-
- TPostTypereplies = Class(TGoogleBaseObject)
- Private
- Fitems : TPostTyperepliesTypeitemsArray;
- FselfLink : String;
- FtotalItems : String;
- Protected
- //Property setters
- Procedure Setitems(AIndex : Integer; const AValue : TPostTyperepliesTypeitemsArray); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure SettotalItems(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property items : TPostTyperepliesTypeitemsArray Index 0 Read Fitems Write Setitems;
- Property selfLink : String Index 8 Read FselfLink Write SetselfLink;
- Property totalItems : String Index 16 Read FtotalItems Write SettotalItems;
- end;
- TPostTyperepliesClass = Class of TPostTypereplies;
-
- { --------------------------------------------------------------------
- TPost
- --------------------------------------------------------------------}
-
- TPost = Class(TGoogleBaseObject)
- Private
- Fauthor : TPostTypeauthor;
- Fblog : TPostTypeblog;
- Fcontent : String;
- FcustomMetaData : String;
- Fetag : String;
- Fid : String;
- Fimages : TPostTypeimagesArray;
- Fkind : String;
- Flabels : TStringArray;
- Flocation : TPostTypelocation;
- F_published : TDatetime;
- FreaderComments : String;
- Freplies : TPostTypereplies;
- FselfLink : String;
- Fstatus : String;
- Ftitle : String;
- FtitleLink : String;
- Fupdated : TDatetime;
- Furl : String;
- Protected
- Class Function ExportPropertyName(Const AName : String) : string; override;
- //Property setters
- Procedure Setauthor(AIndex : Integer; const AValue : TPostTypeauthor); virtual;
- Procedure Setblog(AIndex : Integer; const AValue : TPostTypeblog); virtual;
- Procedure Setcontent(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcustomMetaData(AIndex : Integer; const AValue : String); virtual;
- Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setimages(AIndex : Integer; const AValue : TPostTypeimagesArray); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlabels(AIndex : Integer; const AValue : TStringArray); virtual;
- Procedure Setlocation(AIndex : Integer; const AValue : TPostTypelocation); virtual;
- Procedure Set_published(AIndex : Integer; const AValue : TDatetime); virtual;
- Procedure SetreaderComments(AIndex : Integer; const AValue : String); virtual;
- Procedure Setreplies(AIndex : Integer; const AValue : TPostTypereplies); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure Setstatus(AIndex : Integer; const AValue : String); virtual;
- Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
- Procedure SettitleLink(AIndex : Integer; const AValue : String); virtual;
- Procedure Setupdated(AIndex : Integer; const AValue : TDatetime); virtual;
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property author : TPostTypeauthor Index 0 Read Fauthor Write Setauthor;
- Property blog : TPostTypeblog Index 8 Read Fblog Write Setblog;
- Property content : String Index 16 Read Fcontent Write Setcontent;
- Property customMetaData : String Index 24 Read FcustomMetaData Write SetcustomMetaData;
- Property etag : String Index 32 Read Fetag Write Setetag;
- Property id : String Index 40 Read Fid Write Setid;
- Property images : TPostTypeimagesArray Index 48 Read Fimages Write Setimages;
- Property kind : String Index 56 Read Fkind Write Setkind;
- Property labels : TStringArray Index 64 Read Flabels Write Setlabels;
- Property location : TPostTypelocation Index 72 Read Flocation Write Setlocation;
- Property _published : TDatetime Index 80 Read F_published Write Set_published;
- Property readerComments : String Index 88 Read FreaderComments Write SetreaderComments;
- Property replies : TPostTypereplies Index 96 Read Freplies Write Setreplies;
- Property selfLink : String Index 104 Read FselfLink Write SetselfLink;
- Property status : String Index 112 Read Fstatus Write Setstatus;
- Property title : String Index 120 Read Ftitle Write Settitle;
- Property titleLink : String Index 128 Read FtitleLink Write SettitleLink;
- Property updated : TDatetime Index 136 Read Fupdated Write Setupdated;
- Property url : String Index 144 Read Furl Write Seturl;
- end;
- TPostClass = Class of TPost;
-
- { --------------------------------------------------------------------
- TPostList
- --------------------------------------------------------------------}
-
- TPostList = Class(TGoogleBaseObject)
- Private
- Fetag : String;
- Fitems : TPostListTypeitemsArray;
- Fkind : String;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setetag(AIndex : Integer; const AValue : String); virtual;
- Procedure Setitems(AIndex : Integer; const AValue : TPostListTypeitemsArray); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property etag : String Index 0 Read Fetag Write Setetag;
- Property items : TPostListTypeitemsArray Index 8 Read Fitems Write Setitems;
- Property kind : String Index 16 Read Fkind Write Setkind;
- Property nextPageToken : String Index 24 Read FnextPageToken Write SetnextPageToken;
- end;
- TPostListClass = Class of TPostList;
-
- { --------------------------------------------------------------------
- TPostPerUserInfo
- --------------------------------------------------------------------}
-
- TPostPerUserInfo = Class(TGoogleBaseObject)
- Private
- FblogId : String;
- FhasEditAccess : boolean;
- Fkind : String;
- FpostId : String;
- FuserId : String;
- Protected
- //Property setters
- Procedure SetblogId(AIndex : Integer; const AValue : String); virtual;
- Procedure SethasEditAccess(AIndex : Integer; const AValue : boolean); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure SetpostId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetuserId(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property blogId : String Index 0 Read FblogId Write SetblogId;
- Property hasEditAccess : boolean Index 8 Read FhasEditAccess Write SethasEditAccess;
- Property kind : String Index 16 Read Fkind Write Setkind;
- Property postId : String Index 24 Read FpostId Write SetpostId;
- Property userId : String Index 32 Read FuserId Write SetuserId;
- end;
- TPostPerUserInfoClass = Class of TPostPerUserInfo;
-
- { --------------------------------------------------------------------
- TPostUserInfo
- --------------------------------------------------------------------}
-
- TPostUserInfo = Class(TGoogleBaseObject)
- Private
- Fkind : String;
- Fpost : TPost;
- Fpost_user_info : TPostPerUserInfo;
- Protected
- //Property setters
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setpost(AIndex : Integer; const AValue : TPost); virtual;
- Procedure Setpost_user_info(AIndex : Integer; const AValue : TPostPerUserInfo); virtual;
- Public
- Published
- Property kind : String Index 0 Read Fkind Write Setkind;
- Property post : TPost Index 8 Read Fpost Write Setpost;
- Property post_user_info : TPostPerUserInfo Index 16 Read Fpost_user_info Write Setpost_user_info;
- end;
- TPostUserInfoClass = Class of TPostUserInfo;
-
- { --------------------------------------------------------------------
- TPostUserInfosList
- --------------------------------------------------------------------}
-
- TPostUserInfosList = Class(TGoogleBaseObject)
- Private
- Fitems : TPostUserInfosListTypeitemsArray;
- Fkind : String;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setitems(AIndex : Integer; const AValue : TPostUserInfosListTypeitemsArray); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure SetnextPageToken(AIndex : Integer; const AValue : String); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property items : TPostUserInfosListTypeitemsArray Index 0 Read Fitems Write Setitems;
- Property kind : String Index 8 Read Fkind Write Setkind;
- Property nextPageToken : String Index 16 Read FnextPageToken Write SetnextPageToken;
- end;
- TPostUserInfosListClass = Class of TPostUserInfosList;
-
- { --------------------------------------------------------------------
- TUserTypeblogs
- --------------------------------------------------------------------}
-
- TUserTypeblogs = Class(TGoogleBaseObject)
- Private
- FselfLink : String;
- Protected
- //Property setters
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property selfLink : String Index 0 Read FselfLink Write SetselfLink;
- end;
- TUserTypeblogsClass = Class of TUserTypeblogs;
-
- { --------------------------------------------------------------------
- TUserTypelocale
- --------------------------------------------------------------------}
-
- TUserTypelocale = Class(TGoogleBaseObject)
- Private
- Fcountry : String;
- Flanguage : String;
- Fvariant : String;
- Protected
- //Property setters
- Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlanguage(AIndex : Integer; const AValue : String); virtual;
- Procedure Setvariant(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property country : String Index 0 Read Fcountry Write Setcountry;
- Property language : String Index 8 Read Flanguage Write Setlanguage;
- Property variant : String Index 16 Read Fvariant Write Setvariant;
- end;
- TUserTypelocaleClass = Class of TUserTypelocale;
-
- { --------------------------------------------------------------------
- TUser
- --------------------------------------------------------------------}
-
- TUser = Class(TGoogleBaseObject)
- Private
- Fabout : String;
- Fblogs : TUserTypeblogs;
- Fcreated : TDatetime;
- FdisplayName : String;
- Fid : String;
- Fkind : String;
- Flocale : TUserTypelocale;
- FselfLink : String;
- Furl : String;
- Protected
- //Property setters
- Procedure Setabout(AIndex : Integer; const AValue : String); virtual;
- Procedure Setblogs(AIndex : Integer; const AValue : TUserTypeblogs); virtual;
- Procedure Setcreated(AIndex : Integer; const AValue : TDatetime); virtual;
- Procedure SetdisplayName(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlocale(AIndex : Integer; const AValue : TUserTypelocale); virtual;
- Procedure SetselfLink(AIndex : Integer; const AValue : String); virtual;
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property about : String Index 0 Read Fabout Write Setabout;
- Property blogs : TUserTypeblogs Index 8 Read Fblogs Write Setblogs;
- Property created : TDatetime Index 16 Read Fcreated Write Setcreated;
- Property displayName : String Index 24 Read FdisplayName Write SetdisplayName;
- Property id : String Index 32 Read Fid Write Setid;
- Property kind : String Index 40 Read Fkind Write Setkind;
- Property locale : TUserTypelocale Index 48 Read Flocale Write Setlocale;
- Property selfLink : String Index 56 Read FselfLink Write SetselfLink;
- Property url : String Index 64 Read Furl Write Seturl;
- end;
- TUserClass = Class of TUser;
-
- { --------------------------------------------------------------------
- TBlogUserInfosResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TBlogUserInfosResource, method Get
-
- TBlogUserInfosGetOptions = Record
- maxPosts : integer;
- end;
-
- TBlogUserInfosResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(blogId: string; userId: string; AQuery : string = '') : TBlogUserInfo;
- Function Get(blogId: string; userId: string; AQuery : TBlogUserInfosgetOptions) : TBlogUserInfo;
- end;
-
-
- { --------------------------------------------------------------------
- TBlogsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TBlogsResource, method Get
-
- TBlogsGetOptions = Record
- maxPosts : integer;
- view : String;
- end;
-
-
- //Optional query Options for TBlogsResource, method GetByUrl
-
- TBlogsGetByUrlOptions = Record
- url : String;
- view : String;
- end;
-
-
- //Optional query Options for TBlogsResource, method ListByUser
-
- TBlogsListByUserOptions = Record
- fetchUserInfo : boolean;
- role : String;
- status : String;
- view : String;
- end;
-
- TBlogsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(blogId: string; AQuery : string = '') : TBlog;
- Function Get(blogId: string; AQuery : TBlogsgetOptions) : TBlog;
- Function GetByUrl(AQuery : string = '') : TBlog;
- Function GetByUrl(AQuery : TBlogsgetByUrlOptions) : TBlog;
- Function ListByUser(userId: string; AQuery : string = '') : TBlogList;
- Function ListByUser(userId: string; AQuery : TBlogslistByUserOptions) : TBlogList;
- end;
-
-
- { --------------------------------------------------------------------
- TCommentsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TCommentsResource, method Get
-
- TCommentsGetOptions = Record
- view : String;
- end;
-
-
- //Optional query Options for TCommentsResource, method List
-
- TCommentsListOptions = Record
- endDate : TDatetime;
- fetchBodies : boolean;
- maxResults : integer;
- pageToken : String;
- startDate : TDatetime;
- status : String;
- view : String;
- end;
-
-
- //Optional query Options for TCommentsResource, method ListByBlog
-
- TCommentsListByBlogOptions = Record
- endDate : TDatetime;
- fetchBodies : boolean;
- maxResults : integer;
- pageToken : String;
- startDate : TDatetime;
- status : String;
- end;
-
- TCommentsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Approve(blogId: string; commentId: string; postId: string) : TComment;
- Procedure Delete(blogId: string; commentId: string; postId: string);
- Function Get(blogId: string; commentId: string; postId: string; AQuery : string = '') : TComment;
- Function Get(blogId: string; commentId: string; postId: string; AQuery : TCommentsgetOptions) : TComment;
- Function List(blogId: string; postId: string; AQuery : string = '') : TCommentList;
- Function List(blogId: string; postId: string; AQuery : TCommentslistOptions) : TCommentList;
- Function ListByBlog(blogId: string; AQuery : string = '') : TCommentList;
- Function ListByBlog(blogId: string; AQuery : TCommentslistByBlogOptions) : TCommentList;
- Function MarkAsSpam(blogId: string; commentId: string; postId: string) : TComment;
- Function RemoveContent(blogId: string; commentId: string; postId: string) : TComment;
- end;
-
-
- { --------------------------------------------------------------------
- TPageViewsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TPageViewsResource, method Get
-
- TPageViewsGetOptions = Record
- range : String;
- end;
-
- TPageViewsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(blogId: string; AQuery : string = '') : TPageviews;
- Function Get(blogId: string; AQuery : TPageViewsgetOptions) : TPageviews;
- end;
-
-
- { --------------------------------------------------------------------
- TPagesResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TPagesResource, method Get
-
- TPagesGetOptions = Record
- view : String;
- end;
-
-
- //Optional query Options for TPagesResource, method Insert
-
- TPagesInsertOptions = Record
- isDraft : boolean;
- end;
-
-
- //Optional query Options for TPagesResource, method List
-
- TPagesListOptions = Record
- fetchBodies : boolean;
- maxResults : integer;
- pageToken : String;
- status : String;
- view : String;
- end;
-
-
- //Optional query Options for TPagesResource, method Patch
-
- TPagesPatchOptions = Record
- publish : boolean;
- revert : boolean;
- end;
-
-
- //Optional query Options for TPagesResource, method Update
-
- TPagesUpdateOptions = Record
- publish : boolean;
- revert : boolean;
- end;
-
- TPagesResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Procedure Delete(blogId: string; pageId: string);
- Function Get(blogId: string; pageId: string; AQuery : string = '') : TPage;
- Function Get(blogId: string; pageId: string; AQuery : TPagesgetOptions) : TPage;
- Function Insert(blogId: string; aPage : TPage; AQuery : string = '') : TPage;
- Function Insert(blogId: string; aPage : TPage; AQuery : TPagesinsertOptions) : TPage;
- Function List(blogId: string; AQuery : string = '') : TPageList;
- Function List(blogId: string; AQuery : TPageslistOptions) : TPageList;
- Function Patch(blogId: string; pageId: string; aPage : TPage; AQuery : string = '') : TPage;
- Function Patch(blogId: string; pageId: string; aPage : TPage; AQuery : TPagespatchOptions) : TPage;
- Function Publish(blogId: string; pageId: string) : TPage;
- Function Revert(blogId: string; pageId: string) : TPage;
- Function Update(blogId: string; pageId: string; aPage : TPage; AQuery : string = '') : TPage;
- Function Update(blogId: string; pageId: string; aPage : TPage; AQuery : TPagesupdateOptions) : TPage;
- end;
-
-
- { --------------------------------------------------------------------
- TPostUserInfosResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TPostUserInfosResource, method Get
-
- TPostUserInfosGetOptions = Record
- maxComments : integer;
- end;
-
-
- //Optional query Options for TPostUserInfosResource, method List
-
- TPostUserInfosListOptions = Record
- endDate : TDatetime;
- fetchBodies : boolean;
- labels : String;
- maxResults : integer;
- orderBy : String;
- pageToken : String;
- startDate : TDatetime;
- status : String;
- view : String;
- end;
-
- TPostUserInfosResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(blogId: string; postId: string; userId: string; AQuery : string = '') : TPostUserInfo;
- Function Get(blogId: string; postId: string; userId: string; AQuery : TPostUserInfosgetOptions) : TPostUserInfo;
- Function List(blogId: string; userId: string; AQuery : string = '') : TPostUserInfosList;
- Function List(blogId: string; userId: string; AQuery : TPostUserInfoslistOptions) : TPostUserInfosList;
- end;
-
-
- { --------------------------------------------------------------------
- TPostsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TPostsResource, method Get
-
- TPostsGetOptions = Record
- fetchBody : boolean;
- fetchImages : boolean;
- maxComments : integer;
- view : String;
- end;
-
-
- //Optional query Options for TPostsResource, method GetByPath
-
- TPostsGetByPathOptions = Record
- maxComments : integer;
- path : String;
- view : String;
- end;
-
-
- //Optional query Options for TPostsResource, method Insert
-
- TPostsInsertOptions = Record
- fetchBody : boolean;
- fetchImages : boolean;
- isDraft : boolean;
- end;
-
-
- //Optional query Options for TPostsResource, method List
-
- TPostsListOptions = Record
- endDate : TDatetime;
- fetchBodies : boolean;
- fetchImages : boolean;
- labels : String;
- maxResults : integer;
- orderBy : String;
- pageToken : String;
- startDate : TDatetime;
- status : String;
- view : String;
- end;
-
-
- //Optional query Options for TPostsResource, method Patch
-
- TPostsPatchOptions = Record
- fetchBody : boolean;
- fetchImages : boolean;
- maxComments : integer;
- publish : boolean;
- revert : boolean;
- end;
-
-
- //Optional query Options for TPostsResource, method Publish
-
- TPostsPublishOptions = Record
- publishDate : TDatetime;
- end;
-
-
- //Optional query Options for TPostsResource, method Search
-
- TPostsSearchOptions = Record
- fetchBodies : boolean;
- orderBy : String;
- q : String;
- end;
-
-
- //Optional query Options for TPostsResource, method Update
-
- TPostsUpdateOptions = Record
- fetchBody : boolean;
- fetchImages : boolean;
- maxComments : integer;
- publish : boolean;
- revert : boolean;
- end;
-
- TPostsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Procedure Delete(blogId: string; postId: string);
- Function Get(blogId: string; postId: string; AQuery : string = '') : TPost;
- Function Get(blogId: string; postId: string; AQuery : TPostsgetOptions) : TPost;
- Function GetByPath(blogId: string; AQuery : string = '') : TPost;
- Function GetByPath(blogId: string; AQuery : TPostsgetByPathOptions) : TPost;
- Function Insert(blogId: string; aPost : TPost; AQuery : string = '') : TPost;
- Function Insert(blogId: string; aPost : TPost; AQuery : TPostsinsertOptions) : TPost;
- Function List(blogId: string; AQuery : string = '') : TPostList;
- Function List(blogId: string; AQuery : TPostslistOptions) : TPostList;
- Function Patch(blogId: string; postId: string; aPost : TPost; AQuery : string = '') : TPost;
- Function Patch(blogId: string; postId: string; aPost : TPost; AQuery : TPostspatchOptions) : TPost;
- Function Publish(blogId: string; postId: string; AQuery : string = '') : TPost;
- Function Publish(blogId: string; postId: string; AQuery : TPostspublishOptions) : TPost;
- Function Revert(blogId: string; postId: string) : TPost;
- Function Search(blogId: string; AQuery : string = '') : TPostList;
- Function Search(blogId: string; AQuery : TPostssearchOptions) : TPostList;
- Function Update(blogId: string; postId: string; aPost : TPost; AQuery : string = '') : TPost;
- Function Update(blogId: string; postId: string; aPost : TPost; AQuery : TPostsupdateOptions) : TPost;
- end;
-
-
- { --------------------------------------------------------------------
- TUsersResource
- --------------------------------------------------------------------}
-
- TUsersResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(userId: string) : TUser;
- end;
-
-
- { --------------------------------------------------------------------
- TBloggerAPI
- --------------------------------------------------------------------}
-
- TBloggerAPI = Class(TGoogleAPI)
- Private
- FBlogUserInfosInstance : TBlogUserInfosResource;
- FBlogsInstance : TBlogsResource;
- FCommentsInstance : TCommentsResource;
- FPageViewsInstance : TPageViewsResource;
- FPagesInstance : TPagesResource;
- FPostUserInfosInstance : TPostUserInfosResource;
- FPostsInstance : TPostsResource;
- FUsersInstance : TUsersResource;
- Function GetBlogUserInfosInstance : TBlogUserInfosResource;virtual;
- Function GetBlogsInstance : TBlogsResource;virtual;
- Function GetCommentsInstance : TCommentsResource;virtual;
- Function GetPageViewsInstance : TPageViewsResource;virtual;
- Function GetPagesInstance : TPagesResource;virtual;
- Function GetPostUserInfosInstance : TPostUserInfosResource;virtual;
- Function GetPostsInstance : TPostsResource;virtual;
- Function GetUsersInstance : TUsersResource;virtual;
- Public
- //Override class functions with API info
- Class Function APIName : String; override;
- Class Function APIVersion : String; override;
- Class Function APIRevision : String; override;
- Class Function APIID : String; override;
- Class Function APITitle : String; override;
- Class Function APIDescription : String; override;
- Class Function APIOwnerDomain : String; override;
- Class Function APIOwnerName : String; override;
- Class Function APIIcon16 : String; override;
- Class Function APIIcon32 : String; override;
- Class Function APIdocumentationLink : String; override;
- Class Function APIrootUrl : string; override;
- Class Function APIbasePath : string;override;
- Class Function APIbaseURL : String;override;
- Class Function APIProtocol : string;override;
- Class Function APIservicePath : string;override;
- Class Function APIbatchPath : String;override;
- Class Function APIAuthScopes : TScopeInfoArray;override;
- Class Function APINeedsAuth : Boolean;override;
- Class Procedure RegisterAPIResources; override;
- //Add create function for resources
- Function CreateBlogUserInfosResource(AOwner : TComponent) : TBlogUserInfosResource;virtual;overload;
- Function CreateBlogUserInfosResource : TBlogUserInfosResource;virtual;overload;
- Function CreateBlogsResource(AOwner : TComponent) : TBlogsResource;virtual;overload;
- Function CreateBlogsResource : TBlogsResource;virtual;overload;
- Function CreateCommentsResource(AOwner : TComponent) : TCommentsResource;virtual;overload;
- Function CreateCommentsResource : TCommentsResource;virtual;overload;
- Function CreatePageViewsResource(AOwner : TComponent) : TPageViewsResource;virtual;overload;
- Function CreatePageViewsResource : TPageViewsResource;virtual;overload;
- Function CreatePagesResource(AOwner : TComponent) : TPagesResource;virtual;overload;
- Function CreatePagesResource : TPagesResource;virtual;overload;
- Function CreatePostUserInfosResource(AOwner : TComponent) : TPostUserInfosResource;virtual;overload;
- Function CreatePostUserInfosResource : TPostUserInfosResource;virtual;overload;
- Function CreatePostsResource(AOwner : TComponent) : TPostsResource;virtual;overload;
- Function CreatePostsResource : TPostsResource;virtual;overload;
- Function CreateUsersResource(AOwner : TComponent) : TUsersResource;virtual;overload;
- Function CreateUsersResource : TUsersResource;virtual;overload;
- //Add default on-demand instances for resources
- Property BlogUserInfosResource : TBlogUserInfosResource Read GetBlogUserInfosInstance;
- Property BlogsResource : TBlogsResource Read GetBlogsInstance;
- Property CommentsResource : TCommentsResource Read GetCommentsInstance;
- Property PageViewsResource : TPageViewsResource Read GetPageViewsInstance;
- Property PagesResource : TPagesResource Read GetPagesInstance;
- Property PostUserInfosResource : TPostUserInfosResource Read GetPostUserInfosInstance;
- Property PostsResource : TPostsResource Read GetPostsInstance;
- Property UsersResource : TUsersResource Read GetUsersInstance;
- end;
- implementation
- { --------------------------------------------------------------------
- TBlogTypelocale
- --------------------------------------------------------------------}
- Procedure TBlogTypelocale.Setcountry(AIndex : Integer; const AValue : String);
- begin
- If (Fcountry=AValue) then exit;
- Fcountry:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogTypelocale.Setlanguage(AIndex : Integer; const AValue : String);
- begin
- If (Flanguage=AValue) then exit;
- Flanguage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogTypelocale.Setvariant(AIndex : Integer; const AValue : String);
- begin
- If (Fvariant=AValue) then exit;
- Fvariant:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TBlogTypepages
- --------------------------------------------------------------------}
- Procedure TBlogTypepages.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogTypepages.SettotalItems(AIndex : Integer; const AValue : integer);
- begin
- If (FtotalItems=AValue) then exit;
- FtotalItems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TBlogTypeposts
- --------------------------------------------------------------------}
- Procedure TBlogTypeposts.Setitems(AIndex : Integer; const AValue : TBlogTypepostsTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogTypeposts.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogTypeposts.SettotalItems(AIndex : Integer; const AValue : integer);
- begin
- If (FtotalItems=AValue) then exit;
- FtotalItems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TBlogTypeposts.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TBlog
- --------------------------------------------------------------------}
- Procedure TBlog.SetcustomMetaData(AIndex : Integer; const AValue : String);
- begin
- If (FcustomMetaData=AValue) then exit;
- FcustomMetaData:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Setdescription(AIndex : Integer; const AValue : String);
- begin
- If (Fdescription=AValue) then exit;
- Fdescription:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Setlocale(AIndex : Integer; const AValue : TBlogTypelocale);
- begin
- If (Flocale=AValue) then exit;
- Flocale:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Setpages(AIndex : Integer; const AValue : TBlogTypepages);
- begin
- If (Fpages=AValue) then exit;
- Fpages:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Setposts(AIndex : Integer; const AValue : TBlogTypeposts);
- begin
- If (Fposts=AValue) then exit;
- Fposts:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Set_published(AIndex : Integer; const AValue : TDatetime);
- begin
- If (F_published=AValue) then exit;
- F_published:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Setstatus(AIndex : Integer; const AValue : String);
- begin
- If (Fstatus=AValue) then exit;
- Fstatus:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Setupdated(AIndex : Integer; const AValue : TDatetime);
- begin
- If (Fupdated=AValue) then exit;
- Fupdated:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlog.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Class Function TBlog.ExportPropertyName(Const AName : String) :String;
- begin
- Case AName of
- '_published' : Result:='published';
- else
- Result:=Inherited ExportPropertyName(AName);
- end;
- end;
- { --------------------------------------------------------------------
- TBlogList
- --------------------------------------------------------------------}
- Procedure TBlogList.SetblogUserInfos(AIndex : Integer; const AValue : TBlogListTypeblogUserInfosArray);
- begin
- If (FblogUserInfos=AValue) then exit;
- FblogUserInfos:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogList.Setitems(AIndex : Integer; const AValue : TBlogListTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogList.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TBlogList.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'bloguserinfos' : SetLength(FblogUserInfos,ALength);
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TBlogPerUserInfo
- --------------------------------------------------------------------}
- Procedure TBlogPerUserInfo.SetblogId(AIndex : Integer; const AValue : String);
- begin
- If (FblogId=AValue) then exit;
- FblogId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogPerUserInfo.SethasAdminAccess(AIndex : Integer; const AValue : boolean);
- begin
- If (FhasAdminAccess=AValue) then exit;
- FhasAdminAccess:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogPerUserInfo.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogPerUserInfo.SetphotosAlbumKey(AIndex : Integer; const AValue : String);
- begin
- If (FphotosAlbumKey=AValue) then exit;
- FphotosAlbumKey:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogPerUserInfo.Setrole(AIndex : Integer; const AValue : String);
- begin
- If (Frole=AValue) then exit;
- Frole:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogPerUserInfo.SetuserId(AIndex : Integer; const AValue : String);
- begin
- If (FuserId=AValue) then exit;
- FuserId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TBlogUserInfo
- --------------------------------------------------------------------}
- Procedure TBlogUserInfo.Setblog(AIndex : Integer; const AValue : TBlog);
- begin
- If (Fblog=AValue) then exit;
- Fblog:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogUserInfo.Setblog_user_info(AIndex : Integer; const AValue : TBlogPerUserInfo);
- begin
- If (Fblog_user_info=AValue) then exit;
- Fblog_user_info:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TBlogUserInfo.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TCommentTypeauthorTypeimage
- --------------------------------------------------------------------}
- Procedure TCommentTypeauthorTypeimage.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TCommentTypeauthor
- --------------------------------------------------------------------}
- Procedure TCommentTypeauthor.SetdisplayName(AIndex : Integer; const AValue : String);
- begin
- If (FdisplayName=AValue) then exit;
- FdisplayName:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCommentTypeauthor.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCommentTypeauthor.Setimage(AIndex : Integer; const AValue : TCommentTypeauthorTypeimage);
- begin
- If (Fimage=AValue) then exit;
- Fimage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCommentTypeauthor.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TCommentTypeblog
- --------------------------------------------------------------------}
- Procedure TCommentTypeblog.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TCommentTypeinReplyTo
- --------------------------------------------------------------------}
- Procedure TCommentTypeinReplyTo.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TCommentTypepost
- --------------------------------------------------------------------}
- Procedure TCommentTypepost.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TComment
- --------------------------------------------------------------------}
- Procedure TComment.Setauthor(AIndex : Integer; const AValue : TCommentTypeauthor);
- begin
- If (Fauthor=AValue) then exit;
- Fauthor:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.Setblog(AIndex : Integer; const AValue : TCommentTypeblog);
- begin
- If (Fblog=AValue) then exit;
- Fblog:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.Setcontent(AIndex : Integer; const AValue : String);
- begin
- If (Fcontent=AValue) then exit;
- Fcontent:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.SetinReplyTo(AIndex : Integer; const AValue : TCommentTypeinReplyTo);
- begin
- If (FinReplyTo=AValue) then exit;
- FinReplyTo:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.Setpost(AIndex : Integer; const AValue : TCommentTypepost);
- begin
- If (Fpost=AValue) then exit;
- Fpost:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.Set_published(AIndex : Integer; const AValue : TDatetime);
- begin
- If (F_published=AValue) then exit;
- F_published:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.Setstatus(AIndex : Integer; const AValue : String);
- begin
- If (Fstatus=AValue) then exit;
- Fstatus:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TComment.Setupdated(AIndex : Integer; const AValue : TDatetime);
- begin
- If (Fupdated=AValue) then exit;
- Fupdated:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Class Function TComment.ExportPropertyName(Const AName : String) :String;
- begin
- Case AName of
- '_published' : Result:='published';
- else
- Result:=Inherited ExportPropertyName(AName);
- end;
- end;
- { --------------------------------------------------------------------
- TCommentList
- --------------------------------------------------------------------}
- Procedure TCommentList.Setetag(AIndex : Integer; const AValue : String);
- begin
- If (Fetag=AValue) then exit;
- Fetag:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCommentList.Setitems(AIndex : Integer; const AValue : TCommentListTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCommentList.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCommentList.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCommentList.SetprevPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FprevPageToken=AValue) then exit;
- FprevPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TCommentList.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TPageTypeauthorTypeimage
- --------------------------------------------------------------------}
- Procedure TPageTypeauthorTypeimage.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPageTypeauthor
- --------------------------------------------------------------------}
- Procedure TPageTypeauthor.SetdisplayName(AIndex : Integer; const AValue : String);
- begin
- If (FdisplayName=AValue) then exit;
- FdisplayName:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPageTypeauthor.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPageTypeauthor.Setimage(AIndex : Integer; const AValue : TPageTypeauthorTypeimage);
- begin
- If (Fimage=AValue) then exit;
- Fimage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPageTypeauthor.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPageTypeblog
- --------------------------------------------------------------------}
- Procedure TPageTypeblog.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPage
- --------------------------------------------------------------------}
- Procedure TPage.Setauthor(AIndex : Integer; const AValue : TPageTypeauthor);
- begin
- If (Fauthor=AValue) then exit;
- Fauthor:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Setblog(AIndex : Integer; const AValue : TPageTypeblog);
- begin
- If (Fblog=AValue) then exit;
- Fblog:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Setcontent(AIndex : Integer; const AValue : String);
- begin
- If (Fcontent=AValue) then exit;
- Fcontent:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Setetag(AIndex : Integer; const AValue : String);
- begin
- If (Fetag=AValue) then exit;
- Fetag:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Set_published(AIndex : Integer; const AValue : TDatetime);
- begin
- If (F_published=AValue) then exit;
- F_published:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Setstatus(AIndex : Integer; const AValue : String);
- begin
- If (Fstatus=AValue) then exit;
- Fstatus:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Setupdated(AIndex : Integer; const AValue : TDatetime);
- begin
- If (Fupdated=AValue) then exit;
- Fupdated:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPage.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Class Function TPage.ExportPropertyName(Const AName : String) :String;
- begin
- Case AName of
- '_published' : Result:='published';
- else
- Result:=Inherited ExportPropertyName(AName);
- end;
- end;
- { --------------------------------------------------------------------
- TPageList
- --------------------------------------------------------------------}
- Procedure TPageList.Setetag(AIndex : Integer; const AValue : String);
- begin
- If (Fetag=AValue) then exit;
- Fetag:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPageList.Setitems(AIndex : Integer; const AValue : TPageListTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPageList.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPageList.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TPageList.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TPageviewsTypecountsItem
- --------------------------------------------------------------------}
- Procedure TPageviewsTypecountsItem.Setcount(AIndex : Integer; const AValue : String);
- begin
- If (Fcount=AValue) then exit;
- Fcount:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPageviewsTypecountsItem.SettimeRange(AIndex : Integer; const AValue : String);
- begin
- If (FtimeRange=AValue) then exit;
- FtimeRange:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPageviews
- --------------------------------------------------------------------}
- Procedure TPageviews.SetblogId(AIndex : Integer; const AValue : String);
- begin
- If (FblogId=AValue) then exit;
- FblogId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPageviews.Setcounts(AIndex : Integer; const AValue : TPageviewsTypecountsArray);
- begin
- If (Fcounts=AValue) then exit;
- Fcounts:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPageviews.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TPageviews.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'counts' : SetLength(Fcounts,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TPostTypeauthorTypeimage
- --------------------------------------------------------------------}
- Procedure TPostTypeauthorTypeimage.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPostTypeauthor
- --------------------------------------------------------------------}
- Procedure TPostTypeauthor.SetdisplayName(AIndex : Integer; const AValue : String);
- begin
- If (FdisplayName=AValue) then exit;
- FdisplayName:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostTypeauthor.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostTypeauthor.Setimage(AIndex : Integer; const AValue : TPostTypeauthorTypeimage);
- begin
- If (Fimage=AValue) then exit;
- Fimage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostTypeauthor.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPostTypeblog
- --------------------------------------------------------------------}
- Procedure TPostTypeblog.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPostTypeimagesItem
- --------------------------------------------------------------------}
- Procedure TPostTypeimagesItem.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPostTypelocation
- --------------------------------------------------------------------}
- Procedure TPostTypelocation.Setlat(AIndex : Integer; const AValue : double);
- begin
- If (Flat=AValue) then exit;
- Flat:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostTypelocation.Setlng(AIndex : Integer; const AValue : double);
- begin
- If (Flng=AValue) then exit;
- Flng:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostTypelocation.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostTypelocation.Setspan(AIndex : Integer; const AValue : String);
- begin
- If (Fspan=AValue) then exit;
- Fspan:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPostTypereplies
- --------------------------------------------------------------------}
- Procedure TPostTypereplies.Setitems(AIndex : Integer; const AValue : TPostTyperepliesTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostTypereplies.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostTypereplies.SettotalItems(AIndex : Integer; const AValue : String);
- begin
- If (FtotalItems=AValue) then exit;
- FtotalItems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TPostTypereplies.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TPost
- --------------------------------------------------------------------}
- Procedure TPost.Setauthor(AIndex : Integer; const AValue : TPostTypeauthor);
- begin
- If (Fauthor=AValue) then exit;
- Fauthor:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setblog(AIndex : Integer; const AValue : TPostTypeblog);
- begin
- If (Fblog=AValue) then exit;
- Fblog:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setcontent(AIndex : Integer; const AValue : String);
- begin
- If (Fcontent=AValue) then exit;
- Fcontent:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.SetcustomMetaData(AIndex : Integer; const AValue : String);
- begin
- If (FcustomMetaData=AValue) then exit;
- FcustomMetaData:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setetag(AIndex : Integer; const AValue : String);
- begin
- If (Fetag=AValue) then exit;
- Fetag:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setimages(AIndex : Integer; const AValue : TPostTypeimagesArray);
- begin
- If (Fimages=AValue) then exit;
- Fimages:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setlabels(AIndex : Integer; const AValue : TStringArray);
- begin
- If (Flabels=AValue) then exit;
- Flabels:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setlocation(AIndex : Integer; const AValue : TPostTypelocation);
- begin
- If (Flocation=AValue) then exit;
- Flocation:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Set_published(AIndex : Integer; const AValue : TDatetime);
- begin
- If (F_published=AValue) then exit;
- F_published:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.SetreaderComments(AIndex : Integer; const AValue : String);
- begin
- If (FreaderComments=AValue) then exit;
- FreaderComments:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setreplies(AIndex : Integer; const AValue : TPostTypereplies);
- begin
- If (Freplies=AValue) then exit;
- Freplies:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setstatus(AIndex : Integer; const AValue : String);
- begin
- If (Fstatus=AValue) then exit;
- Fstatus:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.SettitleLink(AIndex : Integer; const AValue : String);
- begin
- If (FtitleLink=AValue) then exit;
- FtitleLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Setupdated(AIndex : Integer; const AValue : TDatetime);
- begin
- If (Fupdated=AValue) then exit;
- Fupdated:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPost.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Class Function TPost.ExportPropertyName(Const AName : String) :String;
- begin
- Case AName of
- '_published' : Result:='published';
- else
- Result:=Inherited ExportPropertyName(AName);
- end;
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TPost.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'images' : SetLength(Fimages,ALength);
- 'labels' : SetLength(Flabels,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TPostList
- --------------------------------------------------------------------}
- Procedure TPostList.Setetag(AIndex : Integer; const AValue : String);
- begin
- If (Fetag=AValue) then exit;
- Fetag:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostList.Setitems(AIndex : Integer; const AValue : TPostListTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostList.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostList.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TPostList.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TPostPerUserInfo
- --------------------------------------------------------------------}
- Procedure TPostPerUserInfo.SetblogId(AIndex : Integer; const AValue : String);
- begin
- If (FblogId=AValue) then exit;
- FblogId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostPerUserInfo.SethasEditAccess(AIndex : Integer; const AValue : boolean);
- begin
- If (FhasEditAccess=AValue) then exit;
- FhasEditAccess:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostPerUserInfo.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostPerUserInfo.SetpostId(AIndex : Integer; const AValue : String);
- begin
- If (FpostId=AValue) then exit;
- FpostId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostPerUserInfo.SetuserId(AIndex : Integer; const AValue : String);
- begin
- If (FuserId=AValue) then exit;
- FuserId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPostUserInfo
- --------------------------------------------------------------------}
- Procedure TPostUserInfo.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostUserInfo.Setpost(AIndex : Integer; const AValue : TPost);
- begin
- If (Fpost=AValue) then exit;
- Fpost:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostUserInfo.Setpost_user_info(AIndex : Integer; const AValue : TPostPerUserInfo);
- begin
- If (Fpost_user_info=AValue) then exit;
- Fpost_user_info:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TPostUserInfosList
- --------------------------------------------------------------------}
- Procedure TPostUserInfosList.Setitems(AIndex : Integer; const AValue : TPostUserInfosListTypeitemsArray);
- begin
- If (Fitems=AValue) then exit;
- Fitems:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostUserInfosList.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TPostUserInfosList.SetnextPageToken(AIndex : Integer; const AValue : String);
- begin
- If (FnextPageToken=AValue) then exit;
- FnextPageToken:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TPostUserInfosList.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'items' : SetLength(Fitems,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TUserTypeblogs
- --------------------------------------------------------------------}
- Procedure TUserTypeblogs.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TUserTypelocale
- --------------------------------------------------------------------}
- Procedure TUserTypelocale.Setcountry(AIndex : Integer; const AValue : String);
- begin
- If (Fcountry=AValue) then exit;
- Fcountry:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUserTypelocale.Setlanguage(AIndex : Integer; const AValue : String);
- begin
- If (Flanguage=AValue) then exit;
- Flanguage:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUserTypelocale.Setvariant(AIndex : Integer; const AValue : String);
- begin
- If (Fvariant=AValue) then exit;
- Fvariant:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TUser
- --------------------------------------------------------------------}
- Procedure TUser.Setabout(AIndex : Integer; const AValue : String);
- begin
- If (Fabout=AValue) then exit;
- Fabout:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUser.Setblogs(AIndex : Integer; const AValue : TUserTypeblogs);
- begin
- If (Fblogs=AValue) then exit;
- Fblogs:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUser.Setcreated(AIndex : Integer; const AValue : TDatetime);
- begin
- If (Fcreated=AValue) then exit;
- Fcreated:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUser.SetdisplayName(AIndex : Integer; const AValue : String);
- begin
- If (FdisplayName=AValue) then exit;
- FdisplayName:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUser.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUser.Setkind(AIndex : Integer; const AValue : String);
- begin
- If (Fkind=AValue) then exit;
- Fkind:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUser.Setlocale(AIndex : Integer; const AValue : TUserTypelocale);
- begin
- If (Flocale=AValue) then exit;
- Flocale:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUser.SetselfLink(AIndex : Integer; const AValue : String);
- begin
- If (FselfLink=AValue) then exit;
- FselfLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUser.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TBlogUserInfosResource
- --------------------------------------------------------------------}
- Class Function TBlogUserInfosResource.ResourceName : String;
- begin
- Result:='blogUserInfos';
- end;
- Class Function TBlogUserInfosResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TbloggerAPI;
- end;
- Function TBlogUserInfosResource.Get(blogId: string; userId: string; AQuery : string = '') : TBlogUserInfo;
- Const
- _HTTPMethod = 'GET';
- _Path = 'users/{userId}/blogs/{blogId}';
- _Methodid = 'blogger.blogUserInfos.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TBlogUserInfo) as TBlogUserInfo;
- end;
- Function TBlogUserInfosResource.Get(blogId: string; userId: string; AQuery : TBlogUserInfosgetOptions) : TBlogUserInfo;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'maxPosts',AQuery.maxPosts);
- Result:=Get(blogId,userId,_Q);
- end;
- { --------------------------------------------------------------------
- TBlogsResource
- --------------------------------------------------------------------}
- Class Function TBlogsResource.ResourceName : String;
- begin
- Result:='blogs';
- end;
- Class Function TBlogsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TbloggerAPI;
- end;
- Function TBlogsResource.Get(blogId: string; AQuery : string = '') : TBlog;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}';
- _Methodid = 'blogger.blogs.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TBlog) as TBlog;
- end;
- Function TBlogsResource.Get(blogId: string; AQuery : TBlogsgetOptions) : TBlog;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'maxPosts',AQuery.maxPosts);
- AddToQuery(_Q,'view',AQuery.view);
- Result:=Get(blogId,_Q);
- end;
- Function TBlogsResource.GetByUrl(AQuery : string = '') : TBlog;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/byurl';
- _Methodid = 'blogger.blogs.getByUrl';
- begin
- Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TBlog) as TBlog;
- end;
- Function TBlogsResource.GetByUrl(AQuery : TBlogsgetByUrlOptions) : TBlog;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'url',AQuery.url);
- AddToQuery(_Q,'view',AQuery.view);
- Result:=GetByUrl(_Q);
- end;
- Function TBlogsResource.ListByUser(userId: string; AQuery : string = '') : TBlogList;
- Const
- _HTTPMethod = 'GET';
- _Path = 'users/{userId}/blogs';
- _Methodid = 'blogger.blogs.listByUser';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TBlogList) as TBlogList;
- end;
- Function TBlogsResource.ListByUser(userId: string; AQuery : TBlogslistByUserOptions) : TBlogList;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'fetchUserInfo',AQuery.fetchUserInfo);
- AddToQuery(_Q,'role',AQuery.role);
- AddToQuery(_Q,'status',AQuery.status);
- AddToQuery(_Q,'view',AQuery.view);
- Result:=ListByUser(userId,_Q);
- end;
- { --------------------------------------------------------------------
- TCommentsResource
- --------------------------------------------------------------------}
- Class Function TCommentsResource.ResourceName : String;
- begin
- Result:='comments';
- end;
- Class Function TCommentsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TbloggerAPI;
- end;
- Function TCommentsResource.Approve(blogId: string; commentId: string; postId: string) : TComment;
- Const
- _HTTPMethod = 'POST';
- _Path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}/approve';
- _Methodid = 'blogger.comments.approve';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'commentId',commentId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TComment) as TComment;
- end;
- Procedure TCommentsResource.Delete(blogId: string; commentId: string; postId: string);
- Const
- _HTTPMethod = 'DELETE';
- _Path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}';
- _Methodid = 'blogger.comments.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'commentId',commentId,'postId',postId]);
- ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
- end;
- Function TCommentsResource.Get(blogId: string; commentId: string; postId: string; AQuery : string = '') : TComment;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}';
- _Methodid = 'blogger.comments.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'commentId',commentId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TComment) as TComment;
- end;
- Function TCommentsResource.Get(blogId: string; commentId: string; postId: string; AQuery : TCommentsgetOptions) : TComment;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'view',AQuery.view);
- Result:=Get(blogId,commentId,postId,_Q);
- end;
- Function TCommentsResource.List(blogId: string; postId: string; AQuery : string = '') : TCommentList;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/posts/{postId}/comments';
- _Methodid = 'blogger.comments.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCommentList) as TCommentList;
- end;
- Function TCommentsResource.List(blogId: string; postId: string; AQuery : TCommentslistOptions) : TCommentList;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'endDate',AQuery.endDate);
- AddToQuery(_Q,'fetchBodies',AQuery.fetchBodies);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- AddToQuery(_Q,'startDate',AQuery.startDate);
- AddToQuery(_Q,'status',AQuery.status);
- AddToQuery(_Q,'view',AQuery.view);
- Result:=List(blogId,postId,_Q);
- end;
- Function TCommentsResource.ListByBlog(blogId: string; AQuery : string = '') : TCommentList;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/comments';
- _Methodid = 'blogger.comments.listByBlog';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TCommentList) as TCommentList;
- end;
- Function TCommentsResource.ListByBlog(blogId: string; AQuery : TCommentslistByBlogOptions) : TCommentList;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'endDate',AQuery.endDate);
- AddToQuery(_Q,'fetchBodies',AQuery.fetchBodies);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- AddToQuery(_Q,'startDate',AQuery.startDate);
- AddToQuery(_Q,'status',AQuery.status);
- Result:=ListByBlog(blogId,_Q);
- end;
- Function TCommentsResource.MarkAsSpam(blogId: string; commentId: string; postId: string) : TComment;
- Const
- _HTTPMethod = 'POST';
- _Path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}/spam';
- _Methodid = 'blogger.comments.markAsSpam';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'commentId',commentId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TComment) as TComment;
- end;
- Function TCommentsResource.RemoveContent(blogId: string; commentId: string; postId: string) : TComment;
- Const
- _HTTPMethod = 'POST';
- _Path = 'blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent';
- _Methodid = 'blogger.comments.removeContent';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'commentId',commentId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TComment) as TComment;
- end;
- { --------------------------------------------------------------------
- TPageViewsResource
- --------------------------------------------------------------------}
- Class Function TPageViewsResource.ResourceName : String;
- begin
- Result:='pageViews';
- end;
- Class Function TPageViewsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TbloggerAPI;
- end;
- Function TPageViewsResource.Get(blogId: string; AQuery : string = '') : TPageviews;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/pageviews';
- _Methodid = 'blogger.pageViews.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPageviews) as TPageviews;
- end;
- Function TPageViewsResource.Get(blogId: string; AQuery : TPageViewsgetOptions) : TPageviews;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'range',AQuery.range);
- Result:=Get(blogId,_Q);
- end;
- { --------------------------------------------------------------------
- TPagesResource
- --------------------------------------------------------------------}
- Class Function TPagesResource.ResourceName : String;
- begin
- Result:='pages';
- end;
- Class Function TPagesResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TbloggerAPI;
- end;
- Procedure TPagesResource.Delete(blogId: string; pageId: string);
- Const
- _HTTPMethod = 'DELETE';
- _Path = 'blogs/{blogId}/pages/{pageId}';
- _Methodid = 'blogger.pages.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'pageId',pageId]);
- ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
- end;
- Function TPagesResource.Get(blogId: string; pageId: string; AQuery : string = '') : TPage;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/pages/{pageId}';
- _Methodid = 'blogger.pages.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'pageId',pageId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPage) as TPage;
- end;
- Function TPagesResource.Get(blogId: string; pageId: string; AQuery : TPagesgetOptions) : TPage;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'view',AQuery.view);
- Result:=Get(blogId,pageId,_Q);
- end;
- Function TPagesResource.Insert(blogId: string; aPage : TPage; AQuery : string = '') : TPage;
- Const
- _HTTPMethod = 'POST';
- _Path = 'blogs/{blogId}/pages';
- _Methodid = 'blogger.pages.insert';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aPage,TPage) as TPage;
- end;
- Function TPagesResource.Insert(blogId: string; aPage : TPage; AQuery : TPagesinsertOptions) : TPage;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'isDraft',AQuery.isDraft);
- Result:=Insert(blogId,aPage,_Q);
- end;
- Function TPagesResource.List(blogId: string; AQuery : string = '') : TPageList;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/pages';
- _Methodid = 'blogger.pages.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPageList) as TPageList;
- end;
- Function TPagesResource.List(blogId: string; AQuery : TPageslistOptions) : TPageList;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'fetchBodies',AQuery.fetchBodies);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- AddToQuery(_Q,'status',AQuery.status);
- AddToQuery(_Q,'view',AQuery.view);
- Result:=List(blogId,_Q);
- end;
- Function TPagesResource.Patch(blogId: string; pageId: string; aPage : TPage; AQuery : string = '') : TPage;
- Const
- _HTTPMethod = 'PATCH';
- _Path = 'blogs/{blogId}/pages/{pageId}';
- _Methodid = 'blogger.pages.patch';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'pageId',pageId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aPage,TPage) as TPage;
- end;
- Function TPagesResource.Patch(blogId: string; pageId: string; aPage : TPage; AQuery : TPagespatchOptions) : TPage;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'publish',AQuery.publish);
- AddToQuery(_Q,'revert',AQuery.revert);
- Result:=Patch(blogId,pageId,aPage,_Q);
- end;
- Function TPagesResource.Publish(blogId: string; pageId: string) : TPage;
- Const
- _HTTPMethod = 'POST';
- _Path = 'blogs/{blogId}/pages/{pageId}/publish';
- _Methodid = 'blogger.pages.publish';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'pageId',pageId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TPage) as TPage;
- end;
- Function TPagesResource.Revert(blogId: string; pageId: string) : TPage;
- Const
- _HTTPMethod = 'POST';
- _Path = 'blogs/{blogId}/pages/{pageId}/revert';
- _Methodid = 'blogger.pages.revert';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'pageId',pageId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TPage) as TPage;
- end;
- Function TPagesResource.Update(blogId: string; pageId: string; aPage : TPage; AQuery : string = '') : TPage;
- Const
- _HTTPMethod = 'PUT';
- _Path = 'blogs/{blogId}/pages/{pageId}';
- _Methodid = 'blogger.pages.update';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'pageId',pageId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aPage,TPage) as TPage;
- end;
- Function TPagesResource.Update(blogId: string; pageId: string; aPage : TPage; AQuery : TPagesupdateOptions) : TPage;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'publish',AQuery.publish);
- AddToQuery(_Q,'revert',AQuery.revert);
- Result:=Update(blogId,pageId,aPage,_Q);
- end;
- { --------------------------------------------------------------------
- TPostUserInfosResource
- --------------------------------------------------------------------}
- Class Function TPostUserInfosResource.ResourceName : String;
- begin
- Result:='postUserInfos';
- end;
- Class Function TPostUserInfosResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TbloggerAPI;
- end;
- Function TPostUserInfosResource.Get(blogId: string; postId: string; userId: string; AQuery : string = '') : TPostUserInfo;
- Const
- _HTTPMethod = 'GET';
- _Path = 'users/{userId}/blogs/{blogId}/posts/{postId}';
- _Methodid = 'blogger.postUserInfos.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'postId',postId,'userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPostUserInfo) as TPostUserInfo;
- end;
- Function TPostUserInfosResource.Get(blogId: string; postId: string; userId: string; AQuery : TPostUserInfosgetOptions) : TPostUserInfo;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'maxComments',AQuery.maxComments);
- Result:=Get(blogId,postId,userId,_Q);
- end;
- Function TPostUserInfosResource.List(blogId: string; userId: string; AQuery : string = '') : TPostUserInfosList;
- Const
- _HTTPMethod = 'GET';
- _Path = 'users/{userId}/blogs/{blogId}/posts';
- _Methodid = 'blogger.postUserInfos.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPostUserInfosList) as TPostUserInfosList;
- end;
- Function TPostUserInfosResource.List(blogId: string; userId: string; AQuery : TPostUserInfoslistOptions) : TPostUserInfosList;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'endDate',AQuery.endDate);
- AddToQuery(_Q,'fetchBodies',AQuery.fetchBodies);
- AddToQuery(_Q,'labels',AQuery.labels);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'orderBy',AQuery.orderBy);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- AddToQuery(_Q,'startDate',AQuery.startDate);
- AddToQuery(_Q,'status',AQuery.status);
- AddToQuery(_Q,'view',AQuery.view);
- Result:=List(blogId,userId,_Q);
- end;
- { --------------------------------------------------------------------
- TPostsResource
- --------------------------------------------------------------------}
- Class Function TPostsResource.ResourceName : String;
- begin
- Result:='posts';
- end;
- Class Function TPostsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TbloggerAPI;
- end;
- Procedure TPostsResource.Delete(blogId: string; postId: string);
- Const
- _HTTPMethod = 'DELETE';
- _Path = 'blogs/{blogId}/posts/{postId}';
- _Methodid = 'blogger.posts.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'postId',postId]);
- ServiceCall(_HTTPMethod,_P,'',Nil,Nil);
- end;
- Function TPostsResource.Get(blogId: string; postId: string; AQuery : string = '') : TPost;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/posts/{postId}';
- _Methodid = 'blogger.posts.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPost) as TPost;
- end;
- Function TPostsResource.Get(blogId: string; postId: string; AQuery : TPostsgetOptions) : TPost;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'fetchBody',AQuery.fetchBody);
- AddToQuery(_Q,'fetchImages',AQuery.fetchImages);
- AddToQuery(_Q,'maxComments',AQuery.maxComments);
- AddToQuery(_Q,'view',AQuery.view);
- Result:=Get(blogId,postId,_Q);
- end;
- Function TPostsResource.GetByPath(blogId: string; AQuery : string = '') : TPost;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/posts/bypath';
- _Methodid = 'blogger.posts.getByPath';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPost) as TPost;
- end;
- Function TPostsResource.GetByPath(blogId: string; AQuery : TPostsgetByPathOptions) : TPost;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'maxComments',AQuery.maxComments);
- AddToQuery(_Q,'path',AQuery.path);
- AddToQuery(_Q,'view',AQuery.view);
- Result:=GetByPath(blogId,_Q);
- end;
- Function TPostsResource.Insert(blogId: string; aPost : TPost; AQuery : string = '') : TPost;
- Const
- _HTTPMethod = 'POST';
- _Path = 'blogs/{blogId}/posts';
- _Methodid = 'blogger.posts.insert';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aPost,TPost) as TPost;
- end;
- Function TPostsResource.Insert(blogId: string; aPost : TPost; AQuery : TPostsinsertOptions) : TPost;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'fetchBody',AQuery.fetchBody);
- AddToQuery(_Q,'fetchImages',AQuery.fetchImages);
- AddToQuery(_Q,'isDraft',AQuery.isDraft);
- Result:=Insert(blogId,aPost,_Q);
- end;
- Function TPostsResource.List(blogId: string; AQuery : string = '') : TPostList;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/posts';
- _Methodid = 'blogger.posts.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPostList) as TPostList;
- end;
- Function TPostsResource.List(blogId: string; AQuery : TPostslistOptions) : TPostList;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'endDate',AQuery.endDate);
- AddToQuery(_Q,'fetchBodies',AQuery.fetchBodies);
- AddToQuery(_Q,'fetchImages',AQuery.fetchImages);
- AddToQuery(_Q,'labels',AQuery.labels);
- AddToQuery(_Q,'maxResults',AQuery.maxResults);
- AddToQuery(_Q,'orderBy',AQuery.orderBy);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- AddToQuery(_Q,'startDate',AQuery.startDate);
- AddToQuery(_Q,'status',AQuery.status);
- AddToQuery(_Q,'view',AQuery.view);
- Result:=List(blogId,_Q);
- end;
- Function TPostsResource.Patch(blogId: string; postId: string; aPost : TPost; AQuery : string = '') : TPost;
- Const
- _HTTPMethod = 'PATCH';
- _Path = 'blogs/{blogId}/posts/{postId}';
- _Methodid = 'blogger.posts.patch';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aPost,TPost) as TPost;
- end;
- Function TPostsResource.Patch(blogId: string; postId: string; aPost : TPost; AQuery : TPostspatchOptions) : TPost;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'fetchBody',AQuery.fetchBody);
- AddToQuery(_Q,'fetchImages',AQuery.fetchImages);
- AddToQuery(_Q,'maxComments',AQuery.maxComments);
- AddToQuery(_Q,'publish',AQuery.publish);
- AddToQuery(_Q,'revert',AQuery.revert);
- Result:=Patch(blogId,postId,aPost,_Q);
- end;
- Function TPostsResource.Publish(blogId: string; postId: string; AQuery : string = '') : TPost;
- Const
- _HTTPMethod = 'POST';
- _Path = 'blogs/{blogId}/posts/{postId}/publish';
- _Methodid = 'blogger.posts.publish';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPost) as TPost;
- end;
- Function TPostsResource.Publish(blogId: string; postId: string; AQuery : TPostspublishOptions) : TPost;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'publishDate',AQuery.publishDate);
- Result:=Publish(blogId,postId,_Q);
- end;
- Function TPostsResource.Revert(blogId: string; postId: string) : TPost;
- Const
- _HTTPMethod = 'POST';
- _Path = 'blogs/{blogId}/posts/{postId}/revert';
- _Methodid = 'blogger.posts.revert';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TPost) as TPost;
- end;
- Function TPostsResource.Search(blogId: string; AQuery : string = '') : TPostList;
- Const
- _HTTPMethod = 'GET';
- _Path = 'blogs/{blogId}/posts/search';
- _Methodid = 'blogger.posts.search';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TPostList) as TPostList;
- end;
- Function TPostsResource.Search(blogId: string; AQuery : TPostssearchOptions) : TPostList;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'fetchBodies',AQuery.fetchBodies);
- AddToQuery(_Q,'orderBy',AQuery.orderBy);
- AddToQuery(_Q,'q',AQuery.q);
- Result:=Search(blogId,_Q);
- end;
- Function TPostsResource.Update(blogId: string; postId: string; aPost : TPost; AQuery : string = '') : TPost;
- Const
- _HTTPMethod = 'PUT';
- _Path = 'blogs/{blogId}/posts/{postId}';
- _Methodid = 'blogger.posts.update';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['blogId',blogId,'postId',postId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aPost,TPost) as TPost;
- end;
- Function TPostsResource.Update(blogId: string; postId: string; aPost : TPost; AQuery : TPostsupdateOptions) : TPost;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'fetchBody',AQuery.fetchBody);
- AddToQuery(_Q,'fetchImages',AQuery.fetchImages);
- AddToQuery(_Q,'maxComments',AQuery.maxComments);
- AddToQuery(_Q,'publish',AQuery.publish);
- AddToQuery(_Q,'revert',AQuery.revert);
- Result:=Update(blogId,postId,aPost,_Q);
- end;
- { --------------------------------------------------------------------
- TUsersResource
- --------------------------------------------------------------------}
- Class Function TUsersResource.ResourceName : String;
- begin
- Result:='users';
- end;
- Class Function TUsersResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TbloggerAPI;
- end;
- Function TUsersResource.Get(userId: string) : TUser;
- Const
- _HTTPMethod = 'GET';
- _Path = 'users/{userId}';
- _Methodid = 'blogger.users.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TUser) as TUser;
- end;
- { --------------------------------------------------------------------
- TBloggerAPI
- --------------------------------------------------------------------}
- Class Function TBloggerAPI.APIName : String;
- begin
- Result:='blogger';
- end;
- Class Function TBloggerAPI.APIVersion : String;
- begin
- Result:='v3';
- end;
- Class Function TBloggerAPI.APIRevision : String;
- begin
- Result:='20150422';
- end;
- Class Function TBloggerAPI.APIID : String;
- begin
- Result:='blogger:v3';
- end;
- Class Function TBloggerAPI.APITitle : String;
- begin
- Result:='Blogger API';
- end;
- Class Function TBloggerAPI.APIDescription : String;
- begin
- Result:='API for access to the data within Blogger.';
- end;
- Class Function TBloggerAPI.APIOwnerDomain : String;
- begin
- Result:='google.com';
- end;
- Class Function TBloggerAPI.APIOwnerName : String;
- begin
- Result:='Google';
- end;
- Class Function TBloggerAPI.APIIcon16 : String;
- begin
- Result:='https://www.google.com/images/icons/product/blogger-16.png';
- end;
- Class Function TBloggerAPI.APIIcon32 : String;
- begin
- Result:='https://www.google.com/images/icons/product/blogger-32.png';
- end;
- Class Function TBloggerAPI.APIdocumentationLink : String;
- begin
- Result:='https://developers.google.com/blogger/docs/3.0/getting_started';
- end;
- Class Function TBloggerAPI.APIrootUrl : string;
- begin
- Result:='https://www.googleapis.com/';
- end;
- Class Function TBloggerAPI.APIbasePath : string;
- begin
- Result:='/blogger/v3/';
- end;
- Class Function TBloggerAPI.APIbaseURL : String;
- begin
- Result:='https://www.googleapis.com/blogger/v3/';
- end;
- Class Function TBloggerAPI.APIProtocol : string;
- begin
- Result:='rest';
- end;
- Class Function TBloggerAPI.APIservicePath : string;
- begin
- Result:='blogger/v3/';
- end;
- Class Function TBloggerAPI.APIbatchPath : String;
- begin
- Result:='batch';
- end;
- Class Function TBloggerAPI.APIAuthScopes : TScopeInfoArray;
- begin
- SetLength(Result,2);
- Result[0].Name:='https://www.googleapis.com/auth/blogger';
- Result[0].Description:='Manage your Blogger account';
- Result[1].Name:='https://www.googleapis.com/auth/blogger.readonly';
- Result[1].Description:='View your Blogger account';
-
- end;
- Class Function TBloggerAPI.APINeedsAuth : Boolean;
- begin
- Result:=True;
- end;
- Class Procedure TBloggerAPI.RegisterAPIResources;
- begin
- TBlogTypelocale.RegisterObject;
- TBlogTypepages.RegisterObject;
- TBlogTypeposts.RegisterObject;
- TBlog.RegisterObject;
- TBlogList.RegisterObject;
- TBlogPerUserInfo.RegisterObject;
- TBlogUserInfo.RegisterObject;
- TCommentTypeauthorTypeimage.RegisterObject;
- TCommentTypeauthor.RegisterObject;
- TCommentTypeblog.RegisterObject;
- TCommentTypeinReplyTo.RegisterObject;
- TCommentTypepost.RegisterObject;
- TComment.RegisterObject;
- TCommentList.RegisterObject;
- TPageTypeauthorTypeimage.RegisterObject;
- TPageTypeauthor.RegisterObject;
- TPageTypeblog.RegisterObject;
- TPage.RegisterObject;
- TPageList.RegisterObject;
- TPageviewsTypecountsItem.RegisterObject;
- TPageviews.RegisterObject;
- TPostTypeauthorTypeimage.RegisterObject;
- TPostTypeauthor.RegisterObject;
- TPostTypeblog.RegisterObject;
- TPostTypeimagesItem.RegisterObject;
- TPostTypelocation.RegisterObject;
- TPostTypereplies.RegisterObject;
- TPost.RegisterObject;
- TPostList.RegisterObject;
- TPostPerUserInfo.RegisterObject;
- TPostUserInfo.RegisterObject;
- TPostUserInfosList.RegisterObject;
- TUserTypeblogs.RegisterObject;
- TUserTypelocale.RegisterObject;
- TUser.RegisterObject;
- end;
- Function TBloggerAPI.GetBlogUserInfosInstance : TBlogUserInfosResource;
- begin
- if (FBlogUserInfosInstance=Nil) then
- FBlogUserInfosInstance:=CreateBlogUserInfosResource;
- Result:=FBlogUserInfosInstance;
- end;
- Function TBloggerAPI.CreateBlogUserInfosResource : TBlogUserInfosResource;
- begin
- Result:=CreateBlogUserInfosResource(Self);
- end;
- Function TBloggerAPI.CreateBlogUserInfosResource(AOwner : TComponent) : TBlogUserInfosResource;
- begin
- Result:=TBlogUserInfosResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TBloggerAPI.GetBlogsInstance : TBlogsResource;
- begin
- if (FBlogsInstance=Nil) then
- FBlogsInstance:=CreateBlogsResource;
- Result:=FBlogsInstance;
- end;
- Function TBloggerAPI.CreateBlogsResource : TBlogsResource;
- begin
- Result:=CreateBlogsResource(Self);
- end;
- Function TBloggerAPI.CreateBlogsResource(AOwner : TComponent) : TBlogsResource;
- begin
- Result:=TBlogsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TBloggerAPI.GetCommentsInstance : TCommentsResource;
- begin
- if (FCommentsInstance=Nil) then
- FCommentsInstance:=CreateCommentsResource;
- Result:=FCommentsInstance;
- end;
- Function TBloggerAPI.CreateCommentsResource : TCommentsResource;
- begin
- Result:=CreateCommentsResource(Self);
- end;
- Function TBloggerAPI.CreateCommentsResource(AOwner : TComponent) : TCommentsResource;
- begin
- Result:=TCommentsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TBloggerAPI.GetPageViewsInstance : TPageViewsResource;
- begin
- if (FPageViewsInstance=Nil) then
- FPageViewsInstance:=CreatePageViewsResource;
- Result:=FPageViewsInstance;
- end;
- Function TBloggerAPI.CreatePageViewsResource : TPageViewsResource;
- begin
- Result:=CreatePageViewsResource(Self);
- end;
- Function TBloggerAPI.CreatePageViewsResource(AOwner : TComponent) : TPageViewsResource;
- begin
- Result:=TPageViewsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TBloggerAPI.GetPagesInstance : TPagesResource;
- begin
- if (FPagesInstance=Nil) then
- FPagesInstance:=CreatePagesResource;
- Result:=FPagesInstance;
- end;
- Function TBloggerAPI.CreatePagesResource : TPagesResource;
- begin
- Result:=CreatePagesResource(Self);
- end;
- Function TBloggerAPI.CreatePagesResource(AOwner : TComponent) : TPagesResource;
- begin
- Result:=TPagesResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TBloggerAPI.GetPostUserInfosInstance : TPostUserInfosResource;
- begin
- if (FPostUserInfosInstance=Nil) then
- FPostUserInfosInstance:=CreatePostUserInfosResource;
- Result:=FPostUserInfosInstance;
- end;
- Function TBloggerAPI.CreatePostUserInfosResource : TPostUserInfosResource;
- begin
- Result:=CreatePostUserInfosResource(Self);
- end;
- Function TBloggerAPI.CreatePostUserInfosResource(AOwner : TComponent) : TPostUserInfosResource;
- begin
- Result:=TPostUserInfosResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TBloggerAPI.GetPostsInstance : TPostsResource;
- begin
- if (FPostsInstance=Nil) then
- FPostsInstance:=CreatePostsResource;
- Result:=FPostsInstance;
- end;
- Function TBloggerAPI.CreatePostsResource : TPostsResource;
- begin
- Result:=CreatePostsResource(Self);
- end;
- Function TBloggerAPI.CreatePostsResource(AOwner : TComponent) : TPostsResource;
- begin
- Result:=TPostsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TBloggerAPI.GetUsersInstance : TUsersResource;
- begin
- if (FUsersInstance=Nil) then
- FUsersInstance:=CreateUsersResource;
- Result:=FUsersInstance;
- end;
- Function TBloggerAPI.CreateUsersResource : TUsersResource;
- begin
- Result:=CreateUsersResource(Self);
- end;
- Function TBloggerAPI.CreateUsersResource(AOwner : TComponent) : TUsersResource;
- begin
- Result:=TUsersResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- initialization
- TBloggerAPI.RegisterAPI;
- end.
|