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;
 }
コード例 #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));
        }
コード例 #6
0
            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));
            }
コード例 #7
0
            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);
            }
コード例 #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;
 }
コード例 #9
0
            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);
            }
コード例 #10
0
            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));
            }
コード例 #11
0
            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));
            }
コード例 #12
0
 public ProfilePermissionTarget(ProfileIdentifier profile)
 {
     Profile = profile;
 }
コード例 #13
0
 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;
 }
コード例 #15
0
            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));
            }
コード例 #16
0
 public ProjectsForProjectAccessAdminsProfilesPostRequest(ProfileIdentifier profile)
 {
     Profile = profile;
 }
コード例 #17
0
 public static MessageRecipientMember Member(ProfileIdentifier member)
 => new MessageRecipientMember(member: member);
コード例 #18
0
                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));
                }
コード例 #19
0
 public ProjectsForProjectAccessCollaboratorsProfilesPostRequest(ProfileIdentifier profile)
 {
     Profile = profile;
 }
コード例 #20
0
 public MessageRecipientMember(ProfileIdentifier member)
 {
     Member = member;
 }
コード例 #21
0
 public PrincipalInProfile(ProfileIdentifier profile)
 {
     Profile = profile;
 }