Browse files

Fixed groupId bug with posting activities to groups.

  • Loading branch information...
1 parent 11a3f31 commit e5327048ea8d5b5df19475f9df52c25d1ad31a3f @tnine tnine committed Apr 11, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/java/org/usergrid/android/client/Client.java
View
5 src/main/java/org/usergrid/android/client/Client.java
@@ -318,6 +318,7 @@ public ApiResponse doTask() {
* Creates and posts an activity to a group. Executes asynchronously in
* background and the callbacks are called in the UI thread.
*
+ * @param groupId
* @param verb
* @param title
* @param content
@@ -329,15 +330,15 @@ public ApiResponse doTask() {
* @param objectContent
* @param callback
*/
- public void postGroupActivityAsync(final String verb, final String title,
+ public void postGroupActivityAsync(final String groupId, final String verb, final String title,
@zznate
zznate added a line comment Apr 25, 2012

I wonder if we should wrap these in a struct - number of args is confusing from api standpoint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
final String content, final String category, final User user,
final Entity object, final String objectType,
final String objectName, final String objectContent,
final ApiResponseCallback callback) {
(new ClientAsyncTask<ApiResponse>(callback) {
@Override
public ApiResponse doTask() {
- return postGroupActivity(verb, title, content, category, user,
+ return postGroupActivity(groupId, verb, title, content, category, user,
object, objectType, objectName, objectContent);
}
}).execute();

0 comments on commit e532704

Please sign in to comment.