std::string Battlenet::Authentication::FailureType::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::FailureType" << std::endl;
    APPEND_FIELD(stream, Strings);
    APPEND_FIELD(stream, Result);
    return stream.str();
}
std::string Battlenet::Authentication::LogonResponse::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::LogonResponse" << std::endl;
    APPEND_FIELD(stream, Result);
    APPEND_FIELD(stream, Raf);
    return stream.str();
}
std::string Battlenet::Authentication::Regulator::LeakyBucketType::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Regulator::LeakyBucket" << std::endl;
    APPEND_FIELD(stream, Threshold);
    APPEND_FIELD(stream, Rate);
    return stream.str();
}
std::string Battlenet::Account::FullName::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Account::FullName" << std::endl;
    APPEND_FIELD(stream, GivenName);
    APPEND_FIELD(stream, Surname);
    return stream.str();
}
std::string Battlenet::Profile::RecordAddress::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Profile::RecordAddress" << std::endl;
    APPEND_FIELD(stream, Label);
    APPEND_FIELD(stream, Id);
    return stream.str();
}
std::string Battlenet::Authentication::FailureType::ResultType::FailureType::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::ResponseFailure::Result::Failure" << std::endl;
    APPEND_FIELD(stream, Error);
    APPEND_FIELD(stream, Wait);
    return stream.str();
}
std::string Battlenet::Cache::Handle::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Cache::Handle" << std::endl;
    APPEND_FIELD(stream, Type);
    APPEND_FIELD(stream, Region);
    stream << "ModuleId: " << ByteArrayToHexStr(ModuleId, 32) << std::endl;
    return stream.str();
}
std::string Battlenet::Authentication::LogonRequest3::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::LogonRequest3" << std::endl;
    APPEND_FIELD(stream, Common);
    APPEND_FIELD(stream, Account);
    APPEND_FIELD(stream, Compatibility);
    return stream.str();
}
std::string Battlenet::PrintableRealmHandle::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::RealmHandle" << std::endl;
    APPEND_FIELD(stream, Region);
    APPEND_FIELD(stream, Site);
    APPEND_FIELD(stream, Realm);
    return stream.str();
}
std::string Battlenet::GameAccount::Handle::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::GameAccount::Handle" << std::endl;
    APPEND_FIELD(stream, Region);
    APPEND_FIELD(stream, ProgramId);
    APPEND_FIELD(stream, Id);
    return stream.str();
}
std::string Battlenet::Version::Record::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Version::Record" << std::endl;
    APPEND_FIELD(stream, ProgramId);
    APPEND_FIELD(stream, Component);
    APPEND_FIELD(stream, Version);
    return stream.str();
}
std::string Battlenet::Toon::FullName::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Toon::FullName" << std::endl;
    APPEND_FIELD(stream, Region);
    APPEND_FIELD(stream, ProgramId);
    APPEND_FIELD(stream, Realm);
    APPEND_FIELD(stream, Name);
    return stream.str();
}
std::string Battlenet::Authentication::RequestCommon::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::RequestCommon" << std::endl;
    APPEND_FIELD(stream, Program);
    APPEND_FIELD(stream, Platform);
    APPEND_FIELD(stream, Locale);
    APPEND_FIELD(stream, Versions);
    return stream.str();
}
std::string Battlenet::Authentication::ResumeRequest::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::ResumeRequest" << std::endl;
    APPEND_FIELD(stream, Common);
    APPEND_FIELD(stream, Account);
    APPEND_FIELD(stream, GameAccountRegion);
    APPEND_FIELD(stream, GameAccountName);
    return stream.str();
}
std::string Battlenet::Authentication::ProofResponse::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::ProofRequest" << std::endl;
    APPEND_FIELD(stream, Response.size());
    return stream.str();
}
std::string Battlenet::Authentication::LogonResponse::ResultType::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::LogonResponse::Result" << std::endl;
    switch (Type)
    {
        case SUCCESS:
            APPEND_FIELD(stream, Success);
            break;
        case FAILURE:
            APPEND_FIELD(stream, Failure);
            break;
        default:
            break;
    }
    return stream.str();
}
std::string Battlenet::Authentication::Regulator::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Regulator" << std::endl;
    switch (Type)
    {
        case NONE:
            APPEND_FIELD(stream, None);
            break;
        case LEAKY_BUCKET:
            APPEND_FIELD(stream, LeakyBucket);
            break;
        default:
            break;
    }
    return stream.str();
}
Example #18
0
std::string Battlenet::Friends::SendInvitationRequest::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Friends::SendInvitationRequest" << std::endl;
    APPEND_FIELD(stream, Token);
    APPEND_FIELD(stream, PresenceId);
    APPEND_FIELD(stream, GameAccount);
    APPEND_FIELD(stream, AccountId);
    APPEND_FIELD(stream, AccountMail);
    APPEND_FIELD(stream, Nickname);
    APPEND_FIELD(stream, InvitationMsg);
    APPEND_FIELD(stream, Source);
    APPEND_FIELD(stream, Role);
    return stream.str();
}
std::string Battlenet::Authentication::FailureType::ResultType::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::ResponseFailure::Result" << std::endl;
    switch (Type)
    {
        case UPDATE:
            APPEND_FIELD(stream, Update);
            break;
        case FAILURE:
            APPEND_FIELD(stream, Failure);
            break;
        case VERSION_CHECK_DISCONNECT:
            APPEND_FIELD(stream, VersionCheckDisconnect);
            break;
        default:
            break;
    }
    return stream.str();
}
std::string Battlenet::Authentication::LogonResponse::ResultType::SuccessType::ToString() const
{
    std::ostringstream stream;
    stream << "Battlenet::Authentication::LogonResponse::Result::Success" << std::endl;
    APPEND_FIELD(stream, FinalRequest);
    APPEND_FIELD(stream, PingTimeout);
    APPEND_FIELD(stream, RegulatorRules);
    APPEND_FIELD(stream, FullName);
    APPEND_FIELD(stream, AccountId);
    APPEND_FIELD(stream, Region);
    APPEND_FIELD(stream, Flags);
    APPEND_FIELD(stream, GameAccountRegion);
    APPEND_FIELD(stream, GameAccountName);
    APPEND_FIELD(stream, GameAccountFlags);
    APPEND_FIELD(stream, LogonFailures);
    return stream.str();
}