Skip to content

Commit

Permalink
Added some types and outlined the api
Browse files Browse the repository at this point in the history
  • Loading branch information
sleroux committed Nov 23, 2012
1 parent ccbc28b commit f95f4f3
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 51 deletions.
13 changes: 0 additions & 13 deletions src/main/java/postageapp/App.java

This file was deleted.

30 changes: 30 additions & 0 deletions src/main/java/postageapp/PostageAppClient.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
package postageapp;

import java.util.List;

import postageapp.models.*;

/**
* Created with IntelliJ IDEA.
* User: stephanleroux
* Date: 2012-11-23
* Time: 6:09 PM
* To change this template use File | Settings | File Templates.
*/
public interface PostageAppClient {
public void sendMessage();

public int getMessageReceipt();

public List<String> getMethodList();

public AccountInfo getAccountInfo();

public ProjectInfo getProjectInfo();

public List<Message> getMessages();

public List<MessageTransmission> getMessageTransmissions();

public ProjectMetrics getMetrics();
}
11 changes: 11 additions & 0 deletions src/main/java/postageapp/http/PostageAppHttpClient.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package postageapp.http;

/**
* Created with IntelliJ IDEA.
* User: stephanleroux
* Date: 2012-11-23
* Time: 6:10 PM
* To change this template use File | Settings | File Templates.
*/
public interface PostageAppHttpClient {
}
11 changes: 11 additions & 0 deletions src/main/java/postageapp/models/AccountInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package postageapp.models;

/**
* Created with IntelliJ IDEA.
* User: stephanleroux
* Date: 2012-11-23
* Time: 6:17 PM
* To change this template use File | Settings | File Templates.
*/
public class AccountInfo {
}
11 changes: 11 additions & 0 deletions src/main/java/postageapp/models/Message.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package postageapp.models;

/**
* Created with IntelliJ IDEA.
* User: stephanleroux
* Date: 2012-11-23
* Time: 6:20 PM
* To change this template use File | Settings | File Templates.
*/
public class Message {
}
11 changes: 11 additions & 0 deletions src/main/java/postageapp/models/MessageTransmission.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package postageapp.models;

/**
* Created with IntelliJ IDEA.
* User: stephanleroux
* Date: 2012-11-23
* Time: 6:22 PM
* To change this template use File | Settings | File Templates.
*/
public class MessageTransmission {
}
11 changes: 11 additions & 0 deletions src/main/java/postageapp/models/ProjectInfo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package postageapp.models;

/**
* Created with IntelliJ IDEA.
* User: stephanleroux
* Date: 2012-11-23
* Time: 6:19 PM
* To change this template use File | Settings | File Templates.
*/
public class ProjectInfo {
}
11 changes: 11 additions & 0 deletions src/main/java/postageapp/models/ProjectMetrics.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package postageapp.models;

/**
* Created with IntelliJ IDEA.
* User: stephanleroux
* Date: 2012-11-23
* Time: 6:22 PM
* To change this template use File | Settings | File Templates.
*/
public class ProjectMetrics {
}
38 changes: 0 additions & 38 deletions src/test/java/postageapp/AppTest.java

This file was deleted.

0 comments on commit f95f4f3

Please sign in to comment.