#include "sinfluencerinteractorurlmaker.h" const QString SInfluencerInteractorUrlMaker::m_strNaverBlogBaseUrl = QString("blog.naver.com/"); const QString SInfluencerInteractorUrlMaker::m_strInstagramBaseUrl = QString("https://www.instagram.com/"); const QString SInfluencerInteractorUrlMaker::m_strKakaoBaseUrl = QString("https://story.kakao.com/"); const QString SInfluencerInteractorUrlMaker::m_strFacebookBaseUrl = QString("https://www.facebook.com/"); QString SInfluencerInteractorUrlMaker::makeInfluencerInteractorUrl(const SDatagroup::stReply& _interactorReply) { QString strInteractorUrl; QString strPlatformName = _interactorReply.platformname_name; QString strPlatformForm = _interactorReply.platformform_form; if (strPlatformName == "naver" && strPlatformForm == "blog") { strInteractorUrl = SInfluencerInteractorUrlMaker::m_strNaverBlogBaseUrl + _interactorReply.id_id; } else if (strPlatformName == "instagram") { strInteractorUrl = SInfluencerInteractorUrlMaker::m_strInstagramBaseUrl + _interactorReply.id_id; } else if (strPlatformName == "kakaostory") { strInteractorUrl = SInfluencerInteractorUrlMaker::m_strKakaoBaseUrl + _interactorReply.id_id; } else if (strPlatformName == "facebook") { strInteractorUrl = SInfluencerInteractorUrlMaker::m_strFacebookBaseUrl + _interactorReply.id_id; } else { strInteractorUrl = ""; } return strInteractorUrl; }