public void SetReviewersRights(IList<string> collaboratorGuids, string connectionIdToExclude, ReviewerInfo[] reviewerDescriptions) { Array.ForEach( _annotationsHub.GetConnectionIdsToCall(connectionIdToExclude, collaboratorGuids), x => GetClient(x).setReviewersRightsOnClient(connectionIdToExclude, reviewerDescriptions.Select(r => new { guid = r.Guid, emailAddress = r.PrimaryEmail, accessRights = (r.AccessRights ?? AnnotationReviewerRights.All) }) .ToArray())); }
public void SetReviewersColors(IList<string> collaboratorGuids, string connectionIdToExclude, ReviewerInfo[] reviewerDescriptions) { Array.ForEach( _annotationsHub.GetConnectionIdsToCall(connectionIdToExclude, collaboratorGuids), x => GetClient(x).setReviewersColorsOnClient(connectionIdToExclude, reviewerDescriptions.Select(r => new { emailAddress = r.PrimaryEmail, color = r.Color }).ToArray())); }