googlespectrum.pp 92 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240
  1. unit googlespectrum;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TAntennaCharacteristics = Class;
  9. TDatabaseSpec = Class;
  10. TDbUpdateSpec = Class;
  11. TDeviceCapabilities = Class;
  12. TDeviceDescriptor = Class;
  13. TDeviceOwner = Class;
  14. TDeviceValidity = Class;
  15. TEventTime = Class;
  16. TFrequencyRange = Class;
  17. TGeoLocation = Class;
  18. TGeoLocationEllipse = Class;
  19. TGeoLocationPoint = Class;
  20. TGeoLocationPolygon = Class;
  21. TGeoSpectrumSchedule = Class;
  22. TPawsGetSpectrumBatchRequest = Class;
  23. TPawsGetSpectrumBatchResponse = Class;
  24. TPawsGetSpectrumRequest = Class;
  25. TPawsGetSpectrumResponse = Class;
  26. TPawsInitRequest = Class;
  27. TPawsInitResponse = Class;
  28. TPawsNotifySpectrumUseRequest = Class;
  29. TPawsNotifySpectrumUseResponse = Class;
  30. TPawsRegisterRequest = Class;
  31. TPawsRegisterResponse = Class;
  32. TPawsVerifyDeviceRequest = Class;
  33. TPawsVerifyDeviceResponse = Class;
  34. TRulesetInfo = Class;
  35. TSpectrumMessage = Class;
  36. TSpectrumSchedule = Class;
  37. TVcard = Class;
  38. TVcardAddress = Class;
  39. TVcardTelephone = Class;
  40. TVcardTypedText = Class;
  41. TAntennaCharacteristicsArray = Array of TAntennaCharacteristics;
  42. TDatabaseSpecArray = Array of TDatabaseSpec;
  43. TDbUpdateSpecArray = Array of TDbUpdateSpec;
  44. TDeviceCapabilitiesArray = Array of TDeviceCapabilities;
  45. TDeviceDescriptorArray = Array of TDeviceDescriptor;
  46. TDeviceOwnerArray = Array of TDeviceOwner;
  47. TDeviceValidityArray = Array of TDeviceValidity;
  48. TEventTimeArray = Array of TEventTime;
  49. TFrequencyRangeArray = Array of TFrequencyRange;
  50. TGeoLocationArray = Array of TGeoLocation;
  51. TGeoLocationEllipseArray = Array of TGeoLocationEllipse;
  52. TGeoLocationPointArray = Array of TGeoLocationPoint;
  53. TGeoLocationPolygonArray = Array of TGeoLocationPolygon;
  54. TGeoSpectrumScheduleArray = Array of TGeoSpectrumSchedule;
  55. TPawsGetSpectrumBatchRequestArray = Array of TPawsGetSpectrumBatchRequest;
  56. TPawsGetSpectrumBatchResponseArray = Array of TPawsGetSpectrumBatchResponse;
  57. TPawsGetSpectrumRequestArray = Array of TPawsGetSpectrumRequest;
  58. TPawsGetSpectrumResponseArray = Array of TPawsGetSpectrumResponse;
  59. TPawsInitRequestArray = Array of TPawsInitRequest;
  60. TPawsInitResponseArray = Array of TPawsInitResponse;
  61. TPawsNotifySpectrumUseRequestArray = Array of TPawsNotifySpectrumUseRequest;
  62. TPawsNotifySpectrumUseResponseArray = Array of TPawsNotifySpectrumUseResponse;
  63. TPawsRegisterRequestArray = Array of TPawsRegisterRequest;
  64. TPawsRegisterResponseArray = Array of TPawsRegisterResponse;
  65. TPawsVerifyDeviceRequestArray = Array of TPawsVerifyDeviceRequest;
  66. TPawsVerifyDeviceResponseArray = Array of TPawsVerifyDeviceResponse;
  67. TRulesetInfoArray = Array of TRulesetInfo;
  68. TSpectrumMessageArray = Array of TSpectrumMessage;
  69. TSpectrumScheduleArray = Array of TSpectrumSchedule;
  70. TVcardArray = Array of TVcard;
  71. TVcardAddressArray = Array of TVcardAddress;
  72. TVcardTelephoneArray = Array of TVcardTelephone;
  73. TVcardTypedTextArray = Array of TVcardTypedText;
  74. //Anonymous types, using auto-generated names
  75. TDbUpdateSpecTypedatabasesArray = Array of TDatabaseSpec;
  76. TDeviceCapabilitiesTypefrequencyRangesArray = Array of TFrequencyRange;
  77. TGeoLocationPolygonTypeexteriorArray = Array of TGeoLocationPoint;
  78. TGeoSpectrumScheduleTypespectrumSchedulesArray = Array of TSpectrumSchedule;
  79. TPawsGetSpectrumBatchRequestTypelocationsArray = Array of TGeoLocation;
  80. TPawsGetSpectrumBatchResponseTypegeoSpectrumSchedulesArray = Array of TGeoSpectrumSchedule;
  81. TPawsGetSpectrumResponseTypespectrumSchedulesArray = Array of TSpectrumSchedule;
  82. TPawsNotifySpectrumUseRequestTypespectraArray = Array of TSpectrumMessage;
  83. TPawsVerifyDeviceRequestTypedeviceDescsArray = Array of TDeviceDescriptor;
  84. TPawsVerifyDeviceResponseTypedeviceValiditiesArray = Array of TDeviceValidity;
  85. TSpectrumMessageTypefrequencyRangesArray = Array of TFrequencyRange;
  86. TSpectrumScheduleTypespectraArray = Array of TSpectrumMessage;
  87. { --------------------------------------------------------------------
  88. TAntennaCharacteristics
  89. --------------------------------------------------------------------}
  90. TAntennaCharacteristics = Class(TGoogleBaseObject)
  91. Private
  92. Fheight : double;
  93. FheightType : String;
  94. FheightUncertainty : double;
  95. Protected
  96. //Property setters
  97. Procedure Setheight(AIndex : Integer; const AValue : double); virtual;
  98. Procedure SetheightType(AIndex : Integer; const AValue : String); virtual;
  99. Procedure SetheightUncertainty(AIndex : Integer; const AValue : double); virtual;
  100. Public
  101. Published
  102. Property height : double Index 0 Read Fheight Write Setheight;
  103. Property heightType : String Index 8 Read FheightType Write SetheightType;
  104. Property heightUncertainty : double Index 16 Read FheightUncertainty Write SetheightUncertainty;
  105. end;
  106. TAntennaCharacteristicsClass = Class of TAntennaCharacteristics;
  107. { --------------------------------------------------------------------
  108. TDatabaseSpec
  109. --------------------------------------------------------------------}
  110. TDatabaseSpec = Class(TGoogleBaseObject)
  111. Private
  112. Fname : String;
  113. Furi : String;
  114. Protected
  115. //Property setters
  116. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  117. Procedure Seturi(AIndex : Integer; const AValue : String); virtual;
  118. Public
  119. Published
  120. Property name : String Index 0 Read Fname Write Setname;
  121. Property uri : String Index 8 Read Furi Write Seturi;
  122. end;
  123. TDatabaseSpecClass = Class of TDatabaseSpec;
  124. { --------------------------------------------------------------------
  125. TDbUpdateSpec
  126. --------------------------------------------------------------------}
  127. TDbUpdateSpec = Class(TGoogleBaseObject)
  128. Private
  129. Fdatabases : TDbUpdateSpecTypedatabasesArray;
  130. Protected
  131. //Property setters
  132. Procedure Setdatabases(AIndex : Integer; const AValue : TDbUpdateSpecTypedatabasesArray); virtual;
  133. //2.6.4. bug workaround
  134. {$IFDEF VER2_6}
  135. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  136. {$ENDIF VER2_6}
  137. Public
  138. Published
  139. Property databases : TDbUpdateSpecTypedatabasesArray Index 0 Read Fdatabases Write Setdatabases;
  140. end;
  141. TDbUpdateSpecClass = Class of TDbUpdateSpec;
  142. { --------------------------------------------------------------------
  143. TDeviceCapabilities
  144. --------------------------------------------------------------------}
  145. TDeviceCapabilities = Class(TGoogleBaseObject)
  146. Private
  147. FfrequencyRanges : TDeviceCapabilitiesTypefrequencyRangesArray;
  148. Protected
  149. //Property setters
  150. Procedure SetfrequencyRanges(AIndex : Integer; const AValue : TDeviceCapabilitiesTypefrequencyRangesArray); virtual;
  151. //2.6.4. bug workaround
  152. {$IFDEF VER2_6}
  153. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  154. {$ENDIF VER2_6}
  155. Public
  156. Published
  157. Property frequencyRanges : TDeviceCapabilitiesTypefrequencyRangesArray Index 0 Read FfrequencyRanges Write SetfrequencyRanges;
  158. end;
  159. TDeviceCapabilitiesClass = Class of TDeviceCapabilities;
  160. { --------------------------------------------------------------------
  161. TDeviceDescriptor
  162. --------------------------------------------------------------------}
  163. TDeviceDescriptor = Class(TGoogleBaseObject)
  164. Private
  165. FetsiEnDeviceCategory : String;
  166. FetsiEnDeviceEmissionsClass : String;
  167. FetsiEnDeviceType : String;
  168. FetsiEnTechnologyId : String;
  169. FfccId : String;
  170. FfccTvbdDeviceType : String;
  171. FmanufacturerId : String;
  172. FmodelId : String;
  173. FrulesetIds : TStringArray;
  174. FserialNumber : String;
  175. Protected
  176. //Property setters
  177. Procedure SetetsiEnDeviceCategory(AIndex : Integer; const AValue : String); virtual;
  178. Procedure SetetsiEnDeviceEmissionsClass(AIndex : Integer; const AValue : String); virtual;
  179. Procedure SetetsiEnDeviceType(AIndex : Integer; const AValue : String); virtual;
  180. Procedure SetetsiEnTechnologyId(AIndex : Integer; const AValue : String); virtual;
  181. Procedure SetfccId(AIndex : Integer; const AValue : String); virtual;
  182. Procedure SetfccTvbdDeviceType(AIndex : Integer; const AValue : String); virtual;
  183. Procedure SetmanufacturerId(AIndex : Integer; const AValue : String); virtual;
  184. Procedure SetmodelId(AIndex : Integer; const AValue : String); virtual;
  185. Procedure SetrulesetIds(AIndex : Integer; const AValue : TStringArray); virtual;
  186. Procedure SetserialNumber(AIndex : Integer; const AValue : String); virtual;
  187. //2.6.4. bug workaround
  188. {$IFDEF VER2_6}
  189. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  190. {$ENDIF VER2_6}
  191. Public
  192. Published
  193. Property etsiEnDeviceCategory : String Index 0 Read FetsiEnDeviceCategory Write SetetsiEnDeviceCategory;
  194. Property etsiEnDeviceEmissionsClass : String Index 8 Read FetsiEnDeviceEmissionsClass Write SetetsiEnDeviceEmissionsClass;
  195. Property etsiEnDeviceType : String Index 16 Read FetsiEnDeviceType Write SetetsiEnDeviceType;
  196. Property etsiEnTechnologyId : String Index 24 Read FetsiEnTechnologyId Write SetetsiEnTechnologyId;
  197. Property fccId : String Index 32 Read FfccId Write SetfccId;
  198. Property fccTvbdDeviceType : String Index 40 Read FfccTvbdDeviceType Write SetfccTvbdDeviceType;
  199. Property manufacturerId : String Index 48 Read FmanufacturerId Write SetmanufacturerId;
  200. Property modelId : String Index 56 Read FmodelId Write SetmodelId;
  201. Property rulesetIds : TStringArray Index 64 Read FrulesetIds Write SetrulesetIds;
  202. Property serialNumber : String Index 72 Read FserialNumber Write SetserialNumber;
  203. end;
  204. TDeviceDescriptorClass = Class of TDeviceDescriptor;
  205. { --------------------------------------------------------------------
  206. TDeviceOwner
  207. --------------------------------------------------------------------}
  208. TDeviceOwner = Class(TGoogleBaseObject)
  209. Private
  210. F_operator : TVcard;
  211. Fowner : TVcard;
  212. Protected
  213. Class Function ExportPropertyName(Const AName : String) : string; override;
  214. //Property setters
  215. Procedure Set_operator(AIndex : Integer; const AValue : TVcard); virtual;
  216. Procedure Setowner(AIndex : Integer; const AValue : TVcard); virtual;
  217. Public
  218. Published
  219. Property _operator : TVcard Index 0 Read F_operator Write Set_operator;
  220. Property owner : TVcard Index 8 Read Fowner Write Setowner;
  221. end;
  222. TDeviceOwnerClass = Class of TDeviceOwner;
  223. { --------------------------------------------------------------------
  224. TDeviceValidity
  225. --------------------------------------------------------------------}
  226. TDeviceValidity = Class(TGoogleBaseObject)
  227. Private
  228. FdeviceDesc : TDeviceDescriptor;
  229. FisValid : boolean;
  230. Freason : String;
  231. Protected
  232. //Property setters
  233. Procedure SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  234. Procedure SetisValid(AIndex : Integer; const AValue : boolean); virtual;
  235. Procedure Setreason(AIndex : Integer; const AValue : String); virtual;
  236. Public
  237. Published
  238. Property deviceDesc : TDeviceDescriptor Index 0 Read FdeviceDesc Write SetdeviceDesc;
  239. Property isValid : boolean Index 8 Read FisValid Write SetisValid;
  240. Property reason : String Index 16 Read Freason Write Setreason;
  241. end;
  242. TDeviceValidityClass = Class of TDeviceValidity;
  243. { --------------------------------------------------------------------
  244. TEventTime
  245. --------------------------------------------------------------------}
  246. TEventTime = Class(TGoogleBaseObject)
  247. Private
  248. FstartTime : String;
  249. FstopTime : String;
  250. Protected
  251. //Property setters
  252. Procedure SetstartTime(AIndex : Integer; const AValue : String); virtual;
  253. Procedure SetstopTime(AIndex : Integer; const AValue : String); virtual;
  254. Public
  255. Published
  256. Property startTime : String Index 0 Read FstartTime Write SetstartTime;
  257. Property stopTime : String Index 8 Read FstopTime Write SetstopTime;
  258. end;
  259. TEventTimeClass = Class of TEventTime;
  260. { --------------------------------------------------------------------
  261. TFrequencyRange
  262. --------------------------------------------------------------------}
  263. TFrequencyRange = Class(TGoogleBaseObject)
  264. Private
  265. FchannelId : String;
  266. FmaxPowerDBm : double;
  267. FstartHz : double;
  268. FstopHz : double;
  269. Protected
  270. //Property setters
  271. Procedure SetchannelId(AIndex : Integer; const AValue : String); virtual;
  272. Procedure SetmaxPowerDBm(AIndex : Integer; const AValue : double); virtual;
  273. Procedure SetstartHz(AIndex : Integer; const AValue : double); virtual;
  274. Procedure SetstopHz(AIndex : Integer; const AValue : double); virtual;
  275. Public
  276. Published
  277. Property channelId : String Index 0 Read FchannelId Write SetchannelId;
  278. Property maxPowerDBm : double Index 8 Read FmaxPowerDBm Write SetmaxPowerDBm;
  279. Property startHz : double Index 16 Read FstartHz Write SetstartHz;
  280. Property stopHz : double Index 24 Read FstopHz Write SetstopHz;
  281. end;
  282. TFrequencyRangeClass = Class of TFrequencyRange;
  283. { --------------------------------------------------------------------
  284. TGeoLocation
  285. --------------------------------------------------------------------}
  286. TGeoLocation = Class(TGoogleBaseObject)
  287. Private
  288. Fconfidence : integer;
  289. Fpoint : TGeoLocationEllipse;
  290. Fregion : TGeoLocationPolygon;
  291. Protected
  292. //Property setters
  293. Procedure Setconfidence(AIndex : Integer; const AValue : integer); virtual;
  294. Procedure Setpoint(AIndex : Integer; const AValue : TGeoLocationEllipse); virtual;
  295. Procedure Setregion(AIndex : Integer; const AValue : TGeoLocationPolygon); virtual;
  296. Public
  297. Published
  298. Property confidence : integer Index 0 Read Fconfidence Write Setconfidence;
  299. Property point : TGeoLocationEllipse Index 8 Read Fpoint Write Setpoint;
  300. Property region : TGeoLocationPolygon Index 16 Read Fregion Write Setregion;
  301. end;
  302. TGeoLocationClass = Class of TGeoLocation;
  303. { --------------------------------------------------------------------
  304. TGeoLocationEllipse
  305. --------------------------------------------------------------------}
  306. TGeoLocationEllipse = Class(TGoogleBaseObject)
  307. Private
  308. Fcenter : TGeoLocationPoint;
  309. Forientation : double;
  310. FsemiMajorAxis : double;
  311. FsemiMinorAxis : double;
  312. Protected
  313. //Property setters
  314. Procedure Setcenter(AIndex : Integer; const AValue : TGeoLocationPoint); virtual;
  315. Procedure Setorientation(AIndex : Integer; const AValue : double); virtual;
  316. Procedure SetsemiMajorAxis(AIndex : Integer; const AValue : double); virtual;
  317. Procedure SetsemiMinorAxis(AIndex : Integer; const AValue : double); virtual;
  318. Public
  319. Published
  320. Property center : TGeoLocationPoint Index 0 Read Fcenter Write Setcenter;
  321. Property orientation : double Index 8 Read Forientation Write Setorientation;
  322. Property semiMajorAxis : double Index 16 Read FsemiMajorAxis Write SetsemiMajorAxis;
  323. Property semiMinorAxis : double Index 24 Read FsemiMinorAxis Write SetsemiMinorAxis;
  324. end;
  325. TGeoLocationEllipseClass = Class of TGeoLocationEllipse;
  326. { --------------------------------------------------------------------
  327. TGeoLocationPoint
  328. --------------------------------------------------------------------}
  329. TGeoLocationPoint = Class(TGoogleBaseObject)
  330. Private
  331. Flatitude : double;
  332. Flongitude : double;
  333. Protected
  334. //Property setters
  335. Procedure Setlatitude(AIndex : Integer; const AValue : double); virtual;
  336. Procedure Setlongitude(AIndex : Integer; const AValue : double); virtual;
  337. Public
  338. Published
  339. Property latitude : double Index 0 Read Flatitude Write Setlatitude;
  340. Property longitude : double Index 8 Read Flongitude Write Setlongitude;
  341. end;
  342. TGeoLocationPointClass = Class of TGeoLocationPoint;
  343. { --------------------------------------------------------------------
  344. TGeoLocationPolygon
  345. --------------------------------------------------------------------}
  346. TGeoLocationPolygon = Class(TGoogleBaseObject)
  347. Private
  348. Fexterior : TGeoLocationPolygonTypeexteriorArray;
  349. Protected
  350. //Property setters
  351. Procedure Setexterior(AIndex : Integer; const AValue : TGeoLocationPolygonTypeexteriorArray); virtual;
  352. //2.6.4. bug workaround
  353. {$IFDEF VER2_6}
  354. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  355. {$ENDIF VER2_6}
  356. Public
  357. Published
  358. Property exterior : TGeoLocationPolygonTypeexteriorArray Index 0 Read Fexterior Write Setexterior;
  359. end;
  360. TGeoLocationPolygonClass = Class of TGeoLocationPolygon;
  361. { --------------------------------------------------------------------
  362. TGeoSpectrumSchedule
  363. --------------------------------------------------------------------}
  364. TGeoSpectrumSchedule = Class(TGoogleBaseObject)
  365. Private
  366. Flocation : TGeoLocation;
  367. FspectrumSchedules : TGeoSpectrumScheduleTypespectrumSchedulesArray;
  368. Protected
  369. //Property setters
  370. Procedure Setlocation(AIndex : Integer; const AValue : TGeoLocation); virtual;
  371. Procedure SetspectrumSchedules(AIndex : Integer; const AValue : TGeoSpectrumScheduleTypespectrumSchedulesArray); virtual;
  372. //2.6.4. bug workaround
  373. {$IFDEF VER2_6}
  374. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  375. {$ENDIF VER2_6}
  376. Public
  377. Published
  378. Property location : TGeoLocation Index 0 Read Flocation Write Setlocation;
  379. Property spectrumSchedules : TGeoSpectrumScheduleTypespectrumSchedulesArray Index 8 Read FspectrumSchedules Write SetspectrumSchedules;
  380. end;
  381. TGeoSpectrumScheduleClass = Class of TGeoSpectrumSchedule;
  382. { --------------------------------------------------------------------
  383. TPawsGetSpectrumBatchRequest
  384. --------------------------------------------------------------------}
  385. TPawsGetSpectrumBatchRequest = Class(TGoogleBaseObject)
  386. Private
  387. Fantenna : TAntennaCharacteristics;
  388. Fcapabilities : TDeviceCapabilities;
  389. FdeviceDesc : TDeviceDescriptor;
  390. Flocations : TPawsGetSpectrumBatchRequestTypelocationsArray;
  391. FmasterDeviceDesc : TDeviceDescriptor;
  392. Fowner : TDeviceOwner;
  393. FrequestType : String;
  394. F_type : String;
  395. Fversion : String;
  396. Protected
  397. Class Function ExportPropertyName(Const AName : String) : string; override;
  398. //Property setters
  399. Procedure Setantenna(AIndex : Integer; const AValue : TAntennaCharacteristics); virtual;
  400. Procedure Setcapabilities(AIndex : Integer; const AValue : TDeviceCapabilities); virtual;
  401. Procedure SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  402. Procedure Setlocations(AIndex : Integer; const AValue : TPawsGetSpectrumBatchRequestTypelocationsArray); virtual;
  403. Procedure SetmasterDeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  404. Procedure Setowner(AIndex : Integer; const AValue : TDeviceOwner); virtual;
  405. Procedure SetrequestType(AIndex : Integer; const AValue : String); virtual;
  406. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  407. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  408. //2.6.4. bug workaround
  409. {$IFDEF VER2_6}
  410. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  411. {$ENDIF VER2_6}
  412. Public
  413. Published
  414. Property antenna : TAntennaCharacteristics Index 0 Read Fantenna Write Setantenna;
  415. Property capabilities : TDeviceCapabilities Index 8 Read Fcapabilities Write Setcapabilities;
  416. Property deviceDesc : TDeviceDescriptor Index 16 Read FdeviceDesc Write SetdeviceDesc;
  417. Property locations : TPawsGetSpectrumBatchRequestTypelocationsArray Index 24 Read Flocations Write Setlocations;
  418. Property masterDeviceDesc : TDeviceDescriptor Index 32 Read FmasterDeviceDesc Write SetmasterDeviceDesc;
  419. Property owner : TDeviceOwner Index 40 Read Fowner Write Setowner;
  420. Property requestType : String Index 48 Read FrequestType Write SetrequestType;
  421. Property _type : String Index 56 Read F_type Write Set_type;
  422. Property version : String Index 64 Read Fversion Write Setversion;
  423. end;
  424. TPawsGetSpectrumBatchRequestClass = Class of TPawsGetSpectrumBatchRequest;
  425. { --------------------------------------------------------------------
  426. TPawsGetSpectrumBatchResponse
  427. --------------------------------------------------------------------}
  428. TPawsGetSpectrumBatchResponse = Class(TGoogleBaseObject)
  429. Private
  430. FdatabaseChange : TDbUpdateSpec;
  431. FdeviceDesc : TDeviceDescriptor;
  432. FgeoSpectrumSchedules : TPawsGetSpectrumBatchResponseTypegeoSpectrumSchedulesArray;
  433. Fkind : String;
  434. FmaxContiguousBwHz : double;
  435. FmaxTotalBwHz : double;
  436. FneedsSpectrumReport : boolean;
  437. FrulesetInfo : TRulesetInfo;
  438. Ftimestamp : String;
  439. F_type : String;
  440. Fversion : String;
  441. Protected
  442. Class Function ExportPropertyName(Const AName : String) : string; override;
  443. //Property setters
  444. Procedure SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec); virtual;
  445. Procedure SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  446. Procedure SetgeoSpectrumSchedules(AIndex : Integer; const AValue : TPawsGetSpectrumBatchResponseTypegeoSpectrumSchedulesArray); virtual;
  447. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  448. Procedure SetmaxContiguousBwHz(AIndex : Integer; const AValue : double); virtual;
  449. Procedure SetmaxTotalBwHz(AIndex : Integer; const AValue : double); virtual;
  450. Procedure SetneedsSpectrumReport(AIndex : Integer; const AValue : boolean); virtual;
  451. Procedure SetrulesetInfo(AIndex : Integer; const AValue : TRulesetInfo); virtual;
  452. Procedure Settimestamp(AIndex : Integer; const AValue : String); virtual;
  453. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  454. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  455. //2.6.4. bug workaround
  456. {$IFDEF VER2_6}
  457. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  458. {$ENDIF VER2_6}
  459. Public
  460. Published
  461. Property databaseChange : TDbUpdateSpec Index 0 Read FdatabaseChange Write SetdatabaseChange;
  462. Property deviceDesc : TDeviceDescriptor Index 8 Read FdeviceDesc Write SetdeviceDesc;
  463. Property geoSpectrumSchedules : TPawsGetSpectrumBatchResponseTypegeoSpectrumSchedulesArray Index 16 Read FgeoSpectrumSchedules Write SetgeoSpectrumSchedules;
  464. Property kind : String Index 24 Read Fkind Write Setkind;
  465. Property maxContiguousBwHz : double Index 32 Read FmaxContiguousBwHz Write SetmaxContiguousBwHz;
  466. Property maxTotalBwHz : double Index 40 Read FmaxTotalBwHz Write SetmaxTotalBwHz;
  467. Property needsSpectrumReport : boolean Index 48 Read FneedsSpectrumReport Write SetneedsSpectrumReport;
  468. Property rulesetInfo : TRulesetInfo Index 56 Read FrulesetInfo Write SetrulesetInfo;
  469. Property timestamp : String Index 64 Read Ftimestamp Write Settimestamp;
  470. Property _type : String Index 72 Read F_type Write Set_type;
  471. Property version : String Index 80 Read Fversion Write Setversion;
  472. end;
  473. TPawsGetSpectrumBatchResponseClass = Class of TPawsGetSpectrumBatchResponse;
  474. { --------------------------------------------------------------------
  475. TPawsGetSpectrumRequest
  476. --------------------------------------------------------------------}
  477. TPawsGetSpectrumRequest = Class(TGoogleBaseObject)
  478. Private
  479. Fantenna : TAntennaCharacteristics;
  480. Fcapabilities : TDeviceCapabilities;
  481. FdeviceDesc : TDeviceDescriptor;
  482. Flocation : TGeoLocation;
  483. FmasterDeviceDesc : TDeviceDescriptor;
  484. Fowner : TDeviceOwner;
  485. FrequestType : String;
  486. F_type : String;
  487. Fversion : String;
  488. Protected
  489. Class Function ExportPropertyName(Const AName : String) : string; override;
  490. //Property setters
  491. Procedure Setantenna(AIndex : Integer; const AValue : TAntennaCharacteristics); virtual;
  492. Procedure Setcapabilities(AIndex : Integer; const AValue : TDeviceCapabilities); virtual;
  493. Procedure SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  494. Procedure Setlocation(AIndex : Integer; const AValue : TGeoLocation); virtual;
  495. Procedure SetmasterDeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  496. Procedure Setowner(AIndex : Integer; const AValue : TDeviceOwner); virtual;
  497. Procedure SetrequestType(AIndex : Integer; const AValue : String); virtual;
  498. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  499. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  500. Public
  501. Published
  502. Property antenna : TAntennaCharacteristics Index 0 Read Fantenna Write Setantenna;
  503. Property capabilities : TDeviceCapabilities Index 8 Read Fcapabilities Write Setcapabilities;
  504. Property deviceDesc : TDeviceDescriptor Index 16 Read FdeviceDesc Write SetdeviceDesc;
  505. Property location : TGeoLocation Index 24 Read Flocation Write Setlocation;
  506. Property masterDeviceDesc : TDeviceDescriptor Index 32 Read FmasterDeviceDesc Write SetmasterDeviceDesc;
  507. Property owner : TDeviceOwner Index 40 Read Fowner Write Setowner;
  508. Property requestType : String Index 48 Read FrequestType Write SetrequestType;
  509. Property _type : String Index 56 Read F_type Write Set_type;
  510. Property version : String Index 64 Read Fversion Write Setversion;
  511. end;
  512. TPawsGetSpectrumRequestClass = Class of TPawsGetSpectrumRequest;
  513. { --------------------------------------------------------------------
  514. TPawsGetSpectrumResponse
  515. --------------------------------------------------------------------}
  516. TPawsGetSpectrumResponse = Class(TGoogleBaseObject)
  517. Private
  518. FdatabaseChange : TDbUpdateSpec;
  519. FdeviceDesc : TDeviceDescriptor;
  520. Fkind : String;
  521. FmaxContiguousBwHz : double;
  522. FmaxTotalBwHz : double;
  523. FneedsSpectrumReport : boolean;
  524. FrulesetInfo : TRulesetInfo;
  525. FspectrumSchedules : TPawsGetSpectrumResponseTypespectrumSchedulesArray;
  526. Ftimestamp : String;
  527. F_type : String;
  528. Fversion : String;
  529. Protected
  530. Class Function ExportPropertyName(Const AName : String) : string; override;
  531. //Property setters
  532. Procedure SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec); virtual;
  533. Procedure SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  534. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  535. Procedure SetmaxContiguousBwHz(AIndex : Integer; const AValue : double); virtual;
  536. Procedure SetmaxTotalBwHz(AIndex : Integer; const AValue : double); virtual;
  537. Procedure SetneedsSpectrumReport(AIndex : Integer; const AValue : boolean); virtual;
  538. Procedure SetrulesetInfo(AIndex : Integer; const AValue : TRulesetInfo); virtual;
  539. Procedure SetspectrumSchedules(AIndex : Integer; const AValue : TPawsGetSpectrumResponseTypespectrumSchedulesArray); virtual;
  540. Procedure Settimestamp(AIndex : Integer; const AValue : String); virtual;
  541. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  542. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  543. //2.6.4. bug workaround
  544. {$IFDEF VER2_6}
  545. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  546. {$ENDIF VER2_6}
  547. Public
  548. Published
  549. Property databaseChange : TDbUpdateSpec Index 0 Read FdatabaseChange Write SetdatabaseChange;
  550. Property deviceDesc : TDeviceDescriptor Index 8 Read FdeviceDesc Write SetdeviceDesc;
  551. Property kind : String Index 16 Read Fkind Write Setkind;
  552. Property maxContiguousBwHz : double Index 24 Read FmaxContiguousBwHz Write SetmaxContiguousBwHz;
  553. Property maxTotalBwHz : double Index 32 Read FmaxTotalBwHz Write SetmaxTotalBwHz;
  554. Property needsSpectrumReport : boolean Index 40 Read FneedsSpectrumReport Write SetneedsSpectrumReport;
  555. Property rulesetInfo : TRulesetInfo Index 48 Read FrulesetInfo Write SetrulesetInfo;
  556. Property spectrumSchedules : TPawsGetSpectrumResponseTypespectrumSchedulesArray Index 56 Read FspectrumSchedules Write SetspectrumSchedules;
  557. Property timestamp : String Index 64 Read Ftimestamp Write Settimestamp;
  558. Property _type : String Index 72 Read F_type Write Set_type;
  559. Property version : String Index 80 Read Fversion Write Setversion;
  560. end;
  561. TPawsGetSpectrumResponseClass = Class of TPawsGetSpectrumResponse;
  562. { --------------------------------------------------------------------
  563. TPawsInitRequest
  564. --------------------------------------------------------------------}
  565. TPawsInitRequest = Class(TGoogleBaseObject)
  566. Private
  567. FdeviceDesc : TDeviceDescriptor;
  568. Flocation : TGeoLocation;
  569. F_type : String;
  570. Fversion : String;
  571. Protected
  572. Class Function ExportPropertyName(Const AName : String) : string; override;
  573. //Property setters
  574. Procedure SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  575. Procedure Setlocation(AIndex : Integer; const AValue : TGeoLocation); virtual;
  576. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  577. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  578. Public
  579. Published
  580. Property deviceDesc : TDeviceDescriptor Index 0 Read FdeviceDesc Write SetdeviceDesc;
  581. Property location : TGeoLocation Index 8 Read Flocation Write Setlocation;
  582. Property _type : String Index 16 Read F_type Write Set_type;
  583. Property version : String Index 24 Read Fversion Write Setversion;
  584. end;
  585. TPawsInitRequestClass = Class of TPawsInitRequest;
  586. { --------------------------------------------------------------------
  587. TPawsInitResponse
  588. --------------------------------------------------------------------}
  589. TPawsInitResponse = Class(TGoogleBaseObject)
  590. Private
  591. FdatabaseChange : TDbUpdateSpec;
  592. Fkind : String;
  593. FrulesetInfo : TRulesetInfo;
  594. F_type : String;
  595. Fversion : String;
  596. Protected
  597. Class Function ExportPropertyName(Const AName : String) : string; override;
  598. //Property setters
  599. Procedure SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec); virtual;
  600. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  601. Procedure SetrulesetInfo(AIndex : Integer; const AValue : TRulesetInfo); virtual;
  602. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  603. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  604. Public
  605. Published
  606. Property databaseChange : TDbUpdateSpec Index 0 Read FdatabaseChange Write SetdatabaseChange;
  607. Property kind : String Index 8 Read Fkind Write Setkind;
  608. Property rulesetInfo : TRulesetInfo Index 16 Read FrulesetInfo Write SetrulesetInfo;
  609. Property _type : String Index 24 Read F_type Write Set_type;
  610. Property version : String Index 32 Read Fversion Write Setversion;
  611. end;
  612. TPawsInitResponseClass = Class of TPawsInitResponse;
  613. { --------------------------------------------------------------------
  614. TPawsNotifySpectrumUseRequest
  615. --------------------------------------------------------------------}
  616. TPawsNotifySpectrumUseRequest = Class(TGoogleBaseObject)
  617. Private
  618. FdeviceDesc : TDeviceDescriptor;
  619. Flocation : TGeoLocation;
  620. Fspectra : TPawsNotifySpectrumUseRequestTypespectraArray;
  621. F_type : String;
  622. Fversion : String;
  623. Protected
  624. Class Function ExportPropertyName(Const AName : String) : string; override;
  625. //Property setters
  626. Procedure SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  627. Procedure Setlocation(AIndex : Integer; const AValue : TGeoLocation); virtual;
  628. Procedure Setspectra(AIndex : Integer; const AValue : TPawsNotifySpectrumUseRequestTypespectraArray); virtual;
  629. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  630. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  631. //2.6.4. bug workaround
  632. {$IFDEF VER2_6}
  633. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  634. {$ENDIF VER2_6}
  635. Public
  636. Published
  637. Property deviceDesc : TDeviceDescriptor Index 0 Read FdeviceDesc Write SetdeviceDesc;
  638. Property location : TGeoLocation Index 8 Read Flocation Write Setlocation;
  639. Property spectra : TPawsNotifySpectrumUseRequestTypespectraArray Index 16 Read Fspectra Write Setspectra;
  640. Property _type : String Index 24 Read F_type Write Set_type;
  641. Property version : String Index 32 Read Fversion Write Setversion;
  642. end;
  643. TPawsNotifySpectrumUseRequestClass = Class of TPawsNotifySpectrumUseRequest;
  644. { --------------------------------------------------------------------
  645. TPawsNotifySpectrumUseResponse
  646. --------------------------------------------------------------------}
  647. TPawsNotifySpectrumUseResponse = Class(TGoogleBaseObject)
  648. Private
  649. Fkind : String;
  650. F_type : String;
  651. Fversion : String;
  652. Protected
  653. Class Function ExportPropertyName(Const AName : String) : string; override;
  654. //Property setters
  655. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  656. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  657. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  658. Public
  659. Published
  660. Property kind : String Index 0 Read Fkind Write Setkind;
  661. Property _type : String Index 8 Read F_type Write Set_type;
  662. Property version : String Index 16 Read Fversion Write Setversion;
  663. end;
  664. TPawsNotifySpectrumUseResponseClass = Class of TPawsNotifySpectrumUseResponse;
  665. { --------------------------------------------------------------------
  666. TPawsRegisterRequest
  667. --------------------------------------------------------------------}
  668. TPawsRegisterRequest = Class(TGoogleBaseObject)
  669. Private
  670. Fantenna : TAntennaCharacteristics;
  671. FdeviceDesc : TDeviceDescriptor;
  672. FdeviceOwner : TDeviceOwner;
  673. Flocation : TGeoLocation;
  674. F_type : String;
  675. Fversion : String;
  676. Protected
  677. Class Function ExportPropertyName(Const AName : String) : string; override;
  678. //Property setters
  679. Procedure Setantenna(AIndex : Integer; const AValue : TAntennaCharacteristics); virtual;
  680. Procedure SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor); virtual;
  681. Procedure SetdeviceOwner(AIndex : Integer; const AValue : TDeviceOwner); virtual;
  682. Procedure Setlocation(AIndex : Integer; const AValue : TGeoLocation); virtual;
  683. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  684. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  685. Public
  686. Published
  687. Property antenna : TAntennaCharacteristics Index 0 Read Fantenna Write Setantenna;
  688. Property deviceDesc : TDeviceDescriptor Index 8 Read FdeviceDesc Write SetdeviceDesc;
  689. Property deviceOwner : TDeviceOwner Index 16 Read FdeviceOwner Write SetdeviceOwner;
  690. Property location : TGeoLocation Index 24 Read Flocation Write Setlocation;
  691. Property _type : String Index 32 Read F_type Write Set_type;
  692. Property version : String Index 40 Read Fversion Write Setversion;
  693. end;
  694. TPawsRegisterRequestClass = Class of TPawsRegisterRequest;
  695. { --------------------------------------------------------------------
  696. TPawsRegisterResponse
  697. --------------------------------------------------------------------}
  698. TPawsRegisterResponse = Class(TGoogleBaseObject)
  699. Private
  700. FdatabaseChange : TDbUpdateSpec;
  701. Fkind : String;
  702. F_type : String;
  703. Fversion : String;
  704. Protected
  705. Class Function ExportPropertyName(Const AName : String) : string; override;
  706. //Property setters
  707. Procedure SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec); virtual;
  708. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  709. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  710. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  711. Public
  712. Published
  713. Property databaseChange : TDbUpdateSpec Index 0 Read FdatabaseChange Write SetdatabaseChange;
  714. Property kind : String Index 8 Read Fkind Write Setkind;
  715. Property _type : String Index 16 Read F_type Write Set_type;
  716. Property version : String Index 24 Read Fversion Write Setversion;
  717. end;
  718. TPawsRegisterResponseClass = Class of TPawsRegisterResponse;
  719. { --------------------------------------------------------------------
  720. TPawsVerifyDeviceRequest
  721. --------------------------------------------------------------------}
  722. TPawsVerifyDeviceRequest = Class(TGoogleBaseObject)
  723. Private
  724. FdeviceDescs : TPawsVerifyDeviceRequestTypedeviceDescsArray;
  725. F_type : String;
  726. Fversion : String;
  727. Protected
  728. Class Function ExportPropertyName(Const AName : String) : string; override;
  729. //Property setters
  730. Procedure SetdeviceDescs(AIndex : Integer; const AValue : TPawsVerifyDeviceRequestTypedeviceDescsArray); virtual;
  731. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  732. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  733. //2.6.4. bug workaround
  734. {$IFDEF VER2_6}
  735. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  736. {$ENDIF VER2_6}
  737. Public
  738. Published
  739. Property deviceDescs : TPawsVerifyDeviceRequestTypedeviceDescsArray Index 0 Read FdeviceDescs Write SetdeviceDescs;
  740. Property _type : String Index 8 Read F_type Write Set_type;
  741. Property version : String Index 16 Read Fversion Write Setversion;
  742. end;
  743. TPawsVerifyDeviceRequestClass = Class of TPawsVerifyDeviceRequest;
  744. { --------------------------------------------------------------------
  745. TPawsVerifyDeviceResponse
  746. --------------------------------------------------------------------}
  747. TPawsVerifyDeviceResponse = Class(TGoogleBaseObject)
  748. Private
  749. FdatabaseChange : TDbUpdateSpec;
  750. FdeviceValidities : TPawsVerifyDeviceResponseTypedeviceValiditiesArray;
  751. Fkind : String;
  752. F_type : String;
  753. Fversion : String;
  754. Protected
  755. Class Function ExportPropertyName(Const AName : String) : string; override;
  756. //Property setters
  757. Procedure SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec); virtual;
  758. Procedure SetdeviceValidities(AIndex : Integer; const AValue : TPawsVerifyDeviceResponseTypedeviceValiditiesArray); virtual;
  759. Procedure Setkind(AIndex : Integer; const AValue : String); virtual;
  760. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  761. Procedure Setversion(AIndex : Integer; const AValue : String); virtual;
  762. //2.6.4. bug workaround
  763. {$IFDEF VER2_6}
  764. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  765. {$ENDIF VER2_6}
  766. Public
  767. Published
  768. Property databaseChange : TDbUpdateSpec Index 0 Read FdatabaseChange Write SetdatabaseChange;
  769. Property deviceValidities : TPawsVerifyDeviceResponseTypedeviceValiditiesArray Index 8 Read FdeviceValidities Write SetdeviceValidities;
  770. Property kind : String Index 16 Read Fkind Write Setkind;
  771. Property _type : String Index 24 Read F_type Write Set_type;
  772. Property version : String Index 32 Read Fversion Write Setversion;
  773. end;
  774. TPawsVerifyDeviceResponseClass = Class of TPawsVerifyDeviceResponse;
  775. { --------------------------------------------------------------------
  776. TRulesetInfo
  777. --------------------------------------------------------------------}
  778. TRulesetInfo = Class(TGoogleBaseObject)
  779. Private
  780. Fauthority : String;
  781. FmaxLocationChange : double;
  782. FmaxPollingSecs : integer;
  783. FrulesetIds : TStringArray;
  784. Protected
  785. //Property setters
  786. Procedure Setauthority(AIndex : Integer; const AValue : String); virtual;
  787. Procedure SetmaxLocationChange(AIndex : Integer; const AValue : double); virtual;
  788. Procedure SetmaxPollingSecs(AIndex : Integer; const AValue : integer); virtual;
  789. Procedure SetrulesetIds(AIndex : Integer; const AValue : TStringArray); virtual;
  790. //2.6.4. bug workaround
  791. {$IFDEF VER2_6}
  792. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  793. {$ENDIF VER2_6}
  794. Public
  795. Published
  796. Property authority : String Index 0 Read Fauthority Write Setauthority;
  797. Property maxLocationChange : double Index 8 Read FmaxLocationChange Write SetmaxLocationChange;
  798. Property maxPollingSecs : integer Index 16 Read FmaxPollingSecs Write SetmaxPollingSecs;
  799. Property rulesetIds : TStringArray Index 24 Read FrulesetIds Write SetrulesetIds;
  800. end;
  801. TRulesetInfoClass = Class of TRulesetInfo;
  802. { --------------------------------------------------------------------
  803. TSpectrumMessage
  804. --------------------------------------------------------------------}
  805. TSpectrumMessage = Class(TGoogleBaseObject)
  806. Private
  807. Fbandwidth : double;
  808. FfrequencyRanges : TSpectrumMessageTypefrequencyRangesArray;
  809. Protected
  810. //Property setters
  811. Procedure Setbandwidth(AIndex : Integer; const AValue : double); virtual;
  812. Procedure SetfrequencyRanges(AIndex : Integer; const AValue : TSpectrumMessageTypefrequencyRangesArray); virtual;
  813. //2.6.4. bug workaround
  814. {$IFDEF VER2_6}
  815. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  816. {$ENDIF VER2_6}
  817. Public
  818. Published
  819. Property bandwidth : double Index 0 Read Fbandwidth Write Setbandwidth;
  820. Property frequencyRanges : TSpectrumMessageTypefrequencyRangesArray Index 8 Read FfrequencyRanges Write SetfrequencyRanges;
  821. end;
  822. TSpectrumMessageClass = Class of TSpectrumMessage;
  823. { --------------------------------------------------------------------
  824. TSpectrumSchedule
  825. --------------------------------------------------------------------}
  826. TSpectrumSchedule = Class(TGoogleBaseObject)
  827. Private
  828. FeventTime : TEventTime;
  829. Fspectra : TSpectrumScheduleTypespectraArray;
  830. Protected
  831. //Property setters
  832. Procedure SeteventTime(AIndex : Integer; const AValue : TEventTime); virtual;
  833. Procedure Setspectra(AIndex : Integer; const AValue : TSpectrumScheduleTypespectraArray); virtual;
  834. //2.6.4. bug workaround
  835. {$IFDEF VER2_6}
  836. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  837. {$ENDIF VER2_6}
  838. Public
  839. Published
  840. Property eventTime : TEventTime Index 0 Read FeventTime Write SeteventTime;
  841. Property spectra : TSpectrumScheduleTypespectraArray Index 8 Read Fspectra Write Setspectra;
  842. end;
  843. TSpectrumScheduleClass = Class of TSpectrumSchedule;
  844. { --------------------------------------------------------------------
  845. TVcard
  846. --------------------------------------------------------------------}
  847. TVcard = Class(TGoogleBaseObject)
  848. Private
  849. Fadr : TVcardAddress;
  850. Femail : TVcardTypedText;
  851. Ffn : String;
  852. Forg : TVcardTypedText;
  853. Ftel : TVcardTelephone;
  854. Protected
  855. //Property setters
  856. Procedure Setadr(AIndex : Integer; const AValue : TVcardAddress); virtual;
  857. Procedure Setemail(AIndex : Integer; const AValue : TVcardTypedText); virtual;
  858. Procedure Setfn(AIndex : Integer; const AValue : String); virtual;
  859. Procedure Setorg(AIndex : Integer; const AValue : TVcardTypedText); virtual;
  860. Procedure Settel(AIndex : Integer; const AValue : TVcardTelephone); virtual;
  861. Public
  862. Published
  863. Property adr : TVcardAddress Index 0 Read Fadr Write Setadr;
  864. Property email : TVcardTypedText Index 8 Read Femail Write Setemail;
  865. Property fn : String Index 16 Read Ffn Write Setfn;
  866. Property org : TVcardTypedText Index 24 Read Forg Write Setorg;
  867. Property tel : TVcardTelephone Index 32 Read Ftel Write Settel;
  868. end;
  869. TVcardClass = Class of TVcard;
  870. { --------------------------------------------------------------------
  871. TVcardAddress
  872. --------------------------------------------------------------------}
  873. TVcardAddress = Class(TGoogleBaseObject)
  874. Private
  875. Fcode : String;
  876. Fcountry : String;
  877. Flocality : String;
  878. Fpobox : String;
  879. Fregion : String;
  880. Fstreet : String;
  881. Protected
  882. //Property setters
  883. Procedure Setcode(AIndex : Integer; const AValue : String); virtual;
  884. Procedure Setcountry(AIndex : Integer; const AValue : String); virtual;
  885. Procedure Setlocality(AIndex : Integer; const AValue : String); virtual;
  886. Procedure Setpobox(AIndex : Integer; const AValue : String); virtual;
  887. Procedure Setregion(AIndex : Integer; const AValue : String); virtual;
  888. Procedure Setstreet(AIndex : Integer; const AValue : String); virtual;
  889. Public
  890. Published
  891. Property code : String Index 0 Read Fcode Write Setcode;
  892. Property country : String Index 8 Read Fcountry Write Setcountry;
  893. Property locality : String Index 16 Read Flocality Write Setlocality;
  894. Property pobox : String Index 24 Read Fpobox Write Setpobox;
  895. Property region : String Index 32 Read Fregion Write Setregion;
  896. Property street : String Index 40 Read Fstreet Write Setstreet;
  897. end;
  898. TVcardAddressClass = Class of TVcardAddress;
  899. { --------------------------------------------------------------------
  900. TVcardTelephone
  901. --------------------------------------------------------------------}
  902. TVcardTelephone = Class(TGoogleBaseObject)
  903. Private
  904. Furi : String;
  905. Protected
  906. //Property setters
  907. Procedure Seturi(AIndex : Integer; const AValue : String); virtual;
  908. Public
  909. Published
  910. Property uri : String Index 0 Read Furi Write Seturi;
  911. end;
  912. TVcardTelephoneClass = Class of TVcardTelephone;
  913. { --------------------------------------------------------------------
  914. TVcardTypedText
  915. --------------------------------------------------------------------}
  916. TVcardTypedText = Class(TGoogleBaseObject)
  917. Private
  918. Ftext : String;
  919. Protected
  920. //Property setters
  921. Procedure Settext(AIndex : Integer; const AValue : String); virtual;
  922. Public
  923. Published
  924. Property text : String Index 0 Read Ftext Write Settext;
  925. end;
  926. TVcardTypedTextClass = Class of TVcardTypedText;
  927. { --------------------------------------------------------------------
  928. TPawsResource
  929. --------------------------------------------------------------------}
  930. TPawsResource = Class(TGoogleResource)
  931. Public
  932. Class Function ResourceName : String; override;
  933. Class Function DefaultAPI : TGoogleAPIClass; override;
  934. Function GetSpectrum(aPawsGetSpectrumRequest : TPawsGetSpectrumRequest) : TPawsGetSpectrumResponse;
  935. Function GetSpectrumBatch(aPawsGetSpectrumBatchRequest : TPawsGetSpectrumBatchRequest) : TPawsGetSpectrumBatchResponse;
  936. Function Init(aPawsInitRequest : TPawsInitRequest) : TPawsInitResponse;
  937. Function NotifySpectrumUse(aPawsNotifySpectrumUseRequest : TPawsNotifySpectrumUseRequest) : TPawsNotifySpectrumUseResponse;
  938. Function Register(aPawsRegisterRequest : TPawsRegisterRequest) : TPawsRegisterResponse;
  939. Function VerifyDevice(aPawsVerifyDeviceRequest : TPawsVerifyDeviceRequest) : TPawsVerifyDeviceResponse;
  940. end;
  941. { --------------------------------------------------------------------
  942. TSpectrumAPI
  943. --------------------------------------------------------------------}
  944. TSpectrumAPI = Class(TGoogleAPI)
  945. Private
  946. FPawsInstance : TPawsResource;
  947. Function GetPawsInstance : TPawsResource;virtual;
  948. Public
  949. //Override class functions with API info
  950. Class Function APIName : String; override;
  951. Class Function APIVersion : String; override;
  952. Class Function APIRevision : String; override;
  953. Class Function APIID : String; override;
  954. Class Function APITitle : String; override;
  955. Class Function APIDescription : String; override;
  956. Class Function APIOwnerDomain : String; override;
  957. Class Function APIOwnerName : String; override;
  958. Class Function APIIcon16 : String; override;
  959. Class Function APIIcon32 : String; override;
  960. Class Function APIdocumentationLink : String; override;
  961. Class Function APIrootUrl : string; override;
  962. Class Function APIbasePath : string;override;
  963. Class Function APIbaseURL : String;override;
  964. Class Function APIProtocol : string;override;
  965. Class Function APIservicePath : string;override;
  966. Class Function APIbatchPath : String;override;
  967. Class Function APIAuthScopes : TScopeInfoArray;override;
  968. Class Function APINeedsAuth : Boolean;override;
  969. Class Procedure RegisterAPIResources; override;
  970. //Add create function for resources
  971. Function CreatePawsResource(AOwner : TComponent) : TPawsResource;virtual;overload;
  972. Function CreatePawsResource : TPawsResource;virtual;overload;
  973. //Add default on-demand instances for resources
  974. Property PawsResource : TPawsResource Read GetPawsInstance;
  975. end;
  976. implementation
  977. { --------------------------------------------------------------------
  978. TAntennaCharacteristics
  979. --------------------------------------------------------------------}
  980. Procedure TAntennaCharacteristics.Setheight(AIndex : Integer; const AValue : double);
  981. begin
  982. If (Fheight=AValue) then exit;
  983. Fheight:=AValue;
  984. MarkPropertyChanged(AIndex);
  985. end;
  986. Procedure TAntennaCharacteristics.SetheightType(AIndex : Integer; const AValue : String);
  987. begin
  988. If (FheightType=AValue) then exit;
  989. FheightType:=AValue;
  990. MarkPropertyChanged(AIndex);
  991. end;
  992. Procedure TAntennaCharacteristics.SetheightUncertainty(AIndex : Integer; const AValue : double);
  993. begin
  994. If (FheightUncertainty=AValue) then exit;
  995. FheightUncertainty:=AValue;
  996. MarkPropertyChanged(AIndex);
  997. end;
  998. { --------------------------------------------------------------------
  999. TDatabaseSpec
  1000. --------------------------------------------------------------------}
  1001. Procedure TDatabaseSpec.Setname(AIndex : Integer; const AValue : String);
  1002. begin
  1003. If (Fname=AValue) then exit;
  1004. Fname:=AValue;
  1005. MarkPropertyChanged(AIndex);
  1006. end;
  1007. Procedure TDatabaseSpec.Seturi(AIndex : Integer; const AValue : String);
  1008. begin
  1009. If (Furi=AValue) then exit;
  1010. Furi:=AValue;
  1011. MarkPropertyChanged(AIndex);
  1012. end;
  1013. { --------------------------------------------------------------------
  1014. TDbUpdateSpec
  1015. --------------------------------------------------------------------}
  1016. Procedure TDbUpdateSpec.Setdatabases(AIndex : Integer; const AValue : TDbUpdateSpecTypedatabasesArray);
  1017. begin
  1018. If (Fdatabases=AValue) then exit;
  1019. Fdatabases:=AValue;
  1020. MarkPropertyChanged(AIndex);
  1021. end;
  1022. //2.6.4. bug workaround
  1023. {$IFDEF VER2_6}
  1024. Procedure TDbUpdateSpec.SetArrayLength(Const AName : String; ALength : Longint);
  1025. begin
  1026. Case AName of
  1027. 'databases' : SetLength(Fdatabases,ALength);
  1028. else
  1029. Inherited SetArrayLength(AName,ALength);
  1030. end;
  1031. end;
  1032. {$ENDIF VER2_6}
  1033. { --------------------------------------------------------------------
  1034. TDeviceCapabilities
  1035. --------------------------------------------------------------------}
  1036. Procedure TDeviceCapabilities.SetfrequencyRanges(AIndex : Integer; const AValue : TDeviceCapabilitiesTypefrequencyRangesArray);
  1037. begin
  1038. If (FfrequencyRanges=AValue) then exit;
  1039. FfrequencyRanges:=AValue;
  1040. MarkPropertyChanged(AIndex);
  1041. end;
  1042. //2.6.4. bug workaround
  1043. {$IFDEF VER2_6}
  1044. Procedure TDeviceCapabilities.SetArrayLength(Const AName : String; ALength : Longint);
  1045. begin
  1046. Case AName of
  1047. 'frequencyranges' : SetLength(FfrequencyRanges,ALength);
  1048. else
  1049. Inherited SetArrayLength(AName,ALength);
  1050. end;
  1051. end;
  1052. {$ENDIF VER2_6}
  1053. { --------------------------------------------------------------------
  1054. TDeviceDescriptor
  1055. --------------------------------------------------------------------}
  1056. Procedure TDeviceDescriptor.SetetsiEnDeviceCategory(AIndex : Integer; const AValue : String);
  1057. begin
  1058. If (FetsiEnDeviceCategory=AValue) then exit;
  1059. FetsiEnDeviceCategory:=AValue;
  1060. MarkPropertyChanged(AIndex);
  1061. end;
  1062. Procedure TDeviceDescriptor.SetetsiEnDeviceEmissionsClass(AIndex : Integer; const AValue : String);
  1063. begin
  1064. If (FetsiEnDeviceEmissionsClass=AValue) then exit;
  1065. FetsiEnDeviceEmissionsClass:=AValue;
  1066. MarkPropertyChanged(AIndex);
  1067. end;
  1068. Procedure TDeviceDescriptor.SetetsiEnDeviceType(AIndex : Integer; const AValue : String);
  1069. begin
  1070. If (FetsiEnDeviceType=AValue) then exit;
  1071. FetsiEnDeviceType:=AValue;
  1072. MarkPropertyChanged(AIndex);
  1073. end;
  1074. Procedure TDeviceDescriptor.SetetsiEnTechnologyId(AIndex : Integer; const AValue : String);
  1075. begin
  1076. If (FetsiEnTechnologyId=AValue) then exit;
  1077. FetsiEnTechnologyId:=AValue;
  1078. MarkPropertyChanged(AIndex);
  1079. end;
  1080. Procedure TDeviceDescriptor.SetfccId(AIndex : Integer; const AValue : String);
  1081. begin
  1082. If (FfccId=AValue) then exit;
  1083. FfccId:=AValue;
  1084. MarkPropertyChanged(AIndex);
  1085. end;
  1086. Procedure TDeviceDescriptor.SetfccTvbdDeviceType(AIndex : Integer; const AValue : String);
  1087. begin
  1088. If (FfccTvbdDeviceType=AValue) then exit;
  1089. FfccTvbdDeviceType:=AValue;
  1090. MarkPropertyChanged(AIndex);
  1091. end;
  1092. Procedure TDeviceDescriptor.SetmanufacturerId(AIndex : Integer; const AValue : String);
  1093. begin
  1094. If (FmanufacturerId=AValue) then exit;
  1095. FmanufacturerId:=AValue;
  1096. MarkPropertyChanged(AIndex);
  1097. end;
  1098. Procedure TDeviceDescriptor.SetmodelId(AIndex : Integer; const AValue : String);
  1099. begin
  1100. If (FmodelId=AValue) then exit;
  1101. FmodelId:=AValue;
  1102. MarkPropertyChanged(AIndex);
  1103. end;
  1104. Procedure TDeviceDescriptor.SetrulesetIds(AIndex : Integer; const AValue : TStringArray);
  1105. begin
  1106. If (FrulesetIds=AValue) then exit;
  1107. FrulesetIds:=AValue;
  1108. MarkPropertyChanged(AIndex);
  1109. end;
  1110. Procedure TDeviceDescriptor.SetserialNumber(AIndex : Integer; const AValue : String);
  1111. begin
  1112. If (FserialNumber=AValue) then exit;
  1113. FserialNumber:=AValue;
  1114. MarkPropertyChanged(AIndex);
  1115. end;
  1116. //2.6.4. bug workaround
  1117. {$IFDEF VER2_6}
  1118. Procedure TDeviceDescriptor.SetArrayLength(Const AName : String; ALength : Longint);
  1119. begin
  1120. Case AName of
  1121. 'rulesetids' : SetLength(FrulesetIds,ALength);
  1122. else
  1123. Inherited SetArrayLength(AName,ALength);
  1124. end;
  1125. end;
  1126. {$ENDIF VER2_6}
  1127. { --------------------------------------------------------------------
  1128. TDeviceOwner
  1129. --------------------------------------------------------------------}
  1130. Procedure TDeviceOwner.Set_operator(AIndex : Integer; const AValue : TVcard);
  1131. begin
  1132. If (F_operator=AValue) then exit;
  1133. F_operator:=AValue;
  1134. MarkPropertyChanged(AIndex);
  1135. end;
  1136. Procedure TDeviceOwner.Setowner(AIndex : Integer; const AValue : TVcard);
  1137. begin
  1138. If (Fowner=AValue) then exit;
  1139. Fowner:=AValue;
  1140. MarkPropertyChanged(AIndex);
  1141. end;
  1142. Class Function TDeviceOwner.ExportPropertyName(Const AName : String) :String;
  1143. begin
  1144. Case AName of
  1145. '_operator' : Result:='operator';
  1146. else
  1147. Result:=Inherited ExportPropertyName(AName);
  1148. end;
  1149. end;
  1150. { --------------------------------------------------------------------
  1151. TDeviceValidity
  1152. --------------------------------------------------------------------}
  1153. Procedure TDeviceValidity.SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1154. begin
  1155. If (FdeviceDesc=AValue) then exit;
  1156. FdeviceDesc:=AValue;
  1157. MarkPropertyChanged(AIndex);
  1158. end;
  1159. Procedure TDeviceValidity.SetisValid(AIndex : Integer; const AValue : boolean);
  1160. begin
  1161. If (FisValid=AValue) then exit;
  1162. FisValid:=AValue;
  1163. MarkPropertyChanged(AIndex);
  1164. end;
  1165. Procedure TDeviceValidity.Setreason(AIndex : Integer; const AValue : String);
  1166. begin
  1167. If (Freason=AValue) then exit;
  1168. Freason:=AValue;
  1169. MarkPropertyChanged(AIndex);
  1170. end;
  1171. { --------------------------------------------------------------------
  1172. TEventTime
  1173. --------------------------------------------------------------------}
  1174. Procedure TEventTime.SetstartTime(AIndex : Integer; const AValue : String);
  1175. begin
  1176. If (FstartTime=AValue) then exit;
  1177. FstartTime:=AValue;
  1178. MarkPropertyChanged(AIndex);
  1179. end;
  1180. Procedure TEventTime.SetstopTime(AIndex : Integer; const AValue : String);
  1181. begin
  1182. If (FstopTime=AValue) then exit;
  1183. FstopTime:=AValue;
  1184. MarkPropertyChanged(AIndex);
  1185. end;
  1186. { --------------------------------------------------------------------
  1187. TFrequencyRange
  1188. --------------------------------------------------------------------}
  1189. Procedure TFrequencyRange.SetchannelId(AIndex : Integer; const AValue : String);
  1190. begin
  1191. If (FchannelId=AValue) then exit;
  1192. FchannelId:=AValue;
  1193. MarkPropertyChanged(AIndex);
  1194. end;
  1195. Procedure TFrequencyRange.SetmaxPowerDBm(AIndex : Integer; const AValue : double);
  1196. begin
  1197. If (FmaxPowerDBm=AValue) then exit;
  1198. FmaxPowerDBm:=AValue;
  1199. MarkPropertyChanged(AIndex);
  1200. end;
  1201. Procedure TFrequencyRange.SetstartHz(AIndex : Integer; const AValue : double);
  1202. begin
  1203. If (FstartHz=AValue) then exit;
  1204. FstartHz:=AValue;
  1205. MarkPropertyChanged(AIndex);
  1206. end;
  1207. Procedure TFrequencyRange.SetstopHz(AIndex : Integer; const AValue : double);
  1208. begin
  1209. If (FstopHz=AValue) then exit;
  1210. FstopHz:=AValue;
  1211. MarkPropertyChanged(AIndex);
  1212. end;
  1213. { --------------------------------------------------------------------
  1214. TGeoLocation
  1215. --------------------------------------------------------------------}
  1216. Procedure TGeoLocation.Setconfidence(AIndex : Integer; const AValue : integer);
  1217. begin
  1218. If (Fconfidence=AValue) then exit;
  1219. Fconfidence:=AValue;
  1220. MarkPropertyChanged(AIndex);
  1221. end;
  1222. Procedure TGeoLocation.Setpoint(AIndex : Integer; const AValue : TGeoLocationEllipse);
  1223. begin
  1224. If (Fpoint=AValue) then exit;
  1225. Fpoint:=AValue;
  1226. MarkPropertyChanged(AIndex);
  1227. end;
  1228. Procedure TGeoLocation.Setregion(AIndex : Integer; const AValue : TGeoLocationPolygon);
  1229. begin
  1230. If (Fregion=AValue) then exit;
  1231. Fregion:=AValue;
  1232. MarkPropertyChanged(AIndex);
  1233. end;
  1234. { --------------------------------------------------------------------
  1235. TGeoLocationEllipse
  1236. --------------------------------------------------------------------}
  1237. Procedure TGeoLocationEllipse.Setcenter(AIndex : Integer; const AValue : TGeoLocationPoint);
  1238. begin
  1239. If (Fcenter=AValue) then exit;
  1240. Fcenter:=AValue;
  1241. MarkPropertyChanged(AIndex);
  1242. end;
  1243. Procedure TGeoLocationEllipse.Setorientation(AIndex : Integer; const AValue : double);
  1244. begin
  1245. If (Forientation=AValue) then exit;
  1246. Forientation:=AValue;
  1247. MarkPropertyChanged(AIndex);
  1248. end;
  1249. Procedure TGeoLocationEllipse.SetsemiMajorAxis(AIndex : Integer; const AValue : double);
  1250. begin
  1251. If (FsemiMajorAxis=AValue) then exit;
  1252. FsemiMajorAxis:=AValue;
  1253. MarkPropertyChanged(AIndex);
  1254. end;
  1255. Procedure TGeoLocationEllipse.SetsemiMinorAxis(AIndex : Integer; const AValue : double);
  1256. begin
  1257. If (FsemiMinorAxis=AValue) then exit;
  1258. FsemiMinorAxis:=AValue;
  1259. MarkPropertyChanged(AIndex);
  1260. end;
  1261. { --------------------------------------------------------------------
  1262. TGeoLocationPoint
  1263. --------------------------------------------------------------------}
  1264. Procedure TGeoLocationPoint.Setlatitude(AIndex : Integer; const AValue : double);
  1265. begin
  1266. If (Flatitude=AValue) then exit;
  1267. Flatitude:=AValue;
  1268. MarkPropertyChanged(AIndex);
  1269. end;
  1270. Procedure TGeoLocationPoint.Setlongitude(AIndex : Integer; const AValue : double);
  1271. begin
  1272. If (Flongitude=AValue) then exit;
  1273. Flongitude:=AValue;
  1274. MarkPropertyChanged(AIndex);
  1275. end;
  1276. { --------------------------------------------------------------------
  1277. TGeoLocationPolygon
  1278. --------------------------------------------------------------------}
  1279. Procedure TGeoLocationPolygon.Setexterior(AIndex : Integer; const AValue : TGeoLocationPolygonTypeexteriorArray);
  1280. begin
  1281. If (Fexterior=AValue) then exit;
  1282. Fexterior:=AValue;
  1283. MarkPropertyChanged(AIndex);
  1284. end;
  1285. //2.6.4. bug workaround
  1286. {$IFDEF VER2_6}
  1287. Procedure TGeoLocationPolygon.SetArrayLength(Const AName : String; ALength : Longint);
  1288. begin
  1289. Case AName of
  1290. 'exterior' : SetLength(Fexterior,ALength);
  1291. else
  1292. Inherited SetArrayLength(AName,ALength);
  1293. end;
  1294. end;
  1295. {$ENDIF VER2_6}
  1296. { --------------------------------------------------------------------
  1297. TGeoSpectrumSchedule
  1298. --------------------------------------------------------------------}
  1299. Procedure TGeoSpectrumSchedule.Setlocation(AIndex : Integer; const AValue : TGeoLocation);
  1300. begin
  1301. If (Flocation=AValue) then exit;
  1302. Flocation:=AValue;
  1303. MarkPropertyChanged(AIndex);
  1304. end;
  1305. Procedure TGeoSpectrumSchedule.SetspectrumSchedules(AIndex : Integer; const AValue : TGeoSpectrumScheduleTypespectrumSchedulesArray);
  1306. begin
  1307. If (FspectrumSchedules=AValue) then exit;
  1308. FspectrumSchedules:=AValue;
  1309. MarkPropertyChanged(AIndex);
  1310. end;
  1311. //2.6.4. bug workaround
  1312. {$IFDEF VER2_6}
  1313. Procedure TGeoSpectrumSchedule.SetArrayLength(Const AName : String; ALength : Longint);
  1314. begin
  1315. Case AName of
  1316. 'spectrumschedules' : SetLength(FspectrumSchedules,ALength);
  1317. else
  1318. Inherited SetArrayLength(AName,ALength);
  1319. end;
  1320. end;
  1321. {$ENDIF VER2_6}
  1322. { --------------------------------------------------------------------
  1323. TPawsGetSpectrumBatchRequest
  1324. --------------------------------------------------------------------}
  1325. Procedure TPawsGetSpectrumBatchRequest.Setantenna(AIndex : Integer; const AValue : TAntennaCharacteristics);
  1326. begin
  1327. If (Fantenna=AValue) then exit;
  1328. Fantenna:=AValue;
  1329. MarkPropertyChanged(AIndex);
  1330. end;
  1331. Procedure TPawsGetSpectrumBatchRequest.Setcapabilities(AIndex : Integer; const AValue : TDeviceCapabilities);
  1332. begin
  1333. If (Fcapabilities=AValue) then exit;
  1334. Fcapabilities:=AValue;
  1335. MarkPropertyChanged(AIndex);
  1336. end;
  1337. Procedure TPawsGetSpectrumBatchRequest.SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1338. begin
  1339. If (FdeviceDesc=AValue) then exit;
  1340. FdeviceDesc:=AValue;
  1341. MarkPropertyChanged(AIndex);
  1342. end;
  1343. Procedure TPawsGetSpectrumBatchRequest.Setlocations(AIndex : Integer; const AValue : TPawsGetSpectrumBatchRequestTypelocationsArray);
  1344. begin
  1345. If (Flocations=AValue) then exit;
  1346. Flocations:=AValue;
  1347. MarkPropertyChanged(AIndex);
  1348. end;
  1349. Procedure TPawsGetSpectrumBatchRequest.SetmasterDeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1350. begin
  1351. If (FmasterDeviceDesc=AValue) then exit;
  1352. FmasterDeviceDesc:=AValue;
  1353. MarkPropertyChanged(AIndex);
  1354. end;
  1355. Procedure TPawsGetSpectrumBatchRequest.Setowner(AIndex : Integer; const AValue : TDeviceOwner);
  1356. begin
  1357. If (Fowner=AValue) then exit;
  1358. Fowner:=AValue;
  1359. MarkPropertyChanged(AIndex);
  1360. end;
  1361. Procedure TPawsGetSpectrumBatchRequest.SetrequestType(AIndex : Integer; const AValue : String);
  1362. begin
  1363. If (FrequestType=AValue) then exit;
  1364. FrequestType:=AValue;
  1365. MarkPropertyChanged(AIndex);
  1366. end;
  1367. Procedure TPawsGetSpectrumBatchRequest.Set_type(AIndex : Integer; const AValue : String);
  1368. begin
  1369. If (F_type=AValue) then exit;
  1370. F_type:=AValue;
  1371. MarkPropertyChanged(AIndex);
  1372. end;
  1373. Procedure TPawsGetSpectrumBatchRequest.Setversion(AIndex : Integer; const AValue : String);
  1374. begin
  1375. If (Fversion=AValue) then exit;
  1376. Fversion:=AValue;
  1377. MarkPropertyChanged(AIndex);
  1378. end;
  1379. Class Function TPawsGetSpectrumBatchRequest.ExportPropertyName(Const AName : String) :String;
  1380. begin
  1381. Case AName of
  1382. '_type' : Result:='type';
  1383. else
  1384. Result:=Inherited ExportPropertyName(AName);
  1385. end;
  1386. end;
  1387. //2.6.4. bug workaround
  1388. {$IFDEF VER2_6}
  1389. Procedure TPawsGetSpectrumBatchRequest.SetArrayLength(Const AName : String; ALength : Longint);
  1390. begin
  1391. Case AName of
  1392. 'locations' : SetLength(Flocations,ALength);
  1393. else
  1394. Inherited SetArrayLength(AName,ALength);
  1395. end;
  1396. end;
  1397. {$ENDIF VER2_6}
  1398. { --------------------------------------------------------------------
  1399. TPawsGetSpectrumBatchResponse
  1400. --------------------------------------------------------------------}
  1401. Procedure TPawsGetSpectrumBatchResponse.SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec);
  1402. begin
  1403. If (FdatabaseChange=AValue) then exit;
  1404. FdatabaseChange:=AValue;
  1405. MarkPropertyChanged(AIndex);
  1406. end;
  1407. Procedure TPawsGetSpectrumBatchResponse.SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1408. begin
  1409. If (FdeviceDesc=AValue) then exit;
  1410. FdeviceDesc:=AValue;
  1411. MarkPropertyChanged(AIndex);
  1412. end;
  1413. Procedure TPawsGetSpectrumBatchResponse.SetgeoSpectrumSchedules(AIndex : Integer; const AValue : TPawsGetSpectrumBatchResponseTypegeoSpectrumSchedulesArray);
  1414. begin
  1415. If (FgeoSpectrumSchedules=AValue) then exit;
  1416. FgeoSpectrumSchedules:=AValue;
  1417. MarkPropertyChanged(AIndex);
  1418. end;
  1419. Procedure TPawsGetSpectrumBatchResponse.Setkind(AIndex : Integer; const AValue : String);
  1420. begin
  1421. If (Fkind=AValue) then exit;
  1422. Fkind:=AValue;
  1423. MarkPropertyChanged(AIndex);
  1424. end;
  1425. Procedure TPawsGetSpectrumBatchResponse.SetmaxContiguousBwHz(AIndex : Integer; const AValue : double);
  1426. begin
  1427. If (FmaxContiguousBwHz=AValue) then exit;
  1428. FmaxContiguousBwHz:=AValue;
  1429. MarkPropertyChanged(AIndex);
  1430. end;
  1431. Procedure TPawsGetSpectrumBatchResponse.SetmaxTotalBwHz(AIndex : Integer; const AValue : double);
  1432. begin
  1433. If (FmaxTotalBwHz=AValue) then exit;
  1434. FmaxTotalBwHz:=AValue;
  1435. MarkPropertyChanged(AIndex);
  1436. end;
  1437. Procedure TPawsGetSpectrumBatchResponse.SetneedsSpectrumReport(AIndex : Integer; const AValue : boolean);
  1438. begin
  1439. If (FneedsSpectrumReport=AValue) then exit;
  1440. FneedsSpectrumReport:=AValue;
  1441. MarkPropertyChanged(AIndex);
  1442. end;
  1443. Procedure TPawsGetSpectrumBatchResponse.SetrulesetInfo(AIndex : Integer; const AValue : TRulesetInfo);
  1444. begin
  1445. If (FrulesetInfo=AValue) then exit;
  1446. FrulesetInfo:=AValue;
  1447. MarkPropertyChanged(AIndex);
  1448. end;
  1449. Procedure TPawsGetSpectrumBatchResponse.Settimestamp(AIndex : Integer; const AValue : String);
  1450. begin
  1451. If (Ftimestamp=AValue) then exit;
  1452. Ftimestamp:=AValue;
  1453. MarkPropertyChanged(AIndex);
  1454. end;
  1455. Procedure TPawsGetSpectrumBatchResponse.Set_type(AIndex : Integer; const AValue : String);
  1456. begin
  1457. If (F_type=AValue) then exit;
  1458. F_type:=AValue;
  1459. MarkPropertyChanged(AIndex);
  1460. end;
  1461. Procedure TPawsGetSpectrumBatchResponse.Setversion(AIndex : Integer; const AValue : String);
  1462. begin
  1463. If (Fversion=AValue) then exit;
  1464. Fversion:=AValue;
  1465. MarkPropertyChanged(AIndex);
  1466. end;
  1467. Class Function TPawsGetSpectrumBatchResponse.ExportPropertyName(Const AName : String) :String;
  1468. begin
  1469. Case AName of
  1470. '_type' : Result:='type';
  1471. else
  1472. Result:=Inherited ExportPropertyName(AName);
  1473. end;
  1474. end;
  1475. //2.6.4. bug workaround
  1476. {$IFDEF VER2_6}
  1477. Procedure TPawsGetSpectrumBatchResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1478. begin
  1479. Case AName of
  1480. 'geospectrumschedules' : SetLength(FgeoSpectrumSchedules,ALength);
  1481. else
  1482. Inherited SetArrayLength(AName,ALength);
  1483. end;
  1484. end;
  1485. {$ENDIF VER2_6}
  1486. { --------------------------------------------------------------------
  1487. TPawsGetSpectrumRequest
  1488. --------------------------------------------------------------------}
  1489. Procedure TPawsGetSpectrumRequest.Setantenna(AIndex : Integer; const AValue : TAntennaCharacteristics);
  1490. begin
  1491. If (Fantenna=AValue) then exit;
  1492. Fantenna:=AValue;
  1493. MarkPropertyChanged(AIndex);
  1494. end;
  1495. Procedure TPawsGetSpectrumRequest.Setcapabilities(AIndex : Integer; const AValue : TDeviceCapabilities);
  1496. begin
  1497. If (Fcapabilities=AValue) then exit;
  1498. Fcapabilities:=AValue;
  1499. MarkPropertyChanged(AIndex);
  1500. end;
  1501. Procedure TPawsGetSpectrumRequest.SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1502. begin
  1503. If (FdeviceDesc=AValue) then exit;
  1504. FdeviceDesc:=AValue;
  1505. MarkPropertyChanged(AIndex);
  1506. end;
  1507. Procedure TPawsGetSpectrumRequest.Setlocation(AIndex : Integer; const AValue : TGeoLocation);
  1508. begin
  1509. If (Flocation=AValue) then exit;
  1510. Flocation:=AValue;
  1511. MarkPropertyChanged(AIndex);
  1512. end;
  1513. Procedure TPawsGetSpectrumRequest.SetmasterDeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1514. begin
  1515. If (FmasterDeviceDesc=AValue) then exit;
  1516. FmasterDeviceDesc:=AValue;
  1517. MarkPropertyChanged(AIndex);
  1518. end;
  1519. Procedure TPawsGetSpectrumRequest.Setowner(AIndex : Integer; const AValue : TDeviceOwner);
  1520. begin
  1521. If (Fowner=AValue) then exit;
  1522. Fowner:=AValue;
  1523. MarkPropertyChanged(AIndex);
  1524. end;
  1525. Procedure TPawsGetSpectrumRequest.SetrequestType(AIndex : Integer; const AValue : String);
  1526. begin
  1527. If (FrequestType=AValue) then exit;
  1528. FrequestType:=AValue;
  1529. MarkPropertyChanged(AIndex);
  1530. end;
  1531. Procedure TPawsGetSpectrumRequest.Set_type(AIndex : Integer; const AValue : String);
  1532. begin
  1533. If (F_type=AValue) then exit;
  1534. F_type:=AValue;
  1535. MarkPropertyChanged(AIndex);
  1536. end;
  1537. Procedure TPawsGetSpectrumRequest.Setversion(AIndex : Integer; const AValue : String);
  1538. begin
  1539. If (Fversion=AValue) then exit;
  1540. Fversion:=AValue;
  1541. MarkPropertyChanged(AIndex);
  1542. end;
  1543. Class Function TPawsGetSpectrumRequest.ExportPropertyName(Const AName : String) :String;
  1544. begin
  1545. Case AName of
  1546. '_type' : Result:='type';
  1547. else
  1548. Result:=Inherited ExportPropertyName(AName);
  1549. end;
  1550. end;
  1551. { --------------------------------------------------------------------
  1552. TPawsGetSpectrumResponse
  1553. --------------------------------------------------------------------}
  1554. Procedure TPawsGetSpectrumResponse.SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec);
  1555. begin
  1556. If (FdatabaseChange=AValue) then exit;
  1557. FdatabaseChange:=AValue;
  1558. MarkPropertyChanged(AIndex);
  1559. end;
  1560. Procedure TPawsGetSpectrumResponse.SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1561. begin
  1562. If (FdeviceDesc=AValue) then exit;
  1563. FdeviceDesc:=AValue;
  1564. MarkPropertyChanged(AIndex);
  1565. end;
  1566. Procedure TPawsGetSpectrumResponse.Setkind(AIndex : Integer; const AValue : String);
  1567. begin
  1568. If (Fkind=AValue) then exit;
  1569. Fkind:=AValue;
  1570. MarkPropertyChanged(AIndex);
  1571. end;
  1572. Procedure TPawsGetSpectrumResponse.SetmaxContiguousBwHz(AIndex : Integer; const AValue : double);
  1573. begin
  1574. If (FmaxContiguousBwHz=AValue) then exit;
  1575. FmaxContiguousBwHz:=AValue;
  1576. MarkPropertyChanged(AIndex);
  1577. end;
  1578. Procedure TPawsGetSpectrumResponse.SetmaxTotalBwHz(AIndex : Integer; const AValue : double);
  1579. begin
  1580. If (FmaxTotalBwHz=AValue) then exit;
  1581. FmaxTotalBwHz:=AValue;
  1582. MarkPropertyChanged(AIndex);
  1583. end;
  1584. Procedure TPawsGetSpectrumResponse.SetneedsSpectrumReport(AIndex : Integer; const AValue : boolean);
  1585. begin
  1586. If (FneedsSpectrumReport=AValue) then exit;
  1587. FneedsSpectrumReport:=AValue;
  1588. MarkPropertyChanged(AIndex);
  1589. end;
  1590. Procedure TPawsGetSpectrumResponse.SetrulesetInfo(AIndex : Integer; const AValue : TRulesetInfo);
  1591. begin
  1592. If (FrulesetInfo=AValue) then exit;
  1593. FrulesetInfo:=AValue;
  1594. MarkPropertyChanged(AIndex);
  1595. end;
  1596. Procedure TPawsGetSpectrumResponse.SetspectrumSchedules(AIndex : Integer; const AValue : TPawsGetSpectrumResponseTypespectrumSchedulesArray);
  1597. begin
  1598. If (FspectrumSchedules=AValue) then exit;
  1599. FspectrumSchedules:=AValue;
  1600. MarkPropertyChanged(AIndex);
  1601. end;
  1602. Procedure TPawsGetSpectrumResponse.Settimestamp(AIndex : Integer; const AValue : String);
  1603. begin
  1604. If (Ftimestamp=AValue) then exit;
  1605. Ftimestamp:=AValue;
  1606. MarkPropertyChanged(AIndex);
  1607. end;
  1608. Procedure TPawsGetSpectrumResponse.Set_type(AIndex : Integer; const AValue : String);
  1609. begin
  1610. If (F_type=AValue) then exit;
  1611. F_type:=AValue;
  1612. MarkPropertyChanged(AIndex);
  1613. end;
  1614. Procedure TPawsGetSpectrumResponse.Setversion(AIndex : Integer; const AValue : String);
  1615. begin
  1616. If (Fversion=AValue) then exit;
  1617. Fversion:=AValue;
  1618. MarkPropertyChanged(AIndex);
  1619. end;
  1620. Class Function TPawsGetSpectrumResponse.ExportPropertyName(Const AName : String) :String;
  1621. begin
  1622. Case AName of
  1623. '_type' : Result:='type';
  1624. else
  1625. Result:=Inherited ExportPropertyName(AName);
  1626. end;
  1627. end;
  1628. //2.6.4. bug workaround
  1629. {$IFDEF VER2_6}
  1630. Procedure TPawsGetSpectrumResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1631. begin
  1632. Case AName of
  1633. 'spectrumschedules' : SetLength(FspectrumSchedules,ALength);
  1634. else
  1635. Inherited SetArrayLength(AName,ALength);
  1636. end;
  1637. end;
  1638. {$ENDIF VER2_6}
  1639. { --------------------------------------------------------------------
  1640. TPawsInitRequest
  1641. --------------------------------------------------------------------}
  1642. Procedure TPawsInitRequest.SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1643. begin
  1644. If (FdeviceDesc=AValue) then exit;
  1645. FdeviceDesc:=AValue;
  1646. MarkPropertyChanged(AIndex);
  1647. end;
  1648. Procedure TPawsInitRequest.Setlocation(AIndex : Integer; const AValue : TGeoLocation);
  1649. begin
  1650. If (Flocation=AValue) then exit;
  1651. Flocation:=AValue;
  1652. MarkPropertyChanged(AIndex);
  1653. end;
  1654. Procedure TPawsInitRequest.Set_type(AIndex : Integer; const AValue : String);
  1655. begin
  1656. If (F_type=AValue) then exit;
  1657. F_type:=AValue;
  1658. MarkPropertyChanged(AIndex);
  1659. end;
  1660. Procedure TPawsInitRequest.Setversion(AIndex : Integer; const AValue : String);
  1661. begin
  1662. If (Fversion=AValue) then exit;
  1663. Fversion:=AValue;
  1664. MarkPropertyChanged(AIndex);
  1665. end;
  1666. Class Function TPawsInitRequest.ExportPropertyName(Const AName : String) :String;
  1667. begin
  1668. Case AName of
  1669. '_type' : Result:='type';
  1670. else
  1671. Result:=Inherited ExportPropertyName(AName);
  1672. end;
  1673. end;
  1674. { --------------------------------------------------------------------
  1675. TPawsInitResponse
  1676. --------------------------------------------------------------------}
  1677. Procedure TPawsInitResponse.SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec);
  1678. begin
  1679. If (FdatabaseChange=AValue) then exit;
  1680. FdatabaseChange:=AValue;
  1681. MarkPropertyChanged(AIndex);
  1682. end;
  1683. Procedure TPawsInitResponse.Setkind(AIndex : Integer; const AValue : String);
  1684. begin
  1685. If (Fkind=AValue) then exit;
  1686. Fkind:=AValue;
  1687. MarkPropertyChanged(AIndex);
  1688. end;
  1689. Procedure TPawsInitResponse.SetrulesetInfo(AIndex : Integer; const AValue : TRulesetInfo);
  1690. begin
  1691. If (FrulesetInfo=AValue) then exit;
  1692. FrulesetInfo:=AValue;
  1693. MarkPropertyChanged(AIndex);
  1694. end;
  1695. Procedure TPawsInitResponse.Set_type(AIndex : Integer; const AValue : String);
  1696. begin
  1697. If (F_type=AValue) then exit;
  1698. F_type:=AValue;
  1699. MarkPropertyChanged(AIndex);
  1700. end;
  1701. Procedure TPawsInitResponse.Setversion(AIndex : Integer; const AValue : String);
  1702. begin
  1703. If (Fversion=AValue) then exit;
  1704. Fversion:=AValue;
  1705. MarkPropertyChanged(AIndex);
  1706. end;
  1707. Class Function TPawsInitResponse.ExportPropertyName(Const AName : String) :String;
  1708. begin
  1709. Case AName of
  1710. '_type' : Result:='type';
  1711. else
  1712. Result:=Inherited ExportPropertyName(AName);
  1713. end;
  1714. end;
  1715. { --------------------------------------------------------------------
  1716. TPawsNotifySpectrumUseRequest
  1717. --------------------------------------------------------------------}
  1718. Procedure TPawsNotifySpectrumUseRequest.SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1719. begin
  1720. If (FdeviceDesc=AValue) then exit;
  1721. FdeviceDesc:=AValue;
  1722. MarkPropertyChanged(AIndex);
  1723. end;
  1724. Procedure TPawsNotifySpectrumUseRequest.Setlocation(AIndex : Integer; const AValue : TGeoLocation);
  1725. begin
  1726. If (Flocation=AValue) then exit;
  1727. Flocation:=AValue;
  1728. MarkPropertyChanged(AIndex);
  1729. end;
  1730. Procedure TPawsNotifySpectrumUseRequest.Setspectra(AIndex : Integer; const AValue : TPawsNotifySpectrumUseRequestTypespectraArray);
  1731. begin
  1732. If (Fspectra=AValue) then exit;
  1733. Fspectra:=AValue;
  1734. MarkPropertyChanged(AIndex);
  1735. end;
  1736. Procedure TPawsNotifySpectrumUseRequest.Set_type(AIndex : Integer; const AValue : String);
  1737. begin
  1738. If (F_type=AValue) then exit;
  1739. F_type:=AValue;
  1740. MarkPropertyChanged(AIndex);
  1741. end;
  1742. Procedure TPawsNotifySpectrumUseRequest.Setversion(AIndex : Integer; const AValue : String);
  1743. begin
  1744. If (Fversion=AValue) then exit;
  1745. Fversion:=AValue;
  1746. MarkPropertyChanged(AIndex);
  1747. end;
  1748. Class Function TPawsNotifySpectrumUseRequest.ExportPropertyName(Const AName : String) :String;
  1749. begin
  1750. Case AName of
  1751. '_type' : Result:='type';
  1752. else
  1753. Result:=Inherited ExportPropertyName(AName);
  1754. end;
  1755. end;
  1756. //2.6.4. bug workaround
  1757. {$IFDEF VER2_6}
  1758. Procedure TPawsNotifySpectrumUseRequest.SetArrayLength(Const AName : String; ALength : Longint);
  1759. begin
  1760. Case AName of
  1761. 'spectra' : SetLength(Fspectra,ALength);
  1762. else
  1763. Inherited SetArrayLength(AName,ALength);
  1764. end;
  1765. end;
  1766. {$ENDIF VER2_6}
  1767. { --------------------------------------------------------------------
  1768. TPawsNotifySpectrumUseResponse
  1769. --------------------------------------------------------------------}
  1770. Procedure TPawsNotifySpectrumUseResponse.Setkind(AIndex : Integer; const AValue : String);
  1771. begin
  1772. If (Fkind=AValue) then exit;
  1773. Fkind:=AValue;
  1774. MarkPropertyChanged(AIndex);
  1775. end;
  1776. Procedure TPawsNotifySpectrumUseResponse.Set_type(AIndex : Integer; const AValue : String);
  1777. begin
  1778. If (F_type=AValue) then exit;
  1779. F_type:=AValue;
  1780. MarkPropertyChanged(AIndex);
  1781. end;
  1782. Procedure TPawsNotifySpectrumUseResponse.Setversion(AIndex : Integer; const AValue : String);
  1783. begin
  1784. If (Fversion=AValue) then exit;
  1785. Fversion:=AValue;
  1786. MarkPropertyChanged(AIndex);
  1787. end;
  1788. Class Function TPawsNotifySpectrumUseResponse.ExportPropertyName(Const AName : String) :String;
  1789. begin
  1790. Case AName of
  1791. '_type' : Result:='type';
  1792. else
  1793. Result:=Inherited ExportPropertyName(AName);
  1794. end;
  1795. end;
  1796. { --------------------------------------------------------------------
  1797. TPawsRegisterRequest
  1798. --------------------------------------------------------------------}
  1799. Procedure TPawsRegisterRequest.Setantenna(AIndex : Integer; const AValue : TAntennaCharacteristics);
  1800. begin
  1801. If (Fantenna=AValue) then exit;
  1802. Fantenna:=AValue;
  1803. MarkPropertyChanged(AIndex);
  1804. end;
  1805. Procedure TPawsRegisterRequest.SetdeviceDesc(AIndex : Integer; const AValue : TDeviceDescriptor);
  1806. begin
  1807. If (FdeviceDesc=AValue) then exit;
  1808. FdeviceDesc:=AValue;
  1809. MarkPropertyChanged(AIndex);
  1810. end;
  1811. Procedure TPawsRegisterRequest.SetdeviceOwner(AIndex : Integer; const AValue : TDeviceOwner);
  1812. begin
  1813. If (FdeviceOwner=AValue) then exit;
  1814. FdeviceOwner:=AValue;
  1815. MarkPropertyChanged(AIndex);
  1816. end;
  1817. Procedure TPawsRegisterRequest.Setlocation(AIndex : Integer; const AValue : TGeoLocation);
  1818. begin
  1819. If (Flocation=AValue) then exit;
  1820. Flocation:=AValue;
  1821. MarkPropertyChanged(AIndex);
  1822. end;
  1823. Procedure TPawsRegisterRequest.Set_type(AIndex : Integer; const AValue : String);
  1824. begin
  1825. If (F_type=AValue) then exit;
  1826. F_type:=AValue;
  1827. MarkPropertyChanged(AIndex);
  1828. end;
  1829. Procedure TPawsRegisterRequest.Setversion(AIndex : Integer; const AValue : String);
  1830. begin
  1831. If (Fversion=AValue) then exit;
  1832. Fversion:=AValue;
  1833. MarkPropertyChanged(AIndex);
  1834. end;
  1835. Class Function TPawsRegisterRequest.ExportPropertyName(Const AName : String) :String;
  1836. begin
  1837. Case AName of
  1838. '_type' : Result:='type';
  1839. else
  1840. Result:=Inherited ExportPropertyName(AName);
  1841. end;
  1842. end;
  1843. { --------------------------------------------------------------------
  1844. TPawsRegisterResponse
  1845. --------------------------------------------------------------------}
  1846. Procedure TPawsRegisterResponse.SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec);
  1847. begin
  1848. If (FdatabaseChange=AValue) then exit;
  1849. FdatabaseChange:=AValue;
  1850. MarkPropertyChanged(AIndex);
  1851. end;
  1852. Procedure TPawsRegisterResponse.Setkind(AIndex : Integer; const AValue : String);
  1853. begin
  1854. If (Fkind=AValue) then exit;
  1855. Fkind:=AValue;
  1856. MarkPropertyChanged(AIndex);
  1857. end;
  1858. Procedure TPawsRegisterResponse.Set_type(AIndex : Integer; const AValue : String);
  1859. begin
  1860. If (F_type=AValue) then exit;
  1861. F_type:=AValue;
  1862. MarkPropertyChanged(AIndex);
  1863. end;
  1864. Procedure TPawsRegisterResponse.Setversion(AIndex : Integer; const AValue : String);
  1865. begin
  1866. If (Fversion=AValue) then exit;
  1867. Fversion:=AValue;
  1868. MarkPropertyChanged(AIndex);
  1869. end;
  1870. Class Function TPawsRegisterResponse.ExportPropertyName(Const AName : String) :String;
  1871. begin
  1872. Case AName of
  1873. '_type' : Result:='type';
  1874. else
  1875. Result:=Inherited ExportPropertyName(AName);
  1876. end;
  1877. end;
  1878. { --------------------------------------------------------------------
  1879. TPawsVerifyDeviceRequest
  1880. --------------------------------------------------------------------}
  1881. Procedure TPawsVerifyDeviceRequest.SetdeviceDescs(AIndex : Integer; const AValue : TPawsVerifyDeviceRequestTypedeviceDescsArray);
  1882. begin
  1883. If (FdeviceDescs=AValue) then exit;
  1884. FdeviceDescs:=AValue;
  1885. MarkPropertyChanged(AIndex);
  1886. end;
  1887. Procedure TPawsVerifyDeviceRequest.Set_type(AIndex : Integer; const AValue : String);
  1888. begin
  1889. If (F_type=AValue) then exit;
  1890. F_type:=AValue;
  1891. MarkPropertyChanged(AIndex);
  1892. end;
  1893. Procedure TPawsVerifyDeviceRequest.Setversion(AIndex : Integer; const AValue : String);
  1894. begin
  1895. If (Fversion=AValue) then exit;
  1896. Fversion:=AValue;
  1897. MarkPropertyChanged(AIndex);
  1898. end;
  1899. Class Function TPawsVerifyDeviceRequest.ExportPropertyName(Const AName : String) :String;
  1900. begin
  1901. Case AName of
  1902. '_type' : Result:='type';
  1903. else
  1904. Result:=Inherited ExportPropertyName(AName);
  1905. end;
  1906. end;
  1907. //2.6.4. bug workaround
  1908. {$IFDEF VER2_6}
  1909. Procedure TPawsVerifyDeviceRequest.SetArrayLength(Const AName : String; ALength : Longint);
  1910. begin
  1911. Case AName of
  1912. 'devicedescs' : SetLength(FdeviceDescs,ALength);
  1913. else
  1914. Inherited SetArrayLength(AName,ALength);
  1915. end;
  1916. end;
  1917. {$ENDIF VER2_6}
  1918. { --------------------------------------------------------------------
  1919. TPawsVerifyDeviceResponse
  1920. --------------------------------------------------------------------}
  1921. Procedure TPawsVerifyDeviceResponse.SetdatabaseChange(AIndex : Integer; const AValue : TDbUpdateSpec);
  1922. begin
  1923. If (FdatabaseChange=AValue) then exit;
  1924. FdatabaseChange:=AValue;
  1925. MarkPropertyChanged(AIndex);
  1926. end;
  1927. Procedure TPawsVerifyDeviceResponse.SetdeviceValidities(AIndex : Integer; const AValue : TPawsVerifyDeviceResponseTypedeviceValiditiesArray);
  1928. begin
  1929. If (FdeviceValidities=AValue) then exit;
  1930. FdeviceValidities:=AValue;
  1931. MarkPropertyChanged(AIndex);
  1932. end;
  1933. Procedure TPawsVerifyDeviceResponse.Setkind(AIndex : Integer; const AValue : String);
  1934. begin
  1935. If (Fkind=AValue) then exit;
  1936. Fkind:=AValue;
  1937. MarkPropertyChanged(AIndex);
  1938. end;
  1939. Procedure TPawsVerifyDeviceResponse.Set_type(AIndex : Integer; const AValue : String);
  1940. begin
  1941. If (F_type=AValue) then exit;
  1942. F_type:=AValue;
  1943. MarkPropertyChanged(AIndex);
  1944. end;
  1945. Procedure TPawsVerifyDeviceResponse.Setversion(AIndex : Integer; const AValue : String);
  1946. begin
  1947. If (Fversion=AValue) then exit;
  1948. Fversion:=AValue;
  1949. MarkPropertyChanged(AIndex);
  1950. end;
  1951. Class Function TPawsVerifyDeviceResponse.ExportPropertyName(Const AName : String) :String;
  1952. begin
  1953. Case AName of
  1954. '_type' : Result:='type';
  1955. else
  1956. Result:=Inherited ExportPropertyName(AName);
  1957. end;
  1958. end;
  1959. //2.6.4. bug workaround
  1960. {$IFDEF VER2_6}
  1961. Procedure TPawsVerifyDeviceResponse.SetArrayLength(Const AName : String; ALength : Longint);
  1962. begin
  1963. Case AName of
  1964. 'devicevalidities' : SetLength(FdeviceValidities,ALength);
  1965. else
  1966. Inherited SetArrayLength(AName,ALength);
  1967. end;
  1968. end;
  1969. {$ENDIF VER2_6}
  1970. { --------------------------------------------------------------------
  1971. TRulesetInfo
  1972. --------------------------------------------------------------------}
  1973. Procedure TRulesetInfo.Setauthority(AIndex : Integer; const AValue : String);
  1974. begin
  1975. If (Fauthority=AValue) then exit;
  1976. Fauthority:=AValue;
  1977. MarkPropertyChanged(AIndex);
  1978. end;
  1979. Procedure TRulesetInfo.SetmaxLocationChange(AIndex : Integer; const AValue : double);
  1980. begin
  1981. If (FmaxLocationChange=AValue) then exit;
  1982. FmaxLocationChange:=AValue;
  1983. MarkPropertyChanged(AIndex);
  1984. end;
  1985. Procedure TRulesetInfo.SetmaxPollingSecs(AIndex : Integer; const AValue : integer);
  1986. begin
  1987. If (FmaxPollingSecs=AValue) then exit;
  1988. FmaxPollingSecs:=AValue;
  1989. MarkPropertyChanged(AIndex);
  1990. end;
  1991. Procedure TRulesetInfo.SetrulesetIds(AIndex : Integer; const AValue : TStringArray);
  1992. begin
  1993. If (FrulesetIds=AValue) then exit;
  1994. FrulesetIds:=AValue;
  1995. MarkPropertyChanged(AIndex);
  1996. end;
  1997. //2.6.4. bug workaround
  1998. {$IFDEF VER2_6}
  1999. Procedure TRulesetInfo.SetArrayLength(Const AName : String; ALength : Longint);
  2000. begin
  2001. Case AName of
  2002. 'rulesetids' : SetLength(FrulesetIds,ALength);
  2003. else
  2004. Inherited SetArrayLength(AName,ALength);
  2005. end;
  2006. end;
  2007. {$ENDIF VER2_6}
  2008. { --------------------------------------------------------------------
  2009. TSpectrumMessage
  2010. --------------------------------------------------------------------}
  2011. Procedure TSpectrumMessage.Setbandwidth(AIndex : Integer; const AValue : double);
  2012. begin
  2013. If (Fbandwidth=AValue) then exit;
  2014. Fbandwidth:=AValue;
  2015. MarkPropertyChanged(AIndex);
  2016. end;
  2017. Procedure TSpectrumMessage.SetfrequencyRanges(AIndex : Integer; const AValue : TSpectrumMessageTypefrequencyRangesArray);
  2018. begin
  2019. If (FfrequencyRanges=AValue) then exit;
  2020. FfrequencyRanges:=AValue;
  2021. MarkPropertyChanged(AIndex);
  2022. end;
  2023. //2.6.4. bug workaround
  2024. {$IFDEF VER2_6}
  2025. Procedure TSpectrumMessage.SetArrayLength(Const AName : String; ALength : Longint);
  2026. begin
  2027. Case AName of
  2028. 'frequencyranges' : SetLength(FfrequencyRanges,ALength);
  2029. else
  2030. Inherited SetArrayLength(AName,ALength);
  2031. end;
  2032. end;
  2033. {$ENDIF VER2_6}
  2034. { --------------------------------------------------------------------
  2035. TSpectrumSchedule
  2036. --------------------------------------------------------------------}
  2037. Procedure TSpectrumSchedule.SeteventTime(AIndex : Integer; const AValue : TEventTime);
  2038. begin
  2039. If (FeventTime=AValue) then exit;
  2040. FeventTime:=AValue;
  2041. MarkPropertyChanged(AIndex);
  2042. end;
  2043. Procedure TSpectrumSchedule.Setspectra(AIndex : Integer; const AValue : TSpectrumScheduleTypespectraArray);
  2044. begin
  2045. If (Fspectra=AValue) then exit;
  2046. Fspectra:=AValue;
  2047. MarkPropertyChanged(AIndex);
  2048. end;
  2049. //2.6.4. bug workaround
  2050. {$IFDEF VER2_6}
  2051. Procedure TSpectrumSchedule.SetArrayLength(Const AName : String; ALength : Longint);
  2052. begin
  2053. Case AName of
  2054. 'spectra' : SetLength(Fspectra,ALength);
  2055. else
  2056. Inherited SetArrayLength(AName,ALength);
  2057. end;
  2058. end;
  2059. {$ENDIF VER2_6}
  2060. { --------------------------------------------------------------------
  2061. TVcard
  2062. --------------------------------------------------------------------}
  2063. Procedure TVcard.Setadr(AIndex : Integer; const AValue : TVcardAddress);
  2064. begin
  2065. If (Fadr=AValue) then exit;
  2066. Fadr:=AValue;
  2067. MarkPropertyChanged(AIndex);
  2068. end;
  2069. Procedure TVcard.Setemail(AIndex : Integer; const AValue : TVcardTypedText);
  2070. begin
  2071. If (Femail=AValue) then exit;
  2072. Femail:=AValue;
  2073. MarkPropertyChanged(AIndex);
  2074. end;
  2075. Procedure TVcard.Setfn(AIndex : Integer; const AValue : String);
  2076. begin
  2077. If (Ffn=AValue) then exit;
  2078. Ffn:=AValue;
  2079. MarkPropertyChanged(AIndex);
  2080. end;
  2081. Procedure TVcard.Setorg(AIndex : Integer; const AValue : TVcardTypedText);
  2082. begin
  2083. If (Forg=AValue) then exit;
  2084. Forg:=AValue;
  2085. MarkPropertyChanged(AIndex);
  2086. end;
  2087. Procedure TVcard.Settel(AIndex : Integer; const AValue : TVcardTelephone);
  2088. begin
  2089. If (Ftel=AValue) then exit;
  2090. Ftel:=AValue;
  2091. MarkPropertyChanged(AIndex);
  2092. end;
  2093. { --------------------------------------------------------------------
  2094. TVcardAddress
  2095. --------------------------------------------------------------------}
  2096. Procedure TVcardAddress.Setcode(AIndex : Integer; const AValue : String);
  2097. begin
  2098. If (Fcode=AValue) then exit;
  2099. Fcode:=AValue;
  2100. MarkPropertyChanged(AIndex);
  2101. end;
  2102. Procedure TVcardAddress.Setcountry(AIndex : Integer; const AValue : String);
  2103. begin
  2104. If (Fcountry=AValue) then exit;
  2105. Fcountry:=AValue;
  2106. MarkPropertyChanged(AIndex);
  2107. end;
  2108. Procedure TVcardAddress.Setlocality(AIndex : Integer; const AValue : String);
  2109. begin
  2110. If (Flocality=AValue) then exit;
  2111. Flocality:=AValue;
  2112. MarkPropertyChanged(AIndex);
  2113. end;
  2114. Procedure TVcardAddress.Setpobox(AIndex : Integer; const AValue : String);
  2115. begin
  2116. If (Fpobox=AValue) then exit;
  2117. Fpobox:=AValue;
  2118. MarkPropertyChanged(AIndex);
  2119. end;
  2120. Procedure TVcardAddress.Setregion(AIndex : Integer; const AValue : String);
  2121. begin
  2122. If (Fregion=AValue) then exit;
  2123. Fregion:=AValue;
  2124. MarkPropertyChanged(AIndex);
  2125. end;
  2126. Procedure TVcardAddress.Setstreet(AIndex : Integer; const AValue : String);
  2127. begin
  2128. If (Fstreet=AValue) then exit;
  2129. Fstreet:=AValue;
  2130. MarkPropertyChanged(AIndex);
  2131. end;
  2132. { --------------------------------------------------------------------
  2133. TVcardTelephone
  2134. --------------------------------------------------------------------}
  2135. Procedure TVcardTelephone.Seturi(AIndex : Integer; const AValue : String);
  2136. begin
  2137. If (Furi=AValue) then exit;
  2138. Furi:=AValue;
  2139. MarkPropertyChanged(AIndex);
  2140. end;
  2141. { --------------------------------------------------------------------
  2142. TVcardTypedText
  2143. --------------------------------------------------------------------}
  2144. Procedure TVcardTypedText.Settext(AIndex : Integer; const AValue : String);
  2145. begin
  2146. If (Ftext=AValue) then exit;
  2147. Ftext:=AValue;
  2148. MarkPropertyChanged(AIndex);
  2149. end;
  2150. { --------------------------------------------------------------------
  2151. TPawsResource
  2152. --------------------------------------------------------------------}
  2153. Class Function TPawsResource.ResourceName : String;
  2154. begin
  2155. Result:='paws';
  2156. end;
  2157. Class Function TPawsResource.DefaultAPI : TGoogleAPIClass;
  2158. begin
  2159. Result:=TspectrumAPI;
  2160. end;
  2161. Function TPawsResource.GetSpectrum(aPawsGetSpectrumRequest : TPawsGetSpectrumRequest) : TPawsGetSpectrumResponse;
  2162. Const
  2163. _HTTPMethod = 'POST';
  2164. _Path = 'getSpectrum';
  2165. _Methodid = 'spectrum.paws.getSpectrum';
  2166. begin
  2167. Result:=ServiceCall(_HTTPMethod,_Path,'',aPawsGetSpectrumRequest,TPawsGetSpectrumResponse) as TPawsGetSpectrumResponse;
  2168. end;
  2169. Function TPawsResource.GetSpectrumBatch(aPawsGetSpectrumBatchRequest : TPawsGetSpectrumBatchRequest) : TPawsGetSpectrumBatchResponse;
  2170. Const
  2171. _HTTPMethod = 'POST';
  2172. _Path = 'getSpectrumBatch';
  2173. _Methodid = 'spectrum.paws.getSpectrumBatch';
  2174. begin
  2175. Result:=ServiceCall(_HTTPMethod,_Path,'',aPawsGetSpectrumBatchRequest,TPawsGetSpectrumBatchResponse) as TPawsGetSpectrumBatchResponse;
  2176. end;
  2177. Function TPawsResource.Init(aPawsInitRequest : TPawsInitRequest) : TPawsInitResponse;
  2178. Const
  2179. _HTTPMethod = 'POST';
  2180. _Path = 'init';
  2181. _Methodid = 'spectrum.paws.init';
  2182. begin
  2183. Result:=ServiceCall(_HTTPMethod,_Path,'',aPawsInitRequest,TPawsInitResponse) as TPawsInitResponse;
  2184. end;
  2185. Function TPawsResource.NotifySpectrumUse(aPawsNotifySpectrumUseRequest : TPawsNotifySpectrumUseRequest) : TPawsNotifySpectrumUseResponse;
  2186. Const
  2187. _HTTPMethod = 'POST';
  2188. _Path = 'notifySpectrumUse';
  2189. _Methodid = 'spectrum.paws.notifySpectrumUse';
  2190. begin
  2191. Result:=ServiceCall(_HTTPMethod,_Path,'',aPawsNotifySpectrumUseRequest,TPawsNotifySpectrumUseResponse) as TPawsNotifySpectrumUseResponse;
  2192. end;
  2193. Function TPawsResource.Register(aPawsRegisterRequest : TPawsRegisterRequest) : TPawsRegisterResponse;
  2194. Const
  2195. _HTTPMethod = 'POST';
  2196. _Path = 'register';
  2197. _Methodid = 'spectrum.paws.register';
  2198. begin
  2199. Result:=ServiceCall(_HTTPMethod,_Path,'',aPawsRegisterRequest,TPawsRegisterResponse) as TPawsRegisterResponse;
  2200. end;
  2201. Function TPawsResource.VerifyDevice(aPawsVerifyDeviceRequest : TPawsVerifyDeviceRequest) : TPawsVerifyDeviceResponse;
  2202. Const
  2203. _HTTPMethod = 'POST';
  2204. _Path = 'verifyDevice';
  2205. _Methodid = 'spectrum.paws.verifyDevice';
  2206. begin
  2207. Result:=ServiceCall(_HTTPMethod,_Path,'',aPawsVerifyDeviceRequest,TPawsVerifyDeviceResponse) as TPawsVerifyDeviceResponse;
  2208. end;
  2209. { --------------------------------------------------------------------
  2210. TSpectrumAPI
  2211. --------------------------------------------------------------------}
  2212. Class Function TSpectrumAPI.APIName : String;
  2213. begin
  2214. Result:='spectrum';
  2215. end;
  2216. Class Function TSpectrumAPI.APIVersion : String;
  2217. begin
  2218. Result:='v1explorer';
  2219. end;
  2220. Class Function TSpectrumAPI.APIRevision : String;
  2221. begin
  2222. Result:='20160404';
  2223. end;
  2224. Class Function TSpectrumAPI.APIID : String;
  2225. begin
  2226. Result:='spectrum:v1explorer';
  2227. end;
  2228. Class Function TSpectrumAPI.APITitle : String;
  2229. begin
  2230. Result:='Google Spectrum Database API';
  2231. end;
  2232. Class Function TSpectrumAPI.APIDescription : String;
  2233. begin
  2234. Result:='API for spectrum-management functions.';
  2235. end;
  2236. Class Function TSpectrumAPI.APIOwnerDomain : String;
  2237. begin
  2238. Result:='google.com';
  2239. end;
  2240. Class Function TSpectrumAPI.APIOwnerName : String;
  2241. begin
  2242. Result:='Google';
  2243. end;
  2244. Class Function TSpectrumAPI.APIIcon16 : String;
  2245. begin
  2246. Result:='http://www.google.com/images/icons/product/search-16.gif';
  2247. end;
  2248. Class Function TSpectrumAPI.APIIcon32 : String;
  2249. begin
  2250. Result:='http://www.google.com/images/icons/product/search-32.gif';
  2251. end;
  2252. Class Function TSpectrumAPI.APIdocumentationLink : String;
  2253. begin
  2254. Result:='http://developers.google.com/spectrum';
  2255. end;
  2256. Class Function TSpectrumAPI.APIrootUrl : string;
  2257. begin
  2258. Result:='https://www.googleapis.com/';
  2259. end;
  2260. Class Function TSpectrumAPI.APIbasePath : string;
  2261. begin
  2262. Result:='/spectrum/v1explorer/paws/';
  2263. end;
  2264. Class Function TSpectrumAPI.APIbaseURL : String;
  2265. begin
  2266. Result:='https://www.googleapis.com/spectrum/v1explorer/paws/';
  2267. end;
  2268. Class Function TSpectrumAPI.APIProtocol : string;
  2269. begin
  2270. Result:='rest';
  2271. end;
  2272. Class Function TSpectrumAPI.APIservicePath : string;
  2273. begin
  2274. Result:='spectrum/v1explorer/paws/';
  2275. end;
  2276. Class Function TSpectrumAPI.APIbatchPath : String;
  2277. begin
  2278. Result:='batch';
  2279. end;
  2280. Class Function TSpectrumAPI.APIAuthScopes : TScopeInfoArray;
  2281. begin
  2282. SetLength(Result,0);
  2283. end;
  2284. Class Function TSpectrumAPI.APINeedsAuth : Boolean;
  2285. begin
  2286. Result:=False;
  2287. end;
  2288. Class Procedure TSpectrumAPI.RegisterAPIResources;
  2289. begin
  2290. TAntennaCharacteristics.RegisterObject;
  2291. TDatabaseSpec.RegisterObject;
  2292. TDbUpdateSpec.RegisterObject;
  2293. TDeviceCapabilities.RegisterObject;
  2294. TDeviceDescriptor.RegisterObject;
  2295. TDeviceOwner.RegisterObject;
  2296. TDeviceValidity.RegisterObject;
  2297. TEventTime.RegisterObject;
  2298. TFrequencyRange.RegisterObject;
  2299. TGeoLocation.RegisterObject;
  2300. TGeoLocationEllipse.RegisterObject;
  2301. TGeoLocationPoint.RegisterObject;
  2302. TGeoLocationPolygon.RegisterObject;
  2303. TGeoSpectrumSchedule.RegisterObject;
  2304. TPawsGetSpectrumBatchRequest.RegisterObject;
  2305. TPawsGetSpectrumBatchResponse.RegisterObject;
  2306. TPawsGetSpectrumRequest.RegisterObject;
  2307. TPawsGetSpectrumResponse.RegisterObject;
  2308. TPawsInitRequest.RegisterObject;
  2309. TPawsInitResponse.RegisterObject;
  2310. TPawsNotifySpectrumUseRequest.RegisterObject;
  2311. TPawsNotifySpectrumUseResponse.RegisterObject;
  2312. TPawsRegisterRequest.RegisterObject;
  2313. TPawsRegisterResponse.RegisterObject;
  2314. TPawsVerifyDeviceRequest.RegisterObject;
  2315. TPawsVerifyDeviceResponse.RegisterObject;
  2316. TRulesetInfo.RegisterObject;
  2317. TSpectrumMessage.RegisterObject;
  2318. TSpectrumSchedule.RegisterObject;
  2319. TVcard.RegisterObject;
  2320. TVcardAddress.RegisterObject;
  2321. TVcardTelephone.RegisterObject;
  2322. TVcardTypedText.RegisterObject;
  2323. end;
  2324. Function TSpectrumAPI.GetPawsInstance : TPawsResource;
  2325. begin
  2326. if (FPawsInstance=Nil) then
  2327. FPawsInstance:=CreatePawsResource;
  2328. Result:=FPawsInstance;
  2329. end;
  2330. Function TSpectrumAPI.CreatePawsResource : TPawsResource;
  2331. begin
  2332. Result:=CreatePawsResource(Self);
  2333. end;
  2334. Function TSpectrumAPI.CreatePawsResource(AOwner : TComponent) : TPawsResource;
  2335. begin
  2336. Result:=TPawsResource.Create(AOwner);
  2337. Result.API:=Self.API;
  2338. end;
  2339. initialization
  2340. TSpectrumAPI.RegisterAPI;
  2341. end.