43 lines
No EOL
1.1 KiB
C++
43 lines
No EOL
1.1 KiB
C++
/*******************************************************************************
|
|
Copyright © 2017 Philips Lighting Holding B.V.
|
|
All Rights Reserved.
|
|
********************************************************************************/
|
|
|
|
#include "DefaultConnectionFlowFactory.h"
|
|
namespace huestream {
|
|
namespace connectionflow {
|
|
|
|
DefaultConnectionFlowFactory::DefaultConnectionFlowFactory(HttpPtr http, MessageDispatcherPtr messageDispatcher, BridgeStorageAccessorPtr storageAccesser) :
|
|
_http(http),
|
|
_messageDispatcher(messageDispatcher),
|
|
_storageAccesser(storageAccesser)
|
|
{
|
|
}
|
|
|
|
BridgeSearcherPtr DefaultConnectionFlowFactory::CreateSearcher()
|
|
{
|
|
return make_shared<DefaultBridgeSearcher>();
|
|
}
|
|
|
|
BridgeAuthenticatorPtr DefaultConnectionFlowFactory::CreateAuthenticator()
|
|
{
|
|
return make_shared<DefaultAuthenticator>();
|
|
}
|
|
|
|
MessageDispatcherPtr DefaultConnectionFlowFactory::GetMessageDispatcher()
|
|
{
|
|
return _messageDispatcher;
|
|
}
|
|
|
|
BridgeStorageAccessorPtr DefaultConnectionFlowFactory::GetStorageAccesser()
|
|
{
|
|
return _storageAccesser;
|
|
}
|
|
|
|
FullConfigRetrieverPtr DefaultConnectionFlowFactory::CreateFullConfigRetriever()
|
|
{
|
|
return make_shared<FullConfigRetriever>(_http);
|
|
}
|
|
|
|
}
|
|
} |