Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
9bc47756
Commit
9bc47756
authored
Dec 16, 2016
by
Tiago Cunha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Was missing those guys
parent
763da836
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
0 deletions
+94
-0
Preferences.java
.../main/java/chat/rocket/android/model/ddp/Preferences.java
+83
-0
Settings.java
...src/main/java/chat/rocket/android/model/ddp/Settings.java
+11
-0
No files found.
app/src/main/java/chat/rocket/android/model/ddp/Preferences.java
0 → 100644
View file @
9bc47756
package
chat
.
rocket
.
android
.
model
.
ddp
;
import
io.realm.RealmObject
;
public
class
Preferences
extends
RealmObject
{
private
boolean
newRoomNotification
;
private
boolean
newMessageNotification
;
private
boolean
useEmojis
;
private
boolean
convertAsciiEmoji
;
private
boolean
saveMobileBandwidth
;
private
boolean
collapseMediaByDefault
;
private
boolean
unreadRoomsMode
;
private
boolean
autoImageLoad
;
private
String
emailNotificationMode
;
private
boolean
unreadAlert
;
private
int
desktopNotificationDuration
;
private
int
viewMode
;
private
boolean
hideUsernames
;
private
boolean
hideAvatars
;
private
boolean
hideFlexTab
;
// private List<String> highlights; // Realm does not support this yet
public
boolean
isNewRoomNotification
()
{
return
newRoomNotification
;
}
public
boolean
isNewMessageNotification
()
{
return
newMessageNotification
;
}
public
boolean
isUseEmojis
()
{
return
useEmojis
;
}
public
boolean
isConvertAsciiEmoji
()
{
return
convertAsciiEmoji
;
}
public
boolean
isSaveMobileBandwidth
()
{
return
saveMobileBandwidth
;
}
public
boolean
isCollapseMediaByDefault
()
{
return
collapseMediaByDefault
;
}
public
boolean
isUnreadRoomsMode
()
{
return
unreadRoomsMode
;
}
public
boolean
isAutoImageLoad
()
{
return
autoImageLoad
;
}
public
String
getEmailNotificationMode
()
{
return
emailNotificationMode
;
}
public
boolean
isUnreadAlert
()
{
return
unreadAlert
;
}
public
int
getDesktopNotificationDuration
()
{
return
desktopNotificationDuration
;
}
public
int
getViewMode
()
{
return
viewMode
;
}
public
boolean
isHideUsernames
()
{
return
hideUsernames
;
}
public
boolean
isHideAvatars
()
{
return
hideAvatars
;
}
public
boolean
isHideFlexTab
()
{
return
hideFlexTab
;
}
}
app/src/main/java/chat/rocket/android/model/ddp/Settings.java
0 → 100644
View file @
9bc47756
package
chat
.
rocket
.
android
.
model
.
ddp
;
import
io.realm.RealmObject
;
public
class
Settings
extends
RealmObject
{
private
Preferences
preferences
;
public
Preferences
getPreferences
()
{
return
preferences
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment