forked from masterQian/ShowStart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTicket.h
39 lines (35 loc) · 1.21 KB
/
Ticket.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#pragma once
#include "Ticket.g.h"
using namespace winrt::Microsoft::UI::Xaml;
namespace winrt::ShowStart::implementation {
struct Ticket : TicketT<Ticket> {
Ticket() = delete;
Ticket(hstring const& id, hstring const& type, hstring const& price, hstring const& session,
hstring const& deadline, hstring const& max_num, hstring const& remain) {
mId = id;
mType = type;
mPrice = price;
mSession = session;
mDeadline = deadline;
mMaxNum = max_num;
mRemain = remain;
}
hstring mId;
hstring Id() const { return mId; }
hstring mType;
hstring Type() const { return mType; }
hstring mPrice;
hstring Price() const { return mPrice; }
hstring mSession;
hstring Session() const { return mSession; }
hstring mDeadline;
hstring Deadline() const { return mDeadline; }
hstring mMaxNum;
hstring MaxNum() const { return mMaxNum; }
hstring mRemain;
hstring Remain() const { return mRemain; }
};
}
namespace winrt::ShowStart::factory_implementation {
struct Ticket : TicketT<Ticket, implementation::Ticket> { };
}