Database structur for a messaging function in realm io

  • Replies:1
  • OpenNot stickiedUnanswered
  • Forum posts: 1

Feb 2, 2017 8:50:34 PM via Website

I currently developing an app with a messaging function.
Private, group and global messaging should be Implemented.

I need some help to create a database structur for this feature.

Will this work? Maybe there is a better solution available? Do I still need a ID for the Messages?(User and Groups already have a ID):

public class User {
//...
public RealmList"<"PrivateMessage">" msgs = null;
}

public class PrivateMessage {
private String Message = "";
private long Time = 0;
//getter setter
}

public class Group {
//...
public RealmList"<"GroupMessage">" msgs = null;
}

public class GroupMessage {
private String Sender = "";
private String Message = "";
private long Time = 0;
//getter setter
}

  • Forum posts: 14

Feb 9, 2017 10:21:53 PM via Website

I had to change the way you import the components but other than that it works smoothly, apart from one thing. I can’t find out why, but Images just aren’t appearing in ViewImages. I’m getting a response from Imgur with active links and windowWidth is set correctly. ...