|
|
|
@ -99,7 +99,7 @@ namespace SparkClient.Model.Services |
|
|
|
|
|
|
|
|
|
if (!response.IsSuccessStatusCode) |
|
|
|
|
{ |
|
|
|
|
return new SocResultEntity { Status = StatusCodes.DeviceNotFound, Images = new List<string>() , DeviceId = ""}; |
|
|
|
|
return new SocResultEntity { Status = StatusCodes.DeviceNotFound, Images = new List<string>()}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var jsonResponse = await response.Content.ReadAsStringAsync(); |
|
|
|
@ -107,7 +107,7 @@ namespace SparkClient.Model.Services |
|
|
|
|
|
|
|
|
|
if (result == null) |
|
|
|
|
{ |
|
|
|
|
return new SocResultEntity { Status = StatusCodes.DeviceNotFound, Images = new List<string>() , DeviceId = ""}; |
|
|
|
|
return new SocResultEntity { Status = StatusCodes.DeviceNotFound, Images = new List<string>()}; |
|
|
|
|
} |
|
|
|
|
return new SocResultEntity { Status = result.Status, Images = new List<string>() , DeviceId = result.device_id}; |
|
|
|
|
|
|
|
|
|