summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/requests/profile.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-01-03 13:41:49 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-01-03 13:41:49 +0300
commitf524101c14374c2efd1318f9d9085b1216b69620 (patch)
tree1a556fda936976e854ce14a42cb801e21829dd67 /protocols/FacebookRM/src/requests/profile.h
parentd5d5b3f352e0cc2601013950cd48d5aad5c73baa (diff)
Facebook:
- switch to the kernel parameter types; - strong parameters typization (also produces more compact code) - fixed timeline notifications - version bump
Diffstat (limited to 'protocols/FacebookRM/src/requests/profile.h')
-rw-r--r--protocols/FacebookRM/src/requests/profile.h15
1 files changed, 6 insertions, 9 deletions
diff --git a/protocols/FacebookRM/src/requests/profile.h b/protocols/FacebookRM/src/requests/profile.h
index 1301262703..ecd0c43b4c 100644
--- a/protocols/FacebookRM/src/requests/profile.h
+++ b/protocols/FacebookRM/src/requests/profile.h
@@ -32,8 +32,7 @@ public:
{
flags |= NLHRF_REDIRECT;
- Url
- << "v=info";
+ Url << CHAR_PARAM("v", "info");
}
};
@@ -57,8 +56,7 @@ public:
{
flags |= NLHRF_REDIRECT;
- Url
- << CHAR_VALUE("profile_id", userId);
+ Url << CHAR_PARAM("profile_id", userId);
}
};
@@ -69,8 +67,7 @@ public:
ProfileRequest(bool mobileBasicWorks, const char *data) :
HttpRequest(REQUEST_GET, FORMAT, "%s/%s", mobileBasicWorks ? FACEBOOK_SERVER_MBASIC : FACEBOOK_SERVER_MOBILE, data)
{
- Url
- << "v=info";
+ Url << CHAR_PARAM("v", "info");
}
};
@@ -82,9 +79,9 @@ public:
HttpRequest(REQUEST_GET, FORMAT, "%s/profile.php", mobileBasicWorks ? FACEBOOK_SERVER_MBASIC : FACEBOOK_SERVER_MOBILE)
{
Url
- << CHAR_VALUE("id", userId)
- << "v=info"
- << "locale=en_US";
+ << CHAR_PARAM("id", userId)
+ << CHAR_PARAM("v", "info")
+ << CHAR_PARAM("locale", "en_US");
}
};