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
0882622c
Commit
0882622c
authored
Dec 10, 2016
by
Yusuke Iwaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove MessageAttachment model.
parent
621937c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
19 deletions
+3
-19
Message.java
app/src/main/java/chat/rocket/android/model/ddp/Message.java
+3
-3
MessageAttachment.java
...java/chat/rocket/android/model/ddp/MessageAttachment.java
+0
-16
No files found.
app/src/main/java/chat/rocket/android/model/ddp/Message.java
View file @
0882622c
...
@@ -23,7 +23,7 @@ public class Message extends RealmObject {
...
@@ -23,7 +23,7 @@ public class Message extends RealmObject {
private
String
msg
;
private
String
msg
;
private
User
u
;
private
User
u
;
private
boolean
groupable
;
private
boolean
groupable
;
private
RealmList
<
MessageAttachment
>
attachments
;
private
String
attachments
;
//JSONArray.
private
RealmList
<
MessageUrl
>
urls
;
private
RealmList
<
MessageUrl
>
urls
;
public
String
get_id
()
{
public
String
get_id
()
{
...
@@ -90,11 +90,11 @@ public class Message extends RealmObject {
...
@@ -90,11 +90,11 @@ public class Message extends RealmObject {
this
.
groupable
=
groupable
;
this
.
groupable
=
groupable
;
}
}
public
RealmList
<
MessageAttachment
>
getAttachments
()
{
public
String
getAttachments
()
{
return
attachments
;
return
attachments
;
}
}
public
void
setAttachments
(
RealmList
<
MessageAttachment
>
attachments
)
{
public
void
setAttachments
(
String
attachments
)
{
this
.
attachments
=
attachments
;
this
.
attachments
=
attachments
;
}
}
...
...
app/src/main/java/chat/rocket/android/model/ddp/MessageAttachment.java
deleted
100644 → 0
View file @
621937c6
package
chat
.
rocket
.
android
.
model
.
ddp
;
import
io.realm.RealmObject
;
/**
* Attachment.
*/
@SuppressWarnings
({
"PMD.ShortClassName"
,
"PMD.ShortVariable"
,
"PMD.MethodNamingConventions"
,
"PMD.VariableNamingConventions"
})
public
class
MessageAttachment
extends
RealmObject
{
private
String
title
;
private
String
title_url
;
private
String
image_url
;
private
String
image_type
;
private
String
image_size
;
}
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