Sender | Message | Time |
---|---|---|
19 Jan 2020 | ||
@arne:dramaticexit.de joined the room. | 18:37:14 | |
11 Mar 2020 | ||
dominicusin joined the room. | 00:36:41 | |
13 Mar 2020 | ||
newExampleTest joined the room. | 09:50:09 | |
newExampleTest | hello ma1uta im trying to understand your sdk, can you tell me what the difference between the io.github.ma1uta.matrix.client.api and the io.github.ma1uta.matrix.client.model classes are? | 11:28:48 |
@supernoob:matrix.org joined the room. | 13:13:10 | |
@supernoob:matrix.org left the room. | 17:14:04 | |
testitest joined the room. | 17:22:49 | |
ma1uta | В ответ на@example:matrix.btwarch.tkHello, https://github.com/ma1uta/jeon/tree/master/client-api/src/main/java/io/github/ma1uta/matrix/client/api - is a interfaces for Client API. https://github.com/ma1uta/jeon/tree/master/client-api/src/main/java/io/github/ma1uta/matrix/client/model - models which are used in the interfaces. | 19:22:00 |
14 Mar 2020 | ||
testitest | hey ma1uta, sorry to bother you again, I'm a classmate of example. We're currently trying to develop a Client for matrix using JavaFX and want to utilize your sdk for the communication between our client and the homeserver. We're struggling to setup your sdk inside of an Intellij JavaFX project. Both while using gradle or when not. We used the client-impl-0.11.0.jar, but couldn't seem to get access to all the parts of your API, just a few. Also, when we try to use your API in a JavaFX project with gradle I keep getting a java.util.NoSuchElementException when calling the .build() method from the first line of your example here: https://github.com/ma1uta/jmsdk/blob/master/client-impl/Readme.md. As you can probably tell we're still in school and not very experienced developers so it would be nice if you had the time to give us a small guide on how to setup a project and how to work with your api. Thank you :] | 10:51:11 |
ma1uta | In reply to @testitest:matrix.btwarch.tkI see. You forgot to add the support library with deserializers (jackson or jsonb). I prepared an example with minimal configuration to run client: https://github.com/ma1uta/matrix-client-example. You can get from this example dependencies and code. | 11:45:04 |
testitest | ma1uta: thank you so much, it works like a charm :). It's difficult to figure out how to properly setup projects at first but I think we should be able to make this work from here | 12:41:39 |
newExampleTest changed their display name from example to @example:matrix.btwarch.tk. | 20:48:53 | |
newExampleTest changed their display name from @example:matrix.btwarch.tk to exampleTest. | 21:01:13 | |
newExampleTest changed their display name from exampleTest to newExampleTest. | 21:18:22 | |
15 Mar 2020 | ||
ma1uta | В ответ на@testitest:matrix.btwarch.tkYeah, it's my fault. I'll describe it. | 06:08:36 |
17 Mar 2020 | ||
testitest | Redacted or Malformed Event | 19:56:26 |
testitest | ma1uta: thanks for responsing in the dev channel, we didn't want to keep spamming you with questions about the sdk and bother you | 19:57:45 |
newExampleTest | yes ma1uta , really nice move thank you for helping👍️ | 22:04:29 |
18 Mar 2020 | ||
ma1uta | В ответ на@testitest:matrix.btwarch.tkNo problem, feel free to ask questions. | 04:17:07 |
ma1uta | Also it is possible to make changes in the sdk if something missing or works wrong. | 04:19:59 |
testitest | hey ma1uta, I'm still having trouble understanding how to work with responses / exceptions.
I have this simple login function but it never catches Matrix Exceptions, it always causes a RuntimeException. | 16:48:40 |
testitest | I'm guessing that I have to handle events from the server inside of a sync loop? | 18:27:42 |
ma1uta | In reply to @testitest:matrix.btwarch.tkYes, I see this bug. For workaround you can catch the RuntimeException and invoke the getCause() method to get the Matrix exception. I will change this behaviour in the next release and won't wrap the matrix exception inside the RuntimeException. | 20:07:03 |
ma1uta | In reply to @testitest:matrix.btwarch.tkYou can use the https://github.com/ma1uta/jmsdk/blob/master/client-impl/src/main/java/io/github/ma1uta/matrix/client/sync/SyncLoop.java class (see https://github.com/ma1uta/jmsdk/blob/master/client-impl/Readme.md#usage in the section where described the event sync) or implement your-self sync loop. | 20:09:24 |
19 Mar 2020 | ||
testitest | In reply to @ma1uta:ru-matrix.orgThank you again. Today we will try to understand and implement the syncloop. We have a lot of time to work on the project now that we have to stay at home because of corona | 10:25:49 |
21 Mar 2020 | ||
testitest | Redacted or Malformed Event | 09:12:37 |
testitest | hey ma1uta, it's us again with a new problem. For example, to try to get the content of messages we call SyncResponse.getRooms().get(key).getTimeline().getEvents() which should be a List of all the timeline events or messages if we understand it right. Now if we loop through the list with get(i).getContent().toString() we always get something in the format of io.github.ma1uta.matrix.event.message.Text@6d8e996a rather than the actual message itself. We see that getContent() return an EventContent object, but we don't know how or if we have to interact with it further. | 09:22:37 |
ma1uta | В ответ на@testitest:matrix.btwarch.tkHi. Timeline contains all incoming events. There are a lot of types of events. Each event has content and type. Each room has state events (room name, room aliases, permissions, topic, members) and message events (images, text, audio, ...). In this java sdk the core class is https://github.com/ma1uta/jeon/blob/master/common-api/src/main/java/io/github/ma1uta/matrix/event/Event.java There are a few child. Look at the https://github.com/ma1uta/jeon/blob/master/common-api/src/main/java/io/github/ma1uta/matrix/event/RoomEvent.java it is a main class for all room events. It has the room_id, sender. | 10:45:22 |
ma1uta | RoomEvent has also child classes. Point at the StateEvent and RoomMessage. First add the state_key field for all state events. You can find here events for name, topic, powerlevel (permissions), etc. RoomMessage ( https://github.com/ma1uta/jeon/blob/master/common-api/src/main/java/io/github/ma1uta/matrix/event/RoomMessage.java) used for messages :) Messages you can find in the content https://github.com/ma1uta/jeon/tree/master/common-api/src/main/java/io/github/ma1uta/matrix/event/message | 10:50:37 |
ma1uta | Each message event (child from https://github.com/ma1uta/jeon/blob/master/common-api/src/main/java/io/github/ma1uta/matrix/event/content/RoomMessageContent.java) has the body - text message. | 10:52:38 |