public NotificationsPrivateFeedsPostRequest(ProfileIdentifier profile, string name, string icon, PrivateFeedColor color)
 {
     Profile = profile;
     Name    = name;
     Icon    = icon;
     Color   = color;
 }
 public NotificationsPersonalSubscriptionsUpdatePersonalSubscriptionSubjectPostRequest(ProfileIdentifier profile, string subjectCode, string?feed = null, bool?enabled = null)
 {
     Profile     = profile;
     SubjectCode = subjectCode;
     Feed        = feed;
     IsEnabled   = enabled;
 }
 public NotificationsPersonalCustomSubscriptionsPostRequest(ProfileIdentifier profile, string name, string feed, CustomGenericSubscriptionIn subscription)
 {
     Profile      = profile;
     Name         = name;
     Feed         = feed;
     Subscription = subscription;
 }
 public TeamDirectoryMemberLocationsPostRequest(ProfileIdentifier member, string location, DateTime?since = null, DateTime?till = null, string?previousLocation = null)
 {
     Member           = member;
     Location         = location;
     Since            = since;
     Till             = till;
     PreviousLocation = previousLocation;
 }
Exemplo n.º 5
0
        public async Task <List <GpgKeyData> > GetAllGpgKeyAsync(ProfileIdentifier profile, Func <Partial <GpgKeyData>, Partial <GpgKeyData> >?partial = null, CancellationToken cancellationToken = default)
        {
            var queryParameters = new NameValueCollection();

            queryParameters.Append("$fields", (partial != null ? partial(new Partial <GpgKeyData>()) : Partial <GpgKeyData> .Default()).ToString());

            return(await _connection.RequestResourceAsync <List <GpgKeyData> >("GET", $"api/http/gpg-key/{profile}{queryParameters.ToQueryString()}", cancellationToken));
        }
            public async Task <List <PrivateFeed> > GetAllPrivateFeedsAsync(ProfileIdentifier profile, Func <Partial <PrivateFeed>, Partial <PrivateFeed> >?partial = null, CancellationToken cancellationToken = default)
            {
                var queryParameters = new NameValueCollection();

                queryParameters.Append("profile", profile.ToString());
                queryParameters.Append("$fields", (partial != null ? partial(new Partial <PrivateFeed>()) : Partial <PrivateFeed> .Default()).ToString());

                return(await _connection.RequestResourceAsync <List <PrivateFeed> >("GET", $"api/http/notifications/private-feeds{queryParameters.ToQueryString()}", cancellationToken));
            }
            public async Task UpdatePersonalSubscriptionTargetAsync(ProfileIdentifier profile, string targetCode, List <string> eventCodes, CancellationToken cancellationToken = default)
            {
                var queryParameters = new NameValueCollection();

                await _connection.RequestResourceAsync("POST", $"api/http/notifications/personal-subscriptions/update-personal-subscription-target{queryParameters.ToQueryString()}",
                                                       new NotificationsPersonalSubscriptionsUpdatePersonalSubscriptionTargetPostRequest
                {
                    Profile    = profile,
                    TargetCode = targetCode,
                    EventCodes = eventCodes,
                }, cancellationToken);
            }
Exemplo n.º 8
0
 public TeamDirectoryMembershipsPostRequest(ProfileIdentifier member, string teamId, string roleId, bool lead = false, bool requiresApproval = false, ProfileIdentifier?manager = null, DateTime?activeSince = null, DateTime?activeTill = null, string?previousMembershipId = null, List <CustomFieldInputValue>?customFieldValues = null)
 {
     Member               = member;
     TeamId               = teamId;
     RoleId               = roleId;
     IsLead               = lead;
     Manager              = manager;
     ActiveSince          = activeSince;
     ActiveTill           = activeTill;
     PreviousMembershipId = previousMembershipId;
     IsRequiresApproval   = requiresApproval;
     CustomFieldValues    = customFieldValues;
 }
            public async Task UpdatePersonalSubscriptionSubjectAsync(ProfileIdentifier profile, string subjectCode, string?feed = null, bool?enabled = null, CancellationToken cancellationToken = default)
            {
                var queryParameters = new NameValueCollection();

                await _connection.RequestResourceAsync("POST", $"api/http/notifications/personal-subscriptions/update-personal-subscription-subject{queryParameters.ToQueryString()}",
                                                       new NotificationsPersonalSubscriptionsUpdatePersonalSubscriptionSubjectPostRequest
                {
                    Profile     = profile,
                    SubjectCode = subjectCode,
                    Feed        = feed,
                    IsEnabled   = enabled,
                }, cancellationToken);
            }
            public async Task <PrivateFeed> CreatePrivateFeedAsync(ProfileIdentifier profile, string name, string icon, PrivateFeedColor color, Func <Partial <PrivateFeed>, Partial <PrivateFeed> >?partial = null, CancellationToken cancellationToken = default)
            {
                var queryParameters = new NameValueCollection();

                queryParameters.Append("$fields", (partial != null ? partial(new Partial <PrivateFeed>()) : Partial <PrivateFeed> .Default()).ToString());

                return(await _connection.RequestResourceAsync <NotificationsPrivateFeedsPostRequest, PrivateFeed>("POST", $"api/http/notifications/private-feeds{queryParameters.ToQueryString()}",
                                                                                                                  new NotificationsPrivateFeedsPostRequest
                {
                    Profile = profile,
                    Name = name,
                    Icon = icon,
                    Color = color,
                }, cancellationToken));
            }
            public async Task <Subscription> CreatePersonalCustomSubscriptionAsync(ProfileIdentifier profile, string name, string feed, CustomGenericSubscriptionIn subscription, Func <Partial <Subscription>, Partial <Subscription> >?partial = null, CancellationToken cancellationToken = default)
            {
                var queryParameters = new NameValueCollection();

                queryParameters.Append("$fields", (partial != null ? partial(new Partial <Subscription>()) : Partial <Subscription> .Default()).ToString());

                return(await _connection.RequestResourceAsync <NotificationsPersonalCustomSubscriptionsPostRequest, Subscription>("POST", $"api/http/notifications/personal-custom-subscriptions{queryParameters.ToQueryString()}",
                                                                                                                                  new NotificationsPersonalCustomSubscriptionsPostRequest
                {
                    Profile = profile,
                    Name = name,
                    Feed = feed,
                    Subscription = subscription,
                }, cancellationToken));
            }
Exemplo n.º 12
0
 public ProfilePermissionTarget(ProfileIdentifier profile)
 {
     Profile = profile;
 }
 public static PrincipalInProfile Profile(ProfileIdentifier profile)
 => new PrincipalInProfile(profile: profile);
 public NotificationsPersonalSubscriptionsUpdatePersonalSubscriptionTargetPostRequest(ProfileIdentifier profile, string targetCode, List <string> eventCodes)
 {
     Profile    = profile;
     TargetCode = targetCode;
     EventCodes = eventCodes;
 }
            public async Task <PersonalSubscriptionSettings> PersonalSubscriptionSettingsAsync(ProfileIdentifier profile, Func <Partial <PersonalSubscriptionSettings>, Partial <PersonalSubscriptionSettings> >?partial = null, CancellationToken cancellationToken = default)
            {
                var queryParameters = new NameValueCollection();

                queryParameters.Append("profile", profile.ToString());
                queryParameters.Append("$fields", (partial != null ? partial(new Partial <PersonalSubscriptionSettings>()) : Partial <PersonalSubscriptionSettings> .Default()).ToString());

                return(await _connection.RequestResourceAsync <PersonalSubscriptionSettings>("GET", $"api/http/notifications/personal-subscriptions/personal-subscription-settings{queryParameters.ToQueryString()}", cancellationToken));
            }
Exemplo n.º 16
0
 public ProjectsForProjectAccessAdminsProfilesPostRequest(ProfileIdentifier profile)
 {
     Profile = profile;
 }
 public static MessageRecipientMember Member(ProfileIdentifier member)
 => new MessageRecipientMember(member: member);
                public async Task <UAUserAgreementStatus> GetUserAgreementStatusForProfileAsync(ProfileIdentifier profile, Func <Partial <UAUserAgreementStatus>, Partial <UAUserAgreementStatus> >?partial = null, CancellationToken cancellationToken = default)
                {
                    var queryParameters = new NameValueCollection();

                    queryParameters.Append("$fields", (partial != null ? partial(new Partial <UAUserAgreementStatus>()) : Partial <UAUserAgreementStatus> .Default()).ToString());

                    return(await _connection.RequestResourceAsync <UAUserAgreementStatus>("GET", $"api/http/administration/user-agreement/status/{profile}{queryParameters.ToQueryString()}", cancellationToken));
                }
Exemplo n.º 19
0
 public ProjectsForProjectAccessCollaboratorsProfilesPostRequest(ProfileIdentifier profile)
 {
     Profile = profile;
 }
Exemplo n.º 20
0
 public MessageRecipientMember(ProfileIdentifier member)
 {
     Member = member;
 }
Exemplo n.º 21
0
 public PrincipalInProfile(ProfileIdentifier profile)
 {
     Profile = profile;
 }