microsoft / Cognitive-Face-iOS

iOS SDK for the Microsoft Face API, part of Cognitive Services
https://www.microsoft.com/cognitive-services/en-us/face-api
Other
184 stars 64 forks source link

getPersonGroupTrainingStatusWithPersonGroupId/MPOTrainingStatus is out of date with the Face API #30

Closed NateRickard closed 7 years ago

NateRickard commented 7 years ago

API docs for "Get Person Group Training Status"

getPersonGroupTrainingStatusWithPersonGroupId should be looking for these fields, per the above linked docs:

status createdDateTime lastActionDateTime message

Instead, it's attempting to read non-existent result fields:

if (self) {
        self.personGroupId = dict[@"personGroupId"];
        self.status = dict[@"status"];
        self.startTime = dict[@"startTime"];
        self.endTime = dict[@"endTime"];
    }
huxuan commented 7 years ago

Thanks for the reporting, we will fix it soon.

huxuan commented 7 years ago

Fixed by #31 and enjoy pod version 1.3.2.