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
484d063f
Commit
484d063f
authored
Sep 01, 2017
by
Filipe de Lima Brito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update RealmSpotlight.kt
parent
44964cbc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
RealmSpotlight.kt
...hat/rocket/persistence/realm/models/ddp/RealmSpotlight.kt
+7
-1
No files found.
persistence-realm/src/main/java/chat/rocket/persistence/realm/models/ddp/RealmSpotlight.kt
View file @
484d063f
...
...
@@ -10,21 +10,26 @@ open class RealmSpotlight : RealmObject() {
@PrimaryKey
var
_id
:
String
?
=
null
var
name
:
String
?
=
null
var
t
:
String
?
=
null
var
status
:
String
?
=
null
fun
asSpotlight
():
Spotlight
{
return
Spotlight
.
builder
()
.
setId
(
_id
)
.
setName
(
name
)
.
setType
(
t
)
.
setStatus
(
status
)
.
build
()
}
companion
object
{
fun
customizeRoomJSONObject
(
roomJsonObject
:
JSONObject
)
{
roomJsonObject
.
put
(
Columns
.
STATUS
,
""
)
}
fun
customizeUserJSONObject
(
userJsonObject
:
JSONObject
)
{
userJsonObject
.
put
(
Columns
.
NAME
,
userJsonObject
.
get
(
"username"
))
userJsonObject
.
put
(
Columns
.
TYPE
,
"d"
)
userJsonObject
.
remove
(
"username"
)
userJsonObject
.
remove
(
"status"
)
}
}
...
...
@@ -33,6 +38,7 @@ open class RealmSpotlight : RealmObject() {
const
val
ID
=
"_id"
const
val
NAME
=
"name"
const
val
TYPE
=
"t"
const
val
STATUS
=
"status"
}
}
}
\ No newline at end of file
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