/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include #include #include #include using namespace Aws::SNS::Model; using namespace Aws::Utils::Xml; using namespace Aws::Utils::Logging; using namespace Aws::Utils; using namespace Aws; GetPlatformApplicationAttributesResult::GetPlatformApplicationAttributesResult() { } GetPlatformApplicationAttributesResult::GetPlatformApplicationAttributesResult(const Aws::AmazonWebServiceResult& result) { *this = result; } GetPlatformApplicationAttributesResult& GetPlatformApplicationAttributesResult::operator =(const Aws::AmazonWebServiceResult& result) { const XmlDocument& xmlDocument = result.GetPayload(); XmlNode rootNode = xmlDocument.GetRootElement(); XmlNode resultNode = rootNode; if (!rootNode.IsNull() && (rootNode.GetName() != "GetPlatformApplicationAttributesResult")) { resultNode = rootNode.FirstChild("GetPlatformApplicationAttributesResult"); } if(!resultNode.IsNull()) { XmlNode attributesNode = resultNode.FirstChild("Attributes"); if(!attributesNode.IsNull()) { XmlNode attributesEntry = attributesNode.FirstChild("entry"); while(!attributesEntry.IsNull()) { XmlNode keyNode = attributesEntry.FirstChild("key"); XmlNode valueNode = attributesEntry.FirstChild("value"); m_attributes[keyNode.GetText()] = valueNode.GetText(); attributesEntry = attributesEntry.NextNode("entry"); } } } if (!rootNode.IsNull()) { XmlNode responseMetadataNode = rootNode.FirstChild("ResponseMetadata"); m_responseMetadata = responseMetadataNode; AWS_LOGSTREAM_DEBUG("Aws::SNS::Model::GetPlatformApplicationAttributesResult", "x-amzn-request-id: " << m_responseMetadata.GetRequestId() ); } return *this; }