public static List<ArticleMobile> getArticles() { ArticleMobile[] articles = (ArticleMobile[]) Communicator.performRequest( Global.server + uri + "getgoods" + extension, ArticleMobile[].class); return Arrays.asList(articles); }
public static List<OutletMobile> getOutletsForToday(String username) { OutletMobile[] outlets = (OutletMobile[]) Communicator.performRequest( Global.server + uri + "getoutlets/" + username + extension, OutletMobile[].class); return Arrays.asList(outlets); }