public MeetingItemCollectionResult ReportMyMeetings(MeetingPermissionId permission, int startIndex = 0, int limit = 0) { string filter = string.Format(CommandParams.Permissions.Filter.PermissionId.Format, permission.GetACEnum()); return(CallReportMyMeetings(filter, startIndex, limit)); }
public static int?GetRoleId(MeetingPermissionId permissionId) { if (permissionId == MeetingPermissionId.host) { return(Host.Id); } if (permissionId == MeetingPermissionId.mini_host) { return(Presenter.Id); } if (permissionId == MeetingPermissionId.view) { return(Participant.Id); } return(null); }
public static string GetRoleName(MeetingPermissionId permissionId) { if (permissionId == MeetingPermissionId.host) { return(Host.Name); } if (permissionId == MeetingPermissionId.mini_host) { return(Presenter.Name); } if (permissionId == MeetingPermissionId.view) { return(Participant.Name); } return(null); }
public static StatusInfo UpdateScoPermissionForPrincipal(this IAdobeConnectProxy provider, string meetingScoId, string userPrincipalId, MeetingPermissionId permission) { if (provider == null) { throw new ArgumentNullException(nameof(provider)); } if (string.IsNullOrWhiteSpace(meetingScoId)) { throw new ArgumentException("Non-empty value expected", nameof(meetingScoId)); } if (string.IsNullOrWhiteSpace(userPrincipalId)) { throw new ArgumentException("Non-empty value expected", nameof(userPrincipalId)); } return(provider.UpdateScoPermissions(new MeetingPermissionUpdateTrio[] { new MeetingPermissionUpdateTrio { ScoId = meetingScoId, PrincipalId = userPrincipalId, PermissionId = permission, } })); }