/* Ġown Cloud ĠAndroid ĠLibrary Ġis Ġavailable Ġunder ĠMIT Ġlicense Ċ Ġ* ĠĠ Ġ@ author ĠAb el ĠG arc ÃŃa Ġde ĠP rada Ċ Ġ* ĠĠ ĠCopyright Ġ( C ) Ġ 2 0 2 0 Ġown Cloud ĠGmbH . Ċ Ġ* Ċ Ġ* ĠĠ ĠPermission Ġis Ġhereby Ġgranted , Ġfree Ġof Ġcharge , Ġto Ġany Ġperson Ġobtaining Ġa Ġcopy Ċ Ġ* ĠĠ Ġof Ġthis Ġsoftware Ġand Ġassociated Ġdocumentation Ġfiles Ġ( the Ġ" Software "), Ġto Ġdeal Ċ Ġ* ĠĠ Ġin Ġthe ĠSoftware Ġwithout Ġrestriction , Ġincluding Ġwithout Ġlimitation Ġthe Ġrights Ċ Ġ* ĠĠ Ġto Ġuse , Ġcopy , Ġmodify , Ġmerge , Ġpublish , Ġdistribute , Ġsublicense , Ġand / or Ġsell Ċ Ġ* ĠĠ Ġcopies Ġof Ġthe ĠSoftware , Ġand Ġto Ġpermit Ġpersons Ġto Ġwhom Ġthe ĠSoftware Ġis Ċ Ġ* ĠĠ Ġfurnished Ġto Ġdo Ġso , Ġsubject Ġto Ġthe Ġfollowing Ġconditions : Ċ Ġ* Ċ Ġ* ĠĠ ĠThe Ġabove Ġcopyright Ġnotice Ġand Ġthis Ġpermission Ġnotice Ġshall Ġbe Ġincluded Ġin Ċ Ġ* ĠĠ Ġall Ġcopies Ġor Ġsubstantial Ġportions Ġof Ġthe ĠSoftware . Ċ Ġ* Ċ Ġ* ĠĠ ĠTHE ĠSOFTWARE ĠIS ĠPROVIDED Ġ" AS ĠIS ", ĠWITHOUT ĠWARRANTY ĠOF ĠANY ĠKIND , Ċ Ġ* ĠĠ ĠEXPRESS ĠOR ĠIMPLIED , ĠINCLUDING ĠBUT ĠNOT ĠLIMITED ĠTO ĠTHE ĠWARRANTIES ĠOF Ċ Ġ* ĠĠ ĠMERCHANTABILITY , ĠFITNESS ĠFOR ĠA ĠPARTICULAR ĠPURPOSE ĠAND Ċ Ġ* ĠĠ ĠNONINFRINGEMENT . ĠIN ĠNO ĠEVENT ĠSHALL ĠTHE ĠAUTHORS ĠOR ĠCOPYRIGHT ĠHOLDERS Ċ Ġ* ĠĠ ĠBE ĠLIABLE ĠFOR ĠANY ĠCLAIM , ĠDAMAGES ĠOR ĠOTHER ĠLIABILITY , ĠWHETHER ĠIN ĠAN Ċ Ġ* ĠĠ ĠACTION ĠOF ĠCONTRACT , ĠTORT ĠOR ĠOTHERWISE , ĠARISING ĠFROM , ĠOUT ĠOF ĠOR ĠIN Ċ Ġ* ĠĠ ĠCONNECTION ĠWITH ĠTHE ĠSOFTWARE ĠOR ĠTHE ĠUSE ĠOR ĠOTHER ĠDEALINGS ĠIN Ċ Ġ* ĠĠ ĠTHE ĠSOFTWARE . Ċ Ġ* Ċ Ġ*/ Ċ package Ġcom . own cloud . android . lib . resources . status . responses Ċ Ċ import Ġcom . own cloud . android . lib . resources . status . Remote Capability Ċ import Ġcom . own cloud . android . lib . resources . status . Remote Capability . Capability Boolean Type Ċ import Ġcom . squareup . mos hi . Json Ċ import Ġcom . squareup . mos hi . Json Class Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠCap ability Response ( ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" version ") ĊĠĠĠ Ġval Ġserver Version : ĠServer Version ?, ĊĠĠĠ Ġval Ġcapabilities : ĠCap abilities ? Ċ ) Ġ{ ĊĠĠĠ Ġfun Ġto Remote Capability (): ĠRemote Capability Ġ= ĠRemote Capability ( ĊĠĠĠĠĠĠĠ Ġversion May or Ġ= Ġserver Version ?. major Ġ?: Ġ 0 , ĊĠĠĠĠĠĠĠ Ġversion Minor Ġ= Ġserver Version ?. minor Ġ?: Ġ 0 , ĊĠĠĠĠĠĠĠ Ġversion Micro Ġ= Ġserver Version ?. micro Ġ?: Ġ 0 , ĊĠĠĠĠĠĠĠ Ġversion String Ġ= Ġserver Version ?. string Ġ?: Ġ"", ĊĠĠĠĠĠĠĠ Ġversion Edition Ġ= Ġserver Version ?. edition Ġ?: Ġ"", ĊĠĠĠĠĠĠĠ Ġcore Poll interval Ġ= Ġcapabilities ?. core Capabilities ?. poll interval Ġ?: Ġ 0 , ĊĠĠĠĠĠĠĠ Ġchunk ing Version Ġ= Ġcapabilities ?. dav Capabilities ?. chunk ing Ġ?: Ġ"", ĊĠĠĠĠĠĠĠ Ġfiles Sharing Api Enabled Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Api Enabled ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Res h aring Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Re Sharing ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Enabled Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Public ?. enabled ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Upload Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Upload ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Supports Upload Only Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Upload Only ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Multiple Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Multiple ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Password En forced Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Password ?. en forced ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Password En forced ReadOnly Ġ= ĠCap ability Boolean Type . from Boolean Value ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcapabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Password ?. en forced For ?. en forced ReadOnly ĊĠĠĠĠĠĠĠ Ġ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Password En forced ReadWrite Ġ= ĠCap ability Boolean Type . from Boolean Value ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcapabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Password ?. en forced For ?. en forced ReadWrite ĊĠĠĠĠĠĠĠ Ġ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Password En forced Upload Only Ġ= ĠCap ability Boolean Type . from Boolean Value ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcapabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Password ?. en forced For ?. en forced Upload Only ĊĠĠĠĠĠĠĠ Ġ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Expire Date Enabled Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Expire Date ?. enabled ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Expire Date Days Ġ= Ġcapabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Expire Date ?. days ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ?: Ġ 0 , ĊĠĠĠĠĠĠĠ Ġfiles Sharing Public Expire Date En forced Ġ= ĠCap ability Boolean Type . from Boolean Value ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcapabilities ?. file Sharing Capabilities ?. file Sharing Public ?. file Sharing Public Expire Date ?. en forced ĊĠĠĠĠĠĠĠ Ġ), ĊĠĠĠĠĠĠĠ Ġfiles Big File Chunk ing Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Capabilities ?. big file chunk ing ), ĊĠĠĠĠĠĠĠ Ġfiles Un delete Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Capabilities ?. un delete ), ĊĠĠĠĠĠĠĠ Ġfiles Version ing Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Capabilities ?. version ing ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Federation Incoming Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Federation ?. incoming ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing Federation Outgoing Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing Federation ?. outgoing ), ĊĠĠĠĠĠĠĠ Ġfiles Sharing UserProfile Picture Ġ= ĠCap ability Boolean Type . from Boolean Value ( capabilities ?. file Sharing Capabilities ?. file Sharing User ?. profile Picture ), ĊĠĠĠ Ġ) Ċ } Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠCap abilities ( ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" core ") ĊĠĠĠ Ġval Ġcore Capabilities : ĠCore Capabilities ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" files _ sharing ") ĊĠĠĠ Ġval Ġfile Sharing Capabilities : ĠFile Sharing Capabilities ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" files ") ĊĠĠĠ Ġval Ġfile Capabilities : ĠFile Capabilities ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" dav ") ĊĠĠĠ Ġval Ġd av Capabilities : ĠD av Capabilities ? Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠCore Capabilities ( ĊĠĠĠ Ġval Ġpoll interval : ĠInt ? Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠFile Sharing Capabilities ( ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" api _ enabled ") ĊĠĠĠ Ġval Ġfile Sharing Api Enabled : ĠBoolean ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" public ") ĊĠĠĠ Ġval Ġfile Sharing Public : ĠFile Sharing Public ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" resh aring ") ĊĠĠĠ Ġval Ġfile Sharing Re Sharing : ĠBoolean ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" fed eration ") ĊĠĠĠ Ġval Ġfile Sharing Federation : ĠFile Sharing Federation ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" user ") ĊĠĠĠ Ġval Ġfile Sharing User : ĠFile Sharing User ?, Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠFile Sharing Public ( ĊĠĠĠ Ġval Ġenabled : ĠBoolean ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" upload ") ĊĠĠĠ Ġval Ġfile Sharing Public Upload : ĠBoolean ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" supports _ upload _ only ") ĊĠĠĠ Ġval Ġfile Sharing Public Upload Only : ĠBoolean ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" multiple ") ĊĠĠĠ Ġval Ġfile Sharing Public Multiple : ĠBoolean ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" password ") ĊĠĠĠ Ġval Ġfile Sharing Public Password : ĠFile Sharing Public Password ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" expire _ date ") ĊĠĠĠ Ġval Ġfile Sharing Public Expire Date : ĠFile Sharing Public Expire Date ? Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠFile Sharing Public Password ( ĊĠĠĠ Ġval Ġen forced : ĠBoolean ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" en forced _ for ") ĊĠĠĠ Ġval Ġen forced For : ĠFile Sharing Public Password En forced ? Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠFile Sharing Public Password En forced ( ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" read _ only ") ĊĠĠĠ Ġval Ġen forced ReadOnly : ĠBoolean ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" read _ write ") ĊĠĠĠ Ġval Ġen forced ReadWrite : ĠBoolean ?, ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" upload _ only ") ĊĠĠĠ Ġval Ġen forced Upload Only : ĠBoolean ? Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠFile Sharing Public Expire Date ( ĊĠĠĠ Ġval Ġenabled : ĠBoolean ?, ĊĠĠĠ Ġval Ġdays : ĠInt ?, ĊĠĠĠ Ġval Ġen forced : ĠBoolean ? Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠFile Sharing Federation ( ĊĠĠĠ Ġval Ġincoming : ĠBoolean ?, ĊĠĠĠ Ġval Ġoutgoing : ĠBoolean ? Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠFile Sharing User ( ĊĠĠĠ Ġ@ Json ( name Ġ= Ġ" profile _ picture ") ĊĠĠĠ Ġval Ġprofile Picture : ĠBoolean ?, Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠFile Capabilities ( ĊĠĠĠ Ġval Ġbig file chunk ing : ĠBoolean ?, ĊĠĠĠ Ġval Ġun delete : ĠBoolean ?, ĊĠĠĠ Ġval Ġversioning : ĠBoolean ? Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠD av Capabilities ( ĊĠĠĠ Ġval Ġchunk ing : ĠString ? Ċ ) Ċ Ċ @ Json Class ( generate Adapter Ġ= Ġtrue ) Ċ data Ġclass ĠServer Version ( ĊĠĠĠ Ġvar Ġmajor : ĠInt ?, ĊĠĠĠ Ġvar Ġminor : ĠInt ?, ĊĠĠĠ Ġvar Ġmicro : ĠInt ?, ĊĠĠĠ Ġvar Ġstring : ĠString ?, ĊĠĠĠ Ġvar Ġedition : ĠString ? Ċ ) Ċ