-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
210 additions
and
241 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
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/boardgamegeek/events/ExportFinishedEvent.kt
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package com.boardgamegeek.events | ||
|
||
class ExportFinishedEvent(val type: String, val errorMessage: String) | ||
class ExportFinishedEvent(val type: String, val errorMessage: String?) |
2 changes: 1 addition & 1 deletion
2
app/src/main/java/com/boardgamegeek/events/ImportFinishedEvent.kt
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package com.boardgamegeek.events | ||
|
||
class ImportFinishedEvent(val type: String, val errorMessage: String) | ||
class ImportFinishedEvent(val type: String, val errorMessage: String?) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,10 @@ | ||
package com.boardgamegeek.model; | ||
|
||
import com.boardgamegeek.provider.BggContract; | ||
import com.boardgamegeek.util.StringUtils; | ||
|
||
import org.simpleframework.xml.Attribute; | ||
import org.simpleframework.xml.Root; | ||
|
||
@Root(name = "buddy") | ||
public class Buddy { | ||
@Attribute | ||
private String id; | ||
|
||
@Attribute | ||
public String name; | ||
|
||
public int getId() { | ||
return StringUtils.parseInt(id, BggContract.INVALID_ID); | ||
} | ||
|
||
public static Buddy fromUser(User user) { | ||
Buddy buddy = new Buddy(); | ||
buddy.id = String.valueOf(user.getId()); | ||
buddy.name = user.name; | ||
return buddy; | ||
} | ||
@Attribute public String id; | ||
@Attribute public String name; | ||
} |
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
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
Oops, something went wrong.