forked from SideStore/SideServer-Windows
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeam.hpp
More file actions
executable file
·57 lines (41 loc) · 986 Bytes
/
Team.hpp
File metadata and controls
executable file
·57 lines (41 loc) · 986 Bytes
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//
// Team.hpp
// AltSign-Windows
//
// Created by Riley Testut on 8/9/19.
// Copyright © 2019 Riley Testut. All rights reserved.
//
#ifndef Team_hpp
#define Team_hpp
/* The classes below are exported */
#pragma GCC visibility push(default)
#include <cpprest/http_client.h>
#include <plist/plist.h>
#include "Account.hpp"
class Account;
class Team
{
public:
enum Type
{
Unknown,
Free,
Individual,
Organization
};
Team();
~Team();
Team(std::shared_ptr<Account> account, plist_t plist) /* throws */;
friend std::ostream& operator<<(std::ostream& os, const Team& account);
std::string name() const;
std::string identifier() const;
Type type() const;
std::shared_ptr<Account> account() const;
private:
std::string _name;
std::string _identifier;
Type _type;
std::shared_ptr<Account> _account;
};
#pragma GCC visibility pop
#endif /* Team_hpp */