internal List <Permission> GetPermissions(Box.V2.Models.BoxCollaboration collab) { List <Permission> permissions = new List <Permission>(); Permission permission = new Permission(); permission.PermissionType = collab.Role; permissions.Add(permission); return(permissions); }
internal User CreateUserObject(Box.V2.Models.BoxCollaboration collaboration) { User user = new User() { DisplayName = collaboration.AccessibleBy.Id, //EmailAddress = userInfo.Login, Permissions = GetPermissions(collaboration), }; return(user); }