Class PermissionListParser
java.lang.Object
com.amilesend.onedrive.parse.resource.parser.PermissionListParser
- All Implemented Interfaces:
com.amilesend.client.parse.parser.GsonParser<List<Permission>>
public class PermissionListParser
extends Object
implements com.amilesend.client.parse.parser.GsonParser<List<Permission>>
Parses a response body that contains a list of
Permission
s.
Example response body:
{ "value": [ { "id": "1", "roles": ["write"], "link": { "webUrl": "webUrlValue", "type": "edit" } }, { "id": "2", "roles": ["write"], "grantedTo": { "user": { "id": "5D33DD65C6932946", "displayName": "John Doe" } }, "inheritedFrom": { "driveId": "1234567890ABD", "id": "1234567890ABC!123", "path": "/drive/root:/Documents" } }, { "id": "3", "roles": ["write"], "link": { "webUrl": "webUrlValue", "type": "edit", "application": { "id": "12345", "displayName": "Contoso Time Manager" } } } ] }API Documentation
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionparse
(@NonNull com.google.gson.Gson gson, @NonNull InputStream jsonStream) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.amilesend.client.parse.parser.GsonParser
parse
-
Method Details
-
parse
- Specified by:
parse
in interfacecom.amilesend.client.parse.parser.GsonParser<List<Permission>>
-