blob: 7717330bb796b3367ad99dd10c84a78d7be93c3d [file] [log] [blame]
Nicolas Jager58c70b02016-08-26 09:50:45 -04001#pragma once
2/**************************************************************************
3* Copyright (C) 2016 by Savoir-faire Linux *
4* Author: Jäger Nicolas <nicolas.jager@savoirfairelinux.com> *
5* Author: Traczyk Andreas <traczyk.andreas@savoirfairelinux.com> *
6* *
7* This program is free software; you can redistribute it and/or modify *
8* it under the terms of the GNU General Public License as published by *
9* the Free Software Foundation; either version 3 of the License, or *
10* (at your option) any later version. *
11* *
12* This program is distributed in the hope that it will be useful, *
13* but WITHOUT ANY WARRANTY; without even the implied warranty of *
14* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
15* GNU General Public License for more details. *
16* *
17* You should have received a copy of the GNU General Public License *
18* along with this program. If not, see <http://www.gnu.org/licenses/>. *
19**************************************************************************/
20using namespace Platform;
21using namespace Windows::UI::Xaml::Data;
22
23namespace RingClientUWP
24{
25public ref class ConversationMessage sealed
26{
27public:
28 property String^ Date;
29 property bool FromContact;
30 property String^ Payload;
31};
32
33public ref class Conversation sealed
34{
35private:
36
37
38public:
39 Conversation();
40 void addMessage(String^ date, bool fromContact, String^ payload);
41
42private:
43 Vector<ConversationMessage^> messages;
44
45};
46#define MSG_FROM_CONTACT true
47#define MSG_FROM_ME false
48}
49