-
Notifications
You must be signed in to change notification settings - Fork 11
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
15 changed files
with
743 additions
and
106 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
32 changes: 32 additions & 0 deletions
32
app/src/main/kotlin/de/hbch/traewelling/api/models/user/UserSettings.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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package de.hbch.traewelling.api.models.user | ||
|
||
import com.google.gson.annotations.SerializedName | ||
import de.hbch.traewelling.api.models.status.AllowedPersonsToCheckIn | ||
import de.hbch.traewelling.api.models.status.StatusVisibility | ||
|
||
data class UserSettings( | ||
val username: String, | ||
val displayName: String, | ||
val profilePicture: String, | ||
val privateProfile: Boolean, | ||
val defaultStatusVisibility: StatusVisibility, | ||
val privacyHideDays: Int, | ||
val email: String, | ||
@SerializedName("mastodon") val mastodonUrl: String?, | ||
val mastodonVisibility: StatusVisibility?, | ||
@SerializedName("friendCheckin") val allowedPersonsToCheckIn: AllowedPersonsToCheckIn, | ||
val likesEnabled: Boolean, | ||
val pointsEnabled: Boolean | ||
) | ||
|
||
data class SaveUserSettings( | ||
val username: String, | ||
val displayName: String, | ||
val privateProfile: Boolean, | ||
val defaultStatusVisibility: Int, | ||
val privacyHideDays: Int?, | ||
val mastodonVisibility: Int, | ||
@SerializedName("friendCheckin") val allowedPersonsToCheckIn: AllowedPersonsToCheckIn, | ||
val likesEnabled: Boolean, | ||
val pointsEnabled: Boolean | ||
) |
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.