| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445 |
- unit googleclassroom;
- {$MODE objfpc}
- {$H+}
- interface
- uses sysutils, classes, googleservice, restbase, googlebase;
- type
-
- //Top-level schema types
- TCourse = Class;
- TDriveFolder = Class;
- TCourseMaterialSet = Class;
- TCourseMaterial = Class;
- TDriveFile = Class;
- TYouTubeVideo = Class;
- TLink = Class;
- TForm = Class;
- TEmpty = Class;
- TListCoursesResponse = Class;
- TCourseAlias = Class;
- TListCourseAliasesResponse = Class;
- TInvitation = Class;
- TListInvitationsResponse = Class;
- TUserProfile = Class;
- TName = Class;
- TGlobalPermission = Class;
- TTeacher = Class;
- TListTeachersResponse = Class;
- TStudent = Class;
- TListStudentsResponse = Class;
- TCourseWork = Class;
- TMaterial = Class;
- TSharedDriveFile = Class;
- TDate = Class;
- TTimeOfDay = Class;
- TAssignment = Class;
- TMultipleChoiceQuestion = Class;
- TListCourseWorkResponse = Class;
- TStudentSubmission = Class;
- TAssignmentSubmission = Class;
- TAttachment = Class;
- TShortAnswerSubmission = Class;
- TMultipleChoiceSubmission = Class;
- TListStudentSubmissionsResponse = Class;
- TTurnInStudentSubmissionRequest = Class;
- TReclaimStudentSubmissionRequest = Class;
- TReturnStudentSubmissionRequest = Class;
- TModifyAttachmentsRequest = Class;
- TCourseArray = Array of TCourse;
- TDriveFolderArray = Array of TDriveFolder;
- TCourseMaterialSetArray = Array of TCourseMaterialSet;
- TCourseMaterialArray = Array of TCourseMaterial;
- TDriveFileArray = Array of TDriveFile;
- TYouTubeVideoArray = Array of TYouTubeVideo;
- TLinkArray = Array of TLink;
- TFormArray = Array of TForm;
- TEmptyArray = Array of TEmpty;
- TListCoursesResponseArray = Array of TListCoursesResponse;
- TCourseAliasArray = Array of TCourseAlias;
- TListCourseAliasesResponseArray = Array of TListCourseAliasesResponse;
- TInvitationArray = Array of TInvitation;
- TListInvitationsResponseArray = Array of TListInvitationsResponse;
- TUserProfileArray = Array of TUserProfile;
- TNameArray = Array of TName;
- TGlobalPermissionArray = Array of TGlobalPermission;
- TTeacherArray = Array of TTeacher;
- TListTeachersResponseArray = Array of TListTeachersResponse;
- TStudentArray = Array of TStudent;
- TListStudentsResponseArray = Array of TListStudentsResponse;
- TCourseWorkArray = Array of TCourseWork;
- TMaterialArray = Array of TMaterial;
- TSharedDriveFileArray = Array of TSharedDriveFile;
- TDateArray = Array of TDate;
- TTimeOfDayArray = Array of TTimeOfDay;
- TAssignmentArray = Array of TAssignment;
- TMultipleChoiceQuestionArray = Array of TMultipleChoiceQuestion;
- TListCourseWorkResponseArray = Array of TListCourseWorkResponse;
- TStudentSubmissionArray = Array of TStudentSubmission;
- TAssignmentSubmissionArray = Array of TAssignmentSubmission;
- TAttachmentArray = Array of TAttachment;
- TShortAnswerSubmissionArray = Array of TShortAnswerSubmission;
- TMultipleChoiceSubmissionArray = Array of TMultipleChoiceSubmission;
- TListStudentSubmissionsResponseArray = Array of TListStudentSubmissionsResponse;
- TTurnInStudentSubmissionRequestArray = Array of TTurnInStudentSubmissionRequest;
- TReclaimStudentSubmissionRequestArray = Array of TReclaimStudentSubmissionRequest;
- TReturnStudentSubmissionRequestArray = Array of TReturnStudentSubmissionRequest;
- TModifyAttachmentsRequestArray = Array of TModifyAttachmentsRequest;
- //Anonymous types, using auto-generated names
- TCourseTypecourseMaterialSetsArray = Array of TCourseMaterialSet;
- TCourseMaterialSetTypematerialsArray = Array of TCourseMaterial;
- TListCoursesResponseTypecoursesArray = Array of TCourse;
- TListCourseAliasesResponseTypealiasesArray = Array of TCourseAlias;
- TListInvitationsResponseTypeinvitationsArray = Array of TInvitation;
- TUserProfileTypepermissionsArray = Array of TGlobalPermission;
- TListTeachersResponseTypeteachersArray = Array of TTeacher;
- TListStudentsResponseTypestudentsArray = Array of TStudent;
- TCourseWorkTypematerialsArray = Array of TMaterial;
- TListCourseWorkResponseTypecourseWorkArray = Array of TCourseWork;
- TAssignmentSubmissionTypeattachmentsArray = Array of TAttachment;
- TListStudentSubmissionsResponseTypestudentSubmissionsArray = Array of TStudentSubmission;
- TModifyAttachmentsRequestTypeaddAttachmentsArray = Array of TAttachment;
-
- { --------------------------------------------------------------------
- TCourse
- --------------------------------------------------------------------}
-
- TCourse = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Fname : String;
- Fsection : String;
- FdescriptionHeading : String;
- Fdescription : String;
- Froom : String;
- FownerId : String;
- FcreationTime : String;
- FupdateTime : String;
- FenrollmentCode : String;
- FcourseState : String;
- FalternateLink : String;
- FteacherGroupEmail : String;
- FcourseGroupEmail : String;
- FteacherFolder : TDriveFolder;
- FcourseMaterialSets : TCourseTypecourseMaterialSetsArray;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setname(AIndex : Integer; const AValue : String); virtual;
- Procedure Setsection(AIndex : Integer; const AValue : String); virtual;
- Procedure SetdescriptionHeading(AIndex : Integer; const AValue : String); virtual;
- Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
- Procedure Setroom(AIndex : Integer; const AValue : String); virtual;
- Procedure SetownerId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcreationTime(AIndex : Integer; const AValue : String); virtual;
- Procedure SetupdateTime(AIndex : Integer; const AValue : String); virtual;
- Procedure SetenrollmentCode(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcourseState(AIndex : Integer; const AValue : String); virtual;
- Procedure SetalternateLink(AIndex : Integer; const AValue : String); virtual;
- Procedure SetteacherGroupEmail(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcourseGroupEmail(AIndex : Integer; const AValue : String); virtual;
- Procedure SetteacherFolder(AIndex : Integer; const AValue : TDriveFolder); virtual;
- Procedure SetcourseMaterialSets(AIndex : Integer; const AValue : TCourseTypecourseMaterialSetsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- Property name : String Index 8 Read Fname Write Setname;
- Property section : String Index 16 Read Fsection Write Setsection;
- Property descriptionHeading : String Index 24 Read FdescriptionHeading Write SetdescriptionHeading;
- Property description : String Index 32 Read Fdescription Write Setdescription;
- Property room : String Index 40 Read Froom Write Setroom;
- Property ownerId : String Index 48 Read FownerId Write SetownerId;
- Property creationTime : String Index 56 Read FcreationTime Write SetcreationTime;
- Property updateTime : String Index 64 Read FupdateTime Write SetupdateTime;
- Property enrollmentCode : String Index 72 Read FenrollmentCode Write SetenrollmentCode;
- Property courseState : String Index 80 Read FcourseState Write SetcourseState;
- Property alternateLink : String Index 88 Read FalternateLink Write SetalternateLink;
- Property teacherGroupEmail : String Index 96 Read FteacherGroupEmail Write SetteacherGroupEmail;
- Property courseGroupEmail : String Index 104 Read FcourseGroupEmail Write SetcourseGroupEmail;
- Property teacherFolder : TDriveFolder Index 112 Read FteacherFolder Write SetteacherFolder;
- Property courseMaterialSets : TCourseTypecourseMaterialSetsArray Index 120 Read FcourseMaterialSets Write SetcourseMaterialSets;
- end;
- TCourseClass = Class of TCourse;
-
- { --------------------------------------------------------------------
- TDriveFolder
- --------------------------------------------------------------------}
-
- TDriveFolder = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Ftitle : String;
- FalternateLink : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
- Procedure SetalternateLink(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- Property title : String Index 8 Read Ftitle Write Settitle;
- Property alternateLink : String Index 16 Read FalternateLink Write SetalternateLink;
- end;
- TDriveFolderClass = Class of TDriveFolder;
-
- { --------------------------------------------------------------------
- TCourseMaterialSet
- --------------------------------------------------------------------}
-
- TCourseMaterialSet = Class(TGoogleBaseObject)
- Private
- Ftitle : String;
- Fmaterials : TCourseMaterialSetTypematerialsArray;
- Protected
- //Property setters
- Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
- Procedure Setmaterials(AIndex : Integer; const AValue : TCourseMaterialSetTypematerialsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property title : String Index 0 Read Ftitle Write Settitle;
- Property materials : TCourseMaterialSetTypematerialsArray Index 8 Read Fmaterials Write Setmaterials;
- end;
- TCourseMaterialSetClass = Class of TCourseMaterialSet;
-
- { --------------------------------------------------------------------
- TCourseMaterial
- --------------------------------------------------------------------}
-
- TCourseMaterial = Class(TGoogleBaseObject)
- Private
- FdriveFile : TDriveFile;
- FyouTubeVideo : TYouTubeVideo;
- Flink : TLink;
- Fform : TForm;
- Protected
- //Property setters
- Procedure SetdriveFile(AIndex : Integer; const AValue : TDriveFile); virtual;
- Procedure SetyouTubeVideo(AIndex : Integer; const AValue : TYouTubeVideo); virtual;
- Procedure Setlink(AIndex : Integer; const AValue : TLink); virtual;
- Procedure Setform(AIndex : Integer; const AValue : TForm); virtual;
- Public
- Published
- Property driveFile : TDriveFile Index 0 Read FdriveFile Write SetdriveFile;
- Property youTubeVideo : TYouTubeVideo Index 8 Read FyouTubeVideo Write SetyouTubeVideo;
- Property link : TLink Index 16 Read Flink Write Setlink;
- Property form : TForm Index 24 Read Fform Write Setform;
- end;
- TCourseMaterialClass = Class of TCourseMaterial;
-
- { --------------------------------------------------------------------
- TDriveFile
- --------------------------------------------------------------------}
-
- TDriveFile = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Ftitle : String;
- FalternateLink : String;
- FthumbnailUrl : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
- Procedure SetalternateLink(AIndex : Integer; const AValue : String); virtual;
- Procedure SetthumbnailUrl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- Property title : String Index 8 Read Ftitle Write Settitle;
- Property alternateLink : String Index 16 Read FalternateLink Write SetalternateLink;
- Property thumbnailUrl : String Index 24 Read FthumbnailUrl Write SetthumbnailUrl;
- end;
- TDriveFileClass = Class of TDriveFile;
-
- { --------------------------------------------------------------------
- TYouTubeVideo
- --------------------------------------------------------------------}
-
- TYouTubeVideo = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Ftitle : String;
- FalternateLink : String;
- FthumbnailUrl : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
- Procedure SetalternateLink(AIndex : Integer; const AValue : String); virtual;
- Procedure SetthumbnailUrl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- Property title : String Index 8 Read Ftitle Write Settitle;
- Property alternateLink : String Index 16 Read FalternateLink Write SetalternateLink;
- Property thumbnailUrl : String Index 24 Read FthumbnailUrl Write SetthumbnailUrl;
- end;
- TYouTubeVideoClass = Class of TYouTubeVideo;
-
- { --------------------------------------------------------------------
- TLink
- --------------------------------------------------------------------}
-
- TLink = Class(TGoogleBaseObject)
- Private
- Furl : String;
- Ftitle : String;
- FthumbnailUrl : String;
- Protected
- //Property setters
- Procedure Seturl(AIndex : Integer; const AValue : String); virtual;
- Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
- Procedure SetthumbnailUrl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property url : String Index 0 Read Furl Write Seturl;
- Property title : String Index 8 Read Ftitle Write Settitle;
- Property thumbnailUrl : String Index 16 Read FthumbnailUrl Write SetthumbnailUrl;
- end;
- TLinkClass = Class of TLink;
-
- { --------------------------------------------------------------------
- TForm
- --------------------------------------------------------------------}
-
- TForm = Class(TGoogleBaseObject)
- Private
- FformUrl : String;
- FresponseUrl : String;
- Ftitle : String;
- FthumbnailUrl : String;
- Protected
- //Property setters
- Procedure SetformUrl(AIndex : Integer; const AValue : String); virtual;
- Procedure SetresponseUrl(AIndex : Integer; const AValue : String); virtual;
- Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
- Procedure SetthumbnailUrl(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property formUrl : String Index 0 Read FformUrl Write SetformUrl;
- Property responseUrl : String Index 8 Read FresponseUrl Write SetresponseUrl;
- Property title : String Index 16 Read Ftitle Write Settitle;
- Property thumbnailUrl : String Index 24 Read FthumbnailUrl Write SetthumbnailUrl;
- end;
- TFormClass = Class of TForm;
-
- { --------------------------------------------------------------------
- TEmpty
- --------------------------------------------------------------------}
-
- TEmpty = Class(TGoogleBaseObject)
- Private
- Protected
- //Property setters
- Public
- Published
- end;
- TEmptyClass = Class of TEmpty;
-
- { --------------------------------------------------------------------
- TListCoursesResponse
- --------------------------------------------------------------------}
-
- TListCoursesResponse = Class(TGoogleBaseObject)
- Private
- Fcourses : TListCoursesResponseTypecoursesArray;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setcourses(AIndex : Integer; const AValue : TListCoursesResponseTypecoursesArray); 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 courses : TListCoursesResponseTypecoursesArray Index 0 Read Fcourses Write Setcourses;
- Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
- end;
- TListCoursesResponseClass = Class of TListCoursesResponse;
-
- { --------------------------------------------------------------------
- TCourseAlias
- --------------------------------------------------------------------}
-
- TCourseAlias = Class(TGoogleBaseObject)
- Private
- Falias : String;
- Protected
- //Property setters
- Procedure Setalias(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property alias : String Index 0 Read Falias Write Setalias;
- end;
- TCourseAliasClass = Class of TCourseAlias;
-
- { --------------------------------------------------------------------
- TListCourseAliasesResponse
- --------------------------------------------------------------------}
-
- TListCourseAliasesResponse = Class(TGoogleBaseObject)
- Private
- Faliases : TListCourseAliasesResponseTypealiasesArray;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setaliases(AIndex : Integer; const AValue : TListCourseAliasesResponseTypealiasesArray); 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 aliases : TListCourseAliasesResponseTypealiasesArray Index 0 Read Faliases Write Setaliases;
- Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
- end;
- TListCourseAliasesResponseClass = Class of TListCourseAliasesResponse;
-
- { --------------------------------------------------------------------
- TInvitation
- --------------------------------------------------------------------}
-
- TInvitation = Class(TGoogleBaseObject)
- Private
- Fid : String;
- FuserId : String;
- FcourseId : String;
- Frole : String;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure SetuserId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcourseId(AIndex : Integer; const AValue : String); virtual;
- Procedure Setrole(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- Property userId : String Index 8 Read FuserId Write SetuserId;
- Property courseId : String Index 16 Read FcourseId Write SetcourseId;
- Property role : String Index 24 Read Frole Write Setrole;
- end;
- TInvitationClass = Class of TInvitation;
-
- { --------------------------------------------------------------------
- TListInvitationsResponse
- --------------------------------------------------------------------}
-
- TListInvitationsResponse = Class(TGoogleBaseObject)
- Private
- Finvitations : TListInvitationsResponseTypeinvitationsArray;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setinvitations(AIndex : Integer; const AValue : TListInvitationsResponseTypeinvitationsArray); 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 invitations : TListInvitationsResponseTypeinvitationsArray Index 0 Read Finvitations Write Setinvitations;
- Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
- end;
- TListInvitationsResponseClass = Class of TListInvitationsResponse;
-
- { --------------------------------------------------------------------
- TUserProfile
- --------------------------------------------------------------------}
-
- TUserProfile = Class(TGoogleBaseObject)
- Private
- Fid : String;
- Fname : TName;
- FemailAddress : String;
- FphotoUrl : String;
- Fpermissions : TUserProfileTypepermissionsArray;
- Protected
- //Property setters
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Setname(AIndex : Integer; const AValue : TName); virtual;
- Procedure SetemailAddress(AIndex : Integer; const AValue : String); virtual;
- Procedure SetphotoUrl(AIndex : Integer; const AValue : String); virtual;
- Procedure Setpermissions(AIndex : Integer; const AValue : TUserProfileTypepermissionsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property id : String Index 0 Read Fid Write Setid;
- Property name : TName Index 8 Read Fname Write Setname;
- Property emailAddress : String Index 16 Read FemailAddress Write SetemailAddress;
- Property photoUrl : String Index 24 Read FphotoUrl Write SetphotoUrl;
- Property permissions : TUserProfileTypepermissionsArray Index 32 Read Fpermissions Write Setpermissions;
- end;
- TUserProfileClass = Class of TUserProfile;
-
- { --------------------------------------------------------------------
- TName
- --------------------------------------------------------------------}
-
- TName = Class(TGoogleBaseObject)
- Private
- FgivenName : String;
- FfamilyName : String;
- FfullName : String;
- Protected
- //Property setters
- Procedure SetgivenName(AIndex : Integer; const AValue : String); virtual;
- Procedure SetfamilyName(AIndex : Integer; const AValue : String); virtual;
- Procedure SetfullName(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property givenName : String Index 0 Read FgivenName Write SetgivenName;
- Property familyName : String Index 8 Read FfamilyName Write SetfamilyName;
- Property fullName : String Index 16 Read FfullName Write SetfullName;
- end;
- TNameClass = Class of TName;
-
- { --------------------------------------------------------------------
- TGlobalPermission
- --------------------------------------------------------------------}
-
- TGlobalPermission = Class(TGoogleBaseObject)
- Private
- Fpermission : String;
- Protected
- //Property setters
- Procedure Setpermission(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property permission : String Index 0 Read Fpermission Write Setpermission;
- end;
- TGlobalPermissionClass = Class of TGlobalPermission;
-
- { --------------------------------------------------------------------
- TTeacher
- --------------------------------------------------------------------}
-
- TTeacher = Class(TGoogleBaseObject)
- Private
- FcourseId : String;
- FuserId : String;
- Fprofile : TUserProfile;
- Protected
- //Property setters
- Procedure SetcourseId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetuserId(AIndex : Integer; const AValue : String); virtual;
- Procedure Setprofile(AIndex : Integer; const AValue : TUserProfile); virtual;
- Public
- Published
- Property courseId : String Index 0 Read FcourseId Write SetcourseId;
- Property userId : String Index 8 Read FuserId Write SetuserId;
- Property profile : TUserProfile Index 16 Read Fprofile Write Setprofile;
- end;
- TTeacherClass = Class of TTeacher;
-
- { --------------------------------------------------------------------
- TListTeachersResponse
- --------------------------------------------------------------------}
-
- TListTeachersResponse = Class(TGoogleBaseObject)
- Private
- Fteachers : TListTeachersResponseTypeteachersArray;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setteachers(AIndex : Integer; const AValue : TListTeachersResponseTypeteachersArray); 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 teachers : TListTeachersResponseTypeteachersArray Index 0 Read Fteachers Write Setteachers;
- Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
- end;
- TListTeachersResponseClass = Class of TListTeachersResponse;
-
- { --------------------------------------------------------------------
- TStudent
- --------------------------------------------------------------------}
-
- TStudent = Class(TGoogleBaseObject)
- Private
- FcourseId : String;
- FuserId : String;
- Fprofile : TUserProfile;
- FstudentWorkFolder : TDriveFolder;
- Protected
- //Property setters
- Procedure SetcourseId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetuserId(AIndex : Integer; const AValue : String); virtual;
- Procedure Setprofile(AIndex : Integer; const AValue : TUserProfile); virtual;
- Procedure SetstudentWorkFolder(AIndex : Integer; const AValue : TDriveFolder); virtual;
- Public
- Published
- Property courseId : String Index 0 Read FcourseId Write SetcourseId;
- Property userId : String Index 8 Read FuserId Write SetuserId;
- Property profile : TUserProfile Index 16 Read Fprofile Write Setprofile;
- Property studentWorkFolder : TDriveFolder Index 24 Read FstudentWorkFolder Write SetstudentWorkFolder;
- end;
- TStudentClass = Class of TStudent;
-
- { --------------------------------------------------------------------
- TListStudentsResponse
- --------------------------------------------------------------------}
-
- TListStudentsResponse = Class(TGoogleBaseObject)
- Private
- Fstudents : TListStudentsResponseTypestudentsArray;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure Setstudents(AIndex : Integer; const AValue : TListStudentsResponseTypestudentsArray); 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 students : TListStudentsResponseTypestudentsArray Index 0 Read Fstudents Write Setstudents;
- Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
- end;
- TListStudentsResponseClass = Class of TListStudentsResponse;
-
- { --------------------------------------------------------------------
- TCourseWork
- --------------------------------------------------------------------}
-
- TCourseWork = Class(TGoogleBaseObject)
- Private
- FcourseId : String;
- Fid : String;
- Ftitle : String;
- Fdescription : String;
- Fmaterials : TCourseWorkTypematerialsArray;
- Fstate : String;
- FalternateLink : String;
- FcreationTime : String;
- FupdateTime : String;
- FdueDate : TDate;
- FdueTime : TTimeOfDay;
- FmaxPoints : double;
- FworkType : String;
- FassociatedWithDeveloper : boolean;
- FsubmissionModificationMode : String;
- Fassignment : TAssignment;
- FmultipleChoiceQuestion : TMultipleChoiceQuestion;
- Protected
- //Property setters
- Procedure SetcourseId(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
- Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
- Procedure Setmaterials(AIndex : Integer; const AValue : TCourseWorkTypematerialsArray); virtual;
- Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
- Procedure SetalternateLink(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcreationTime(AIndex : Integer; const AValue : String); virtual;
- Procedure SetupdateTime(AIndex : Integer; const AValue : String); virtual;
- Procedure SetdueDate(AIndex : Integer; const AValue : TDate); virtual;
- Procedure SetdueTime(AIndex : Integer; const AValue : TTimeOfDay); virtual;
- Procedure SetmaxPoints(AIndex : Integer; const AValue : double); virtual;
- Procedure SetworkType(AIndex : Integer; const AValue : String); virtual;
- Procedure SetassociatedWithDeveloper(AIndex : Integer; const AValue : boolean); virtual;
- Procedure SetsubmissionModificationMode(AIndex : Integer; const AValue : String); virtual;
- Procedure Setassignment(AIndex : Integer; const AValue : TAssignment); virtual;
- Procedure SetmultipleChoiceQuestion(AIndex : Integer; const AValue : TMultipleChoiceQuestion); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property courseId : String Index 0 Read FcourseId Write SetcourseId;
- Property id : String Index 8 Read Fid Write Setid;
- Property title : String Index 16 Read Ftitle Write Settitle;
- Property description : String Index 24 Read Fdescription Write Setdescription;
- Property materials : TCourseWorkTypematerialsArray Index 32 Read Fmaterials Write Setmaterials;
- Property state : String Index 40 Read Fstate Write Setstate;
- Property alternateLink : String Index 48 Read FalternateLink Write SetalternateLink;
- Property creationTime : String Index 56 Read FcreationTime Write SetcreationTime;
- Property updateTime : String Index 64 Read FupdateTime Write SetupdateTime;
- Property dueDate : TDate Index 72 Read FdueDate Write SetdueDate;
- Property dueTime : TTimeOfDay Index 80 Read FdueTime Write SetdueTime;
- Property maxPoints : double Index 88 Read FmaxPoints Write SetmaxPoints;
- Property workType : String Index 96 Read FworkType Write SetworkType;
- Property associatedWithDeveloper : boolean Index 104 Read FassociatedWithDeveloper Write SetassociatedWithDeveloper;
- Property submissionModificationMode : String Index 112 Read FsubmissionModificationMode Write SetsubmissionModificationMode;
- Property assignment : TAssignment Index 120 Read Fassignment Write Setassignment;
- Property multipleChoiceQuestion : TMultipleChoiceQuestion Index 128 Read FmultipleChoiceQuestion Write SetmultipleChoiceQuestion;
- end;
- TCourseWorkClass = Class of TCourseWork;
-
- { --------------------------------------------------------------------
- TMaterial
- --------------------------------------------------------------------}
-
- TMaterial = Class(TGoogleBaseObject)
- Private
- FdriveFile : TSharedDriveFile;
- FyoutubeVideo : TYouTubeVideo;
- Flink : TLink;
- Fform : TForm;
- Protected
- //Property setters
- Procedure SetdriveFile(AIndex : Integer; const AValue : TSharedDriveFile); virtual;
- Procedure SetyoutubeVideo(AIndex : Integer; const AValue : TYouTubeVideo); virtual;
- Procedure Setlink(AIndex : Integer; const AValue : TLink); virtual;
- Procedure Setform(AIndex : Integer; const AValue : TForm); virtual;
- Public
- Published
- Property driveFile : TSharedDriveFile Index 0 Read FdriveFile Write SetdriveFile;
- Property youtubeVideo : TYouTubeVideo Index 8 Read FyoutubeVideo Write SetyoutubeVideo;
- Property link : TLink Index 16 Read Flink Write Setlink;
- Property form : TForm Index 24 Read Fform Write Setform;
- end;
- TMaterialClass = Class of TMaterial;
-
- { --------------------------------------------------------------------
- TSharedDriveFile
- --------------------------------------------------------------------}
-
- TSharedDriveFile = Class(TGoogleBaseObject)
- Private
- FdriveFile : TDriveFile;
- FshareMode : String;
- Protected
- //Property setters
- Procedure SetdriveFile(AIndex : Integer; const AValue : TDriveFile); virtual;
- Procedure SetshareMode(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property driveFile : TDriveFile Index 0 Read FdriveFile Write SetdriveFile;
- Property shareMode : String Index 8 Read FshareMode Write SetshareMode;
- end;
- TSharedDriveFileClass = Class of TSharedDriveFile;
-
- { --------------------------------------------------------------------
- TDate
- --------------------------------------------------------------------}
-
- TDate = Class(TGoogleBaseObject)
- Private
- Fyear : integer;
- Fmonth : integer;
- Fday : integer;
- Protected
- //Property setters
- Procedure Setyear(AIndex : Integer; const AValue : integer); virtual;
- Procedure Setmonth(AIndex : Integer; const AValue : integer); virtual;
- Procedure Setday(AIndex : Integer; const AValue : integer); virtual;
- Public
- Published
- Property year : integer Index 0 Read Fyear Write Setyear;
- Property month : integer Index 8 Read Fmonth Write Setmonth;
- Property day : integer Index 16 Read Fday Write Setday;
- end;
- TDateClass = Class of TDate;
-
- { --------------------------------------------------------------------
- TTimeOfDay
- --------------------------------------------------------------------}
-
- TTimeOfDay = Class(TGoogleBaseObject)
- Private
- Fhours : integer;
- Fminutes : integer;
- Fseconds : integer;
- Fnanos : integer;
- Protected
- //Property setters
- Procedure Sethours(AIndex : Integer; const AValue : integer); virtual;
- Procedure Setminutes(AIndex : Integer; const AValue : integer); virtual;
- Procedure Setseconds(AIndex : Integer; const AValue : integer); virtual;
- Procedure Setnanos(AIndex : Integer; const AValue : integer); virtual;
- Public
- Published
- Property hours : integer Index 0 Read Fhours Write Sethours;
- Property minutes : integer Index 8 Read Fminutes Write Setminutes;
- Property seconds : integer Index 16 Read Fseconds Write Setseconds;
- Property nanos : integer Index 24 Read Fnanos Write Setnanos;
- end;
- TTimeOfDayClass = Class of TTimeOfDay;
-
- { --------------------------------------------------------------------
- TAssignment
- --------------------------------------------------------------------}
-
- TAssignment = Class(TGoogleBaseObject)
- Private
- FstudentWorkFolder : TDriveFolder;
- Protected
- //Property setters
- Procedure SetstudentWorkFolder(AIndex : Integer; const AValue : TDriveFolder); virtual;
- Public
- Published
- Property studentWorkFolder : TDriveFolder Index 0 Read FstudentWorkFolder Write SetstudentWorkFolder;
- end;
- TAssignmentClass = Class of TAssignment;
-
- { --------------------------------------------------------------------
- TMultipleChoiceQuestion
- --------------------------------------------------------------------}
-
- TMultipleChoiceQuestion = Class(TGoogleBaseObject)
- Private
- Fchoices : TStringArray;
- Protected
- //Property setters
- Procedure Setchoices(AIndex : Integer; const AValue : TStringArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property choices : TStringArray Index 0 Read Fchoices Write Setchoices;
- end;
- TMultipleChoiceQuestionClass = Class of TMultipleChoiceQuestion;
-
- { --------------------------------------------------------------------
- TListCourseWorkResponse
- --------------------------------------------------------------------}
-
- TListCourseWorkResponse = Class(TGoogleBaseObject)
- Private
- FcourseWork : TListCourseWorkResponseTypecourseWorkArray;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure SetcourseWork(AIndex : Integer; const AValue : TListCourseWorkResponseTypecourseWorkArray); 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 courseWork : TListCourseWorkResponseTypecourseWorkArray Index 0 Read FcourseWork Write SetcourseWork;
- Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
- end;
- TListCourseWorkResponseClass = Class of TListCourseWorkResponse;
-
- { --------------------------------------------------------------------
- TStudentSubmission
- --------------------------------------------------------------------}
-
- TStudentSubmission = Class(TGoogleBaseObject)
- Private
- FcourseId : String;
- FcourseWorkId : String;
- Fid : String;
- FuserId : String;
- FcreationTime : String;
- FupdateTime : String;
- Fstate : String;
- Flate : boolean;
- FdraftGrade : double;
- FassignedGrade : double;
- FalternateLink : String;
- FcourseWorkType : String;
- FassociatedWithDeveloper : boolean;
- FassignmentSubmission : TAssignmentSubmission;
- FshortAnswerSubmission : TShortAnswerSubmission;
- FmultipleChoiceSubmission : TMultipleChoiceSubmission;
- Protected
- //Property setters
- Procedure SetcourseId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcourseWorkId(AIndex : Integer; const AValue : String); virtual;
- Procedure Setid(AIndex : Integer; const AValue : String); virtual;
- Procedure SetuserId(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcreationTime(AIndex : Integer; const AValue : String); virtual;
- Procedure SetupdateTime(AIndex : Integer; const AValue : String); virtual;
- Procedure Setstate(AIndex : Integer; const AValue : String); virtual;
- Procedure Setlate(AIndex : Integer; const AValue : boolean); virtual;
- Procedure SetdraftGrade(AIndex : Integer; const AValue : double); virtual;
- Procedure SetassignedGrade(AIndex : Integer; const AValue : double); virtual;
- Procedure SetalternateLink(AIndex : Integer; const AValue : String); virtual;
- Procedure SetcourseWorkType(AIndex : Integer; const AValue : String); virtual;
- Procedure SetassociatedWithDeveloper(AIndex : Integer; const AValue : boolean); virtual;
- Procedure SetassignmentSubmission(AIndex : Integer; const AValue : TAssignmentSubmission); virtual;
- Procedure SetshortAnswerSubmission(AIndex : Integer; const AValue : TShortAnswerSubmission); virtual;
- Procedure SetmultipleChoiceSubmission(AIndex : Integer; const AValue : TMultipleChoiceSubmission); virtual;
- Public
- Published
- Property courseId : String Index 0 Read FcourseId Write SetcourseId;
- Property courseWorkId : String Index 8 Read FcourseWorkId Write SetcourseWorkId;
- Property id : String Index 16 Read Fid Write Setid;
- Property userId : String Index 24 Read FuserId Write SetuserId;
- Property creationTime : String Index 32 Read FcreationTime Write SetcreationTime;
- Property updateTime : String Index 40 Read FupdateTime Write SetupdateTime;
- Property state : String Index 48 Read Fstate Write Setstate;
- Property late : boolean Index 56 Read Flate Write Setlate;
- Property draftGrade : double Index 64 Read FdraftGrade Write SetdraftGrade;
- Property assignedGrade : double Index 72 Read FassignedGrade Write SetassignedGrade;
- Property alternateLink : String Index 80 Read FalternateLink Write SetalternateLink;
- Property courseWorkType : String Index 88 Read FcourseWorkType Write SetcourseWorkType;
- Property associatedWithDeveloper : boolean Index 96 Read FassociatedWithDeveloper Write SetassociatedWithDeveloper;
- Property assignmentSubmission : TAssignmentSubmission Index 104 Read FassignmentSubmission Write SetassignmentSubmission;
- Property shortAnswerSubmission : TShortAnswerSubmission Index 112 Read FshortAnswerSubmission Write SetshortAnswerSubmission;
- Property multipleChoiceSubmission : TMultipleChoiceSubmission Index 120 Read FmultipleChoiceSubmission Write SetmultipleChoiceSubmission;
- end;
- TStudentSubmissionClass = Class of TStudentSubmission;
-
- { --------------------------------------------------------------------
- TAssignmentSubmission
- --------------------------------------------------------------------}
-
- TAssignmentSubmission = Class(TGoogleBaseObject)
- Private
- Fattachments : TAssignmentSubmissionTypeattachmentsArray;
- Protected
- //Property setters
- Procedure Setattachments(AIndex : Integer; const AValue : TAssignmentSubmissionTypeattachmentsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property attachments : TAssignmentSubmissionTypeattachmentsArray Index 0 Read Fattachments Write Setattachments;
- end;
- TAssignmentSubmissionClass = Class of TAssignmentSubmission;
-
- { --------------------------------------------------------------------
- TAttachment
- --------------------------------------------------------------------}
-
- TAttachment = Class(TGoogleBaseObject)
- Private
- FdriveFile : TDriveFile;
- FyouTubeVideo : TYouTubeVideo;
- Flink : TLink;
- Fform : TForm;
- Protected
- //Property setters
- Procedure SetdriveFile(AIndex : Integer; const AValue : TDriveFile); virtual;
- Procedure SetyouTubeVideo(AIndex : Integer; const AValue : TYouTubeVideo); virtual;
- Procedure Setlink(AIndex : Integer; const AValue : TLink); virtual;
- Procedure Setform(AIndex : Integer; const AValue : TForm); virtual;
- Public
- Published
- Property driveFile : TDriveFile Index 0 Read FdriveFile Write SetdriveFile;
- Property youTubeVideo : TYouTubeVideo Index 8 Read FyouTubeVideo Write SetyouTubeVideo;
- Property link : TLink Index 16 Read Flink Write Setlink;
- Property form : TForm Index 24 Read Fform Write Setform;
- end;
- TAttachmentClass = Class of TAttachment;
-
- { --------------------------------------------------------------------
- TShortAnswerSubmission
- --------------------------------------------------------------------}
-
- TShortAnswerSubmission = Class(TGoogleBaseObject)
- Private
- Fanswer : String;
- Protected
- //Property setters
- Procedure Setanswer(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property answer : String Index 0 Read Fanswer Write Setanswer;
- end;
- TShortAnswerSubmissionClass = Class of TShortAnswerSubmission;
-
- { --------------------------------------------------------------------
- TMultipleChoiceSubmission
- --------------------------------------------------------------------}
-
- TMultipleChoiceSubmission = Class(TGoogleBaseObject)
- Private
- Fanswer : String;
- Protected
- //Property setters
- Procedure Setanswer(AIndex : Integer; const AValue : String); virtual;
- Public
- Published
- Property answer : String Index 0 Read Fanswer Write Setanswer;
- end;
- TMultipleChoiceSubmissionClass = Class of TMultipleChoiceSubmission;
-
- { --------------------------------------------------------------------
- TListStudentSubmissionsResponse
- --------------------------------------------------------------------}
-
- TListStudentSubmissionsResponse = Class(TGoogleBaseObject)
- Private
- FstudentSubmissions : TListStudentSubmissionsResponseTypestudentSubmissionsArray;
- FnextPageToken : String;
- Protected
- //Property setters
- Procedure SetstudentSubmissions(AIndex : Integer; const AValue : TListStudentSubmissionsResponseTypestudentSubmissionsArray); 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 studentSubmissions : TListStudentSubmissionsResponseTypestudentSubmissionsArray Index 0 Read FstudentSubmissions Write SetstudentSubmissions;
- Property nextPageToken : String Index 8 Read FnextPageToken Write SetnextPageToken;
- end;
- TListStudentSubmissionsResponseClass = Class of TListStudentSubmissionsResponse;
-
- { --------------------------------------------------------------------
- TTurnInStudentSubmissionRequest
- --------------------------------------------------------------------}
-
- TTurnInStudentSubmissionRequest = Class(TGoogleBaseObject)
- Private
- Protected
- //Property setters
- Public
- Published
- end;
- TTurnInStudentSubmissionRequestClass = Class of TTurnInStudentSubmissionRequest;
-
- { --------------------------------------------------------------------
- TReclaimStudentSubmissionRequest
- --------------------------------------------------------------------}
-
- TReclaimStudentSubmissionRequest = Class(TGoogleBaseObject)
- Private
- Protected
- //Property setters
- Public
- Published
- end;
- TReclaimStudentSubmissionRequestClass = Class of TReclaimStudentSubmissionRequest;
-
- { --------------------------------------------------------------------
- TReturnStudentSubmissionRequest
- --------------------------------------------------------------------}
-
- TReturnStudentSubmissionRequest = Class(TGoogleBaseObject)
- Private
- Protected
- //Property setters
- Public
- Published
- end;
- TReturnStudentSubmissionRequestClass = Class of TReturnStudentSubmissionRequest;
-
- { --------------------------------------------------------------------
- TModifyAttachmentsRequest
- --------------------------------------------------------------------}
-
- TModifyAttachmentsRequest = Class(TGoogleBaseObject)
- Private
- FaddAttachments : TModifyAttachmentsRequestTypeaddAttachmentsArray;
- Protected
- //Property setters
- Procedure SetaddAttachments(AIndex : Integer; const AValue : TModifyAttachmentsRequestTypeaddAttachmentsArray); virtual;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
- {$ENDIF VER2_6}
- Public
- Published
- Property addAttachments : TModifyAttachmentsRequestTypeaddAttachmentsArray Index 0 Read FaddAttachments Write SetaddAttachments;
- end;
- TModifyAttachmentsRequestClass = Class of TModifyAttachmentsRequest;
-
- { --------------------------------------------------------------------
- TCoursesAliasesResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TCoursesAliasesResource, method List
-
- TCoursesAliasesListOptions = Record
- pageSize : integer;
- pageToken : String;
- end;
-
- TCoursesAliasesResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Create(courseId: string; aCourseAlias : TCourseAlias) : TCourseAlias;overload;
- Function Delete(courseId: string; alias: string) : TEmpty;
- Function List(courseId: string; AQuery : string = '') : TListCourseAliasesResponse;
- Function List(courseId: string; AQuery : TCoursesAliaseslistOptions) : TListCourseAliasesResponse;
- end;
-
-
- { --------------------------------------------------------------------
- TCoursesTeachersResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TCoursesTeachersResource, method List
-
- TCoursesTeachersListOptions = Record
- pageSize : integer;
- pageToken : String;
- end;
-
- TCoursesTeachersResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Create(courseId: string; aTeacher : TTeacher) : TTeacher;overload;
- Function Get(courseId: string; userId: string) : TTeacher;
- Function Delete(courseId: string; userId: string) : TEmpty;
- Function List(courseId: string; AQuery : string = '') : TListTeachersResponse;
- Function List(courseId: string; AQuery : TCoursesTeacherslistOptions) : TListTeachersResponse;
- end;
-
-
- { --------------------------------------------------------------------
- TCoursesStudentsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TCoursesStudentsResource, method Create
-
- TCoursesStudentsCreateOptions = Record
- enrollmentCode : String;
- end;
-
-
- //Optional query Options for TCoursesStudentsResource, method List
-
- TCoursesStudentsListOptions = Record
- pageSize : integer;
- pageToken : String;
- end;
-
- TCoursesStudentsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Create(courseId: string; aStudent : TStudent; AQuery : string = '') : TStudent;overload;
- Function Create(courseId: string; aStudent : TStudent; AQuery : TCoursesStudentscreateOptions) : TStudent;overload;
- Function Get(courseId: string; userId: string) : TStudent;
- Function Delete(courseId: string; userId: string) : TEmpty;
- Function List(courseId: string; AQuery : string = '') : TListStudentsResponse;
- Function List(courseId: string; AQuery : TCoursesStudentslistOptions) : TListStudentsResponse;
- end;
-
-
- { --------------------------------------------------------------------
- TCoursesCourseWorkStudentSubmissionsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TCoursesCourseWorkStudentSubmissionsResource, method Patch
-
- TCoursesCourseWorkStudentSubmissionsPatchOptions = Record
- updateMask : String;
- end;
-
-
- //Optional query Options for TCoursesCourseWorkStudentSubmissionsResource, method List
-
- TCoursesCourseWorkStudentSubmissionsListOptions = Record
- userId : String;
- states : String;
- late : String;
- pageSize : integer;
- pageToken : String;
- end;
-
- TCoursesCourseWorkStudentSubmissionsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(courseId: string; courseWorkId: string; id: string) : TStudentSubmission;
- Function Patch(courseId: string; courseWorkId: string; id: string; aStudentSubmission : TStudentSubmission; AQuery : string = '') : TStudentSubmission;
- Function Patch(courseId: string; courseWorkId: string; id: string; aStudentSubmission : TStudentSubmission; AQuery : TCoursesCourseWorkStudentSubmissionspatchOptions) : TStudentSubmission;
- Function List(courseId: string; courseWorkId: string; AQuery : string = '') : TListStudentSubmissionsResponse;
- Function List(courseId: string; courseWorkId: string; AQuery : TCoursesCourseWorkStudentSubmissionslistOptions) : TListStudentSubmissionsResponse;
- Function TurnIn(courseId: string; courseWorkId: string; id: string; aTurnInStudentSubmissionRequest : TTurnInStudentSubmissionRequest) : TEmpty;
- Function Reclaim(courseId: string; courseWorkId: string; id: string; aReclaimStudentSubmissionRequest : TReclaimStudentSubmissionRequest) : TEmpty;
- Function Return(courseId: string; courseWorkId: string; id: string; aReturnStudentSubmissionRequest : TReturnStudentSubmissionRequest) : TEmpty;
- Function ModifyAttachments(courseId: string; courseWorkId: string; id: string; aModifyAttachmentsRequest : TModifyAttachmentsRequest) : TStudentSubmission;
- end;
-
-
- { --------------------------------------------------------------------
- TCoursesCourseWorkResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TCoursesCourseWorkResource, method List
-
- TCoursesCourseWorkListOptions = Record
- courseWorkStates : String;
- orderBy : String;
- pageSize : integer;
- pageToken : String;
- end;
-
- TCoursesCourseWorkResource = Class(TGoogleResource)
- Private
- FStudentSubmissionsInstance : TCoursesCourseWorkStudentSubmissionsResource;
- Function GetStudentSubmissionsInstance : TCoursesCourseWorkStudentSubmissionsResource;virtual;
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Create(courseId: string; aCourseWork : TCourseWork) : TCourseWork;overload;
- Function Get(courseId: string; id: string) : TCourseWork;
- Function List(courseId: string; AQuery : string = '') : TListCourseWorkResponse;
- Function List(courseId: string; AQuery : TCoursesCourseWorklistOptions) : TListCourseWorkResponse;
- Function CreateStudentSubmissionsResource(AOwner : TComponent) : TCoursesCourseWorkStudentSubmissionsResource;virtual;overload;
- Function CreateStudentSubmissionsResource : TCoursesCourseWorkStudentSubmissionsResource;virtual;overload;
- Property StudentSubmissionsResource : TCoursesCourseWorkStudentSubmissionsResource Read GetStudentSubmissionsInstance;
- end;
-
-
- { --------------------------------------------------------------------
- TCoursesResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TCoursesResource, method Patch
-
- TCoursesPatchOptions = Record
- updateMask : String;
- end;
-
-
- //Optional query Options for TCoursesResource, method List
-
- TCoursesListOptions = Record
- studentId : String;
- teacherId : String;
- pageSize : integer;
- pageToken : String;
- end;
-
- TCoursesResource = Class(TGoogleResource)
- Private
- FAliasesInstance : TCoursesAliasesResource;
- FTeachersInstance : TCoursesTeachersResource;
- FStudentsInstance : TCoursesStudentsResource;
- FCourseWorkStudentSubmissionsInstance : TCoursesCourseWorkStudentSubmissionsResource;
- FCourseWorkInstance : TCoursesCourseWorkResource;
- Function GetAliasesInstance : TCoursesAliasesResource;virtual;
- Function GetTeachersInstance : TCoursesTeachersResource;virtual;
- Function GetStudentsInstance : TCoursesStudentsResource;virtual;
- Function GetCourseWorkStudentSubmissionsInstance : TCoursesCourseWorkStudentSubmissionsResource;virtual;
- Function GetCourseWorkInstance : TCoursesCourseWorkResource;virtual;
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Create(aCourse : TCourse) : TCourse;overload;
- Function Get(id: string) : TCourse;
- Function Update(id: string; aCourse : TCourse) : TCourse;
- Function Patch(id: string; aCourse : TCourse; AQuery : string = '') : TCourse;
- Function Patch(id: string; aCourse : TCourse; AQuery : TCoursespatchOptions) : TCourse;
- Function Delete(id: string) : TEmpty;
- Function List(AQuery : string = '') : TListCoursesResponse;
- Function List(AQuery : TCourseslistOptions) : TListCoursesResponse;
- Function CreateAliasesResource(AOwner : TComponent) : TCoursesAliasesResource;virtual;overload;
- Function CreateAliasesResource : TCoursesAliasesResource;virtual;overload;
- Function CreateTeachersResource(AOwner : TComponent) : TCoursesTeachersResource;virtual;overload;
- Function CreateTeachersResource : TCoursesTeachersResource;virtual;overload;
- Function CreateStudentsResource(AOwner : TComponent) : TCoursesStudentsResource;virtual;overload;
- Function CreateStudentsResource : TCoursesStudentsResource;virtual;overload;
- Function CreateCourseWorkStudentSubmissionsResource(AOwner : TComponent) : TCoursesCourseWorkStudentSubmissionsResource;virtual;overload;
- Function CreateCourseWorkStudentSubmissionsResource : TCoursesCourseWorkStudentSubmissionsResource;virtual;overload;
- Function CreateCourseWorkResource(AOwner : TComponent) : TCoursesCourseWorkResource;virtual;overload;
- Function CreateCourseWorkResource : TCoursesCourseWorkResource;virtual;overload;
- Property AliasesResource : TCoursesAliasesResource Read GetAliasesInstance;
- Property TeachersResource : TCoursesTeachersResource Read GetTeachersInstance;
- Property StudentsResource : TCoursesStudentsResource Read GetStudentsInstance;
- Property CourseWorkStudentSubmissionsResource : TCoursesCourseWorkStudentSubmissionsResource Read GetCourseWorkStudentSubmissionsInstance;
- Property CourseWorkResource : TCoursesCourseWorkResource Read GetCourseWorkInstance;
- end;
-
-
- { --------------------------------------------------------------------
- TInvitationsResource
- --------------------------------------------------------------------}
-
-
- //Optional query Options for TInvitationsResource, method List
-
- TInvitationsListOptions = Record
- userId : String;
- courseId : String;
- pageSize : integer;
- pageToken : String;
- end;
-
- TInvitationsResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Create(aInvitation : TInvitation) : TInvitation;overload;
- Function Get(id: string) : TInvitation;
- Function Delete(id: string) : TEmpty;
- Function List(AQuery : string = '') : TListInvitationsResponse;
- Function List(AQuery : TInvitationslistOptions) : TListInvitationsResponse;
- Function Accept(id: string) : TEmpty;
- end;
-
-
- { --------------------------------------------------------------------
- TUserProfilesResource
- --------------------------------------------------------------------}
-
- TUserProfilesResource = Class(TGoogleResource)
- Public
- Class Function ResourceName : String; override;
- Class Function DefaultAPI : TGoogleAPIClass; override;
- Function Get(userId: string) : TUserProfile;
- end;
-
-
- { --------------------------------------------------------------------
- TClassroomAPI
- --------------------------------------------------------------------}
-
- TClassroomAPI = Class(TGoogleAPI)
- Private
- FCoursesAliasesInstance : TCoursesAliasesResource;
- FCoursesTeachersInstance : TCoursesTeachersResource;
- FCoursesStudentsInstance : TCoursesStudentsResource;
- FCoursesCourseWorkStudentSubmissionsInstance : TCoursesCourseWorkStudentSubmissionsResource;
- FCoursesCourseWorkInstance : TCoursesCourseWorkResource;
- FCoursesInstance : TCoursesResource;
- FInvitationsInstance : TInvitationsResource;
- FUserProfilesInstance : TUserProfilesResource;
- Function GetCoursesAliasesInstance : TCoursesAliasesResource;virtual;
- Function GetCoursesTeachersInstance : TCoursesTeachersResource;virtual;
- Function GetCoursesStudentsInstance : TCoursesStudentsResource;virtual;
- Function GetCoursesCourseWorkStudentSubmissionsInstance : TCoursesCourseWorkStudentSubmissionsResource;virtual;
- Function GetCoursesCourseWorkInstance : TCoursesCourseWorkResource;virtual;
- Function GetCoursesInstance : TCoursesResource;virtual;
- Function GetInvitationsInstance : TInvitationsResource;virtual;
- Function GetUserProfilesInstance : TUserProfilesResource;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 CreateCoursesAliasesResource(AOwner : TComponent) : TCoursesAliasesResource;virtual;overload;
- Function CreateCoursesAliasesResource : TCoursesAliasesResource;virtual;overload;
- Function CreateCoursesTeachersResource(AOwner : TComponent) : TCoursesTeachersResource;virtual;overload;
- Function CreateCoursesTeachersResource : TCoursesTeachersResource;virtual;overload;
- Function CreateCoursesStudentsResource(AOwner : TComponent) : TCoursesStudentsResource;virtual;overload;
- Function CreateCoursesStudentsResource : TCoursesStudentsResource;virtual;overload;
- Function CreateCoursesCourseWorkStudentSubmissionsResource(AOwner : TComponent) : TCoursesCourseWorkStudentSubmissionsResource;virtual;overload;
- Function CreateCoursesCourseWorkStudentSubmissionsResource : TCoursesCourseWorkStudentSubmissionsResource;virtual;overload;
- Function CreateCoursesCourseWorkResource(AOwner : TComponent) : TCoursesCourseWorkResource;virtual;overload;
- Function CreateCoursesCourseWorkResource : TCoursesCourseWorkResource;virtual;overload;
- Function CreateCoursesResource(AOwner : TComponent) : TCoursesResource;virtual;overload;
- Function CreateCoursesResource : TCoursesResource;virtual;overload;
- Function CreateInvitationsResource(AOwner : TComponent) : TInvitationsResource;virtual;overload;
- Function CreateInvitationsResource : TInvitationsResource;virtual;overload;
- Function CreateUserProfilesResource(AOwner : TComponent) : TUserProfilesResource;virtual;overload;
- Function CreateUserProfilesResource : TUserProfilesResource;virtual;overload;
- //Add default on-demand instances for resources
- Property CoursesAliasesResource : TCoursesAliasesResource Read GetCoursesAliasesInstance;
- Property CoursesTeachersResource : TCoursesTeachersResource Read GetCoursesTeachersInstance;
- Property CoursesStudentsResource : TCoursesStudentsResource Read GetCoursesStudentsInstance;
- Property CoursesCourseWorkStudentSubmissionsResource : TCoursesCourseWorkStudentSubmissionsResource Read GetCoursesCourseWorkStudentSubmissionsInstance;
- Property CoursesCourseWorkResource : TCoursesCourseWorkResource Read GetCoursesCourseWorkInstance;
- Property CoursesResource : TCoursesResource Read GetCoursesInstance;
- Property InvitationsResource : TInvitationsResource Read GetInvitationsInstance;
- Property UserProfilesResource : TUserProfilesResource Read GetUserProfilesInstance;
- end;
- implementation
- { --------------------------------------------------------------------
- TCourse
- --------------------------------------------------------------------}
- Procedure TCourse.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.Setname(AIndex : Integer; const AValue : String);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.Setsection(AIndex : Integer; const AValue : String);
- begin
- If (Fsection=AValue) then exit;
- Fsection:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetdescriptionHeading(AIndex : Integer; const AValue : String);
- begin
- If (FdescriptionHeading=AValue) then exit;
- FdescriptionHeading:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.Setdescription(AIndex : Integer; const AValue : String);
- begin
- If (Fdescription=AValue) then exit;
- Fdescription:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.Setroom(AIndex : Integer; const AValue : String);
- begin
- If (Froom=AValue) then exit;
- Froom:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetownerId(AIndex : Integer; const AValue : String);
- begin
- If (FownerId=AValue) then exit;
- FownerId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetcreationTime(AIndex : Integer; const AValue : String);
- begin
- If (FcreationTime=AValue) then exit;
- FcreationTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetupdateTime(AIndex : Integer; const AValue : String);
- begin
- If (FupdateTime=AValue) then exit;
- FupdateTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetenrollmentCode(AIndex : Integer; const AValue : String);
- begin
- If (FenrollmentCode=AValue) then exit;
- FenrollmentCode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetcourseState(AIndex : Integer; const AValue : String);
- begin
- If (FcourseState=AValue) then exit;
- FcourseState:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetalternateLink(AIndex : Integer; const AValue : String);
- begin
- If (FalternateLink=AValue) then exit;
- FalternateLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetteacherGroupEmail(AIndex : Integer; const AValue : String);
- begin
- If (FteacherGroupEmail=AValue) then exit;
- FteacherGroupEmail:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetcourseGroupEmail(AIndex : Integer; const AValue : String);
- begin
- If (FcourseGroupEmail=AValue) then exit;
- FcourseGroupEmail:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetteacherFolder(AIndex : Integer; const AValue : TDriveFolder);
- begin
- If (FteacherFolder=AValue) then exit;
- FteacherFolder:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourse.SetcourseMaterialSets(AIndex : Integer; const AValue : TCourseTypecourseMaterialSetsArray);
- begin
- If (FcourseMaterialSets=AValue) then exit;
- FcourseMaterialSets:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TCourse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'coursematerialsets' : SetLength(FcourseMaterialSets,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TDriveFolder
- --------------------------------------------------------------------}
- Procedure TDriveFolder.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDriveFolder.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDriveFolder.SetalternateLink(AIndex : Integer; const AValue : String);
- begin
- If (FalternateLink=AValue) then exit;
- FalternateLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TCourseMaterialSet
- --------------------------------------------------------------------}
- Procedure TCourseMaterialSet.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseMaterialSet.Setmaterials(AIndex : Integer; const AValue : TCourseMaterialSetTypematerialsArray);
- begin
- If (Fmaterials=AValue) then exit;
- Fmaterials:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TCourseMaterialSet.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'materials' : SetLength(Fmaterials,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TCourseMaterial
- --------------------------------------------------------------------}
- Procedure TCourseMaterial.SetdriveFile(AIndex : Integer; const AValue : TDriveFile);
- begin
- If (FdriveFile=AValue) then exit;
- FdriveFile:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseMaterial.SetyouTubeVideo(AIndex : Integer; const AValue : TYouTubeVideo);
- begin
- If (FyouTubeVideo=AValue) then exit;
- FyouTubeVideo:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseMaterial.Setlink(AIndex : Integer; const AValue : TLink);
- begin
- If (Flink=AValue) then exit;
- Flink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseMaterial.Setform(AIndex : Integer; const AValue : TForm);
- begin
- If (Fform=AValue) then exit;
- Fform:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TDriveFile
- --------------------------------------------------------------------}
- Procedure TDriveFile.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDriveFile.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDriveFile.SetalternateLink(AIndex : Integer; const AValue : String);
- begin
- If (FalternateLink=AValue) then exit;
- FalternateLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDriveFile.SetthumbnailUrl(AIndex : Integer; const AValue : String);
- begin
- If (FthumbnailUrl=AValue) then exit;
- FthumbnailUrl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TYouTubeVideo
- --------------------------------------------------------------------}
- Procedure TYouTubeVideo.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TYouTubeVideo.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TYouTubeVideo.SetalternateLink(AIndex : Integer; const AValue : String);
- begin
- If (FalternateLink=AValue) then exit;
- FalternateLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TYouTubeVideo.SetthumbnailUrl(AIndex : Integer; const AValue : String);
- begin
- If (FthumbnailUrl=AValue) then exit;
- FthumbnailUrl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TLink
- --------------------------------------------------------------------}
- Procedure TLink.Seturl(AIndex : Integer; const AValue : String);
- begin
- If (Furl=AValue) then exit;
- Furl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TLink.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TLink.SetthumbnailUrl(AIndex : Integer; const AValue : String);
- begin
- If (FthumbnailUrl=AValue) then exit;
- FthumbnailUrl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TForm
- --------------------------------------------------------------------}
- Procedure TForm.SetformUrl(AIndex : Integer; const AValue : String);
- begin
- If (FformUrl=AValue) then exit;
- FformUrl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TForm.SetresponseUrl(AIndex : Integer; const AValue : String);
- begin
- If (FresponseUrl=AValue) then exit;
- FresponseUrl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TForm.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TForm.SetthumbnailUrl(AIndex : Integer; const AValue : String);
- begin
- If (FthumbnailUrl=AValue) then exit;
- FthumbnailUrl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TEmpty
- --------------------------------------------------------------------}
- { --------------------------------------------------------------------
- TListCoursesResponse
- --------------------------------------------------------------------}
- Procedure TListCoursesResponse.Setcourses(AIndex : Integer; const AValue : TListCoursesResponseTypecoursesArray);
- begin
- If (Fcourses=AValue) then exit;
- Fcourses:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListCoursesResponse.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 TListCoursesResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'courses' : SetLength(Fcourses,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TCourseAlias
- --------------------------------------------------------------------}
- Procedure TCourseAlias.Setalias(AIndex : Integer; const AValue : String);
- begin
- If (Falias=AValue) then exit;
- Falias:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TListCourseAliasesResponse
- --------------------------------------------------------------------}
- Procedure TListCourseAliasesResponse.Setaliases(AIndex : Integer; const AValue : TListCourseAliasesResponseTypealiasesArray);
- begin
- If (Faliases=AValue) then exit;
- Faliases:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListCourseAliasesResponse.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 TListCourseAliasesResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'aliases' : SetLength(Faliases,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TInvitation
- --------------------------------------------------------------------}
- Procedure TInvitation.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TInvitation.SetuserId(AIndex : Integer; const AValue : String);
- begin
- If (FuserId=AValue) then exit;
- FuserId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TInvitation.SetcourseId(AIndex : Integer; const AValue : String);
- begin
- If (FcourseId=AValue) then exit;
- FcourseId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TInvitation.Setrole(AIndex : Integer; const AValue : String);
- begin
- If (Frole=AValue) then exit;
- Frole:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TListInvitationsResponse
- --------------------------------------------------------------------}
- Procedure TListInvitationsResponse.Setinvitations(AIndex : Integer; const AValue : TListInvitationsResponseTypeinvitationsArray);
- begin
- If (Finvitations=AValue) then exit;
- Finvitations:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListInvitationsResponse.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 TListInvitationsResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'invitations' : SetLength(Finvitations,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TUserProfile
- --------------------------------------------------------------------}
- Procedure TUserProfile.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUserProfile.Setname(AIndex : Integer; const AValue : TName);
- begin
- If (Fname=AValue) then exit;
- Fname:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUserProfile.SetemailAddress(AIndex : Integer; const AValue : String);
- begin
- If (FemailAddress=AValue) then exit;
- FemailAddress:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUserProfile.SetphotoUrl(AIndex : Integer; const AValue : String);
- begin
- If (FphotoUrl=AValue) then exit;
- FphotoUrl:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TUserProfile.Setpermissions(AIndex : Integer; const AValue : TUserProfileTypepermissionsArray);
- begin
- If (Fpermissions=AValue) then exit;
- Fpermissions:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TUserProfile.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'permissions' : SetLength(Fpermissions,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TName
- --------------------------------------------------------------------}
- Procedure TName.SetgivenName(AIndex : Integer; const AValue : String);
- begin
- If (FgivenName=AValue) then exit;
- FgivenName:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TName.SetfamilyName(AIndex : Integer; const AValue : String);
- begin
- If (FfamilyName=AValue) then exit;
- FfamilyName:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TName.SetfullName(AIndex : Integer; const AValue : String);
- begin
- If (FfullName=AValue) then exit;
- FfullName:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TGlobalPermission
- --------------------------------------------------------------------}
- Procedure TGlobalPermission.Setpermission(AIndex : Integer; const AValue : String);
- begin
- If (Fpermission=AValue) then exit;
- Fpermission:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TTeacher
- --------------------------------------------------------------------}
- Procedure TTeacher.SetcourseId(AIndex : Integer; const AValue : String);
- begin
- If (FcourseId=AValue) then exit;
- FcourseId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TTeacher.SetuserId(AIndex : Integer; const AValue : String);
- begin
- If (FuserId=AValue) then exit;
- FuserId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TTeacher.Setprofile(AIndex : Integer; const AValue : TUserProfile);
- begin
- If (Fprofile=AValue) then exit;
- Fprofile:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TListTeachersResponse
- --------------------------------------------------------------------}
- Procedure TListTeachersResponse.Setteachers(AIndex : Integer; const AValue : TListTeachersResponseTypeteachersArray);
- begin
- If (Fteachers=AValue) then exit;
- Fteachers:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListTeachersResponse.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 TListTeachersResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'teachers' : SetLength(Fteachers,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TStudent
- --------------------------------------------------------------------}
- Procedure TStudent.SetcourseId(AIndex : Integer; const AValue : String);
- begin
- If (FcourseId=AValue) then exit;
- FcourseId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudent.SetuserId(AIndex : Integer; const AValue : String);
- begin
- If (FuserId=AValue) then exit;
- FuserId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudent.Setprofile(AIndex : Integer; const AValue : TUserProfile);
- begin
- If (Fprofile=AValue) then exit;
- Fprofile:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudent.SetstudentWorkFolder(AIndex : Integer; const AValue : TDriveFolder);
- begin
- If (FstudentWorkFolder=AValue) then exit;
- FstudentWorkFolder:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TListStudentsResponse
- --------------------------------------------------------------------}
- Procedure TListStudentsResponse.Setstudents(AIndex : Integer; const AValue : TListStudentsResponseTypestudentsArray);
- begin
- If (Fstudents=AValue) then exit;
- Fstudents:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListStudentsResponse.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 TListStudentsResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'students' : SetLength(Fstudents,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TCourseWork
- --------------------------------------------------------------------}
- Procedure TCourseWork.SetcourseId(AIndex : Integer; const AValue : String);
- begin
- If (FcourseId=AValue) then exit;
- FcourseId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.Settitle(AIndex : Integer; const AValue : String);
- begin
- If (Ftitle=AValue) then exit;
- Ftitle:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.Setdescription(AIndex : Integer; const AValue : String);
- begin
- If (Fdescription=AValue) then exit;
- Fdescription:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.Setmaterials(AIndex : Integer; const AValue : TCourseWorkTypematerialsArray);
- begin
- If (Fmaterials=AValue) then exit;
- Fmaterials:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.Setstate(AIndex : Integer; const AValue : String);
- begin
- If (Fstate=AValue) then exit;
- Fstate:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetalternateLink(AIndex : Integer; const AValue : String);
- begin
- If (FalternateLink=AValue) then exit;
- FalternateLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetcreationTime(AIndex : Integer; const AValue : String);
- begin
- If (FcreationTime=AValue) then exit;
- FcreationTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetupdateTime(AIndex : Integer; const AValue : String);
- begin
- If (FupdateTime=AValue) then exit;
- FupdateTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetdueDate(AIndex : Integer; const AValue : TDate);
- begin
- If (FdueDate=AValue) then exit;
- FdueDate:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetdueTime(AIndex : Integer; const AValue : TTimeOfDay);
- begin
- If (FdueTime=AValue) then exit;
- FdueTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetmaxPoints(AIndex : Integer; const AValue : double);
- begin
- If (FmaxPoints=AValue) then exit;
- FmaxPoints:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetworkType(AIndex : Integer; const AValue : String);
- begin
- If (FworkType=AValue) then exit;
- FworkType:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetassociatedWithDeveloper(AIndex : Integer; const AValue : boolean);
- begin
- If (FassociatedWithDeveloper=AValue) then exit;
- FassociatedWithDeveloper:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetsubmissionModificationMode(AIndex : Integer; const AValue : String);
- begin
- If (FsubmissionModificationMode=AValue) then exit;
- FsubmissionModificationMode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.Setassignment(AIndex : Integer; const AValue : TAssignment);
- begin
- If (Fassignment=AValue) then exit;
- Fassignment:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TCourseWork.SetmultipleChoiceQuestion(AIndex : Integer; const AValue : TMultipleChoiceQuestion);
- begin
- If (FmultipleChoiceQuestion=AValue) then exit;
- FmultipleChoiceQuestion:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TCourseWork.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'materials' : SetLength(Fmaterials,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TMaterial
- --------------------------------------------------------------------}
- Procedure TMaterial.SetdriveFile(AIndex : Integer; const AValue : TSharedDriveFile);
- begin
- If (FdriveFile=AValue) then exit;
- FdriveFile:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TMaterial.SetyoutubeVideo(AIndex : Integer; const AValue : TYouTubeVideo);
- begin
- If (FyoutubeVideo=AValue) then exit;
- FyoutubeVideo:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TMaterial.Setlink(AIndex : Integer; const AValue : TLink);
- begin
- If (Flink=AValue) then exit;
- Flink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TMaterial.Setform(AIndex : Integer; const AValue : TForm);
- begin
- If (Fform=AValue) then exit;
- Fform:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TSharedDriveFile
- --------------------------------------------------------------------}
- Procedure TSharedDriveFile.SetdriveFile(AIndex : Integer; const AValue : TDriveFile);
- begin
- If (FdriveFile=AValue) then exit;
- FdriveFile:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TSharedDriveFile.SetshareMode(AIndex : Integer; const AValue : String);
- begin
- If (FshareMode=AValue) then exit;
- FshareMode:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TDate
- --------------------------------------------------------------------}
- Procedure TDate.Setyear(AIndex : Integer; const AValue : integer);
- begin
- If (Fyear=AValue) then exit;
- Fyear:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDate.Setmonth(AIndex : Integer; const AValue : integer);
- begin
- If (Fmonth=AValue) then exit;
- Fmonth:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TDate.Setday(AIndex : Integer; const AValue : integer);
- begin
- If (Fday=AValue) then exit;
- Fday:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TTimeOfDay
- --------------------------------------------------------------------}
- Procedure TTimeOfDay.Sethours(AIndex : Integer; const AValue : integer);
- begin
- If (Fhours=AValue) then exit;
- Fhours:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TTimeOfDay.Setminutes(AIndex : Integer; const AValue : integer);
- begin
- If (Fminutes=AValue) then exit;
- Fminutes:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TTimeOfDay.Setseconds(AIndex : Integer; const AValue : integer);
- begin
- If (Fseconds=AValue) then exit;
- Fseconds:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TTimeOfDay.Setnanos(AIndex : Integer; const AValue : integer);
- begin
- If (Fnanos=AValue) then exit;
- Fnanos:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TAssignment
- --------------------------------------------------------------------}
- Procedure TAssignment.SetstudentWorkFolder(AIndex : Integer; const AValue : TDriveFolder);
- begin
- If (FstudentWorkFolder=AValue) then exit;
- FstudentWorkFolder:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TMultipleChoiceQuestion
- --------------------------------------------------------------------}
- Procedure TMultipleChoiceQuestion.Setchoices(AIndex : Integer; const AValue : TStringArray);
- begin
- If (Fchoices=AValue) then exit;
- Fchoices:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TMultipleChoiceQuestion.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'choices' : SetLength(Fchoices,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TListCourseWorkResponse
- --------------------------------------------------------------------}
- Procedure TListCourseWorkResponse.SetcourseWork(AIndex : Integer; const AValue : TListCourseWorkResponseTypecourseWorkArray);
- begin
- If (FcourseWork=AValue) then exit;
- FcourseWork:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListCourseWorkResponse.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 TListCourseWorkResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'coursework' : SetLength(FcourseWork,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TStudentSubmission
- --------------------------------------------------------------------}
- Procedure TStudentSubmission.SetcourseId(AIndex : Integer; const AValue : String);
- begin
- If (FcourseId=AValue) then exit;
- FcourseId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetcourseWorkId(AIndex : Integer; const AValue : String);
- begin
- If (FcourseWorkId=AValue) then exit;
- FcourseWorkId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.Setid(AIndex : Integer; const AValue : String);
- begin
- If (Fid=AValue) then exit;
- Fid:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetuserId(AIndex : Integer; const AValue : String);
- begin
- If (FuserId=AValue) then exit;
- FuserId:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetcreationTime(AIndex : Integer; const AValue : String);
- begin
- If (FcreationTime=AValue) then exit;
- FcreationTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetupdateTime(AIndex : Integer; const AValue : String);
- begin
- If (FupdateTime=AValue) then exit;
- FupdateTime:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.Setstate(AIndex : Integer; const AValue : String);
- begin
- If (Fstate=AValue) then exit;
- Fstate:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.Setlate(AIndex : Integer; const AValue : boolean);
- begin
- If (Flate=AValue) then exit;
- Flate:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetdraftGrade(AIndex : Integer; const AValue : double);
- begin
- If (FdraftGrade=AValue) then exit;
- FdraftGrade:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetassignedGrade(AIndex : Integer; const AValue : double);
- begin
- If (FassignedGrade=AValue) then exit;
- FassignedGrade:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetalternateLink(AIndex : Integer; const AValue : String);
- begin
- If (FalternateLink=AValue) then exit;
- FalternateLink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetcourseWorkType(AIndex : Integer; const AValue : String);
- begin
- If (FcourseWorkType=AValue) then exit;
- FcourseWorkType:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetassociatedWithDeveloper(AIndex : Integer; const AValue : boolean);
- begin
- If (FassociatedWithDeveloper=AValue) then exit;
- FassociatedWithDeveloper:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetassignmentSubmission(AIndex : Integer; const AValue : TAssignmentSubmission);
- begin
- If (FassignmentSubmission=AValue) then exit;
- FassignmentSubmission:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetshortAnswerSubmission(AIndex : Integer; const AValue : TShortAnswerSubmission);
- begin
- If (FshortAnswerSubmission=AValue) then exit;
- FshortAnswerSubmission:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TStudentSubmission.SetmultipleChoiceSubmission(AIndex : Integer; const AValue : TMultipleChoiceSubmission);
- begin
- If (FmultipleChoiceSubmission=AValue) then exit;
- FmultipleChoiceSubmission:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TAssignmentSubmission
- --------------------------------------------------------------------}
- Procedure TAssignmentSubmission.Setattachments(AIndex : Integer; const AValue : TAssignmentSubmissionTypeattachmentsArray);
- begin
- If (Fattachments=AValue) then exit;
- Fattachments:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TAssignmentSubmission.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'attachments' : SetLength(Fattachments,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TAttachment
- --------------------------------------------------------------------}
- Procedure TAttachment.SetdriveFile(AIndex : Integer; const AValue : TDriveFile);
- begin
- If (FdriveFile=AValue) then exit;
- FdriveFile:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TAttachment.SetyouTubeVideo(AIndex : Integer; const AValue : TYouTubeVideo);
- begin
- If (FyouTubeVideo=AValue) then exit;
- FyouTubeVideo:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TAttachment.Setlink(AIndex : Integer; const AValue : TLink);
- begin
- If (Flink=AValue) then exit;
- Flink:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TAttachment.Setform(AIndex : Integer; const AValue : TForm);
- begin
- If (Fform=AValue) then exit;
- Fform:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TShortAnswerSubmission
- --------------------------------------------------------------------}
- Procedure TShortAnswerSubmission.Setanswer(AIndex : Integer; const AValue : String);
- begin
- If (Fanswer=AValue) then exit;
- Fanswer:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TMultipleChoiceSubmission
- --------------------------------------------------------------------}
- Procedure TMultipleChoiceSubmission.Setanswer(AIndex : Integer; const AValue : String);
- begin
- If (Fanswer=AValue) then exit;
- Fanswer:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- { --------------------------------------------------------------------
- TListStudentSubmissionsResponse
- --------------------------------------------------------------------}
- Procedure TListStudentSubmissionsResponse.SetstudentSubmissions(AIndex : Integer; const AValue : TListStudentSubmissionsResponseTypestudentSubmissionsArray);
- begin
- If (FstudentSubmissions=AValue) then exit;
- FstudentSubmissions:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- Procedure TListStudentSubmissionsResponse.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 TListStudentSubmissionsResponse.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'studentsubmissions' : SetLength(FstudentSubmissions,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TTurnInStudentSubmissionRequest
- --------------------------------------------------------------------}
- { --------------------------------------------------------------------
- TReclaimStudentSubmissionRequest
- --------------------------------------------------------------------}
- { --------------------------------------------------------------------
- TReturnStudentSubmissionRequest
- --------------------------------------------------------------------}
- { --------------------------------------------------------------------
- TModifyAttachmentsRequest
- --------------------------------------------------------------------}
- Procedure TModifyAttachmentsRequest.SetaddAttachments(AIndex : Integer; const AValue : TModifyAttachmentsRequestTypeaddAttachmentsArray);
- begin
- If (FaddAttachments=AValue) then exit;
- FaddAttachments:=AValue;
- MarkPropertyChanged(AIndex);
- end;
- //2.6.4. bug workaround
- {$IFDEF VER2_6}
- Procedure TModifyAttachmentsRequest.SetArrayLength(Const AName : String; ALength : Longint);
- begin
- Case AName of
- 'addattachments' : SetLength(FaddAttachments,ALength);
- else
- Inherited SetArrayLength(AName,ALength);
- end;
- end;
- {$ENDIF VER2_6}
- { --------------------------------------------------------------------
- TCoursesAliasesResource
- --------------------------------------------------------------------}
- Class Function TCoursesAliasesResource.ResourceName : String;
- begin
- Result:='aliases';
- end;
- Class Function TCoursesAliasesResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TclassroomAPI;
- end;
- Function TCoursesAliasesResource.Create(courseId: string; aCourseAlias : TCourseAlias) : TCourseAlias;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/courses/{courseId}/aliases';
- _Methodid = 'classroom.courses.aliases.create';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aCourseAlias,TCourseAlias) as TCourseAlias;
- end;
- Function TCoursesAliasesResource.Delete(courseId: string; alias: string) : TEmpty;
- Const
- _HTTPMethod = 'DELETE';
- _Path = 'v1/courses/{courseId}/aliases/{alias}';
- _Methodid = 'classroom.courses.aliases.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'alias',alias]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEmpty) as TEmpty;
- end;
- Function TCoursesAliasesResource.List(courseId: string; AQuery : string = '') : TListCourseAliasesResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{courseId}/aliases';
- _Methodid = 'classroom.courses.aliases.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListCourseAliasesResponse) as TListCourseAliasesResponse;
- end;
- Function TCoursesAliasesResource.List(courseId: string; AQuery : TCoursesAliaseslistOptions) : TListCourseAliasesResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'pageSize',AQuery.pageSize);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(courseId,_Q);
- end;
- { --------------------------------------------------------------------
- TCoursesTeachersResource
- --------------------------------------------------------------------}
- Class Function TCoursesTeachersResource.ResourceName : String;
- begin
- Result:='teachers';
- end;
- Class Function TCoursesTeachersResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TclassroomAPI;
- end;
- Function TCoursesTeachersResource.Create(courseId: string; aTeacher : TTeacher) : TTeacher;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/courses/{courseId}/teachers';
- _Methodid = 'classroom.courses.teachers.create';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aTeacher,TTeacher) as TTeacher;
- end;
- Function TCoursesTeachersResource.Get(courseId: string; userId: string) : TTeacher;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{courseId}/teachers/{userId}';
- _Methodid = 'classroom.courses.teachers.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TTeacher) as TTeacher;
- end;
- Function TCoursesTeachersResource.Delete(courseId: string; userId: string) : TEmpty;
- Const
- _HTTPMethod = 'DELETE';
- _Path = 'v1/courses/{courseId}/teachers/{userId}';
- _Methodid = 'classroom.courses.teachers.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEmpty) as TEmpty;
- end;
- Function TCoursesTeachersResource.List(courseId: string; AQuery : string = '') : TListTeachersResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{courseId}/teachers';
- _Methodid = 'classroom.courses.teachers.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListTeachersResponse) as TListTeachersResponse;
- end;
- Function TCoursesTeachersResource.List(courseId: string; AQuery : TCoursesTeacherslistOptions) : TListTeachersResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'pageSize',AQuery.pageSize);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(courseId,_Q);
- end;
- { --------------------------------------------------------------------
- TCoursesStudentsResource
- --------------------------------------------------------------------}
- Class Function TCoursesStudentsResource.ResourceName : String;
- begin
- Result:='students';
- end;
- Class Function TCoursesStudentsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TclassroomAPI;
- end;
- Function TCoursesStudentsResource.Create(courseId: string; aStudent : TStudent; AQuery : string = '') : TStudent;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/courses/{courseId}/students';
- _Methodid = 'classroom.courses.students.create';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aStudent,TStudent) as TStudent;
- end;
- Function TCoursesStudentsResource.Create(courseId: string; aStudent : TStudent; AQuery : TCoursesStudentscreateOptions) : TStudent;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'enrollmentCode',AQuery.enrollmentCode);
- Result:=Create(courseId,aStudent,_Q);
- end;
- Function TCoursesStudentsResource.Get(courseId: string; userId: string) : TStudent;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{courseId}/students/{userId}';
- _Methodid = 'classroom.courses.students.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TStudent) as TStudent;
- end;
- Function TCoursesStudentsResource.Delete(courseId: string; userId: string) : TEmpty;
- Const
- _HTTPMethod = 'DELETE';
- _Path = 'v1/courses/{courseId}/students/{userId}';
- _Methodid = 'classroom.courses.students.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEmpty) as TEmpty;
- end;
- Function TCoursesStudentsResource.List(courseId: string; AQuery : string = '') : TListStudentsResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{courseId}/students';
- _Methodid = 'classroom.courses.students.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListStudentsResponse) as TListStudentsResponse;
- end;
- Function TCoursesStudentsResource.List(courseId: string; AQuery : TCoursesStudentslistOptions) : TListStudentsResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'pageSize',AQuery.pageSize);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(courseId,_Q);
- end;
- { --------------------------------------------------------------------
- TCoursesCourseWorkStudentSubmissionsResource
- --------------------------------------------------------------------}
- Class Function TCoursesCourseWorkStudentSubmissionsResource.ResourceName : String;
- begin
- Result:='studentSubmissions';
- end;
- Class Function TCoursesCourseWorkStudentSubmissionsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TclassroomAPI;
- end;
- Function TCoursesCourseWorkStudentSubmissionsResource.Get(courseId: string; courseWorkId: string; id: string) : TStudentSubmission;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}';
- _Methodid = 'classroom.courses.courseWork.studentSubmissions.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'courseWorkId',courseWorkId,'id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TStudentSubmission) as TStudentSubmission;
- end;
- Function TCoursesCourseWorkStudentSubmissionsResource.Patch(courseId: string; courseWorkId: string; id: string; aStudentSubmission : TStudentSubmission; AQuery : string = '') : TStudentSubmission;
- Const
- _HTTPMethod = 'PATCH';
- _Path = 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}';
- _Methodid = 'classroom.courses.courseWork.studentSubmissions.patch';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'courseWorkId',courseWorkId,'id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aStudentSubmission,TStudentSubmission) as TStudentSubmission;
- end;
- Function TCoursesCourseWorkStudentSubmissionsResource.Patch(courseId: string; courseWorkId: string; id: string; aStudentSubmission : TStudentSubmission; AQuery : TCoursesCourseWorkStudentSubmissionspatchOptions) : TStudentSubmission;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'updateMask',AQuery.updateMask);
- Result:=Patch(courseId,courseWorkId,id,aStudentSubmission,_Q);
- end;
- Function TCoursesCourseWorkStudentSubmissionsResource.List(courseId: string; courseWorkId: string; AQuery : string = '') : TListStudentSubmissionsResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions';
- _Methodid = 'classroom.courses.courseWork.studentSubmissions.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'courseWorkId',courseWorkId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListStudentSubmissionsResponse) as TListStudentSubmissionsResponse;
- end;
- Function TCoursesCourseWorkStudentSubmissionsResource.List(courseId: string; courseWorkId: string; AQuery : TCoursesCourseWorkStudentSubmissionslistOptions) : TListStudentSubmissionsResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'userId',AQuery.userId);
- AddToQuery(_Q,'states',AQuery.states);
- AddToQuery(_Q,'late',AQuery.late);
- AddToQuery(_Q,'pageSize',AQuery.pageSize);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(courseId,courseWorkId,_Q);
- end;
- Function TCoursesCourseWorkStudentSubmissionsResource.TurnIn(courseId: string; courseWorkId: string; id: string; aTurnInStudentSubmissionRequest : TTurnInStudentSubmissionRequest) : TEmpty;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn';
- _Methodid = 'classroom.courses.courseWork.studentSubmissions.turnIn';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'courseWorkId',courseWorkId,'id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aTurnInStudentSubmissionRequest,TEmpty) as TEmpty;
- end;
- Function TCoursesCourseWorkStudentSubmissionsResource.Reclaim(courseId: string; courseWorkId: string; id: string; aReclaimStudentSubmissionRequest : TReclaimStudentSubmissionRequest) : TEmpty;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim';
- _Methodid = 'classroom.courses.courseWork.studentSubmissions.reclaim';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'courseWorkId',courseWorkId,'id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aReclaimStudentSubmissionRequest,TEmpty) as TEmpty;
- end;
- Function TCoursesCourseWorkStudentSubmissionsResource.Return(courseId: string; courseWorkId: string; id: string; aReturnStudentSubmissionRequest : TReturnStudentSubmissionRequest) : TEmpty;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return';
- _Methodid = 'classroom.courses.courseWork.studentSubmissions.return';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'courseWorkId',courseWorkId,'id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aReturnStudentSubmissionRequest,TEmpty) as TEmpty;
- end;
- Function TCoursesCourseWorkStudentSubmissionsResource.ModifyAttachments(courseId: string; courseWorkId: string; id: string; aModifyAttachmentsRequest : TModifyAttachmentsRequest) : TStudentSubmission;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments';
- _Methodid = 'classroom.courses.courseWork.studentSubmissions.modifyAttachments';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'courseWorkId',courseWorkId,'id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aModifyAttachmentsRequest,TStudentSubmission) as TStudentSubmission;
- end;
- { --------------------------------------------------------------------
- TCoursesCourseWorkResource
- --------------------------------------------------------------------}
- Class Function TCoursesCourseWorkResource.ResourceName : String;
- begin
- Result:='courseWork';
- end;
- Class Function TCoursesCourseWorkResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TclassroomAPI;
- end;
- Function TCoursesCourseWorkResource.Create(courseId: string; aCourseWork : TCourseWork) : TCourseWork;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/courses/{courseId}/courseWork';
- _Methodid = 'classroom.courses.courseWork.create';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aCourseWork,TCourseWork) as TCourseWork;
- end;
- Function TCoursesCourseWorkResource.Get(courseId: string; id: string) : TCourseWork;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{courseId}/courseWork/{id}';
- _Methodid = 'classroom.courses.courseWork.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId,'id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TCourseWork) as TCourseWork;
- end;
- Function TCoursesCourseWorkResource.List(courseId: string; AQuery : string = '') : TListCourseWorkResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{courseId}/courseWork';
- _Methodid = 'classroom.courses.courseWork.list';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['courseId',courseId]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TListCourseWorkResponse) as TListCourseWorkResponse;
- end;
- Function TCoursesCourseWorkResource.List(courseId: string; AQuery : TCoursesCourseWorklistOptions) : TListCourseWorkResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'courseWorkStates',AQuery.courseWorkStates);
- AddToQuery(_Q,'orderBy',AQuery.orderBy);
- AddToQuery(_Q,'pageSize',AQuery.pageSize);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(courseId,_Q);
- end;
- Function TCoursesCourseWorkResource.GetStudentSubmissionsInstance : TCoursesCourseWorkStudentSubmissionsResource;
- begin
- if (FStudentSubmissionsInstance=Nil) then
- FStudentSubmissionsInstance:=CreateStudentSubmissionsResource;
- Result:=FStudentSubmissionsInstance;
- end;
- Function TCoursesCourseWorkResource.CreateStudentSubmissionsResource : TCoursesCourseWorkStudentSubmissionsResource;
- begin
- Result:=CreateStudentSubmissionsResource(Self);
- end;
- Function TCoursesCourseWorkResource.CreateStudentSubmissionsResource(AOwner : TComponent) : TCoursesCourseWorkStudentSubmissionsResource;
- begin
- Result:=TCoursesCourseWorkStudentSubmissionsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- { --------------------------------------------------------------------
- TCoursesResource
- --------------------------------------------------------------------}
- Class Function TCoursesResource.ResourceName : String;
- begin
- Result:='courses';
- end;
- Class Function TCoursesResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TclassroomAPI;
- end;
- Function TCoursesResource.Create(aCourse : TCourse) : TCourse;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/courses';
- _Methodid = 'classroom.courses.create';
- begin
- Result:=ServiceCall(_HTTPMethod,_Path,'',aCourse,TCourse) as TCourse;
- end;
- Function TCoursesResource.Get(id: string) : TCourse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses/{id}';
- _Methodid = 'classroom.courses.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TCourse) as TCourse;
- end;
- Function TCoursesResource.Update(id: string; aCourse : TCourse) : TCourse;
- Const
- _HTTPMethod = 'PUT';
- _Path = 'v1/courses/{id}';
- _Methodid = 'classroom.courses.update';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',aCourse,TCourse) as TCourse;
- end;
- Function TCoursesResource.Patch(id: string; aCourse : TCourse; AQuery : string = '') : TCourse;
- Const
- _HTTPMethod = 'PATCH';
- _Path = 'v1/courses/{id}';
- _Methodid = 'classroom.courses.patch';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,AQuery,aCourse,TCourse) as TCourse;
- end;
- Function TCoursesResource.Patch(id: string; aCourse : TCourse; AQuery : TCoursespatchOptions) : TCourse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'updateMask',AQuery.updateMask);
- Result:=Patch(id,aCourse,_Q);
- end;
- Function TCoursesResource.Delete(id: string) : TEmpty;
- Const
- _HTTPMethod = 'DELETE';
- _Path = 'v1/courses/{id}';
- _Methodid = 'classroom.courses.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEmpty) as TEmpty;
- end;
- Function TCoursesResource.List(AQuery : string = '') : TListCoursesResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/courses';
- _Methodid = 'classroom.courses.list';
- begin
- Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TListCoursesResponse) as TListCoursesResponse;
- end;
- Function TCoursesResource.List(AQuery : TCourseslistOptions) : TListCoursesResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'studentId',AQuery.studentId);
- AddToQuery(_Q,'teacherId',AQuery.teacherId);
- AddToQuery(_Q,'pageSize',AQuery.pageSize);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(_Q);
- end;
- Function TCoursesResource.GetAliasesInstance : TCoursesAliasesResource;
- begin
- if (FAliasesInstance=Nil) then
- FAliasesInstance:=CreateAliasesResource;
- Result:=FAliasesInstance;
- end;
- Function TCoursesResource.CreateAliasesResource : TCoursesAliasesResource;
- begin
- Result:=CreateAliasesResource(Self);
- end;
- Function TCoursesResource.CreateAliasesResource(AOwner : TComponent) : TCoursesAliasesResource;
- begin
- Result:=TCoursesAliasesResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TCoursesResource.GetTeachersInstance : TCoursesTeachersResource;
- begin
- if (FTeachersInstance=Nil) then
- FTeachersInstance:=CreateTeachersResource;
- Result:=FTeachersInstance;
- end;
- Function TCoursesResource.CreateTeachersResource : TCoursesTeachersResource;
- begin
- Result:=CreateTeachersResource(Self);
- end;
- Function TCoursesResource.CreateTeachersResource(AOwner : TComponent) : TCoursesTeachersResource;
- begin
- Result:=TCoursesTeachersResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TCoursesResource.GetStudentsInstance : TCoursesStudentsResource;
- begin
- if (FStudentsInstance=Nil) then
- FStudentsInstance:=CreateStudentsResource;
- Result:=FStudentsInstance;
- end;
- Function TCoursesResource.CreateStudentsResource : TCoursesStudentsResource;
- begin
- Result:=CreateStudentsResource(Self);
- end;
- Function TCoursesResource.CreateStudentsResource(AOwner : TComponent) : TCoursesStudentsResource;
- begin
- Result:=TCoursesStudentsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TCoursesResource.GetCourseWorkStudentSubmissionsInstance : TCoursesCourseWorkStudentSubmissionsResource;
- begin
- if (FCourseWorkStudentSubmissionsInstance=Nil) then
- FCourseWorkStudentSubmissionsInstance:=CreateCourseWorkStudentSubmissionsResource;
- Result:=FCourseWorkStudentSubmissionsInstance;
- end;
- Function TCoursesResource.CreateCourseWorkStudentSubmissionsResource : TCoursesCourseWorkStudentSubmissionsResource;
- begin
- Result:=CreateCourseWorkStudentSubmissionsResource(Self);
- end;
- Function TCoursesResource.CreateCourseWorkStudentSubmissionsResource(AOwner : TComponent) : TCoursesCourseWorkStudentSubmissionsResource;
- begin
- Result:=TCoursesCourseWorkStudentSubmissionsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TCoursesResource.GetCourseWorkInstance : TCoursesCourseWorkResource;
- begin
- if (FCourseWorkInstance=Nil) then
- FCourseWorkInstance:=CreateCourseWorkResource;
- Result:=FCourseWorkInstance;
- end;
- Function TCoursesResource.CreateCourseWorkResource : TCoursesCourseWorkResource;
- begin
- Result:=CreateCourseWorkResource(Self);
- end;
- Function TCoursesResource.CreateCourseWorkResource(AOwner : TComponent) : TCoursesCourseWorkResource;
- begin
- Result:=TCoursesCourseWorkResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- { --------------------------------------------------------------------
- TInvitationsResource
- --------------------------------------------------------------------}
- Class Function TInvitationsResource.ResourceName : String;
- begin
- Result:='invitations';
- end;
- Class Function TInvitationsResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TclassroomAPI;
- end;
- Function TInvitationsResource.Create(aInvitation : TInvitation) : TInvitation;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/invitations';
- _Methodid = 'classroom.invitations.create';
- begin
- Result:=ServiceCall(_HTTPMethod,_Path,'',aInvitation,TInvitation) as TInvitation;
- end;
- Function TInvitationsResource.Get(id: string) : TInvitation;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/invitations/{id}';
- _Methodid = 'classroom.invitations.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TInvitation) as TInvitation;
- end;
- Function TInvitationsResource.Delete(id: string) : TEmpty;
- Const
- _HTTPMethod = 'DELETE';
- _Path = 'v1/invitations/{id}';
- _Methodid = 'classroom.invitations.delete';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEmpty) as TEmpty;
- end;
- Function TInvitationsResource.List(AQuery : string = '') : TListInvitationsResponse;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/invitations';
- _Methodid = 'classroom.invitations.list';
- begin
- Result:=ServiceCall(_HTTPMethod,_Path,AQuery,Nil,TListInvitationsResponse) as TListInvitationsResponse;
- end;
- Function TInvitationsResource.List(AQuery : TInvitationslistOptions) : TListInvitationsResponse;
- Var
- _Q : String;
- begin
- _Q:='';
- AddToQuery(_Q,'userId',AQuery.userId);
- AddToQuery(_Q,'courseId',AQuery.courseId);
- AddToQuery(_Q,'pageSize',AQuery.pageSize);
- AddToQuery(_Q,'pageToken',AQuery.pageToken);
- Result:=List(_Q);
- end;
- Function TInvitationsResource.Accept(id: string) : TEmpty;
- Const
- _HTTPMethod = 'POST';
- _Path = 'v1/invitations/{id}:accept';
- _Methodid = 'classroom.invitations.accept';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['id',id]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TEmpty) as TEmpty;
- end;
- { --------------------------------------------------------------------
- TUserProfilesResource
- --------------------------------------------------------------------}
- Class Function TUserProfilesResource.ResourceName : String;
- begin
- Result:='userProfiles';
- end;
- Class Function TUserProfilesResource.DefaultAPI : TGoogleAPIClass;
- begin
- Result:=TclassroomAPI;
- end;
- Function TUserProfilesResource.Get(userId: string) : TUserProfile;
- Const
- _HTTPMethod = 'GET';
- _Path = 'v1/userProfiles/{userId}';
- _Methodid = 'classroom.userProfiles.get';
- Var
- _P : String;
- begin
- _P:=SubstitutePath(_Path,['userId',userId]);
- Result:=ServiceCall(_HTTPMethod,_P,'',Nil,TUserProfile) as TUserProfile;
- end;
- { --------------------------------------------------------------------
- TClassroomAPI
- --------------------------------------------------------------------}
- Class Function TClassroomAPI.APIName : String;
- begin
- Result:='classroom';
- end;
- Class Function TClassroomAPI.APIVersion : String;
- begin
- Result:='v1';
- end;
- Class Function TClassroomAPI.APIRevision : String;
- begin
- Result:='20160517';
- end;
- Class Function TClassroomAPI.APIID : String;
- begin
- Result:='classroom:v1';
- end;
- Class Function TClassroomAPI.APITitle : String;
- begin
- Result:='Google Classroom API';
- end;
- Class Function TClassroomAPI.APIDescription : String;
- begin
- Result:='Manages classes, rosters, and invitations in Google Classroom.';
- end;
- Class Function TClassroomAPI.APIOwnerDomain : String;
- begin
- Result:='google.com';
- end;
- Class Function TClassroomAPI.APIOwnerName : String;
- begin
- Result:='Google';
- end;
- Class Function TClassroomAPI.APIIcon16 : String;
- begin
- Result:='http://www.google.com/images/icons/product/search-16.gif';
- end;
- Class Function TClassroomAPI.APIIcon32 : String;
- begin
- Result:='http://www.google.com/images/icons/product/search-32.gif';
- end;
- Class Function TClassroomAPI.APIdocumentationLink : String;
- begin
- Result:='https://developers.google.com/classroom/';
- end;
- Class Function TClassroomAPI.APIrootUrl : string;
- begin
- Result:='https://classroom.googleapis.com/';
- end;
- Class Function TClassroomAPI.APIbasePath : string;
- begin
- Result:='';
- end;
- Class Function TClassroomAPI.APIbaseURL : String;
- begin
- Result:='https://classroom.googleapis.com/';
- end;
- Class Function TClassroomAPI.APIProtocol : string;
- begin
- Result:='rest';
- end;
- Class Function TClassroomAPI.APIservicePath : string;
- begin
- Result:='';
- end;
- Class Function TClassroomAPI.APIbatchPath : String;
- begin
- Result:='batch';
- end;
- Class Function TClassroomAPI.APIAuthScopes : TScopeInfoArray;
- begin
- SetLength(Result,13);
- Result[0].Name:='https://www.googleapis.com/auth/classroom.course-work.readonly';
- Result[0].Description:='View instructions for teacher-assigned work in your Google Classroom classes';
- Result[1].Name:='https://www.googleapis.com/auth/classroom.courses';
- Result[1].Description:='Manage your Google Classroom classes';
- Result[2].Name:='https://www.googleapis.com/auth/classroom.courses.readonly';
- Result[2].Description:='View your Google Classroom classes';
- Result[3].Name:='https://www.googleapis.com/auth/classroom.coursework.me';
- Result[3].Description:='Manage your course work and view your grades in Google Classroom';
- Result[4].Name:='https://www.googleapis.com/auth/classroom.coursework.me.readonly';
- Result[4].Description:='View your course work and grades in Google Classroom';
- Result[5].Name:='https://www.googleapis.com/auth/classroom.coursework.students';
- Result[5].Description:='Manage course work and grades for students in the Google Classroom classes you teach and view the course work and grades for classes you administer';
- Result[6].Name:='https://www.googleapis.com/auth/classroom.coursework.students.readonly';
- Result[6].Description:='View course work and grades for students in the Google Classroom classes you teach or administer';
- Result[7].Name:='https://www.googleapis.com/auth/classroom.profile.emails';
- Result[7].Description:='View the email addresses of people in your classes';
- Result[8].Name:='https://www.googleapis.com/auth/classroom.profile.photos';
- Result[8].Description:='View the profile photos of people in your classes';
- Result[9].Name:='https://www.googleapis.com/auth/classroom.rosters';
- Result[9].Description:='Manage your Google Classroom class rosters';
- Result[10].Name:='https://www.googleapis.com/auth/classroom.rosters.readonly';
- Result[10].Description:='View your Google Classroom class rosters';
- Result[11].Name:='https://www.googleapis.com/auth/classroom.student-submissions.me.readonly';
- Result[11].Description:='View your course work and grades in Google Classroom';
- Result[12].Name:='https://www.googleapis.com/auth/classroom.student-submissions.students.readonly';
- Result[12].Description:='View course work and grades for students in the Google Classroom classes you teach or administer';
-
- end;
- Class Function TClassroomAPI.APINeedsAuth : Boolean;
- begin
- Result:=True;
- end;
- Class Procedure TClassroomAPI.RegisterAPIResources;
- begin
- TCourse.RegisterObject;
- TDriveFolder.RegisterObject;
- TCourseMaterialSet.RegisterObject;
- TCourseMaterial.RegisterObject;
- TDriveFile.RegisterObject;
- TYouTubeVideo.RegisterObject;
- TLink.RegisterObject;
- TForm.RegisterObject;
- TEmpty.RegisterObject;
- TListCoursesResponse.RegisterObject;
- TCourseAlias.RegisterObject;
- TListCourseAliasesResponse.RegisterObject;
- TInvitation.RegisterObject;
- TListInvitationsResponse.RegisterObject;
- TUserProfile.RegisterObject;
- TName.RegisterObject;
- TGlobalPermission.RegisterObject;
- TTeacher.RegisterObject;
- TListTeachersResponse.RegisterObject;
- TStudent.RegisterObject;
- TListStudentsResponse.RegisterObject;
- TCourseWork.RegisterObject;
- TMaterial.RegisterObject;
- TSharedDriveFile.RegisterObject;
- TDate.RegisterObject;
- TTimeOfDay.RegisterObject;
- TAssignment.RegisterObject;
- TMultipleChoiceQuestion.RegisterObject;
- TListCourseWorkResponse.RegisterObject;
- TStudentSubmission.RegisterObject;
- TAssignmentSubmission.RegisterObject;
- TAttachment.RegisterObject;
- TShortAnswerSubmission.RegisterObject;
- TMultipleChoiceSubmission.RegisterObject;
- TListStudentSubmissionsResponse.RegisterObject;
- TTurnInStudentSubmissionRequest.RegisterObject;
- TReclaimStudentSubmissionRequest.RegisterObject;
- TReturnStudentSubmissionRequest.RegisterObject;
- TModifyAttachmentsRequest.RegisterObject;
- end;
- Function TClassroomAPI.GetCoursesAliasesInstance : TCoursesAliasesResource;
- begin
- if (FCoursesAliasesInstance=Nil) then
- FCoursesAliasesInstance:=CreateCoursesAliasesResource;
- Result:=FCoursesAliasesInstance;
- end;
- Function TClassroomAPI.CreateCoursesAliasesResource : TCoursesAliasesResource;
- begin
- Result:=CreateCoursesAliasesResource(Self);
- end;
- Function TClassroomAPI.CreateCoursesAliasesResource(AOwner : TComponent) : TCoursesAliasesResource;
- begin
- Result:=TCoursesAliasesResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TClassroomAPI.GetCoursesTeachersInstance : TCoursesTeachersResource;
- begin
- if (FCoursesTeachersInstance=Nil) then
- FCoursesTeachersInstance:=CreateCoursesTeachersResource;
- Result:=FCoursesTeachersInstance;
- end;
- Function TClassroomAPI.CreateCoursesTeachersResource : TCoursesTeachersResource;
- begin
- Result:=CreateCoursesTeachersResource(Self);
- end;
- Function TClassroomAPI.CreateCoursesTeachersResource(AOwner : TComponent) : TCoursesTeachersResource;
- begin
- Result:=TCoursesTeachersResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TClassroomAPI.GetCoursesStudentsInstance : TCoursesStudentsResource;
- begin
- if (FCoursesStudentsInstance=Nil) then
- FCoursesStudentsInstance:=CreateCoursesStudentsResource;
- Result:=FCoursesStudentsInstance;
- end;
- Function TClassroomAPI.CreateCoursesStudentsResource : TCoursesStudentsResource;
- begin
- Result:=CreateCoursesStudentsResource(Self);
- end;
- Function TClassroomAPI.CreateCoursesStudentsResource(AOwner : TComponent) : TCoursesStudentsResource;
- begin
- Result:=TCoursesStudentsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TClassroomAPI.GetCoursesCourseWorkStudentSubmissionsInstance : TCoursesCourseWorkStudentSubmissionsResource;
- begin
- if (FCoursesCourseWorkStudentSubmissionsInstance=Nil) then
- FCoursesCourseWorkStudentSubmissionsInstance:=CreateCoursesCourseWorkStudentSubmissionsResource;
- Result:=FCoursesCourseWorkStudentSubmissionsInstance;
- end;
- Function TClassroomAPI.CreateCoursesCourseWorkStudentSubmissionsResource : TCoursesCourseWorkStudentSubmissionsResource;
- begin
- Result:=CreateCoursesCourseWorkStudentSubmissionsResource(Self);
- end;
- Function TClassroomAPI.CreateCoursesCourseWorkStudentSubmissionsResource(AOwner : TComponent) : TCoursesCourseWorkStudentSubmissionsResource;
- begin
- Result:=TCoursesCourseWorkStudentSubmissionsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TClassroomAPI.GetCoursesCourseWorkInstance : TCoursesCourseWorkResource;
- begin
- if (FCoursesCourseWorkInstance=Nil) then
- FCoursesCourseWorkInstance:=CreateCoursesCourseWorkResource;
- Result:=FCoursesCourseWorkInstance;
- end;
- Function TClassroomAPI.CreateCoursesCourseWorkResource : TCoursesCourseWorkResource;
- begin
- Result:=CreateCoursesCourseWorkResource(Self);
- end;
- Function TClassroomAPI.CreateCoursesCourseWorkResource(AOwner : TComponent) : TCoursesCourseWorkResource;
- begin
- Result:=TCoursesCourseWorkResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TClassroomAPI.GetCoursesInstance : TCoursesResource;
- begin
- if (FCoursesInstance=Nil) then
- FCoursesInstance:=CreateCoursesResource;
- Result:=FCoursesInstance;
- end;
- Function TClassroomAPI.CreateCoursesResource : TCoursesResource;
- begin
- Result:=CreateCoursesResource(Self);
- end;
- Function TClassroomAPI.CreateCoursesResource(AOwner : TComponent) : TCoursesResource;
- begin
- Result:=TCoursesResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TClassroomAPI.GetInvitationsInstance : TInvitationsResource;
- begin
- if (FInvitationsInstance=Nil) then
- FInvitationsInstance:=CreateInvitationsResource;
- Result:=FInvitationsInstance;
- end;
- Function TClassroomAPI.CreateInvitationsResource : TInvitationsResource;
- begin
- Result:=CreateInvitationsResource(Self);
- end;
- Function TClassroomAPI.CreateInvitationsResource(AOwner : TComponent) : TInvitationsResource;
- begin
- Result:=TInvitationsResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- Function TClassroomAPI.GetUserProfilesInstance : TUserProfilesResource;
- begin
- if (FUserProfilesInstance=Nil) then
- FUserProfilesInstance:=CreateUserProfilesResource;
- Result:=FUserProfilesInstance;
- end;
- Function TClassroomAPI.CreateUserProfilesResource : TUserProfilesResource;
- begin
- Result:=CreateUserProfilesResource(Self);
- end;
- Function TClassroomAPI.CreateUserProfilesResource(AOwner : TComponent) : TUserProfilesResource;
- begin
- Result:=TUserProfilesResource.Create(AOwner);
- Result.API:=Self.API;
- end;
- initialization
- TClassroomAPI.RegisterAPI;
- end.
|