Android Open Source - dbpendler Connection Service

From Project

Back to project page dbpendler.


The source code is released under:

Copyright 2013 Marcus Schiesser Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Softw...

If you think the Android project dbpendler listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

//from   w  w  w .  j  av  a2 s. c  o m
import android.os.AsyncTask;
import de.marcusschiesser.dbpendler.common.resources.ConnectionResource;
import de.marcusschiesser.dbpendler.common.vo.ConnectionVO;

public class ConnectionService extends
    AsyncTask<String, Void, ConnectionVO[]> {
  private static final boolean USE_MOCKS = true;

  protected ConnectionVO[] doInBackground(String... param) {
    ConnectionResource resource;
    if(USE_MOCKS) {
      resource = new ConnectionMockResource();
    } else {
      resource = new ConnectionClientResource();
    return resource.listDaily(param[0], param[1]);

Java Source Code List