Commit 068215b8e1767dc9ec80f39b781baf622600aea1

Authored by Jan
Committed by Moritz Wirger
1 parent 0294e540

Apply documentation changes from code review

Co-authored-by: Moritz Wirger <lj.moritorii@web.de>
include/hueplusplus/ResourceList.h
... ... @@ -83,7 +83,7 @@ public:
83 83 void refresh() { stateCache.refresh(); }
84 84  
85 85 //! \brief Get all resources that exist
86   - //! \returns A vectory of references to every Resource
  86 + //! \returns A vector of references to every Resource
87 87 //! \throws std::system_error when system or socket operations fail
88 88 //! \throws HueException when response contains no body
89 89 //! \throws HueAPIResponseException when response contains an error
... ... @@ -105,7 +105,7 @@ public:
105 105 }
106 106  
107 107 //! \brief Get resource specified by id
108   - //! \param id ID of the resource
  108 + //! \param id Identifier of the resource
109 109 //! \returns The resource matching the id
110 110 //! \throws std::system_error when system or socket operations fail
111 111 //! \throws HueException when id does not exist
... ... @@ -129,7 +129,7 @@ public:
129 129 }
130 130  
131 131 //! \brief Checks whether resource with id exists
132   - //! \param id Id of the resource to check
  132 + //! \param id Identifier of the resource to check
133 133 //! \returns true when the resource with given id exists
134 134 //! \throws std::system_error when system or socket operations fail
135 135 //! \throws HueException when response contains no body
... ... @@ -146,7 +146,7 @@ public:
146 146 }
147 147  
148 148 //! \brief Checks whether resource with id exists
149   - //! \param id Id of the resource to check
  149 + //! \param id Identifier of the resource to check
150 150 //! \returns true when the resource with given id exists
151 151 //! \note This will not update the cache
152 152 //! \throws HueException when the cache is empty
... ... @@ -161,7 +161,7 @@ public:
161 161 }
162 162  
163 163 //! \brief Removes the resource
164   - //! \param id Id of the resource to remove
  164 + //! \param id Identifier of the resource to remove
165 165 //! \returns true on success
166 166 //! \throws std::system_error when system or socket operations fail
167 167 //! \throws HueException when response contains no body
... ...
include/hueplusplus/Schedule.h
... ... @@ -95,7 +95,7 @@ public:
95 95 //! \throws nlohmann::json::parse_error when response could not be parsed
96 96 void refresh();
97 97  
98   - //! \brief Get schedule id
  98 + //! \brief Get schedule identifier
99 99 int getId() const;
100 100  
101 101 //! \brief Get schedule name
... ...
src/APICache.cpp
... ... @@ -151,6 +151,7 @@ bool APICache::needsRefresh()
151 151 }
152 152 return false;
153 153 }
  154 +
154 155 std::string APICache::getRequestPath() const
155 156 {
156 157 std::string result;
... ...