src/League/Client/RiotClient.cpp
void LCU::League::Client::UX::SetAffinity(Session* session, std::string affinity)
{
	// Takes "newAffinity" as a string
	SerializedValue data(SerializedValueType::OBJECT);
	data.child("newAffinity", true) = affinity;

	LCU::Network::HTTP::Post(session, "/riotclient/affinity", data.getJSON());
}
/// <summary>
/// Set the affinity of the application.
/// </summary>
/// <param name="session">Pointer to a Session object.</param>
/// <param name="affinity">New affinity to use.</param>

Set the affinity of the application.

Pointer to a Session object.
New affinity to use.
Set the affinity of the application . Pointer to a Session object . New affinity to use .
void LCU::League::Client::UX::SetAffinity(Session* session, std::string affinity)
{
	SerializedValue data(SerializedValueType::OBJECT);
	data.child("newAffinity", true) = affinity;
	LCU::Network::HTTP::Post(session, "/riotclient/affinity", data.getJSON());
}
void LCU :: League :: Client :: UX :: SetAffinity ( Session * session , std :: string affinity ) { SerializedValue data ( SerializedValueType :: OBJECT ) ; data . child ( " " , true ) = affinity ; LCU :: Network :: HTTP :: Post ( session , " " , data . getJSON ( ) ) ; }
<summary>
Set the affinity of the application.
<summary > Set the affinity of the application .
// Takes "newAffinity" as a string