@Override public SmartsheetPagingwrapper<SmartsheetUser> getUsers(int page) throws Exception { String json = TestUtils.getSampleGetUsersJsonResponse(); return (new JsonDeserializer<SmartsheetPagingwrapper<SmartsheetUser>>() .deserialize(json, new TypeReference<SmartsheetPagingwrapper<SmartsheetUser>>() {})); }
@Override public SmartsheetAttachment getAttachmentDetails( String attachmentName, long attachmentId, String sheetName, long sheetId) throws Exception { String json = TestUtils.getSampleGetAttachmentJsonResponse(); return new JsonDeserializer<SmartsheetAttachment>() .deserialize(json, SmartsheetAttachment.class); }
@Override public SmartsheetHome getHome() throws Exception { String json = TestUtils.getSampleGetHomeJsonResponse(); return new JsonDeserializer<SmartsheetHome>().deserialize(json, SmartsheetHome.class); }