Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a collection upload sync task (that currently does nothing)
- Loading branch information
Showing
9 changed files
with
44 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
app/src/main/java/com/boardgamegeek/service/SyncCollectionUpload.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package com.boardgamegeek.service; | ||
|
||
import android.accounts.Account; | ||
import android.content.Context; | ||
import android.content.SyncResult; | ||
|
||
import com.boardgamegeek.io.BggService; | ||
|
||
import hugo.weaving.DebugLog; | ||
import timber.log.Timber; | ||
|
||
public class SyncCollectionUpload extends SyncTask { | ||
@DebugLog | ||
public SyncCollectionUpload(Context context, BggService service) { | ||
super(context, service); | ||
} | ||
|
||
@DebugLog | ||
@Override | ||
public int getSyncType() { | ||
return SyncService.FLAG_SYNC_COLLECTION_UPLOAD; | ||
} | ||
|
||
@DebugLog | ||
@Override | ||
public void execute(Account account, SyncResult syncResult) { | ||
Timber.i("Collection uploading will go here."); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters