use of com.sonos.services._1.GetMediaMetadataResponse in project SonosOneDriveServer by bertique.
the class SonosService method getMediaMetadata.
@Override
public GetMediaMetadataResponse getMediaMetadata(GetMediaMetadata parameters) throws CustomFault {
logger.debug("getMediaMetadata id:" + parameters.getId());
GraphAuth auth = getGraphAuth();
String json = graphApiGetRequest("me/drive/items/" + parameters.getId(), 1, null, auth);
JsonElement element = JsonParser.parseString(json);
Item m = new Item(element.getAsJsonObject());
GetMediaMetadataResponse response = new GetMediaMetadataResponse();
response.setGetMediaMetadataResult(buildMMD(m));
return response;
}
Aggregations