forked from NyaMisty/AltSign-Linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAppleAPISession.cpp
More file actions
50 lines (39 loc) · 953 Bytes
/
Copy pathAppleAPISession.cpp
File metadata and controls
50 lines (39 loc) · 953 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
//
// AppleAPISession.cpp
// AltSign-Windows
//
// Created by Riley Testut on 11/26/19.
// Copyright © 2019 Riley Testut. All rights reserved.
//
#include "AppleAPISession.h"
#include "AnisetteData.h"
#include <ostream>
AppleAPISession::AppleAPISession()
{
}
AppleAPISession::~AppleAPISession()
{
}
AppleAPISession::AppleAPISession(std::string dsid, std::string authToken, std::shared_ptr<AnisetteData> anisetteData) :
_dsid(dsid), _authToken(authToken), _anisetteData(anisetteData)
{
}
std::ostream& operator<<(std::ostream& os, const AppleAPISession& session)
{
os << "DSID : " << session.dsid() <<
"\nAuth Token: " << session.authToken() <<
"\nAnisette Data: " << session.anisetteData();
return os;
}
std::string AppleAPISession::dsid() const
{
return _dsid;
}
std::string AppleAPISession::authToken() const
{
return _authToken;
}
std::shared_ptr<AnisetteData> AppleAPISession::anisetteData() const
{
return _anisetteData;
}