public static BaasResult < JsonObject > fetchDataSync ( String id ) { if ( id == null ) throw new IllegalArgumentException ( "asset id cannot be null" ) ; BaasBox box = BaasBox . getDefaultChecked ( ) ; AssetDataRequest req = new AssetDataRequest ( box , id , RequestOptions . DEFAULT , null ) ; return box . submitSync ( req ) ; }
Synchronously retrieves named assets data If the named asset is a document the document is retrieved otherwise attached data to the file are returned .