|19 Jan 2020|
|Arne invited Arne.||18:37:03|
|Arne left the room.||18:37:04|
|Arne 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|
В ответ на@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.
|14 Mar 2020|
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 :]
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.
|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|
В ответ на@testitest:matrix.btwarch.tkYeah, it's my fault. I'll describe it.
|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|
В ответ на@testitest:matrix.btwarch.tkNo problem, feel free to ask questions.
|ma1uta||Also it is possible to make changes in the sdk if something missing or works wrong.||04:19:59|
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.
|testitest||I'm guessing that I have to handle events from the server inside of a sync loop?||18:27:42|
In reply to @testitest:matrix.btwarch.tkYes, I see this bug. For workaround you can catch the RuntimeException and invoke the
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.
|19 Mar 2020|
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
|21 Mar 2020|
|testitest||Redacted or Malformed Event||09:12:37|
hey ma1uta, it's us again with a new problem.
For example, to try to get the content of messages we call
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
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.
В ответ на@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.