add more immich control options
This commit is contained in:
@@ -11,6 +11,7 @@ struct ImmichConfig {
|
||||
std::string url = "";
|
||||
std::string apiKey = "";
|
||||
std::vector<std::string> albumIds;
|
||||
std::vector<std::string> personIds;
|
||||
std::string size = "fullsize";
|
||||
std::string order = "desc";
|
||||
int pageSize = 200;
|
||||
@@ -40,6 +41,13 @@ struct ImmichConfig {
|
||||
if (albumIds[i] != b.albumIds[i])
|
||||
return false;
|
||||
}
|
||||
if (personIds.size() != b.personIds.size())
|
||||
return false;
|
||||
for (size_t i = 0; i < personIds.size(); ++i)
|
||||
{
|
||||
if (personIds[i] != b.personIds[i])
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -54,6 +62,7 @@ struct MqttConfig {
|
||||
std::string host = "localhost";
|
||||
int port = 1883;
|
||||
std::string topic = "slide/control";
|
||||
std::string immichTopic = "";
|
||||
std::string clientId = "slide";
|
||||
std::string username = "";
|
||||
std::string password = "";
|
||||
@@ -66,6 +75,7 @@ struct MqttConfig {
|
||||
host == b.host &&
|
||||
port == b.port &&
|
||||
topic == b.topic &&
|
||||
immichTopic == b.immichTopic &&
|
||||
clientId == b.clientId &&
|
||||
username == b.username &&
|
||||
password == b.password &&
|
||||
|
||||
Reference in New Issue
Block a user