Commit 40feb8f6ec8ac24f42f1314eded2c0d8888a8c7e

Authored by deaflynx
1 parent f57bd5a1

Code review: device.service beautify

@@ -155,11 +155,14 @@ export class DeviceService { @@ -155,11 +155,14 @@ export class DeviceService {
155 return this.http.delete(`/api/customer/device/${deviceName}/claim`, defaultHttpOptionsFromConfig(config)); 155 return this.http.delete(`/api/customer/device/${deviceName}/claim`, defaultHttpOptionsFromConfig(config));
156 } 156 }
157 157
158 - public assignDeviceToEdge(edgeId: string, deviceId: string, config?: RequestConfig): Observable<Device> {  
159 - return this.http.post<Device>(`/api/edge/${edgeId}/device/${deviceId}`, defaultHttpOptionsFromConfig(config)); 158 + public assignDeviceToEdge(edgeId: string, deviceId: string,
  159 + config?: RequestConfig): Observable<Device> {
  160 + return this.http.post<Device>(`/api/edge/${edgeId}/device/${deviceId}`,
  161 + defaultHttpOptionsFromConfig(config));
160 } 162 }
161 163
162 - public unassignDeviceFromEdge(edgeId: string, deviceId: string, config?: RequestConfig) { 164 + public unassignDeviceFromEdge(edgeId: string, deviceId: string,
  165 + config?: RequestConfig) {
163 return this.http.delete(`/api/edge/${edgeId}/device/${deviceId}`, 166 return this.http.delete(`/api/edge/${edgeId}/device/${deviceId}`,
164 defaultHttpOptionsFromConfig(config)); 167 defaultHttpOptionsFromConfig(config));
165 } 168 }