package Ġcom . example . astro bin . api Ċ Ċ import Ġcom . squareup . mos hi . Json Ċ Ċ data Ġclass ĠAst ro Image ( ĊĠ Ġ@ field : Json ( name =" id ") Ġval Ġid : ĠInt , ĊĠ Ġ@ field : Json ( name =" hash ") Ġval Ġhash : ĠString ?, ĊĠ Ġ@ field : Json ( name =" title ") Ġval Ġtitle : ĠString ?, ĊĠ Ġ@ field : Json ( name =" user ") Ġval Ġuser : ĠString , Ġ// Ġusername ĊĊĠ Ġ// Ġdates ĊĠ Ġ@ field : Json ( name =" published ") Ġval Ġpublished : ĠString , ĊĠ Ġ@ field : Json ( name =" updated ") Ġval Ġupdated : ĠString , ĊĠ Ġ@ field : Json ( name =" uploaded ") Ġval Ġuploaded : ĠString , ĊĊĠ Ġ// Ġast rome try ĊĠ Ġ@ field : Json ( name =" is _ solved ") Ġval Ġis _ solved : ĠBoolean , ĊĠ Ġ@ field : Json ( name =" solution _ status ") Ġval Ġsolution _ status : ĠString , ĊĠ Ġ@ field : Json ( name =" ra ") Ġval Ġra : ĠString ?, Ġ// Ġfloat ĊĠ Ġ@ field : Json ( name =" dec ") Ġval Ġdec : ĠString ?, Ġ// ĠFloat ĊĠ Ġ@ field : Json ( name =" pix scale ") Ġval Ġpix scale : ĠString ?, Ġ// ĠFloat ĊĠ Ġ@ field : Json ( name =" radius ") Ġval Ġradius : ĠString ?, Ġ// Ġfloat ĊĠ Ġ@ field : Json ( name =" orientation ") Ġval Ġorientation : ĠString ?, Ġ// ĠFloat ĊĠ Ġ@ field : Json ( name =" w ") Ġval Ġw : ĠInt , ĊĠ Ġ@ field : Json ( name =" h ") Ġval Ġh : ĠInt , ĊĊĠ Ġ// Ġimages ĊĠ Ġ@ field : Json ( name =" url _ advanced _ solution ") Ġval Ġurl _ advanced _ solution : ĠString ?, ĊĠ Ġ@ field : Json ( name =" url _ duck duck go ") Ġval Ġurl _ duck duck go : ĠString , ĊĠ Ġ@ field : Json ( name =" url _ duck duck go _ small ") Ġval Ġurl _ duck duck go _ small : ĠString , ĊĠ Ġ@ field : Json ( name =" url _ gallery ") Ġval Ġurl _ gallery : ĠString , ĊĠ Ġ@ field : Json ( name =" url _ hd ") Ġval Ġurl _ hd : ĠString , ĊĠ Ġ@ field : Json ( name =" url _ histogram ") Ġval Ġurl _ histogram : ĠString , ĊĠ Ġ@ field : Json ( name =" url _ real ") Ġval Ġurl _ real : ĠString , ĊĠ Ġ@ field : Json ( name =" url _ regular ") Ġval Ġurl _ regular : ĠString , ĊĠ Ġ@ field : Json ( name =" url _ sky plot ") Ġval Ġurl _ sky plot : ĠString ?, ĊĠ Ġ@ field : Json ( name =" url _ solution ") Ġval Ġurl _ solution : ĠString ?, ĊĠ Ġ@ field : Json ( name =" url _ thumb ") Ġval Ġurl _ thumb : ĠString , ĊĊĠ Ġ// Ġstatistics ĊĠ Ġ@ field : Json ( name =" comments ") Ġval Ġcomments : ĠInt , ĊĠ Ġ@ field : Json ( name =" likes ") Ġval Ġlikes : ĠInt , ĊĠ Ġ@ field : Json ( name =" views ") Ġval Ġviews : ĠInt , ĊĊĠ Ġ// Ġtechnical Ġcard ĊĠ Ġ@ field : Json ( name =" im aging _ cam eras ") Ġval Ġim aging _ cam eras : ĠList < String >, ĊĠ Ġ@ field : Json ( name =" im aging _ te les copes ") Ġval Ġim aging _ te les copes : ĠList < String >, ĊĠ Ġ@ field : Json ( name =" data _ source ") Ġval Ġdata _ source : ĠString , ĊĠ Ġ@ field : Json ( name =" locations ") Ġval Ġlocations : ĠList < String >, ĊĠ Ġ@ field : Json ( name =" remote _ source ") Ġval Ġremote _ source : ĠString ?, ĊĠ Ġ@ field : Json ( name =" subjects ") Ġval Ġsubjects : ĠList < String >, ĊĊĠ Ġ// Ġother ĊĠ Ġ@ field : Json ( name =" animated ") Ġval Ġanimated : ĠBoolean , ĊĠ Ġ@ field : Json ( name =" bookmarks ") Ġval Ġbook marks : ĠInt , ĊĠ Ġ@ field : Json ( name =" is _ final ") Ġval Ġis _ final : ĠBoolean , ĊĠ Ġ@ field : Json ( name =" license ") Ġval Ġlicense : ĠInt , ĊĠ Ġ@ field : Json ( name =" license _ name ") Ġval Ġlicense _ name : ĠString , ĊĠ Ġ@ field : Json ( name =" link ") Ġval Ġlink : ĠString ?, ĊĠ Ġ@ field : Json ( name =" link _ to _ fits ") Ġval Ġlink _ to _ fits : ĠString ?, ĊĠ Ġ@ field : Json ( name =" resource _ uri ") Ġval Ġresource _ uri : ĠString , ĊĠ Ġ@ field : Json ( name =" revisions ") Ġval Ġrevisions : ĠList < String >, Ċ ) Ġ{ ĊĠ Ġval Ġaspect Ratio : ĠFloat Ġget () Ġ= Ġw . toFloat () Ġ/ Ġh . toFloat () Ċ } Ċ Ċ data Ġclass ĠAst ro Image V 2 ( ĊĠ Ġ@ field : Json ( name =" pk ") Ġval Ġpk : ĠInt , ĊĠ Ġ@ field : Json ( name =" user ") Ġval Ġuser : ĠInt , ĊĠ Ġ@ field : Json ( name =" hash ") Ġval Ġhash : ĠString , ĊĠ Ġ@ field : Json ( name =" title ") Ġval Ġtitle : ĠString , ĊĠ Ġ@ field : Json ( name =" image File ") Ġval Ġimage File : ĠString ?, ĊĠ Ġ@ field : Json ( name =" is W ip ") Ġval Ġis W ip : ĠBoolean , ĊĠ Ġ@ field : Json ( name =" skip Notifications ") Ġval Ġskip Notifications : ĠBoolean , ĊĠ Ġ@ field : Json ( name =" w ") Ġval Ġw : ĠInt , ĊĠ Ġ@ field : Json ( name =" h ") Ġval Ġh : ĠInt , ĊĠ Ġ@ field : Json ( name =" im aging Te les copes ") Ġval Ġim aging Te les copes : ĠList < Ast ro Product >, ĊĠ Ġ@ field : Json ( name =" im aging Cam eras ") Ġval Ġim aging Cam eras : ĠList < Ast ro Product >, ĊĠ Ġ@ field : Json ( name =" guid ing Te les copes ") Ġval Ġguid ing Te les copes : ĠList < Ast ro Product >, ĊĠ Ġ@ field : Json ( name =" guid ing Cam eras ") Ġval Ġguid ing Cam eras : ĠList < Ast ro Product >, ĊĠ Ġ@ field : Json ( name =" focal Reducers ") Ġval Ġf ocal Reducers : ĠList < Ast ro Product >, ĊĠ Ġ@ field : Json ( name =" mount s ") Ġval Ġmount s : ĠList < Ast ro Product >, ĊĠ Ġ@ field : Json ( name =" access ories ") Ġval Ġaccess ories : ĠList < Ast ro Product >, ĊĠ Ġ@ field : Json ( name =" software ") Ġval Ġsoftware : ĠList < Ast ro Product >, Ċ // Ġ Ġ@ field : Json ( name =" im aging Te les copes 2 ") Ġval Ġim aging Te les copes 2 : ĠList < Te lescope Interface 2 >, Ċ // Ġ Ġ@ field : Json ( name =" im aging Cam eras 2 ") Ġval Ġim aging Cam eras 2 : ĠList < Camera Interface 2 >, Ċ // Ġ Ġ@ field : Json ( name =" guid ing Te les copes 2 ") Ġval Ġguid ing Te les copes 2 : ĠList < Te lescope Interface 2 >, Ċ // Ġ Ġ@ field : Json ( name =" guid ing Cam eras 2 ") Ġval Ġguid ing Cam eras 2 : ĠList < Camera Interface 2 >, Ċ // Ġ Ġ@ field : Json ( name =" mount s 2 ") Ġval Ġmount s 2 : ĠList < Mount Interface 2 >, Ċ // Ġ Ġ@ field : Json ( name =" filters 2 ") Ġval Ġfilters 2 : ĠList < Filter Interface 2 >, Ċ // Ġ Ġ@ field : Json ( name =" access ories 2 ") Ġval Ġaccess ories 2 : ĠList < Access ory Interface 2 >, Ċ // Ġ Ġ@ field : Json ( name =" software 2 ") Ġval Ġsoftware 2 : ĠList < Software Interface 2 >, ĊĠ Ġ@ field : Json ( name =" published ") Ġval Ġpublished : ĠString , ĊĠ Ġ@ field : Json ( name =" license ") Ġval Ġlicense : ĠString , ĊĠ Ġ@ field : Json ( name =" description ") Ġval Ġdescription : ĠString ?, ĊĠ Ġ@ field : Json ( name =" description Bb code ") Ġval Ġdescription Bb code : ĠString ?, ĊĠ Ġ@ field : Json ( name =" link ") Ġval Ġlink : ĠString ?, ĊĠ Ġ@ field : Json ( name =" link To Fits ") Ġval Ġlink To Fits : ĠString ?, ĊĠ Ġ@ field : Json ( name =" ac quisition Type ") Ġval Ġac quisition Type : ĠString , ĊĠ Ġ@ field : Json ( name =" subject Type ") Ġval Ġsubject Type : ĠString , ĊĠ Ġ@ field : Json ( name =" solar System Main Subject ") Ġval Ġsolar System Main Subject : ĠString ?, ĊĠ Ġ@ field : Json ( name =" dataSource ") Ġval ĠdataSource : ĠString , ĊĠ Ġ@ field : Json ( name =" remote Source ") Ġval Ġremote Source : ĠString ?, ĊĠ Ġ@ field : Json ( name =" part Of Group Set ") Ġval Ġpart Of Group Set : ĠList < Int >, ĊĠ Ġ@ field : Json ( name =" mouse Hover Image ") Ġval Ġmouse Hover Image : ĠString , ĊĠ Ġ@ field : Json ( name =" allow Comments ") Ġval Ġallow Comments : ĠBoolean , ĊĠ Ġ@ field : Json ( name =" square C ro pping ") Ġval Ġsquare C ro pping : ĠString , ĊĠ Ġ@ field : Json ( name =" watermark ") Ġval Ġwater mark : ĠBoolean , ĊĠ Ġ@ field : Json ( name =" watermark Text ") Ġval Ġwater mark Text : ĠString ?, ĊĠ Ġ@ field : Json ( name =" watermark Position ") Ġval Ġwater mark Position : ĠString , ĊĠ Ġ@ field : Json ( name =" watermark Size ") Ġval Ġwater mark Size : ĠString , ĊĠ Ġ@ field : Json ( name =" watermark Opacity ") Ġval Ġwater mark Opacity : ĠFloat , ĊĠ Ġ@ field : Json ( name =" shar pen Thumb nails ") Ġval Ġsh ar pen Thumb nails : ĠBoolean , ĊĠ Ġ@ field : Json ( name =" key Value Tags ") Ġval Ġkey Value Tags : ĠString , ĊĠ Ġ@ field : Json ( name =" locations ") Ġval Ġlocations : ĠList < Int >, ĊĠ Ġ// ĠTODO : Ġwe Ġshould Ġmake Ġsure Ġto Ġhon or Ġthis Ġif Ġit Ġisn 't Ġen forced Ġby Ġbackend ĊĠ Ġ@ field : Json ( name =" full Size Display Limit ation ") Ġval Ġfull Size Display Limit ation : ĠString , ĊĠ Ġ// ĠTODO : Ġwe Ġshould Ġmake Ġsure Ġto Ġhon or Ġthis Ġif Ġit Ġisn 't Ġen forced Ġby Ġbackend ĊĠ Ġ@ field : Json ( name =" download Limit ation ") Ġval Ġdownload Limit ation : ĠString , ĊĠ Ġ@ field : Json ( name =" thumb nails ") Ġval Ġthumb nails : ĠList < Ast ro Thumbnail >, ĊĊĠ Ġ// ĠEp hemeral Ġform Ġfields Ċ // Ġ Ġshow Guid ing Equipment ?: Ġboolean ; Ċ ) Ġ{ ĊĠ Ġprivate Ġfun Ġurl For ( alias : ĠString ) Ġ= Ġthumb nails . single Ġ{ Ġit . alias Ġ== Ġalias Ġ}. url ĊĠ Ġval Ġurl _ story : ĠString Ġget () Ġ= Ġurl For (" story ") ĊĠ Ġval Ġurl _ regular : ĠString Ġget () Ġ= Ġurl For (" regular ") ĊĠ Ġval Ġurl _ hd : ĠString Ġget () Ġ= Ġurl For (" hd ") ĊĠ Ġval Ġurl _ q hd : ĠString Ġget () Ġ= Ġurl For (" q hd ") ĊĊĠ Ġval Ġurl _ histogram : ĠString Ġget () Ġ= ĠimageUrl ( hash ," histogram ") ĊĊĠ Ġval Ġaspect Ratio : ĠFloat Ġget () Ġ= Ġw . toFloat () Ġ/ Ġh . toFloat () ĊĊĠ Ġval Ġbook marks Count : ĠInt ĊĠĠĠ Ġget () Ġ= Ġ 6 Ġ// ĠTODO : Ġask Ġabout Ġincluding Ġthis Ġin Ġthe ĠAPI ĊĠ Ġval Ġlikes Count : ĠInt ĊĠĠĠ Ġget () Ġ= Ġ 1 2 6 Ġ// ĠTODO : Ġask Ġabout Ġincluding Ġthis Ġin Ġthe ĠAPI Ċ } Ċ Ċ data Ġclass ĠAst ro Image Revision ( ĊĠ Ġval Ġid : ĠInt , Ċ ) Ċ Ċ data Ġclass ĠTop Pick ( ĊĠ Ġ@ field : Json ( name =" date ") Ġval Ġdate : ĠString , ĊĠ Ġ@ field : Json ( name =" image ") Ġval Ġimage : ĠString , ĊĠ Ġ@ field : Json ( name =" resource _ uri ") Ġval Ġresource _ uri : ĠString Ċ ) Ġ{ ĊĠ Ġval Ġhash : ĠString Ġget () Ġ= Ġimage . substring After Last ('/') ĊĠ Ġval Ġurl _ regular : ĠString Ġget () Ġ= ĠimageUrl ( hash , Ġ" regular ") ĊĠ Ġval Ġurl _ thumb : ĠString Ġget () Ġ= ĠimageUrl ( hash , Ġ" thumb ") ĊĠ Ġval Ġurl _ real : ĠString Ġget () Ġ= ĠimageUrl ( hash , Ġ" real ") ĊĠ Ġval Ġurl _ gallery : ĠString Ġget () Ġ= ĠimageUrl ( hash , Ġ" gallery ") ĊĠ Ġval Ġurl _ hd : ĠString Ġget () Ġ= ĠimageUrl ( hash , Ġ" hd ") Ċ } Ċ Ċ data Ġclass ĠAst ro Product ( ĊĠ Ġ@ field : Json ( name =" pk ") Ġval Ġpk : ĠInt , ĊĠ Ġ@ field : Json ( name =" make ") Ġval Ġmake : ĠString ?, ĊĠ Ġ@ field : Json ( name =" name ") Ġval Ġname : ĠString , Ċ ) Ċ Ċ data Ġclass ĠThumb nail Group ( ĊĠ Ġ@ field : Json ( name =" image ") Ġval Ġimage : ĠInt , ĊĠ Ġ@ field : Json ( name =" pk ") Ġval Ġpk : ĠInt , ĊĠ Ġ@ field : Json ( name =" revision ") Ġval Ġrevision : ĠString , ĊĠ Ġ@ field : Json ( name =" real ") Ġval Ġreal : ĠString , ĊĠ Ġ@ field : Json ( name =" hd ") Ġval Ġhd : ĠString , ĊĠ Ġ@ field : Json ( name =" regular ") Ġval Ġregular : ĠString , ĊĠ Ġ@ field : Json ( name =" gallery ") Ġval Ġgallery : ĠString , ĊĠ Ġ@ field : Json ( name =" thumb ") Ġval Ġthumb : ĠString , Ċ ) Ċ Ċ data Ġclass ĠAst ro Thumbnail ( ĊĠ Ġ@ field : Json ( name =" id ") Ġval Ġid : ĠInt , ĊĠ Ġ@ field : Json ( name =" revision ") Ġval Ġrevision : ĠString , ĊĠ Ġ@ field : Json ( name =" alias ") Ġval Ġalias : ĠString , ĊĠ Ġ@ field : Json ( name =" url ") Ġval Ġurl : ĠString , Ċ ) Ċ Ċ data Ġclass ĠP late Solve ( ĊĠ Ġ@ field : Json ( name =" id ") Ġval Ġid : ĠInt , ĊĠ Ġ@ field : Json ( name =" status ") Ġval Ġstatus : ĠInt , ĊĠ Ġ@ field : Json ( name =" submission _ id ") Ġval Ġsubmission _ id : ĠInt , ĊĠ Ġ@ field : Json ( name =" object _ id ") Ġval Ġobject _ id : ĠString , ĊĠ Ġ@ field : Json ( name =" image _ file ") Ġval Ġimage _ file : ĠString , ĊĠ Ġ@ field : Json ( name =" sky plot _ zoom 1 ") Ġval Ġsky plot _ zoom 1 : ĠString , ĊĠ Ġ@ field : Json ( name =" objects _ in _ field ") Ġval Ġobjects _ in _ field : ĠString , ĊĠ Ġ@ field : Json ( name =" ra ") Ġval Ġra : ĠString , ĊĠ Ġ@ field : Json ( name =" dec ") Ġval Ġdec : ĠString , ĊĠ Ġ@ field : Json ( name =" pix scale ") Ġval Ġpix scale : ĠString , ĊĠ Ġ@ field : Json ( name =" orientation ") Ġval Ġorientation : ĠString , ĊĠ Ġ@ field : Json ( name =" radius ") Ġval Ġradius : ĠString , Ċ // Ġ Ġ@ field : Json ( name =" annotations ") Ġval Ġannotations : ĠString , Ċ // Ġ Ġ@ field : Json ( name =" pix insight _ serial _ number ") Ġval Ġpix insight _ serial _ number : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" pix insight _ svg _ annotation _ hd ") Ġval Ġpix insight _ svg _ annotation _ hd : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" pix insight _ svg _ annotation _ regular ") Ġval Ġpix insight _ svg _ annotation _ regular : ĠString , Ċ // Ġ Ġ@ field : Json ( name =" advanced _ ra ") Ġval Ġadvanced _ ra : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ ra _ top _ left ") Ġval Ġadvanced _ ra _ top _ left : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ ra _ top _ right ") Ġval Ġadvanced _ ra _ top _ right : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ ra _ bottom _ left ") Ġval Ġadvanced _ ra _ bottom _ left : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ ra _ bottom _ right ") Ġval Ġadvanced _ ra _ bottom _ right : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ dec ") Ġval Ġadvanced _ dec : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ dec _ top _ left ") Ġval Ġadvanced _ dec _ top _ left : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ dec _ top _ right ") Ġval Ġadvanced _ dec _ top _ right : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ dec _ bottom _ left ") Ġval Ġadvanced _ dec _ bottom _ left : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ dec _ bottom _ right ") Ġval Ġadvanced _ dec _ bottom _ right : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ pix scale ") Ġval Ġadvanced _ pix scale : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ orientation ") Ġval Ġadvanced _ orientation : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ f lipped ") Ġval Ġadvanced _ f lipped : ĠBoolean ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ wcs _ transformation ") Ġval Ġadvanced _ wcs _ transformation : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ matrix _ rect ") Ġval Ġadvanced _ matrix _ rect : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ matrix _ delta ") Ġval Ġadvanced _ matrix _ delta : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ ra _ matrix ") Ġval Ġadvanced _ ra _ matrix : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ dec _ matrix ") Ġval Ġadvanced _ dec _ matrix : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ annotations ") Ġval Ġadvanced _ annotations : ĠString ?, Ċ // Ġ Ġ@ field : Json ( name =" advanced _ annotations _ regular ") Ġval Ġadvanced _ annotations _ regular : ĠString ?, ĊĠ Ġ@ field : Json ( name =" settings ") Ġval Ġsettings : ĠInt , ĊĠ Ġ@ field : Json ( name =" content _ type ") Ġval Ġcontent _ type : ĠInt , ĊĠ Ġ@ field : Json ( name =" advanced _ settings ") Ġval Ġadvanced _ settings : ĠInt ?, Ċ ) Ċ Ċ private Ġfun ĠimageUrl ( hash : ĠString , Ġtype : ĠString ) Ġ= Ġ" https :// www . astro bin . com /$ hash / 0 / raw thumb /$ type /" Ċ