import java.lang.reflect.Type;
import java.util.List;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import de.biehlerjosef.unofficialeasybacklogadapter.domain.Account;
import de.biehlerjosef.unofficialeasybacklogadapter.domain.Backlog;
import de.biehlerjosef.unofficialeasybacklogadapter.domain.Domain;
import de.biehlerjosef.unofficialeasybacklogadapter.domain.Sprint;
import de.biehlerjosef.unofficialeasybacklogadapter.domain.SprintStory;
import de.biehlerjosef.unofficialeasybacklogadapter.domain.Story;
import de.biehlerjosef.unofficialeasybacklogadapter.rest.EasyBacklog;
import de.biehlerjosef.unofficialeasybacklogadapter.rest.exception.LazyLoadingRequiresInstanceOfEasyBacklog;
public class mainClass {
/**
* @param args
* @throws LazyLoadingRequiresInstanceOfEasyBacklog
*/
public static void main(String[] args) throws LazyLoadingRequiresInstanceOfEasyBacklog {
// TODO Auto-generated method stub
EasyBacklog bl = EasyBacklog.getEasyBacklog();
bl.setBaseUrl("https://easybacklog.com/api/");
bl.setApiKey("gws1m20n8tatotvx7riq");
bl.setAccountId(3432);
bl.authenticate();
List<Backlog> backlogs = bl.getBacklogs();
//List<Account> accounts = bl.getAccounts();
try {
Story s = bl.getStories(bl.getThemes(backlogs.get(0)).get(0)).get(0);
SprintStory ss = s.getSprintStory();
ss.getId();
} catch (Exception e) {
bl.getAccountId();
}
return;
}
}