!I 1937152 from //dev_game_hunt/consoles_candidate: !B Remove allocations of unnecess...
[CRYENGINE.git] / Code / CryPlugins / CryLobby / Module / PSNOrbis / CryPSN2WebApi_RecentPlayers.h
blobb5eb20deaf3fed0a05120d7f1542b49c04bf867d
1 // Copyright 2001-2018 Crytek GmbH / Crytek Group. All rights reserved.
3 #ifndef __CRYPSN2_WEBAPI_RECENTPLAYERS_H__
4 #define __CRYPSN2_WEBAPI_RECENTPLAYERS_H__
5 #pragma once
7 #if CRY_PLATFORM_ORBIS
8 #if USE_PSN
10 //////////////////////////////////////////////////////////////////////////////////////////////
12 #define CRY_WEBAPI_ADDRECENTPLAYERS_HTTP_METHOD SCE_NP_WEBAPI_HTTP_METHOD_POST
13 #define CRY_WEBAPI_ADDRECENTPLAYERS_CONTENT_TYPE SCE_NP_WEBAPI_CONTENT_TYPE_APPLICATION_JSON_UTF8
14 #define CRY_WEBAPI_ADDRECENTPLAYERS_API_GROUP "activityFeed"
15 #define CRY_WEBAPI_ADDRECENTPLAYERS_REQUEST_PATH "/v1/users/me/feed"
16 #define CRY_WEBAPI_ADDRECENTPLAYERS_POST_BODY_SAMPLE \
17 "{" \
18 "\"source\":{" \
19 "\"meta\":\"CryPlayer1\"," \
20 "\"type\":\"ONLINE_ID\"" \
21 "}, " \
22 "\"storyType\":\"PLAYED_WITH\"," \
23 "\"targets\":[" \
24 "{" \
25 "\"meta\":\"CryPlayer2\"," \
26 "\"type\":\"ONLINE_ID\"" \
27 "}," \
28 "{" \
29 "\"meta\":\"CryPlayer3\"," \
30 "\"type\":\"ONLINE_ID\"" \
31 "}," \
32 "{" \
33 "\"meta\":\"NPXX12345_00\"," \
34 "\"type\":\"TITLE_ID\"" \
35 "}," \
36 "{" \
37 "\"meta\":\"Deathmatch PVP\"," \
38 "\"type\":\"PLAYED_DESCRIPTION\"" \
39 "}" \
40 "]" \
41 "}"
43 #define CRY_WEBAPI_ADDRECENTPLAYERS_MAX_SIZE (4096) // can change this if needed
45 struct SCryPSNOrbisWebApiAddRecentPlayersInput
47 char feed[CRY_WEBAPI_ADDRECENTPLAYERS_MAX_SIZE];
50 //////////////////////////////////////////////////////////////////////////////////////////////
52 #endif // USE_PSN
53 #endif // CRY_PLATFORM_ORBIS
55 #endif // __CRYPSN2_WEBAPI_RECENTPLAYERS_H__