2020-12-11 00:20:19 +08:00
|
|
|
Linphone X UWP tutorial 04_BasicChat
|
|
|
|
========================================
|
|
|
|
|
|
|
|
Second big step in this tutorial, we can now communicate in basic chat rooms.
|
|
|
|
|
|
|
|
In this part you are going to learn how to send and receive text messages over SIP using LinphoneSDK.
|
|
|
|
For our first step with ChatRoom we are going to create only one to one basic ChatRoom (no encryption, no ephemeral),
|
2021-12-23 23:49:01 +08:00
|
|
|
and for now the tutorial app will only support text messages.
|
2020-12-11 00:20:19 +08:00
|
|
|
|
|
|
|
New/Updated files :
|
|
|
|
|
|
|
|
```
|
|
|
|
04_BasicChat
|
|
|
|
└───Service :
|
|
|
|
│ │ CoreService.cs : A singleton service which contains the Linphone.Core.
|
|
|
|
│ │ We added some code to create new chat rooms here.
|
|
|
|
│ │
|
2021-12-23 23:49:01 +08:00
|
|
|
│ │ NavigationService.cs : A small service used to keep references to pages currently displayed.
|
2020-12-11 00:20:19 +08:00
|
|
|
│
|
|
|
|
└───Views :
|
|
|
|
│ │
|
|
|
|
│ │ ChatPage.xaml(.cs) : This is the frame displayed when you select a chat room.
|
2021-12-23 23:49:01 +08:00
|
|
|
│ │ For now it's a basic page where you can send messages and see your
|
2020-12-11 00:20:19 +08:00
|
|
|
│ │ conversation history.
|
|
|
|
│ │
|
2021-12-23 23:49:01 +08:00
|
|
|
│ │ ChatsPage.xaml(.cs) : In this page we list all the existing chat rooms. When you select
|
|
|
|
│ │ one of them a ChatPage is rendered. You can also create new ChatRoom here.
|
2020-12-11 00:20:19 +08:00
|
|
|
│ │
|
2021-12-23 23:49:01 +08:00
|
|
|
│ │ NavigationRoot.xaml(.cs) : The navigation page, you can now navigate to the ChatsPage !
|
2020-12-11 00:20:19 +08:00
|
|
|
```
|